] gives the coefficient of form in the polynomial expr.
] gives the coefficient of form
n in expr.
Coefficient picks only terms that contain the particular form specified. is not considered part of .
form can be a product of powers.
0] picks out terms that are not proportional to form.
Coefficient works whether or not expr is explicitly given in expanded form.
See the Mathematica book: Section 1.4.6, Section 3.3.2.
See also: Exponent, SeriesCoefficient.
Here is one way of getting the coefficient of from the polynomial.
Here is an equivalent way.
This gives the coefficient of x in the polynomial over the integers modulo .
This gives the coefficients of x, x
z, y and z in the expression.
You can use variables that are powers.
Such a power does not necessarily have to be an integer.
Coefficient is quite fast for polynomial input. (The time will vary for different machines.)
Even this harder example comes back in reasonable time.
Coefficient can handle some algebraic dependencies.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.