diff --git a/hipparchus-core/src/main/java/org/hipparchus/analysis/polynomials/PolynomialFunction.java b/hipparchus-core/src/main/java/org/hipparchus/analysis/polynomials/PolynomialFunction.java index d092a4bc0..36e56a817 100644 --- a/hipparchus-core/src/main/java/org/hipparchus/analysis/polynomials/PolynomialFunction.java +++ b/hipparchus-core/src/main/java/org/hipparchus/analysis/polynomials/PolynomialFunction.java @@ -392,7 +392,7 @@ public String toString() { s.append('x'); if (i > 1) { s.append('^'); - s.append(Integer.toString(i)); + s.append(i); } } } @@ -434,10 +434,7 @@ public boolean equals(Object obj) { return false; } PolynomialFunction other = (PolynomialFunction) obj; - if (!Arrays.equals(coefficients, other.coefficients)) { - return false; - } - return true; + return Arrays.equals(coefficients, other.coefficients); } /**