This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bubersson
Recipients bubersson
Date 2008-10-20.20:07:59
SpamBayes Score 7.818469e-10
Marked as misclassified No
Message-id <1224533281.89.0.753070831539.issue4155@psf.upfronthosting.co.za>
In-reply-to
Content
Hi, I've just tried some math functions in python3.0, but there's an 
wrong calculation (see the example). sin(pi/4) should be same as 
(2^.5)/2, but the result is different in last two digits. I don't know 
if it's an expected behaviour and this is my first posted issue. 

Python 3.0rc1 (r30rc1:66507, Sep 18 2008, 14:47:08) [MSC v.1500 32 bit 
(Intel)]
>>> from math import *
>>> sin(pi/4)==(2**0.5)/2
False

sin(pi/4)==0.70710678118654746
(2**0.5)/2==0.70710678118654757

bubersson
History
Date User Action Args
2008-10-20 20:08:02buberssonsetrecipients: + bubersson
2008-10-20 20:08:01buberssonsetmessageid: <1224533281.89.0.753070831539.issue4155@psf.upfronthosting.co.za>
2008-10-20 20:08:00buberssonlinkissue4155 messages
2008-10-20 20:07:59buberssoncreate