Package edu.jas.poly
Class Monomial<C extends RingElem<C>>
java.lang.Object
edu.jas.poly.Monomial<C>
- All Implemented Interfaces:
Element<Monomial<C>>,Serializable,Comparable<Monomial<C>>
Monomial class. Represents pairs of exponent vectors and coefficients.
Adaptor for Map.Entry.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for coefficient.intMonomial comparison.copy()Clone this Element.booleanComparison with any other object.exponent()Getter for exponent.factory()Get the corresponding element factory.inthashCode()hashCode.toScript()Script representation of Monomial.Get a scripting compatible string representation of the factory.toString()String representation of Monomial.
-
Field Details
-
e
Exponent of monomial. -
c
Coefficient of monomial.
-
-
Constructor Details
-
Monomial
Constructor of monomial.- Parameters:
me- a MapEntry.
-
Monomial
Constructor of monomial.- Parameters:
e- exponent.c- coefficient.
-
-
Method Details
-
exponent
Getter for exponent.- Returns:
- exponent.
-
coefficient
Getter for coefficient.- Returns:
- coefficient.
-
copy
Clone this Element. -
toString
String representation of Monomial. -
toScript
Script representation of Monomial. -
toScriptFactory
Get a scripting compatible string representation of the factory.- Specified by:
toScriptFactoryin interfaceElement<C extends RingElem<C>>- Returns:
- script compatible representation for this ElemFactory.
- See Also:
-
factory
Get the corresponding element factory. -
equals
Comparison with any other object. -
hashCode
public int hashCode()hashCode. -
compareTo
Monomial comparison.
-