- All Superinterfaces:
Monic,Monomial,NumericExpression,Primitive,PrimitivePower,RationalExpression,SymbolicExpression,SymbolicObject
A polynomial: an expression which is the sum of monomials. Use method
Monomial.termMap(IdealFactory) to get the term map for this
Polynomial. There must be at least two (non-0) Monomials in
the term map.
A Polynomial is also a Primitive, so can be used as a factor
in a Monic.-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.sarl.IF.expr.SymbolicExpression
SymbolicExpression.SymbolicOperatorNested classes/interfaces inherited from interface dev.civl.sarl.IF.object.SymbolicObject
SymbolicObject.SymbolicObjectKind -
Method Summary
Modifier and TypeMethodDescriptionconstantTerm(IdealFactory factory) The constant term of this polynomial, which may be 0.booleanDoes this polynomial contain a term with a nontrivial factorization? This is stronger than asking if the polynomial has a nontrivial factorization.polynomialDegree(NumberFactory factory) The "polynomial degree" is the maximum monomial degree of the terms comprising this polynomial.Methods inherited from interface dev.civl.sarl.ideal.IF.Monic
isTrivialMonic, monicFactorsMethods inherited from interface dev.civl.sarl.ideal.IF.Monomial
expand, getTruePrimitives, hasNontrivialExpansion, lower, maxDegreeOf, monic, monomialConstant, monomialDegree, monomialOrder, termMap, totalDegreeMethods inherited from interface dev.civl.sarl.ideal.IF.PrimitivePower
powerInt, primitive, primitivePowerExponentMethods inherited from interface dev.civl.sarl.ideal.IF.RationalExpression
denominator, numerator, powerRationalMethods inherited from interface dev.civl.sarl.IF.expr.SymbolicExpression
argument, atomString, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, size, typeMethods inherited from interface dev.civl.sarl.IF.object.SymbolicObject
containsQuantifier, containsSubobject, containsSubobjectIgnoringType, equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, symbolicObjectKind, toString, toStringBuffer, toStringBufferLong
-
Method Details
-
constantTerm
The constant term of this polynomial, which may be 0.- Parameters:
factory- the ideal factory owning this polynomial- Returns:
- the constant term of this polynomial
-
polynomialDegree
The "polynomial degree" is the maximum monomial degree of the terms comprising this polynomial. Note that since thisPolynomialis aPrimitive, its "monomial degree" is 1.- Parameters:
factory- theNumberFactoryused for this operation- Returns:
- The
IntegerNumberrepresents the degree of this polynomial, i.e., the maximum degree of its terms
-
hasTermWithNontrivialExpansion
Does this polynomial contain a term with a nontrivial factorization? This is stronger than asking if the polynomial has a nontrivial factorization. A polynomial with more than one term always has a nontrivial factorization.- Parameters:
factory- the ideal factory owning this polynomial- Returns:
trueif at least one term has a nontrivial expansion- See Also:
-