Removed unecessary parens around return value. JIRA: MATH-609.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1145746 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Phil Steitz 2011-07-12 20:15:01 +00:00
parent fecbf23419
commit 85cb7a8d48

View File

@ -183,8 +183,8 @@ public class LaguerreSolver extends AbstractPolynomialSolver {
public boolean isRoot(double min, double max, Complex z) {
if (isSequence(min, z.getReal(), max)) {
double tolerance = FastMath.max(getRelativeAccuracy() * z.abs(), getAbsoluteAccuracy());
return ((FastMath.abs(z.getImaginary()) <= tolerance) ||
(z.abs() <= getFunctionValueAccuracy()));
return (FastMath.abs(z.getImaginary()) <= tolerance) ||
(z.abs() <= getFunctionValueAccuracy());
}
return false;
}