Lines Matching refs:input

44     static int testLog10Case(double input, double expected) {
47 failures+=Tests.test("Math.log10(double)", input,
48 Math.log10(input), expected);
50 failures+=Tests.test("StrictMath.log10(double)", input,
51 StrictMath.log10(input), expected);
100 double input = Double.longBitsToDouble(rand.nextLong());
101 if(! FpUtils.isFinite(input))
104 input = Math.abs(input);
106 double expected = StrictMath.log(input)/LN_10;
108 continue; // if log(input) overflowed, try again
112 if( Math.abs(((result=Math.log10(input)) - expected)/Math.ulp(expected)) > 3) {
114 System.err.println("For input " + input +
116 "log(input)/log(10): log10(input) = " + result +
117 "\tlog(input)/log(10) = " + expected);
120 if( Math.abs(((result=StrictMath.log10(input)) - expected)/Math.ulp(expected)) > 3) {
122 System.err.println("For input " + input +
124 "log(input)/log(10): log10(input) = " + result +
125 "\tlog(input)/log(10) = " + expected);
145 double input[] = new double[40];
146 int half = input.length/2;
149 // Initialize input to the 40 consecutive double values
155 input[half] = 1.0;
159 input[half + i] = up;
160 input[half - i] = down;
165 input[0] = FpUtils.nextDown(input[1]);
168 neighbors[i] = Math.log10(input[i]);
169 neighborsStrict[i] = StrictMath.log10(input[i]);
172 z = input[i] - 1.0;
176 System.err.println("For input near 1.0 " + input[i] +
178 "(z-(z^2)/2)/ln(10): log10(input) = " + neighbors[i] +
184 System.err.println("For input near 1.0 " + input[i] +
186 "(z-(z^2)/2)/ln(10): log10(input) = " + neighborsStrict[i] +
194 System.err.println("Monotonicity failure for Math.log10 at " + input[i] +
200 System.err.println("Monotonicity failure for StrictMath.log10 at " + input[i] +