Lines Matching full:hypot
28 assertTrue(isNaN(Math.hypot({})));
29 assertTrue(isNaN(Math.hypot(undefined, 1)));
30 assertTrue(isNaN(Math.hypot(1, undefined)));
31 assertTrue(isNaN(Math.hypot(Math.hypot, 1)));
32 assertEquals(1, Math.hypot(1));
33 assertEquals(Math.PI, Math.hypot(Math.PI));
34 assertEquals(5, Math.hypot(3, 4));
35 assertEquals(13, Math.hypot(3, 4, 12));
36 assertEquals(15, Math.hypot(" 2 ",
39 assertEquals(17, Math.hypot({ valueOf: function() { return 1; } },
44 assertEquals(2, Math.hypot.length);
47 assertEquals(0, Math.hypot());
50 assertEquals("Infinity", String(Math.hypot(NaN, Infinity)));
51 assertEquals("Infinity", String(Math.hypot(1, -Infinity, 2)));
54 assertTrue(isNaN(Math.hypot(1, 2, NaN)));
55 assertTrue(isNaN(Math.hypot(NaN, NaN, 4)));
58 assertEquals("Infinity", String(1/Math.hypot(-0)));
59 assertEquals("Infinity", String(1/Math.hypot(0)));
60 assertEquals("Infinity", String(1/Math.hypot(-0, -0)));
61 assertEquals("Infinity", String(1/Math.hypot(-0, 0)));
64 assertEqualsDelta(5E300, Math.hypot(3E300, 4E300), 1E285);
65 assertEqualsDelta(17E-300, Math.hypot(8E-300, 15E-300), 1E-315);
66 assertEqualsDelta(19E300, Math.hypot(6E300, 6E300, 17E300), 1E285);
83 assertEqualsDelta(edge_length, Math.hypot.apply(Math, fractals), 1E-15);
85 assertEqualsDelta(edge_length, Math.hypot.apply(Math, fractals), 1E-15);
90 assertEqualsDelta(edge_length, Math.hypot.apply(Math, fractals), 1E-15);
92 assertEqualsDelta(edge_length, Math.hypot.apply(Math, fractals), 1E-15);