org.apache.commons.math3.analysis.solvers
Class BrentSolverTest

java.lang.Object
  extended by org.apache.commons.math3.analysis.solvers.BrentSolverTest

public final class BrentSolverTest
extends Object

Test case for Brent solver. 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.

Version:
$Id: BrentSolverTest.java 1383845 2012-09-12 08:34:10Z luc $

Constructor Summary
BrentSolverTest()
           
 
Method Summary
 void testBadEndpoints()
           
 void testInitialGuess()
           
 void testMath832()
           
 void testQuinticZero()
           
 void testRootEndpoints()
           
 void testSinZero()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrentSolverTest

public BrentSolverTest()
Method Detail

testSinZero

public void testSinZero()

testQuinticZero

public void testQuinticZero()

testRootEndpoints

public void testRootEndpoints()

testBadEndpoints

public void testBadEndpoints()

testInitialGuess

public void testInitialGuess()

testMath832

public void testMath832()


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.