Lines Matching refs:Math
33 assertEquals(4, Math.pow(2, 2));
34 assertEquals(2147483648, Math.pow(2, 31));
35 assertEquals(0.25, Math.pow(2, -2));
36 assertEquals(0.0625, Math.pow(2, -4));
37 assertEquals(1, Math.pow(1, 100));
38 assertEquals(0, Math.pow(0, 1000));
41 assertEquals(NaN, Math.pow(2, NaN));
42 assertEquals(NaN, Math.pow(+0, NaN));
43 assertEquals(NaN, Math.pow(-0, NaN));
44 assertEquals(NaN, Math.pow(Infinity, NaN));
45 assertEquals(NaN, Math.pow(-Infinity, NaN));
47 assertEquals(1, Math.pow(NaN, +0));
48 assertEquals(1, Math.pow(NaN, -0));
50 assertEquals(NaN, Math.pow(NaN, NaN));
51 assertEquals(NaN, Math.pow(NaN, 2.2));
52 assertEquals(NaN, Math.pow(NaN, 1));
53 assertEquals(NaN, Math.pow(NaN, -1));
54 assertEquals(NaN, Math.pow(NaN, -2.2));
55 assertEquals(NaN, Math.pow(NaN, Infinity));
56 assertEquals(NaN, Math.pow(NaN, -Infinity));
58 assertEquals(Infinity, Math.pow(1.1, Infinity));
59 assertEquals(Infinity, Math.pow(-1.1, Infinity));
60 assertEquals(Infinity, Math.pow(2, Infinity));
61 assertEquals(Infinity, Math.pow(-2, Infinity));
64 assertEquals(+Infinity, 1/Math.pow(1.1, -Infinity));
65 assertEquals(+Infinity, 1/Math.pow(-1.1, -Infinity));
66 assertEquals(+Infinity, 1/Math.pow(2, -Infinity));
67 assertEquals(+Infinity, 1/Math.pow(-2, -Infinity));
69 assertEquals(NaN, Math.pow(1, Infinity));
70 assertEquals(NaN, Math.pow(1, -Infinity));
71 assertEquals(NaN, Math.pow(-1, Infinity));
72 assertEquals(NaN, Math.pow(-1, -Infinity));
74 assertEquals(+0, Math.pow(0.1, Infinity));
75 assertEquals(+0, Math.pow(-0.1, Infinity));
76 assertEquals(+0, Math.pow(0.999, Infinity));
77 assertEquals(+0, Math.pow(-0.999, Infinity));
79 assertEquals(Infinity, Math.pow(0.1, -Infinity));
80 assertEquals(Infinity, Math.pow(-0.1, -Infinity));
81 assertEquals(Infinity, Math.pow(0.999, -Infinity));
82 assertEquals(Infinity, Math.pow(-0.999, -Infinity));
84 assertEquals(Infinity, Math.pow(Infinity, 0.1));
85 assertEquals(Infinity, Math.pow(Infinity, 2));
87 assertEquals(+Infinity, 1/Math.pow(Infinity, -0.1));
88 assertEquals(+Infinity, 1/Math.pow(Infinity, -2));
90 assertEquals(-Infinity, Math.pow(-Infinity, 3));
91 assertEquals(-Infinity, Math.pow(-Infinity, 13));
93 assertEquals(Infinity, Math.pow(-Infinity, 3.1));
94 assertEquals(Infinity, Math.pow(-Infinity, 2));
96 assertEquals(-Infinity, 1/Math.pow(-Infinity, -3));
97 assertEquals(-Infinity, 1/Math.pow(-Infinity, -13));
99 assertEquals(+Infinity, 1/Math.pow(-Infinity, -3.1));
100 assertEquals(+Infinity, 1/Math.pow(-Infinity, -2));
102 assertEquals(+Infinity, 1/Math.pow(+0, 1.1));
103 assertEquals(+Infinity, 1/Math.pow(+0, 2));
105 assertEquals(Infinity, Math.pow(+0, -1.1));
106 assertEquals(Infinity, Math.pow(+0, -2));
108 assertEquals(-Infinity, 1/Math.pow(-0, 3));
109 assertEquals(-Infinity, 1/Math.pow(-0, 13));
111 assertEquals(+Infinity, 1/Math.pow(-0, 3.1));
112 assertEquals(+Infinity, 1/Math.pow(-0, 2));
114 assertEquals(-Infinity, Math.pow(-0, -3));
115 assertEquals(-Infinity, Math.pow(-0, -13));
117 assertEquals(Infinity, Math.pow(-0, -3.1));
118 assertEquals(Infinity, Math.pow(-0, -2));
120 assertEquals(NaN, Math.pow(-0.00001, 1.1));
121 assertEquals(NaN, Math.pow(-0.00001, -1.1));
122 assertEquals(NaN, Math.pow(-1.1, 1.1));
123 assertEquals(NaN, Math.pow(-1.1, -1.1));
124 assertEquals(NaN, Math.pow(-2, 1.1));
125 assertEquals(NaN, Math.pow(-2, -1.1));
126 assertEquals(NaN, Math.pow(-1000, 1.1));
127 assertEquals(NaN, Math.pow(-1000, -1.1));
129 assertEquals(+Infinity, 1/Math.pow(-0, 0.5));
130 assertEquals(+Infinity, 1/Math.pow(-0, 0.6));
131 assertEquals(-Infinity, 1/Math.pow(-0, 1));
132 assertEquals(-Infinity, 1/Math.pow(-0, 10000000001));
134 assertEquals(+Infinity, Math.pow(-0, -0.5));
135 assertEquals(+Infinity, Math.pow(-0, -0.6));
136 assertEquals(-Infinity, Math.pow(-0, -1));
137 assertEquals(-Infinity, Math.pow(-0, -10000000001));
139 assertEquals(4, Math.pow(16, 0.5));
140 assertEquals(NaN, Math.pow(-16, 0.5));
141 assertEquals(0.25, Math.pow(16, -0.5));
142 assertEquals(NaN, Math.pow(-16, -0.5));
145 assertEquals(8, Math.pow(2, Math.sqrt(9)));
148 assertEquals(2, Math.pow.length);
149 assertEquals(NaN, Math.pow());
150 assertEquals(1, Math.pow(null, null));
151 assertEquals(NaN, Math.pow(void 0, void 0));
152 assertEquals(1, Math.pow(true, false));
153 assertEquals(0, Math.pow(false, true));
154 assertEquals(Infinity, Math.pow(-Infinity, Infinity));
155 assertEquals(0, Math.pow(-Infinity, -Infinity));
156 assertEquals(1, Math.pow(0, 0));
157 assertEquals(0, Math.pow(0, Infinity));
158 assertEquals(NaN, Math.pow(NaN, 0.5));
159 assertEquals(NaN, Math.pow(NaN, -0.5));
163 (1*((Math.pow(2,53))-1)*(Math.pow(2,-1074))) === 4.4501477170144023e-308);
165 (1*(Math.pow(2,52))*(Math.pow(2,-1074))) === 2.2250738585072014e-308);
167 (-1*(Math.pow(2,52))*(Math.pow(2,-1074))) === -2.2250738585072014e-308);