monomInterface, monom=None) |
monomInterface
:
monom
:
The class Monom contains the following methods:
) |
) |
) |
var, deg=1) |
monom) |
The monomials must have the same interface.
monom) |
The monomials must have the same interface.
monom) |
The monomials must have the same interface.
monom) |
The monomials must have the same interface.
Class Monom can be an argument of the following functions:
monom) |
The Python command print works similarly
monom1, monom2) |
1
if monom1 > monom2
,
0
if monom1 == monom2
,
-1
if monom1 < monom2
.
Monomials are compared in accordance to the order specified. The monomials must have the same interface.
<, >, <=, >=, ==, != ( |
monom1, monom2) |
Monomials can be used in logical expressions. The unit monomial yields False in logical expressions, and other monomials yield True.
*, / ( |
monom1, monom2) |
The monomials must have the same interface.
*= ( |
monom1, monom2) |
The monomials must have the same interface.
monom) |
It acts similarly to method dimIndepend in class MonomInterface.
[] ( |
monom, i) |
Monomial is an iterator of Python:
import ginv st = ginv.SystemType("Polynomial") im = ginv.MonomInterface("DegRevLex", st, ['x', 'y', 'z']) m = ginv.Monom(im, "x^3*y*x*z^2") for d in m: print d,