public class NewtonSystemRoot extends Object
| Constructor and Description |
|---|
NewtonSystemRoot(double accuracy,
int maxIter)
Constructs an instance of Newton's root finding algorithm for a system of non-linear
equations.
|
| Modifier and Type | Method and Description |
|---|---|
Vector |
solve(RealScalarFunction[] f,
Vector guess)
Searches for a root, x such that f(x) = 0.
|
Vector |
solve(RealVectorFunction f,
Vector guess)
Searches for a root, x such that f(x) = 0.
|
public NewtonSystemRoot(double accuracy,
int maxIter)
accuracy - the convergence tolerancemaxIter - the maximum number of iterationspublic Vector solve(RealVectorFunction f, Vector guess) throws NoRootFoundException
f - a multivariate functionguess - an initial guess of the rootNoRootFoundException - when the search fails to find a rootpublic Vector solve(RealScalarFunction[] f, Vector guess) throws NoRootFoundException
f - a system of equationsguess - an initial guess of the rootNoRootFoundException - when the search fails to find a rootCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.