public interface RootFinder extends Serializable
Modifier and Type | Method and Description |
---|---|
int |
guessesNeeded()
Different root finding methods require different numbers of initial guesses.
|
double |
root(double eps,
int maxIterations,
double[] initialGuesses,
Function f,
int pos,
double... args)
Attempts to numerical compute the root of a given function, such that f(args) = 0.
|
double |
root(double eps,
int maxIterations,
double[] initialGuesses,
Function f,
int pos,
Vec args)
Attempts to numerical compute the root of a given function, such that f(args) = 0.
|
double root(double eps, int maxIterations, double[] initialGuesses, Function f, int pos, double... args)
eps
- the accuracy desired for the solutionmaxIterations
- the maximum number of steps allowed before forcing a return of the current solution.initialGuesses
- an array containing the initial guess valuesf
- the function to find the root ofpos
- the index of the argument that will be allowed to alter in order to find the root. Starts from 0args
- the values to be passed to the function as argumentsdouble root(double eps, int maxIterations, double[] initialGuesses, Function f, int pos, Vec args)
eps
- the accuracy desired for the solutionmaxIterations
- the maximum number of steps allowed before forcing a return of the current solution.initialGuesses
- an array containing the initial guess valuesf
- the function to find the root ofpos
- the index of the argument that will be allowed to alter in order to find the root. Starts from 0args
- the values to be passed to the function as argumentsint guessesNeeded()
Copyright © 2017. All rights reserved.