Module Polynomial.Monomial
val fold : (var -> int -> 'a -> 'a) -> t -> 'a -> 'a
fold f m acc
folds over the variables with multiplicities
val degree : t -> int
degree m
is the sum of the degrees of each variable
val const : t
const
- returns
the empty monomial i.e. without any variable
val is_var : t -> bool
is_var m
- returns
true
iff m = x^1 for some variable x
val div : t -> t -> t * int
div m1 m2
- returns
a pair
mr,n
such that mr * (m2)^n = m1 where n is maximum
val variables : t -> Micromega_plugin.Mutils.ISet.t
variables m
- returns
the set of variables with (strictly) positive multiplicities