Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: test/mjsunit/sin-cos.js

Issue 305403002: fdlibm: reduce accuracy slightly in favor of performance. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/math.js ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/sin-cos.js
diff --git a/test/mjsunit/sin-cos.js b/test/mjsunit/sin-cos.js
index d486b83faab38233f2dcc63685731f5515dc7779..6357af962f0b034419119356766f1f8e3484b0e9 100644
--- a/test/mjsunit/sin-cos.js
+++ b/test/mjsunit/sin-cos.js
@@ -225,9 +225,9 @@ assertEquals(-1, Math.sin(-Math.PI/2));
assertEquals(1.2246467991473532e-16, Math.sin(Math.PI));
assertEquals(-7.047032979958965e-14, Math.sin(2200*Math.PI));
assertEquals(-0.7071067811865477, Math.sin(7/4 * Math.PI));
-assertEquals(0.7071067811865474, Math.sin(9/4 * Math.PI));
+// assertEquals(0.7071067811865474, Math.sin(9/4 * Math.PI));
assertEquals(0.7071067811865483, Math.sin(11/4 * Math.PI));
-assertEquals(-0.7071067811865479, Math.sin(13/4 * Math.PI));
+// assertEquals(-0.7071067811865479, Math.sin(13/4 * Math.PI));
assertEquals(-3.2103381051568376e-11, Math.sin(1048576/4 * Math.PI));
// Tests for Math.cos.
@@ -239,7 +239,7 @@ assertEquals(6.123233995736766e-17, Math.cos(Math.PI/2));
assertEquals(0.7071067811865474, Math.cos(7/4 * Math.PI));
assertEquals(0.7071067811865477, Math.cos(9/4 * Math.PI));
assertEquals(-0.7071067811865467, Math.cos(11/4 * Math.PI));
-assertEquals(-0.7071067811865471, Math.cos(13/4 * Math.PI));
+// assertEquals(-0.7071067811865471, Math.cos(13/4 * Math.PI));
assertEquals(0.9367521275331447, Math.cos(1000000));
assertEquals(-3.435757038074824e-12, Math.cos(1048575/2 * Math.PI));
@@ -248,7 +248,7 @@ assertEquals(two_28, Math.tan(two_28));
assertEquals(1.633123935319537e16, Math.tan(Math.PI/2));
assertEquals(0.5463024898437905, Math.tan(0.5));
assertEquals(0.8211418015898941, Math.tan(11/16));
-assertEquals(2.0000000000000027, Math.tan(1.107148717794091));
+// assertEquals(2.0000000000000027, Math.tan(1.107148717794091));
assertEquals(-1.0000000000000004, Math.tan(7/4*Math.PI));
assertEquals(0.9999999999999994, Math.tan(9/4*Math.PI));
assertEquals(-6.420676210313675e-11, Math.tan(1048576/2*Math.PI));
« src/math.js ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698