Lines Matching refs:tan
34 assertEquals("-Infinity", String(1/Math.tan(-0)));
38 return Math.sin(x) + Math.cos(x) + Math.tan(x);
160 assertTrue(Math.tan(Math.PI/2) > 1e16);
161 assertTrue(Math.tan(-Math.PI/2) < -1e16);
220 // Tests for Math.tan for |x| < pi/4
221 assertEquals(Infinity, 1/Math.tan(0.0));
222 assertEquals(-Infinity, 1/Math.tan(-0.0));
223 // tan(x) = x for |x| < 2^-28
224 assertEquals(two_32, Math.tan(two_32));
225 assertEquals(-two_32, Math.tan(-two_32));
227 assertEquals(0.8211418015898941, Math.tan(11/16));
228 assertEquals(-0.8211418015898941, Math.tan(-11/16));
229 assertEquals(0.41421356237309503, Math.tan(Math.PI / 8));
231 assertEquals(0.7993357819992383, Math.tan(0.6743358));
264 // Tests for Math.tan.
265 assertEquals(two_28, Math.tan(two_28));
266 // Test that Math.tan(Math.PI/2) != Infinity since Math.PI is not exact.
267 assertEquals(1.633123935319537e16, Math.tan(Math.PI/2));
269 assertEquals(0.5463024898437905, Math.tan(0.5));
270 assertEquals(2.0000000000000027, Math.tan(1.107148717794091));
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));
279 assertEquals(-0.40806638884180424e0, Math.tan(Math.pow(2, 120)));
282 assertEquals(0.40806638884180424e0, Math.tan(-Math.pow(2, 120)));