public class SuccessiveSubstitution extends SolverRnRn
| Constructor and Description |
|---|
SuccessiveSubstitution() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(FuncRnRn extFunc,
double epsAbsX,
double epsRelX,
double epsAbsF,
int maxIter,
double[] X0)
Initialization of the solver
|
void |
iterate()
Performs one iteration of the solution algorithm
|
void |
run(java.lang.String mode)
Runs the solution algorithm up to solution
|
getEpsAbsF, getEpsAbsX, getEpsRelX, getF, getMaxIter, getRoot, printSolution, run, setEpsAbsF, setEpsAbsX, setEpsRelX, setMaxIter, toStringExtendedpublic void init(FuncRnRn extFunc, double epsAbsX, double epsRelX, double epsAbsF, int maxIter, double[] X0)
SolverRnRninit in class SolverRnRnextFunc - the vector of equations to be solvedepsAbsX - absolute error for convergency on XepsRelX - relative error for convergency on XepsAbsF - absolute error for convergency on FmaxIter - max number of iterationsX0 - initial guess for the solution vectorpublic void iterate()
throws java.lang.ArithmeticException
SolverRnRnjava.lang.ArithmeticExceptionpublic void run(java.lang.String mode)
throws java.lang.ArithmeticException
SolverRnRnrun in class SolverRnRnmode - SILENT or VERBOSE depending on the amount of output requiredjava.lang.ArithmeticException