andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

atanh returns incorrect values #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example:

>>> from gmpy2 import atanh
>>> atanh(0.5)
mpfr('0.52359877559829893')

but the correct result (according to Mathematica) is
0.549306144334054846

I looked through the source and atanh calls mpfr_asin instead of mpfr_atanh 
(line 1520 of gmpy_mpfr.c)

Original issue reported on code.google.com by 16sn...@gmail.com on 29 Nov 2013 at 1:01

GoogleCodeExporter commented 9 years ago
Thank you for finding that. That's another copy-n-paste error on my part. 

Original comment by casevh on 29 Nov 2013 at 4:32

GoogleCodeExporter commented 9 years ago
I've released version 2.0.3 with the fix.

Thanks for reporting these issues.

Original comment by casevh on 29 Nov 2013 at 7:00

GoogleCodeExporter commented 9 years ago
closing...

Original comment by casevh on 29 Nov 2013 at 7:57