coeffs
Coefficients of polynomial
Description
C = coeffs(p)
returns coefficients of the polynomial p with respect to all
variables determined in p by
symvar.
C = coeffs(p,var)
returns coefficients of the polynomial p with respect to the
variable var.
C = coeffs(p,vars)
returns coefficients of the multivariate polynomial p with
respect to the variables vars.
[C,T] =
coeffs(___)
returns the coefficient C and the corresponding terms
T of the polynomial p.
___ = coeffs(___,'All') returns all
coefficients, including coefficients that are 0. For example,
coeffs(2*x^2,'All') returns [ 2, 0, 0]
instead of 2.
Examples
Coefficients of Univariate Polynomial
Find the coefficients of this univariate polynomial. The
c