[issue8309] Sin(x) is Wrong

2010-04-04 Thread Derek O'Connor
Derek O'Connor added the comment: @ Tim Peters " ... are much keener about speed than avoiding noise results for inputs in ranges they *never intend to use* ". It is the *unintended use* that worries me. Sadly, "Speed is King". Perhaps that aphorism should be &quo

[issue8309] Sin(x) is Wrong

2010-04-04 Thread Derek O'Connor
Derek O'Connor added the comment: Reply to Mark Dickinson Python 3.1.2 -- 32 bit gives sin(2^60) = -0.7391806966492228 PariGp 2.3.4 gives sin(2^60) = -0.8306492176372546505752817956 So it seems Intel's x87 FSIN is not being used. Application? I don't have one, bu

[issue8309] Sin(x) is Wrong

2010-04-03 Thread Derek O'Connor
New submission from Derek O'Connor : Dell Precision 690, Intel 2xQuad-Core E5345 @ 2.33GHz 16GB RAM, Windows7 64-bit Professional. Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 >>> from math import sin >>> sin(1e22) 0.412