Lines Matching refs:approxEqual
321 static boolean approxEqual(float a, float b, float maxDelta) { in approxEqual() method in FloatMath
327 static boolean approxEqual(double a, double b, double maxDelta) { in approxEqual() method in FloatMath
342 Main.assertTrue(approxEqual(Math.abs(ff), ff, 0.001f)); in jlmTests()
343 Main.assertTrue(approxEqual(Math.abs(-ff), ff, 0.001f)); in jlmTests()
344 Main.assertTrue(approxEqual(Math.min(ff, -5.0f), -5.0f, 0.001f)); in jlmTests()
345 Main.assertTrue(approxEqual(Math.max(ff, -5.0f), ff, 0.001f)); in jlmTests()
347 Main.assertTrue(approxEqual(Math.abs(dd), dd, 0.001)); in jlmTests()
348 Main.assertTrue(approxEqual(Math.abs(-dd), dd, 0.001)); in jlmTests()
349 Main.assertTrue(approxEqual(Math.min(dd, -5.0), -5.0, 0.001)); in jlmTests()
350 Main.assertTrue(approxEqual(Math.max(dd, -5.0), dd, 0.001)); in jlmTests()
353 Main.assertTrue(approxEqual(sq*sq, dd, 0.001)); in jlmTests()
355 Main.assertTrue(approxEqual(0.5403023058681398, Math.cos(1.0), 0.00000001)); in jlmTests()
356 Main.assertTrue(approxEqual(0.8414709848078965, Math.sin(1.0), 0.00000001)); in jlmTests()