/openjdk7/jdk/test/java/lang/Math/ |
H A D | MinMax.java | 26 @summary Math.min and Math.max should treat negative zero as strictly 54 go("Math.min(fnz, fnz)", Math.min(fnz, fnz), fnz); 55 go("Math.min(fnz, fpz)", Math.min(fnz, fpz), fnz); 56 go("Math.min(fpz, fnz)", Math.min(fpz, fnz), fnz); 57 go("Math.min(fpz, fpz)", Math [all...] |
H A D | AbsPositiveZero.java | 26 @summary Math.abs(+0.0) wrong 39 if (!isPositiveZero(Math.abs(-0.0d))) { 42 if (!isPositiveZero(Math.abs(+0.0d))) { 45 if (Math.abs(Double.POSITIVE_INFINITY) != Double.POSITIVE_INFINITY) { 48 if (Math.abs(Double.NEGATIVE_INFINITY) != Double.POSITIVE_INFINITY) { 51 double dnanval = Math.abs(Double.NaN); 56 if (!isPositiveZero(Math.abs(-0.0f))) { 59 if (!isPositiveZero(Math.abs(+0.0f))) { 62 if (Math.abs(Float.POSITIVE_INFINITY) != Float.POSITIVE_INFINITY) { 65 if (Math [all...] |
/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | ModelStandardTransform.java | 85 s = Math.signum(value); 86 a = Math.abs(value); 87 a = -((5.0 / 12.0) / Math.log(10)) * Math.log(1.0 - a); 94 s = Math.signum(value); 95 a = Math.abs(value); 96 a = 1.0 + ((5.0 / 12.0) / Math.log(10)) * Math.log(a); 108 return Math.abs(value);
|
H A D | SoftLanczosResampler.java | 50 return (x == 0.0) ? 1.0 : Math.sin(Math.PI * x) / (Math.PI * x); 64 w[k] = (float)(2.0 * Math.sin(Math.PI * x) 65 * Math.sin(Math.PI * x / 2.0) 66 / ((Math.PI * x) * (Math.PI * x)));
|
/openjdk7/hotspot/test/compiler/6539464/ |
H A D | Test.java | 27 * @summary Math.log() produces inconsistent results between successive runs. 34 static double log_result = Math.log(log_value); 38 double log_result2 = Math.log(log_value); 40 throw new InternalError("Math.log produces inconsistent results: " + log_result2 + " != " + log_result);
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelStandardTransform/ |
H A D | TransformSwitch.java | 45 assertTrue(Math.abs(transform.transform(0.2f) - 0.0f) < 0.0001f); 46 assertTrue(Math.abs(transform.transform(0.8f) - 1.0f) < 0.0001f); 50 assertTrue(Math.abs(transform.transform(0.2f) - 1.0f) < 0.0001f); 51 assertTrue(Math.abs(transform.transform(0.8f) - 0.0f) < 0.0001f); 55 assertTrue(Math.abs(transform.transform(0.2f) + 1.0f) < 0.0001f); 56 assertTrue(Math.abs(transform.transform(0.8f) - 1.0f) < 0.0001f); 60 assertTrue(Math.abs(transform.transform(0.2f) - 1.0f) < 0.0001f); 61 assertTrue(Math.abs(transform.transform(0.8f) + 1.0f) < 0.0001f);
|
H A D | TransformLinear.java | 72 assertTrue(Math.abs(transform.transform(0.2f) - 0.2f) < 0.0001f); 73 assertTrue(Math.abs(transform.transform(0.8f) - 0.8f) < 0.0001f); 77 assertTrue(Math.abs(transform.transform(0.2f) - 0.8f) < 0.0001f); 78 assertTrue(Math.abs(transform.transform(0.8f) - 0.2f) < 0.0001f); 82 assertTrue(Math.abs(transform.transform(0.2f) - (-0.6f)) < 0.0001f); 83 assertTrue(Math.abs(transform.transform(0.8f) - (0.6f)) < 0.0001f); 87 assertTrue(Math.abs(transform.transform(0.2f) - (0.6f)) < 0.0001f); 88 assertTrue(Math.abs(transform.transform(0.8f) - (-0.6f)) < 0.0001f);
|
/openjdk7/jdk/src/share/classes/java/awt/geom/ |
H A D | ArcIterator.java | 48 this.angStRad = -Math.toRadians(a.getAngleStart()); 53 this.increment = Math.PI / 2; 54 // btan(Math.PI / 2); 61 arcSegs = (int) Math.ceil(Math.abs(ext) / 90.0); 62 this.increment = Math.toRadians(ext / arcSegs); 190 return 4.0 / 3.0 * Math.sin(increment) / (1.0 + Math.cos(increment)); 217 coords[0] = (float) (x + Math.cos(angle) * w); 218 coords[1] = (float) (y + Math [all...] |
/openjdk7/jdk/test/javax/sound/midi/Gervill/AudioFloatInputStream/ |
H A D | Read.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI); 76 if(!(Math.abs(v - test_float_array[512]) < 0.0001))
|
H A D | ReadFloatArray.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI); 76 if(!(Math.abs(buff[j] - test_float_array[j]) < 0.0001))
|
H A D | ReadFloatArrayIntInt.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI); 77 if(!(Math.abs(buff[j] - test_float_array[j]) < 0.0001))
|
H A D | Reset.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI); 81 if(!(Math.abs(buff[j] - buff2[j]) < 0.0001))
|
H A D | Skip.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI); 77 if(!(Math.abs(buff[j] - test_float_array[j+512]) < 0.0001))
|
H A D | Available.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | Close.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | GetFormat.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | GetFrameLength.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | MarkSupported.java | 58 test_float_array[i] = (float)Math.sin(10*ii*2*Math.PI); 59 test_float_array[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 60 test_float_array[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
/openjdk7/jdk/test/java/io/Serializable/noSuchFieldClarification/ |
H A D | NoSuchFieldClarification.java | 46 this.radius = Math.sqrt(x*x+y*y); 47 this.angle = Math.atan2(y, x); 51 return radius * Math.cos(angle); 55 return radius * Math.sin(angle); 64 fields.put("x", radius * Math.cos(angle)); 65 fields.put("y", radius * Math.sin(angle)); 76 radius = Math.sqrt(x*x + y*y); 77 angle = Math.atan2(y, x);
|
/openjdk7/jdk/src/share/demo/applets/SimpleGraph/ |
H A D | GraphApplet.java | 49 return (Math.cos(x / 5) + Math.sin(x / 7) + 2) * getSize().height / 4;
|
/openjdk7/jdk/src/share/classes/sun/tools/jstat/ |
H A D | HeaderClosure.java | 63 c.setWidth(Math.max(c.getWidth(), 64 Math.max(c.getFormat().length(), len-2))); 69 c.setWidth(Math.max(c.getWidth(), 70 Math.max(c.getFormat().length(), len-1))); 75 c.setWidth(Math.max(c.getWidth(), 76 Math.max(c.getFormat().length(), len-1)));
|
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBuffer/ |
H A D | GetInputStream.java | 49 testarray[i] = (float)Math.sin(10*ii*2*Math.PI); 50 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 51 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | GetRoot.java | 48 testarray[i] = (float)Math.sin(10*ii*2*Math.PI); 49 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 50 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | Load.java | 49 testarray[i] = (float)Math.sin(10*ii*2*Math.PI); 50 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 51 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|
H A D | NewModelByteBufferByteArray.java | 48 testarray[i] = (float)Math.sin(10*ii*2*Math.PI); 49 testarray[i] += (float)Math.sin(1.731 + 2*ii*2*Math.PI); 50 testarray[i] += (float)Math.sin(0.231 + 6.3*ii*2*Math.PI);
|