Lines Matching refs:cos
33 assertEquals(1, Math.cos(-0));
38 return Math.sin(x) + Math.cos(x) + Math.tan(x);
54 assertEquals(1, Math.cos(0));
55 assertEquals(-1, Math.cos(Math.PI));
64 assertTrue(Math.sin(x) != Math.cos(x));
99 function cos(x) { function
137 var err_cos = abs_error(Math.cos, cos, x)
155 assertEquals(-1, Math.cos({ valueOf: function() { return Math.PI; } }));
157 assertEquals(1, Math.cos("0x00000"));
159 assertTrue(isNaN(Math.cos("-Infinity")));
169 assertEqualsDelta(0.9367521275331447, Math.cos(1e06), 1e-15);
170 assertEqualsDelta(0.8731196226768560, Math.cos(1e10), 1e-08);
171 assertEqualsDelta(0.9367521275331447, Math.cos(-1e06), 1e-15);
172 assertEqualsDelta(0.8731196226768560, Math.cos(-1e10), 1e-08);
178 assertEqualsDelta(-0.6261681981330861, Math.cos(1e16), 1e-05);
185 assertFalse(isNaN(Math.cos(1.57079632679489700)));
186 assertFalse(isNaN(Math.cos(-1e-100)));
187 assertFalse(isNaN(Math.cos(-1e-323)));