tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fdlibm-for-sin-cos-tan-argument.js (346B)


      1 // |jit-test| --use-fdlibm-for-sin-cos-tan
      2 // Test that fdlibm is being used for sin, cos, and tan.
      3 
      4 // Tests adapted from https://github.com/arkenfox/TZP/blob/master/tests/math.html#L158-L319
      5 assertEq(Math.cos(1e284), 0.7086865671674247);
      6 assertEq(Math.sin(7*Math.LOG10E), 0.10135692924965616);
      7 assertEq(Math.tan(6*Math.E), 0.6866761546452431);