|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.analysis.solvers.MullerSolverTest
public final class MullerSolverTest
Test case for Muller solver.
Muller's method converges almost quadratically near roots, but it can be very slow in regions far away from zeros. Test runs show that for reasonably good initial values, for a default absolute accuracy of 1E-6, it generally takes 5 to 10 iterations for the solver to converge.
Tests for the exponential function illustrate the situations where Muller solver performs poorly.
| Constructor Summary | |
|---|---|
MullerSolverTest()
|
|
| Method Summary | |
|---|---|
void |
testExpm1Function()
Test of solver for the exponential function. |
void |
testParameters()
Test of parameters for the solver. |
void |
testQuinticFunction()
Test of solver for the quintic function. |
void |
testSinFunction()
Test of solver for the sine function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MullerSolverTest()
| Method Detail |
|---|
public void testSinFunction()
public void testQuinticFunction()
public void testExpm1Function()
It takes 10 to 15 iterations for the last two tests to converge. In fact, if not for the bisection alternative, the solver would exceed the default maximal iteration of 100.
public void testParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||