Module Polynomial.Poly
val constant : NumCompat.Q.t -> t
constant c
- returns
the constant polynomial c
val get : Monomial.t -> t -> NumCompat.Q.t
get mi p
- returns
the coefficient ai of the monomial mi.
val fold : (Monomial.t -> NumCompat.Q.t -> 'a -> 'a) -> t -> 'a -> 'a
fold f p a
folds f over the monomials of p with non-zero coefficient
val add : Monomial.t -> NumCompat.Q.t -> t -> t
add m n p
- returns
the polynomial n*m + p