Class RootFinder
java.lang.Object
org.episteme.core.mathematics.analysis.roots.RootFinder
Root finding algorithms.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublebisection(DoubleUnaryOperator f, double a, double b) Bisection method (guaranteed convergence if root exists in interval).doublebrent(DoubleUnaryOperator f, double a, double b) Brent's method (combines bisection, secant, inverse quadratic).double[]findAllRoots(DoubleUnaryOperator f, double a, double b, int subdivisions) Find all roots in an interval using subdivision.doublenewton(DoubleUnaryOperator f, DoubleUnaryOperator df, double x0) Newton-Raphson method (fast quadratic convergence near root).doublenewtonNumerical(DoubleUnaryOperator f, double x0) Newton-Raphson with numerical derivative.doublesecant(DoubleUnaryOperator f, double x0, double x1) Secant method (superlinear convergence, no derivative needed).
-
Constructor Details
-
RootFinder
public RootFinder(double tolerance, int maxIterations) -
RootFinder
public RootFinder()
-
-
Method Details
-
bisection
Bisection method (guaranteed convergence if root exists in interval). -
newton
Newton-Raphson method (fast quadratic convergence near root). -
newtonNumerical
Newton-Raphson with numerical derivative. -
secant
Secant method (superlinear convergence, no derivative needed). -
brent
Brent's method (combines bisection, secant, inverse quadratic). -
findAllRoots
Find all roots in an interval using subdivision.
-