org.apache.commons.math.analysis
Class PolynomialFunctionNewtonFormTest

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

public final class PolynomialFunctionNewtonFormTest
extends junit.framework.TestCase

Testcase for Newton form of polynomial function.

The small tolerance number is used only to account for round-off errors.

Version:
$Revision$ $Date$

Constructor Summary
PolynomialFunctionNewtonFormTest()
           
 
Method Summary
 void testLinearFunction()
          Test of polynomial for the linear function.
 void testParameters()
          Test of parameters for the polynomial.
 void testQuadraticFunction()
          Test of polynomial for the quadratic function.
 void testQuinticFunction()
          Test of polynomial for the quintic 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolynomialFunctionNewtonFormTest

public PolynomialFunctionNewtonFormTest()
Method Detail

testLinearFunction

public void testLinearFunction()
                        throws org.apache.commons.math.MathException
Test of polynomial for the linear function.

Throws:
org.apache.commons.math.MathException

testQuadraticFunction

public void testQuadraticFunction()
                           throws org.apache.commons.math.MathException
Test of polynomial for the quadratic function.

Throws:
org.apache.commons.math.MathException

testQuinticFunction

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

Throws:
org.apache.commons.math.MathException

testParameters

public void testParameters()
                    throws java.lang.Exception
Test of parameters for the polynomial.

Throws:
java.lang.Exception


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