-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Am 15.03.2012 16:30, schrieb Allen Wirfs-Brock: > particular > http://wiki.ecmascript.org/lib/exe/fetch.php?id=harmony%3Amore_math_functions&cache=cache&media=harmony:es6libraryextensions.pdf > > <http://wiki.ecmascript.org/lib/exe/fetch.php?id=harmony:more_math_functions&cache=cache&media=harmony:es6libraryextensions.pdf>
> > I would be very useful to have feedback on these from numerical > computation experts. The hypot is nice and probably well used by beginners. But in numerics you can and will use very often the squared value as that saves you taking most of the time taking an unnecessary square root. E.g. checking the distance won't be done by checking the hypot, but by comparing the scalar product (which is the hypot squared) against the squared value of the distance. So I suggest adding a Math.hypot2 as well. Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEAREIAAYFAk9iLU4ACgkQoWM1JLkHou2e2wCdGep1VhK7Ed/ozdL3su8eovdj BK0An1ff6P5iXxdebb45Q4SFrrTkVRjB =RiXV -----END PGP SIGNATURE----- _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

