org.apache.commons.math3.analysis.polynomials
Class PolynomialFunctionLagrangeFormTest

java.lang.Object
  extended by org.apache.commons.math3.analysis.polynomials.PolynomialFunctionLagrangeFormTest

public final class PolynomialFunctionLagrangeFormTest
extends Object

Test case for Lagrange form of polynomial function.

We use n+1 points to interpolate a polynomial of degree n. This should give us the exact same polynomial as result. Thus we can use a very small tolerance to account only for round-off errors.

Version:
$Id: PolynomialFunctionLagrangeFormTest.java 1364030 2012-07-21 01:10:04Z erans $

Constructor Summary
PolynomialFunctionLagrangeFormTest()
           
 
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolynomialFunctionLagrangeFormTest

public PolynomialFunctionLagrangeFormTest()
Method Detail

testLinearFunction

public void testLinearFunction()
Test of polynomial for the linear function.


testQuadraticFunction

public void testQuadraticFunction()
Test of polynomial for the quadratic function.


testQuinticFunction

public void testQuinticFunction()
Test of polynomial for the quintic function.


testParameters

public void testParameters()
Test of parameters for the polynomial.



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