|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.analysis.solvers.MullerSolverTest
public final class MullerSolverTest
Testcase 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 |
testDeprecated()
Deprecated. |
void |
testDeprecated2()
Deprecated. |
void |
testExpm1Function()
Test of solver for the exponential function. |
void |
testExpm1Function2()
Test of solver for the exponential function using solve2(). |
void |
testParameters()
Test of parameters for the solver. |
void |
testQuinticFunction()
Test of solver for the quintic function. |
void |
testQuinticFunction2()
Test of solver for the quintic function using solve2(). |
void |
testSinFunction()
Test of solver for the sine function. |
void |
testSinFunction2()
Test of solver for the sine function using solve2(). |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MullerSolverTest()
Method Detail |
---|
@Deprecated public void testDeprecated() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
@Deprecated public void testDeprecated2() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testSinFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testSinFunction2() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuinticFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuinticFunction2() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testExpm1Function() throws org.apache.commons.math.MathException
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.
org.apache.commons.math.MathException
public void testExpm1Function2() throws org.apache.commons.math.MathException
It takes 25 to 50 iterations for the last two tests to converge.
org.apache.commons.math.MathException
public void testParameters() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |