7 #include "../MultivariatePolynomial.h"
8 #include "../UnivariatePolynomial.h"
18 template<
typename Coeff>
35 template<
typename Coeff>
39 return divide(p, c).quotient;
Implements utility functions concerning the (total) degree of monomials, terms and polynomials.
carl is the main namespace for the library.
Coeff content(const UnivariatePolynomial< Coeff > &p)
The content of a polynomial is the gcd of the coefficients of the normal part of a polynomial.
UnivariatePolynomial< Coeff > pseudo_primitive_part(const UnivariatePolynomial< Coeff > &p)
Returns this/divisor where divisor is the numeric content of this polynomial.
bool is_zero(const Interval< Number > &i)
Check if this interval is a point-interval containing 0.
void divide(const cln::cl_I ÷nd, const cln::cl_I &divisor, cln::cl_I "ient, cln::cl_I &remainder)
typename UnderlyingNumberType< P >::type Coeff
UnivariatePolynomial< Coeff > primitive_part(const UnivariatePolynomial< Coeff > &p)
The primitive part of p is the normal part of p divided by the content of p.
bool is_one(const Interval< Number > &i)
Check if this interval is a point-interval containing 1.
This class represents a univariate polynomial with coefficients of an arbitrary type.
bool is_normal() const
Checks whether the polynomial is unit normal.
NumberType numeric_content(std::size_t i) const
Returns the numeric content part of the i'th coefficient.