Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Polynomial Algebra >

Coefficient

Coefficient[expr, form]
gives the coefficient of form in the polynomial expr.
Coefficient[expr, form, n]
gives the coefficient of form^n in expr.
  • Coefficient picks only terms that contain the particular form specified. x^2 is not considered part of x^3.
  • form can be a product of powers.
  • Coefficient[expr, form, 0] picks out terms that are not proportional to form.
  • Coefficient works whether or not expr is explicitly given in expanded form.
Find coefficients of polynomials:
Find a coefficient at x:
Find a coefficient at a power of x:
Find the free term in a polynomial:
Find a coefficient at a multivariate monomial:
Find a coefficient over the integers modulo 2:
CoefficientList gives a list of all polynomial coefficients:
The same list of coefficients obtained using Coefficient and Exponent:
For multivariate polynomials CoefficientList gives a tensor of the coefficients:
CoefficientArrays gives the list of arrays of polynomial coefficients ordered by total degree:
The coefficient of x y3:
In cl the coefficient of x^a y^b is the element at position a+1, b+1:
In ca the position is a+b+1 concatenated with a 1s and b 2s (1 and 2 indicate the first & second variables):
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team