polylib::support – support of a polynomial
polylib::support(p) returns the support of p, that is the list of indices with non zero coefficient in p.
Call:
polylib::support(p)
Parameters:
p: |
A polynomial or more generaly a free module element (see Cat::ModuleWithBasis). |
Return Value:
A list of elements of the support.
The support of a multivariate polynomial is the list of the degree vectors of its terms:
polylib::support(poly(x*y*z + x + 1, [x, y, z]))
For a univariate polynomial, the support is the list of the degrees of its terms. In the following polynomial x appears with degrees 3, 1, and 0:
polylib::support(Dom::UnivariatePolynomial(x)(x^3*y*z + x + 1))