[issue4155] Wrong math calculation

2008-10-20 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: None of these calculations are going to work out exactly. Look-up "what every computer scientist needs to know about floating point" and see the floating-point appendix in the Python tutorial. In this case, the difference is only one bit

[issue4155] Wrong math calculation

2008-10-20 Thread Petr
New submission from Petr <[EMAIL PROTECTED]>: 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 m