Home
last modified time | relevance | path

Searched refs:equalsWithRelativeTolerance (Results 1 – 5 of 5) sorted by relevance

/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/util/
H A DPrecisionTest.java31 Assert.assertTrue(Precision.equalsWithRelativeTolerance(0d, 0d, 0d)); in testEqualsWithRelativeTolerance()
32 … Assert.assertTrue(Precision.equalsWithRelativeTolerance(0d, 1 / Double.NEGATIVE_INFINITY, 0d)); in testEqualsWithRelativeTolerance()
36 …Assert.assertTrue(Precision.equalsWithRelativeTolerance(1.987654687654968, 1.987654687654987, eps)… in testEqualsWithRelativeTolerance()
38 …Assert.assertTrue(Precision.equalsWithRelativeTolerance(1.987654687654968, 1.987654687654949, eps)… in testEqualsWithRelativeTolerance()
40 Assert.assertFalse(Precision.equalsWithRelativeTolerance(Precision.SAFE_MIN, 0.0, eps)); in testEqualsWithRelativeTolerance()
42 … Assert.assertFalse(Precision.equalsWithRelativeTolerance(1.0000000000001e-300, 1e-300, eps)); in testEqualsWithRelativeTolerance()
43 … Assert.assertTrue(Precision.equalsWithRelativeTolerance(1.00000000000001e-300, 1e-300, eps)); in testEqualsWithRelativeTolerance()
45 … Assert.assertFalse(Precision.equalsWithRelativeTolerance(Double.NEGATIVE_INFINITY, 1.23, eps)); in testEqualsWithRelativeTolerance()
46 … Assert.assertFalse(Precision.equalsWithRelativeTolerance(Double.POSITIVE_INFINITY, 1.23, eps)); in testEqualsWithRelativeTolerance()
52 Assert.assertFalse(Precision.equalsWithRelativeTolerance(Double.NaN, 1.23, eps)); in testEqualsWithRelativeTolerance()
[all …]
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/fitting/leastsquares/
H A DEvaluationRmsChecker.java72 Precision.equalsWithRelativeTolerance(prevRms, currRms, this.relTol); in converged()
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/complex/
H A DComplex.java430 public static boolean equalsWithRelativeTolerance(Complex x, Complex y, in equalsWithRelativeTolerance() method in Complex
432 return Precision.equalsWithRelativeTolerance(x.real, y.real, eps) && in equalsWithRelativeTolerance()
433 Precision.equalsWithRelativeTolerance(x.imaginary, y.imaginary, eps); in equalsWithRelativeTolerance()
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/main/java/org/apache/commons/math3/util/
H A DPrecision.java317 public static boolean equalsWithRelativeTolerance(double x, double y, double eps) { in equalsWithRelativeTolerance() method in Precision
/dports/math/apache-commons-math/commons-math3-3.6.1-src/src/test/java/org/apache/commons/math3/complex/
H A DComplexTest.java585 Assert.assertTrue(Complex.equalsWithRelativeTolerance(x, y, tol)); in testFloatingPointEqualsWithRelativeTolerance()
592 Assert.assertFalse(Complex.equalsWithRelativeTolerance(x, Complex.ZERO, 0.1)); in testFloatingPointEqualsWithRelativeToleranceNaN()
593 Assert.assertFalse(Complex.equalsWithRelativeTolerance(x, x, 0.1)); in testFloatingPointEqualsWithRelativeToleranceNaN()
594 Assert.assertFalse(Complex.equalsWithRelativeTolerance(x, y, 0.1)); in testFloatingPointEqualsWithRelativeToleranceNaN()