diff options
Diffstat (limited to 'src/cos.c')
-rw-r--r-- | src/cos.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,8 +263,8 @@ mpfr_cos (mpfr_ptr y, mpfr_srcptr x, mpfr_rnd_t rnd_mode) if (m > k && (m - k >= precy + (rnd_mode == MPFR_RNDN))) { /* If round to nearest or away, result is s = 1 or -1, - otherwise it is round(nexttoward (s, 0)). However in order to - have the inexact flag correctly set below, we set |s| to + otherwise it is round(nexttoward (s, 0)). However, in order + to have the inexact flag correctly set below, we set |s| to 1 - 2^(-m) in all cases. */ mpfr_nexttozero (s); break; |