Comment #3 on issue 1975 by [email protected]: Precision of trignometric functions is low
http://code.google.com/p/v8/issues/detail?id=1975

test262/S15.8.2.16_A7 tests whether (within a certain tolerance)

sin(6.283185307179586) == -2.4492935982947064e-16

Note that this value is very close to 2*Pi, and sin(2*Pi) = 0. Usual algorithms for sine have low precision at this point. Both Firefox and Chrome fail in this test on Linux but succeed on Windows and Mac OS X because the value of the sine function depends on compiler/platform.

An arbitrary-precision calculator returns approximately 4.7692E-16.

Similar to test262/S15.8.2.18_A7 this test should not test against the (very unprecise) result of any particular implementation.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to