Comment #8 on issue 3035 by [email protected]: Math.sin(Math.PI) inaccurate
http://code.google.com/p/v8/issues/detail?id=3035

I think what Kahan says in http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf is relevant. See page 25, section 13:

13 Prevalent Misconceptions about Floating-Point Arithmetic :
 1• Floating–point numbers are all at least slightly uncertain.
2• In floating–point arithmetic, every number is a “ Stand–In ” for all numbers that differ from it in digits beyond the last digit stored, so “ 3 ” and “ 3.0 E0 ” and “ 3.0 D0 ” are all slightly different. 3• Arithmetic much more precise than the data it operates upon is needless, and wasteful.

Note also that the C99 spec says the math functions should be accurate to at least 1 ulp over the entire domain.

--
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