public class SecantMethod extends NewtonsMethod implements RootFinder
| Constructor and Description |
|---|
SecantMethod(double firstGuess,
double secondGuess) |
| Modifier and Type | Method and Description |
|---|---|
double |
getNextPoint() |
void |
setValue(double value) |
void |
setValueAndDerivative(double value,
double derivative) |
getAccuracy, getBestPoint, getNumberOfIterations, isDoneclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccuracy, getBestPoint, getNumberOfIterations, isDonepublic SecantMethod(double firstGuess,
double secondGuess)
firstGuess - The first guess for the solver to use.secondGuess - A second guess for the solver to use (different from first guess).public double getNextPoint()
getNextPoint in interface RootFindergetNextPoint in interface RootFinderWithDerivativegetNextPoint in class NewtonsMethodsetValue.public void setValue(double value)
setValue in interface RootFindervalue - The value corresponding to the point returned
by previous getNextPoint call.public void setValueAndDerivative(double value,
double derivative)
setValueAndDerivative in interface RootFinderWithDerivativesetValueAndDerivative in class NewtonsMethodvalue - The value corresponding to the point returned by previous
getNextPoint call.derivative - The derivative corresponding to the point returned by previous
getNextPoint call.Copyright © 2015. All rights reserved.