Message105512
Python's result looks fine to me, as does numpy's: they're both giving a valid inverse hyperbolic sine:
>>> from cmath import sinh
>>> sinh(1.3169578969248166-1.5707963267948966j)
(1.0605752387249067e-16-1.9999999999999998j)
>>> sinh(-1.3169578969248164-1.5707963267948966j)
(-1.0605752387249064e-16-1.9999999999999993j)
Perhaps numpy is using different branch cuts? |
|
Date |
User |
Action |
Args |
2010-05-11 13:39:46 | mark.dickinson | set | recipients:
+ mark.dickinson, gvanrossum, loewis, jcea, alanmcintyre, inducer, christian.heimes, bins |
2010-05-11 13:39:45 | mark.dickinson | set | messageid: <1273585185.98.0.0492901863881.issue1381@psf.upfronthosting.co.za> |
2010-05-11 13:39:44 | mark.dickinson | link | issue1381 messages |
2010-05-11 13:39:44 | mark.dickinson | create | |
|