summaryrefslogtreecommitdiff
path: root/asin.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-27 15:26:18 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2002-03-27 15:26:18 +0000
commita60e3274cd49cf113eef5ef07a43f8d767c75f48 (patch)
tree97e9978a8711da5eb130e81298934658758b8b92 /asin.c
parenta73432028bb52427a421f0284deb3986cfc6483b (diff)
downloadmpfr-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asin.c b/asin.c
index 6d22ae3d0..eb1b0f75a 100644
--- a/asin.c
+++ b/asin.c
@@ -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 */
}