diff --git a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java index 1778a7967..72d8d85db 100644 --- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java +++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java @@ -531,14 +531,14 @@ public class ComplexTest { final int maxUlps = 5; for (int i = 0; i < maxUlps; i++) { - re = Math.nextUp(re); - im = Math.nextUp(im); + re = FastMath.nextUp(re); + im = FastMath.nextUp(im); } y = new Complex(re, im); Assert.assertTrue(Complex.equals(x, y, maxUlps)); - re = Math.nextUp(re); - im = Math.nextUp(im); + re = FastMath.nextUp(re); + im = FastMath.nextUp(im); y = new Complex(re, im); Assert.assertFalse(Complex.equals(x, y, maxUlps)); }