Monomial - Perl module implmenting an algebraic monomial
Return a reference to a new Monomial object.
Perform a deep copy of the object referred to by OBJREF.
Retrieve the value of the coefficient. If a value is passed, it is assigned as the new value.
Retrieve the value of the variables hash. If a value is passed, it is assigned as the new value.
Retrieve the value of the variable ordering array reference. If a value is passed, it is assigned as the new value.
Construct the state of the object from an expression.
Build an algebraic expression string representing the monomial.
Create a signature for a monomial such that any two monomials with the same exponents have the same signature.
Get the sum the exponents for each variable in the monomial.
Determine if the input monomial can divide this monomial.
Add this monial to the input monomial and return the sum.
Divide this monomial by the input monomial and return the quotient.
Multiply this monomial by the input monomial and return the product.
Constructs an array containing the numerator and denominator of the coefficient.
Given an array ref containing numerator and denominator, this method builds the coefficient from the numerator and denominator passed in. The coefficient will be a string if the ratio is non-integer, otherwise it will be reduced to the integer and be a scalar.
Determines if the coefficient can be simplified to a simpler (smaller) numerator/denominator pair.
Determines if any variables can be removed from the monomials based on exponent values.
Given a monomial, determine the LCM of this monomial with the input monomial and return it.
Brian Guarraci <bguarrac@hotmail.com>
To install Math::MVPoly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::MVPoly
CPAN shell
perl -MCPAN -e shell install Math::MVPoly
For more information on module installation, please visit the detailed CPAN module installation guide.