Skip to content

Commit

Permalink
simplify: remove dead params
Browse files Browse the repository at this point in the history
  • Loading branch information
mebigfatguy committed Dec 29, 2015
1 parent a71c820 commit a4eff51
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -113,7 +113,7 @@ public double doSolve()

// Reduce interval if min and initial bracket the root.
if (yInitial * yMin < 0) {
return laguerre(min, initial, yMin, yInitial);
return laguerre(min, initial);
}

// Return the second endpoint if it is good enough.
Expand All @@ -124,7 +124,7 @@ public double doSolve()

// Reduce interval if initial and max bracket the root.
if (yInitial * yMax < 0) {
return laguerre(initial, max, yInitial, yMax);
return laguerre(initial, max);
}

throw new NoBracketingException(min, max, yMin, yMax);
Expand All @@ -144,12 +144,9 @@ public double doSolve()
*
* @param lo Lower bound of the search interval.
* @param hi Higher bound of the search interval.
* @param fLo Function value at the lower bound of the search interval.
* @param fHi Function value at the higher bound of the search interval.
* @return the point at which the function value is zero.
*/
private double laguerre(double lo, double hi,
double fLo, double fHi) {
private double laguerre(double lo, double hi) {
final Complex c[] = ComplexUtils.convertToComplex(getCoefficients());

final Complex initial = new Complex(0.5 * (lo + hi), 0);
Expand Down

0 comments on commit a4eff51

Please sign in to comment.