|
||||||||||
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.RiddersSolverTest
public final class RiddersSolverTest
Testcase for Ridders solver.
Ridders' method converges superlinearly, more specific, its rate of convergence is sqrt(2). Test runs show that for a default absolute accuracy of 1E-6, it generally takes less than 5 iterations for close initial bracket and 5 to 10 iterations for distant initial bracket to converge.
Constructor Summary | |
---|---|
RiddersSolverTest()
|
Method Summary | |
---|---|
void |
testDeprecated()
Deprecated. |
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 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 RiddersSolverTest()
Method Detail |
---|
@Deprecated public void testDeprecated() 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 testQuinticFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testExpm1Function() throws org.apache.commons.math.MathException
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 |