Package com.singularsys.exttests
Class PolynomialCreatorTest
- java.lang.Object
-
- com.singularsys.exttests.PolynomialCreatorTest
-
public class PolynomialCreatorTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected XJepjepprotected PolynomialCreatorpcstatic booleanSHOW_BADprotected SubstitutionVisitorsv
-
Constructor Summary
Constructors Constructor Description PolynomialCreatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertPolynomialEquals(java.lang.String s1, java.lang.String s2)voidexpandTestString(java.lang.String expr, java.lang.String expected)voidmyAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)voidsetUp()voidsimplifyTest(java.lang.String expr, java.lang.String expected)voidsimplifyTestString(java.lang.String expr, java.lang.String expected)voidsimplifyTestString2(java.lang.String expr, java.lang.String expected, java.lang.String expt2)voidsimplifyTestString3(java.lang.String expr, java.lang.String expected, java.lang.String expt2, java.lang.String expt3)voidtest_compare_uses_preprocessed_aruments()voidtest_serialization_of_elements()voidtest7dim()voidtestAdd()voidtestBad()voidtestCommute()voidtestCompare()voidtestCreatePoly()voidtestDirtyFunctions()Checks that simplify/expand does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.voidtestExpandOperator()voidtestExpandToNode()The expand.toNode has problems with uminusvoidtestMonomial()voidtestPolyDiffSimp()voidtestPolySigns()Check that it does not create a polynomial like x+-yvoidtestPolySimp()voidtestPolySimp2()voidtestPrint()voidtestSimp()voidtestSimpleEquals()voidtestToArray()voidtestToCoefficientArray()voidtestTotalOrder()The total ordering of monomials/polynomials mean that terms are rearranged.voidtestUnitaryPlusBug()
-
-
-
Field Detail
-
SHOW_BAD
public static final boolean SHOW_BAD
- See Also:
- Constant Field Values
-
jep
protected XJep jep
-
pc
protected PolynomialCreator pc
-
sv
protected SubstitutionVisitor sv
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
myAssertEquals
public void myAssertEquals(java.lang.String msg, java.lang.String actual, java.lang.String expected)
-
assertPolynomialEquals
public void assertPolynomialEquals(java.lang.String s1, java.lang.String s2) throws java.lang.Exception- Throws:
java.lang.Exception
-
simplifyTest
public void simplifyTest(java.lang.String expr, java.lang.String expected) throws java.lang.Exception- Throws:
java.lang.Exception
-
simplifyTestString
public void simplifyTestString(java.lang.String expr, java.lang.String expected) throws java.lang.Exception- Throws:
java.lang.Exception
-
simplifyTestString2
public void simplifyTestString2(java.lang.String expr, java.lang.String expected, java.lang.String expt2) throws java.lang.Exception- Throws:
java.lang.Exception
-
simplifyTestString3
public void simplifyTestString3(java.lang.String expr, java.lang.String expected, java.lang.String expt2, java.lang.String expt3) throws java.lang.Exception- Throws:
java.lang.Exception
-
expandTestString
public void expandTestString(java.lang.String expr, java.lang.String expected) throws java.lang.Exception- Throws:
java.lang.Exception
-
testPrint
public void testPrint() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMonomial
public void testMonomial() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSimp
public void testSimp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCommute
public void testCommute() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testPolySimp
public void testPolySimp() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testPolyDiffSimp
public void testPolyDiffSimp() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testTotalOrder
public void testTotalOrder() throws ParseException, java.lang.ExceptionThe total ordering of monomials/polynomials mean that terms are rearranged.- Throws:
ParseExceptionjava.lang.Exception
-
testCompare
public void testCompare() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testPolySimp2
public void testPolySimp2() throws ParseException, java.lang.Exception- Throws:
ParseExceptionjava.lang.Exception
-
testExpandToNode
public void testExpandToNode() throws java.lang.ExceptionThe expand.toNode has problems with uminus- Throws:
java.lang.Exception
-
testDirtyFunctions
public void testDirtyFunctions() throws JepExceptionChecks that simplify/expand does not clean functions and operators marked withDirtyFunctionand does clean other functions and operators with constant arguments.- Throws:
JepException
-
testSimpleEquals
public void testSimpleEquals() throws java.lang.Exception- Throws:
java.lang.Exception
-
testToArray
public void testToArray() throws java.lang.Exception- Throws:
java.lang.Exception
-
testToCoefficientArray
public void testToCoefficientArray() throws java.lang.Exception- Throws:
java.lang.Exception
-
testUnitaryPlusBug
public void testUnitaryPlusBug() throws java.lang.Exception- Throws:
java.lang.Exception
-
test7dim
public void test7dim() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreatePoly
public void testCreatePoly() throws JepException- Throws:
JepException
-
testAdd
public void testAdd() throws ParseException, JepException- Throws:
ParseExceptionJepException
-
testPolySigns
public void testPolySigns() throws java.lang.ExceptionCheck that it does not create a polynomial like x+-y- Throws:
java.lang.Exception
-
testExpandOperator
public void testExpandOperator() throws java.lang.Exception- Throws:
java.lang.Exception
-
test_compare_uses_preprocessed_aruments
public void test_compare_uses_preprocessed_aruments() throws java.lang.Exception- Throws:
java.lang.Exception
-
test_serialization_of_elements
public void test_serialization_of_elements() throws java.lang.Exception- Throws:
java.lang.Exception
-
testBad
public void testBad() throws java.lang.Exception- Throws:
java.lang.Exception
-
-