• Home
  • Raw
  • Download

Lines Matching refs:sin

32 assertEquals("-Infinity", String(1/Math.sin(-0)));
38 return Math.sin(x) + Math.cos(x) + Math.tan(x);
49 assertEquals(0, Math.sin(0));
50 assertEquals(1, Math.sin(Math.PI / 2));
64 assertTrue(Math.sin(x) != Math.cos(x));
68 assertTrue(Math.sin(x) != Math.log(x));
87 function sin(x) { function
136 var err_sin = abs_error(Math.sin, sin, x);
156 assertEquals(0, Math.sin("0x00000"));
158 assertTrue(isNaN(Math.sin(Infinity)));
162 assertEquals("-Infinity", String(1/Math.sin("-0")));
173 assertEqualsDelta(-0.3499935021712929, Math.sin(1e06), 1e-15);
174 assertEqualsDelta(-0.4875060250875106, Math.sin(1e10), 1e-08);
175 assertEqualsDelta(0.3499935021712929, Math.sin(-1e06), 1e-15);
176 assertEqualsDelta(0.4875060250875106, Math.sin(-1e10), 1e-08);
177 assertEqualsDelta(0.7796880066069787, Math.sin(1e16), 1e-05);
182 assertFalse(isNaN(Math.sin(Math.pow(2, i))));
195 assertEquals(Infinity, 1/Math.sin(+0.0));
196 assertEquals(-Infinity, 1/Math.sin(-0.0));
198 assertEquals(two_32, Math.sin(two_32));
199 assertEquals(-two_32, Math.sin(-two_32));
201 assertEquals(0.3826834323650898, Math.sin(Math.PI/8));
202 assertEquals(-0.3826834323650898, -Math.sin(Math.PI/8));
234 assertEquals(0.479425538604203, Math.sin(0.5));
235 assertEquals(-0.479425538604203, Math.sin(-0.5));
236 assertEquals(1, Math.sin(Math.PI/2));
237 assertEquals(-1, Math.sin(-Math.PI/2));
239 assertEquals(1.2246467991473532e-16, Math.sin(Math.PI));
240 assertEquals(-7.047032979958965e-14, Math.sin(2200*Math.PI));
242 assertEquals(-0.7071067811865477, Math.sin(7/4 * Math.PI));
243 assertEquals(0.7071067811865474, Math.sin(9/4 * Math.PI));
244 assertEquals(0.7071067811865483, Math.sin(11/4 * Math.PI));
245 assertEquals(-0.7071067811865479, Math.sin(13/4 * Math.PI));
246 assertEquals(-3.2103381051568376e-11, Math.sin(1048576/4 * Math.PI));
277 assertEquals(0.377820109360752e0, Math.sin(Math.pow(2, 120)));
280 assertEquals(-0.377820109360752e0, Math.sin(-Math.pow(2, 120)));