Support of a polynomial
This functionality does not run in MATLAB.
polylib::support(p) returns the support of p, that is, the list of indices with non zero coefficient in p.
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))