diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-27 15:26:18 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2002-03-27 15:26:18 +0000 |
commit | a60e3274cd49cf113eef5ef07a43f8d767c75f48 (patch) | |
tree | 97e9978a8711da5eb130e81298934658758b8b92 /asin.c | |
parent | a73432028bb52427a421f0284deb3986cfc6483b (diff) | |
download | mpfr-a60e3274cd49cf113eef5ef07a43f8d767c75f48.tar.gz |
sign of sin(-1) was not set
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1789 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'asin.c')
-rw-r--r-- | asin.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -61,7 +61,7 @@ mpfr_asin (mpfr_ptr asin, mpfr_srcptr x, mp_rnd_t rnd_mode) if (compared > 0) /* asin(x) = NaN for |x| > 1 */ { MPFR_SET_NAN(asin); - mpfr_clear(xp); + mpfr_clear (xp); MPFR_RET_NAN; } @@ -76,9 +76,10 @@ mpfr_asin (mpfr_ptr asin, mpfr_srcptr x, mp_rnd_t rnd_mode) else if (rnd_mode == GMP_RNDD) rnd_mode = GMP_RNDU; mpfr_const_pi (asin, rnd_mode); + mpfr_neg (asin, asin, rnd_mode); } MPFR_EXP(asin)--; - mpfr_clear(xp); + mpfr_clear (xp); return 1; /* inexact */ } |