diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-17 08:56:14 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 1999-06-17 08:56:14 +0000 |
commit | e8f8e85bcab5868378b0a674e9fb931b4ecbd1fd (patch) | |
tree | 663a04b2d54afdb951eaf52ca6417fb2519d0110 /sqrt.c | |
parent | f9739752bfd12a4639c52d80fbd983e82ba0b84c (diff) | |
download | mpfr-e8f8e85bcab5868378b0a674e9fb931b4ecbd1fd.tar.gz |
SET_NAN(x) -> SET_NAN(X)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@85 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'sqrt.c')
-rw-r--r-- | sqrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ void mpfr_sqrt(mpfr_ptr X, mpfr_srcptr a, unsigned char rnd_mode) #endif /* use Newton's iteration x[n+1] = 1/2*(x[n]+a/x[n]), the error e[n] = x[n]-sqrt(a) satisfies e[n+1] <= e[n]/2/sqrt(a) */ - if (FLAG_NAN(a) || SIGN(a)<0) { SET_NAN(x); return; } + if (FLAG_NAN(a) || SIGN(a)<0) { SET_NAN(X); return; } if (X==a) { x = (mpfr_ptr) (*_mp_allocate_func) (sizeof(__mpfr_struct)); mpfr_init2(x, PREC(X)); |