org.apache.commons.math.analysis.integration
Class TrapezoidIntegratorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.analysis.integration.TrapezoidIntegratorTest
All Implemented Interfaces:
junit.framework.Test

public final class TrapezoidIntegratorTest
extends junit.framework.TestCase

Testcase for trapezoid integrator.

Test runs show that for a default relative accuracy of 1E-6, it generally takes 10 to 15 iterations for the integral to converge.

Version:
$Revision: 799857 $ $Date: 2009-08-01 09:07:12 -0400 (Sat, 01 Aug 2009) $

Constructor Summary
TrapezoidIntegratorTest()
           
 
Method Summary
 void testParameters()
          Test of parameters for the integrator.
 void testQuinticFunction()
          Test of integrator for the quintic function.
 void testSinFunction()
          Test of integrator 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

TrapezoidIntegratorTest

public TrapezoidIntegratorTest()
Method Detail

testSinFunction

public void testSinFunction()
                     throws org.apache.commons.math.MathException
Test of integrator for the sine function.

Throws:
org.apache.commons.math.MathException

testQuinticFunction

public void testQuinticFunction()
                         throws org.apache.commons.math.MathException
Test of integrator for the quintic function.

Throws:
org.apache.commons.math.MathException

testParameters

public void testParameters()
                    throws Exception
Test of parameters for the integrator.

Throws:
Exception


Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.