Searched refs:Math (Results 151 - 175 of 959) sorted by relevance

1234567891011>>

/openjdk7/jdk/test/java/io/PrintWriter/
H A DOversynchronizedTest.java77 long t = Math.round(Math.random()*10);
/openjdk7/jdk/test/java/lang/Math/
H A DRoundTests.java27 * @summary Check for correct implementation of {Math, StrictMath}.round
37 System.err.println("Testing {Math, StrictMath}.round incurred "
65 failures += Tests.test("Math.round", input, Math.round(input), expected);
93 failures += Tests.test("Math.round", input, Math.round(input), expected);
H A DHyperbolicTests.java27 * @summary Tests for {Math, StrictMath}.{sinh, cosh, tanh}
40 * Test accuracy of {Math, StrictMath}.sinh. The specified
361 failures += Tests.testTolerance("Math.sinh(double)",
362 input, Math.sinh(input),
364 failures += Tests.testTolerance("Math.sinh(double)",
365 -input, Math.sinh(-input),
381 failures += Tests.testUlpDiff("Math.sinh(double)",
382 input, Math.sinh(input),
384 failures += Tests.testUlpDiff("Math.sinh(double)",
385 -input, Math
[all...]
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DAppInputStream.java108 int howmany = Math.min(len, r.available());
130 int len = (int)Math.min(n, SKIP_ARRAY.length);
H A DAppOutputStream.java97 howmuch = Math.min(0x01, r.availableDataBytes());
109 howmuch = Math.min(len, r.availableDataBytes());
H A DByteBufferInputStream.java98 int length = Math.min(bb.remaining(), len);
126 int skip = Math.min(bb.remaining(), nInt);
/openjdk7/jdk/src/share/classes/sun/text/normalizer/
H A DUCharacterIterator.java277 int x = Math.max(0, Math.min(getIndex() + delta, getLength()));
/openjdk7/jdk/test/java/util/TimSort/
H A DSortPerf.java32 return (int) (12000000 / (n * Math.log10(n)));
58 minTime = Math.min(minTime, time);
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelStandardTransform/
H A DTransformAbsolute.java69 assertTrue(Math.abs(transform.transform(0.2f) - 0.2f) < 0.0001f);
70 assertTrue(Math.abs(transform.transform(-0.8f) - 0.8f) < 0.0001f);
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftLimiter/
H A DProcessAudio_replace_mix_mono.java60 testdata1[i] = (float)Math.sin(i*0.3)*0.9f;
77 if(Math.abs(out1a[i] - testdata1[i] - 1) > 0.00001)
H A DProcessAudio_replace_mix_mono_overdrive.java61 testdata1[i] = (float)Math.sin(i*0.3)*2.5f;
78 if(Math.abs(out1a[i]-1) > 1.0)
H A DProcessAudio_replace_normal_mono.java60 testdata1[i] = (float)Math.sin(i*0.3)*0.9f;
77 if(Math.abs(out1a[i] - testdata1[i]) > 0.00001)
H A DProcessAudio_replace_overdrive_mono.java60 testdata1[i] = (float)Math.sin(i*0.3)*2.5f;
77 if(Math.abs(out1a[i]) > 1.0)
/openjdk7/jdk/src/solaris/classes/sun/nio/fs/
H A DUnixUriUtils.java162 int f = Math.max(Math.min(first, 63), 0);
163 int l = Math.max(Math.min(last, 63), 0);
173 int f = Math.max(Math.min(first, 127), 64) - 64;
174 int l = Math.max(Math.min(last, 127), 64) - 64;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/nimbus/
H A DInnerShadowEffect.java76 double trangleAngle = Math.toRadians(angle - 90);
77 int offsetX = (int) (Math.sin(trangleAngle) * distance);
78 int offsetY = (int) (Math.cos(trangleAngle) * distance);
106 float spread = Math.min(1 / (1 - (0.01f * this.spread)), 255);
124 int alphaVal = Math.min(origianlAlphaVal, shadowVal);
/openjdk7/jdk/src/share/classes/sun/awt/geom/
H A DOrder3.java246 xmin = Math.min(Math.min(x0, x1), Math.min(cx0, cx1));
247 xmax = Math.max(Math.max(x0, x1), Math.max(cx0, cx1));
355 double theta = Math.acos(R / Math.sqrt(Q3));
356 Q = -2.0 * Math.sqrt(Q);
357 t = refine(a, b, c, y, Q * Math
[all...]
/openjdk7/jdk/test/javax/sound/midi/Gervill/SoftTuning/
H A DRealTimeTuning.java170 assertTrue(Math.abs(targetPitch - targetNote * 100.0) > 0.001);
180 assertTrue(Math.abs(pitchspy.pitch - (targetNote * 100.0)) < 0.001);
187 assertTrue(Math.abs(pitchspy.pitch - targetPitch) < 0.001);
189 assertTrue(Math.abs(pitchspy.pitch - (targetNote * 100.0)) < 0.001);
194 assertTrue(Math.abs(pitchspy.pitch - 0.0) < 0.001);
198 assertTrue(Math.abs(pitchspy.pitch - targetPitch) < 0.001);
202 assertTrue(Math.abs(pitchspy.pitch - 0.0) < 0.001);
/openjdk7/jdk/src/share/classes/sun/font/
H A DGlyphList.java332 metrics[0] = (int)Math.floor(positions[(i<<1)] + gposx + gx);
333 metrics[1] = (int)Math.floor(positions[(i<<1)+1] + gposy + gy);
335 metrics[0] = (int)Math.floor(gposx + gx);
336 metrics[1] = (int)Math.floor(gposy + gy);
358 graybits = new byte[Math.max(len, MINGRAYLENGTH)];
495 bounds[0] = (int)Math.floor(bx0);
496 bounds[1] = (int)Math.floor(by0);
497 bounds[2] = (int)Math.floor(bx1);
498 bounds[3] = (int)Math.floor(by1);
/openjdk7/jdk/src/share/classes/java/awt/geom/
H A DPoint2D.java312 return Math.sqrt(x1 * x1 + y1 * y1);
364 return Math.sqrt(px * px + py * py);
380 return Math.sqrt(px * px + py * py);
H A DQuadCurve2D.java246 float left = Math.min(Math.min(x1, x2), ctrlx);
247 float top = Math.min(Math.min(y1, y2), ctrly);
248 float right = Math.max(Math.max(x1, x2), ctrlx);
249 float bottom = Math.max(Math.max(y1, y2), ctrly);
435 double left = Math.min(Math
[all...]
/openjdk7/jdk/src/share/classes/java/io/
H A DCharArrayWriter.java82 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
105 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
122 buf = Arrays.copyOf(buf, Math.max(buf.length << 1, newcount));
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWChoicePeer.java44 w = Math.max(fm.stringWidth(c.getItem(i)), w);
46 return new Dimension(28 + w, Math.max(fm.getHeight() + 6, 15));
148 int maxItems = Math.min(c.getItemCount(), 8);
/openjdk7/jaxp/src/com/sun/org/apache/xpath/internal/functions/
H A DFuncRound.java51 return new XNumber(java.lang.Math.floor(val
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DGraphicsUtilities.java129 int xPos = Math.min(d.width - sz.width,
131 int yPos = Math.min(d.height - sz.height,
133 xPos = Math.max(xPos, minX);
134 yPos = Math.max(yPos, minY);
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DFileCacheImageOutputStream.java136 maxStreamPos = Math.max(maxStreamPos, streamPos);
143 maxStreamPos = Math.max(maxStreamPos, streamPos);
175 maxStreamPos = Math.max(maxStreamPos, streamPos);
253 int len = (int)Math.min(flushBytes, bufLen);

Completed in 82 milliseconds

1234567891011>>