diff options
author | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 10:24:43 +0000 |
---|---|---|
committer | daney <daney@280ebfd0-de03-0410-8827-d642c229c3f4> | 2001-10-18 10:24:43 +0000 |
commit | b6027db3694d9206bd449cdc8ad9f81d0d86a2ec (patch) | |
tree | 9278df951f4f60bc5a922ceac7464ba5e1eae923 /tanh.c | |
parent | 2d286695dacea9d19c0fd516ea592248149c63c8 (diff) | |
download | mpfr-b6027db3694d9206bd449cdc8ad9f81d0d86a2ec.tar.gz |
correst tanh(0)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1288 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tanh.c')
-rw-r--r-- | tanh.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -69,6 +69,7 @@ mpfr_tanh (y, xt, rnd_mode) /* tanh(0) = 0 */ if(!MPFR_NOTZERO(xt)) { + MPFR_SET_ZERO(y); MPFR_SET_SAME_SIGN(y,xt); return 0; } |