|
||||||||||
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.BrentSolverTest
public final class BrentSolverTest
Testcase for UnivariateRealSolver. Because Brent-Dekker is guaranteed to converge in less than the default maximum iteration count due to bisection fallback, it is quite hard to debug. I include measured iteration counts plus one in order to detect regressions. On average Brent-Dekker should use 4..5 iterations for the default absolute accuracy of 10E-8 for sinus and the quintic function around zero, and 5..10 iterations for the other zeros.
Constructor Summary | |
---|---|
BrentSolverTest(java.lang.String name)
|
Method Summary | |
---|---|
static junit.framework.Test |
suite()
|
void |
testBadEndpoints()
|
void |
testInitialGuess()
|
void |
testQuinticZero()
|
void |
testSinZero()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BrentSolverTest(java.lang.String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testSinZero() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuinticZero() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testBadEndpoints() throws java.lang.Exception
java.lang.Exception
public void testInitialGuess() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |