• Home
  • Raw
  • Download

Lines Matching refs:PI

50   assertEquals(1, Math.sin(Math.PI / 2));
55 assertEquals(-1, Math.cos(Math.PI));
123 test_inputs.push(Math.PI/2);
124 test_inputs.push(Math.PI/2 + epsilon);
125 test_inputs.push(Math.PI/2 - epsilon);
126 test_inputs.push(Math.PI);
127 test_inputs.push(Math.PI + epsilon);
128 test_inputs.push(Math.PI - epsilon);
129 test_inputs.push(- 2*Math.PI);
130 test_inputs.push(- 2*Math.PI + epsilon);
131 test_inputs.push(- 2*Math.PI - epsilon);
155 assertEquals(-1, Math.cos({ valueOf: function() { return Math.PI; } }));
160 assertTrue(Math.tan(Math.PI/2) > 1e16);
161 assertTrue(Math.tan(-Math.PI/2) < -1e16);
201 assertEquals(0.3826834323650898, Math.sin(Math.PI/8));
202 assertEquals(-0.3826834323650898, -Math.sin(Math.PI/8));
210 assertEquals(0.9876883405951378, Math.cos(Math.PI/20));
216 assertEquals(0.9238795325112867, Math.cos(Math.PI/8));
218 assertEquals(0.9238795325112867, Math.cos(-Math.PI/8));
229 assertEquals(0.41421356237309503, Math.tan(Math.PI / 8));
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));
255 assertEquals(6.123233995736766e-17, Math.cos(Math.PI/2));
257 assertEquals(0.7071067811865474, Math.cos(7/4 * Math.PI));
258 assertEquals(0.7071067811865477, Math.cos(9/4 * Math.PI));
259 assertEquals(-0.7071067811865467, Math.cos(11/4 * Math.PI));
260 assertEquals(-0.7071067811865471, Math.cos(13/4 * Math.PI));
262 assertEquals(-3.435757038074824e-12, Math.cos(1048575/2 * Math.PI));
267 assertEquals(1.633123935319537e16, Math.tan(Math.PI/2));
271 assertEquals(-1.0000000000000004, Math.tan(7/4*Math.PI));
272 assertEquals(0.9999999999999994, Math.tan(9/4*Math.PI));
273 assertEquals(-6.420676210313675e-11, Math.tan(1048576/2*Math.PI));
274 assertEquals(2.910566692924059e11, Math.tan(1048575/2*Math.PI));