From: Poitras, D. <Dan...@nr...> - 2006-07-28 20:07:43
|
Hello,=20 =20 I tried different arcsin functions on a "complex" number (z=3D0.52+0j) = and obtained=20 the following results:=20 =20 cmath.asin(z) gives (0.54685095069594414+0j) #okay=20 =20 -1j*log(1j*z+sqrt(1-z**2)) gives (0.54685095069594414+0j) #okay, by = definition=20 =20 numarray.arcsin(z) gives (0.54685095069594414+0j) #still okay=20 =20 but=20 =20 numpy.arcsin(z) gives (0.54685095069594414+0.54685095069594414j) = #bug??=20 =20 Is it a bug in numpy, or is there another explanation?=20 =20 Thanks=20 =20 Daniel Poitras=20 Ottawa |