|
||||||||||
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.polynomials.PolynomialFunctionLagrangeFormTest
public final class PolynomialFunctionLagrangeFormTest
Testcase 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.
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 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 |
---|
public PolynomialFunctionLagrangeFormTest()
Method Detail |
---|
public void testLinearFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuadraticFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testQuinticFunction() throws org.apache.commons.math.MathException
org.apache.commons.math.MathException
public void testParameters() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |