public class NewtonRaphsonSolver extends AbstractUnivariateDifferentiableSolver
Constructor and Description |
---|
NewtonRaphsonSolver()
Construct a solver.
|
NewtonRaphsonSolver(double absoluteAccuracy)
Construct a solver.
|
Modifier and Type | Method and Description |
---|---|
double |
solve(int maxEval,
UnivariateDifferentiableFunction f,
double min,
double max)
Find a zero near the midpoint of
min and max . |
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMaxEvaluations, getMin, getRelativeAccuracy, getStartValue, solve, solve
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMaxEvaluations, getRelativeAccuracy, solve, solve
public NewtonRaphsonSolver()
public NewtonRaphsonSolver(double absoluteAccuracy)
absoluteAccuracy
- Absolute accuracy.public double solve(int maxEval, UnivariateDifferentiableFunction f, double min, double max) throws TooManyEvaluationsException
min
and max
.solve
in interface BaseUnivariateSolver<UnivariateDifferentiableFunction>
solve
in class BaseAbstractUnivariateSolver<UnivariateDifferentiableFunction>
f
- Function to solve.min
- Lower bound for the interval.max
- Upper bound for the interval.maxEval
- Maximum number of evaluations.TooManyEvaluationsException
- if the maximum evaluation count is exceeded.NumberIsTooLargeException
- if min >= max
.Jas4pp 1.5 © Java Analysis Studio for Particle Physics