Math.sincos(x)?
Boris Zbarsky
bzbarsky at mit.edu
Thu Jun 22 18:14:49 UTC 2017
On 6/22/17 2:02 PM, Robert Poor wrote:
> However, most implementations for cos(theta) actually generate
> sin(theta) as a "byproduct" (and vice-versa).
At first glance, the v8 implementation of cos typically uses a Taylor
series and does not compute sin.
And the SpiderMonkey implementation of cos looks like it just calls the
C standard library cos, so also doesn't compute sin(theta) in a way
visible to it.
-Boris
More information about the es-discuss
mailing list