Home | History | Annotate | Download | only in src

Lines Matching refs:approxEqual

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