Comment #38 on issue 3006 by [email protected]: Inaccurate sin/cos values
http://code.google.com/p/v8/issues/detail?id=3006

There is a serious problem with the new sin function's behavior on very small negative values. In Dart, we have a test that sin(x) = x for very small numbers, since the derivative of sin at 0 is 1. The new sin function works correctly for 0 < x < 1E-17, but for -1E17 < x < 0, sin(x) == 0 according to V8. This is wrong, and is probably happening because the algorithm is computing sin(x + 2pi), or something.

Even if the other behavior is kept as is, I think this should be changed, because the behavior of sin on really small numbers, represented with high precision, should be returned with high precision. So the interpolation table should extended below 0, or sin(x) for negative x should be defined as -sin(-x).


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to