public class SecantSolver extends AbstractUnivariateSolver
Implementation based on the following article: M. Dowell and P. Jarratt, A modified regula falsi method for computing the root of an equation, BIT Numerical Mathematics, volume 11, number 2, pages 168-174, Springer, 1971.
Note that since release 3.0 this class implements the actual
Secant algorithm, and not a modified one. As such, the 3.0 version
is not backwards compatible with previous versions. To use an algorithm
similar to the pre-3.0 releases, use the
Illinois
algorithm or the
Pegasus
algorithm.
Constructor and Description |
---|
SecantSolver()
Construct a solver with default accuracy (1e-6).
|
SecantSolver(double absoluteAccuracy)
Construct a solver.
|
SecantSolver(double relativeAccuracy,
double absoluteAccuracy)
Construct a solver.
|
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, solve, solve, solve
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve, solve
public SecantSolver()
public SecantSolver(double absoluteAccuracy)
absoluteAccuracy
- absolute accuracypublic SecantSolver(double relativeAccuracy, double absoluteAccuracy)
relativeAccuracy
- relative accuracyabsoluteAccuracy
- absolute accuracyJas4pp 1.5 © Java Analysis Studio for Particle Physics