Power products

The class Monomials in the interpreter corresponds to the C++ class monomial with coefficients and exponents of type int.

Mmx] 

use "realroot"

Constructors

Mmx] 

m1 := monomial(1,2,3)

Mmx] 

m2 := monomial(-1,0,2)

Mmx] 

m2 := monomial([-1,0,2])

Mmx] 

Arithmetic operations

Mmx] 

m1*m2

Mmx] 

m1/m2

Mmx] 

m1^5

Mmx] 

Functions

Mmx] 

exponents(m2)

Mmx]