[IronPython] Math accuracy?

Keith J. Farmer kfarmer at thuban.org
Wed Aug 24 11:56:09 CEST 2005


I don't know why CPython returns in this case, but I wonder if it'd be
possible to improve the accuracy for certain calculations?

>>> a = 1j

>>> a ** 2

(-1+1.22464679914735E-16j)

>>> pow(a,2)

(-1+1.22464679914735E-16j)

-----

Keith J. Farmer
kfarmer at thuban.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050824/0c2b9e15/attachment.html>


More information about the Ironpython-users mailing list