Home
last modified time | relevance | path

Searched refs:pcNeighbors (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/test/java/lang/Math/
DCubeRootTests.java236 double[] pcNeighbors = new double[5]; in testCubeRoot() local
244 pcNeighbors[2] = pc; in testCubeRoot()
245 pcNeighbors[1] = Math.nextDown(pc); in testCubeRoot()
246 pcNeighbors[0] = Math.nextDown(pcNeighbors[1]); in testCubeRoot()
247 pcNeighbors[3] = Math.nextUp(pc); in testCubeRoot()
248 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testCubeRoot()
250 for (int j = 0; j < pcNeighbors.length; j++) { in testCubeRoot()
251 pcNeighborsCbrt[j] = Math.cbrt(pcNeighbors[j]); in testCubeRoot()
252 pcNeighborsStrictCbrt[j] = StrictMath.cbrt(pcNeighbors[j]); in testCubeRoot()
258 pcNeighbors[j] + " and " + in testCubeRoot()
[all …]
DExpm1Tests.java135 double[] pcNeighbors = new double[5]; in testExpm1() local
142 pcNeighbors[2] = pc; in testExpm1()
143 pcNeighbors[1] = Math.nextDown(pc); in testExpm1()
144 pcNeighbors[0] = Math.nextDown(pcNeighbors[1]); in testExpm1()
145 pcNeighbors[3] = Math.nextUp(pc); in testExpm1()
146 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testExpm1()
148 for (int j = 0; j < pcNeighbors.length; j++) { in testExpm1()
149 pcNeighborsExpm1[j] = Math.expm1(pcNeighbors[j]); in testExpm1()
150 pcNeighborsStrictExpm1[j] = StrictMath.expm1(pcNeighbors[j]); in testExpm1()
156 pcNeighbors[j] + " and " + in testExpm1()
[all …]
DLog1pTests.java140 double[] pcNeighbors = new double[5]; in testLog1p() local
147 pcNeighbors[2] = pc; in testLog1p()
148 pcNeighbors[1] = Math.nextDown(pc); in testLog1p()
149 pcNeighbors[0] = Math.nextDown(pcNeighbors[1]); in testLog1p()
150 pcNeighbors[3] = Math.nextUp(pc); in testLog1p()
151 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testLog1p()
153 for (int j = 0; j < pcNeighbors.length; j++) { in testLog1p()
154 pcNeighborsLog1p[j] = Math.log1p(pcNeighbors[j]); in testLog1p()
155 pcNeighborsStrictLog1p[j] = StrictMath.log1p(pcNeighbors[j]); in testLog1p()
161 pcNeighbors[j] + " and " + in testLog1p()
[all …]
DHypotTests.java157 double[] pcNeighbors = new double[5]; in testHypot() local
164 pcNeighbors[2] = pc; in testHypot()
165 pcNeighbors[1] = Math.nextDown(pc); in testHypot()
166 pcNeighbors[0] = Math.nextDown(pcNeighbors[1]); in testHypot()
167 pcNeighbors[3] = Math.nextUp(pc); in testHypot()
168 pcNeighbors[4] = Math.nextUp(pcNeighbors[3]); in testHypot()
170 for (int j = 0; j < pcNeighbors.length; j++) { in testHypot()
171 pcNeighborsHypot[j] = Math.hypot(2.0, pcNeighbors[j]); in testHypot()
172 pcNeighborsStrictHypot[j] = StrictMath.hypot(2.0, pcNeighbors[j]); in testHypot()
178 pcNeighbors[j] + " and " + in testHypot()
[all …]