|
|
|||
|
|
| Mathematica Tutorial | Functions »|Tutorials » |
| PolynomialQ[expr,x] | test whether expr is a polynomial in x |
| PolynomialQ[expr,{x1,x2,...}] | test whether expr is a polynomial in the xi |
| Variables[poly] | a list of the variables in poly |
| Exponent[poly,x] | the maximum exponent with which x appears in poly |
| Coefficient[poly,expr] | the coefficient of expr in poly |
| Coefficient[poly,expr,n] | the coefficient of expr^n in poly |
| Coefficient[poly,expr,0] | the term in poly independent of expr |
| CoefficientList[poly,{x1,x2,...}] | generate an array of the coefficients of the xi in poly |
Finding the structure of polynomials written in expanded form.
|
|
|
|
|
This gives the maximum exponent with which x appears in the polynomial t. For a polynomial in one variable, Exponent gives the degree of the polynomial.
|
Coefficient[poly, expr] gives the total coefficient with which expr appears in poly. In this case, the result is a sum of two terms.
|
This is equivalent to Coefficient[t, x^2].
|
|
|
For multivariate polynomials, CoefficientList gives an array of the coefficients for each power of each variable.
|
Without giving specific integer values to a, b and c, this expression cannot strictly be considered a polynomial.
|
Exponent[expr, x] still gives the maximum exponent of x in expr, but here has to write the result in symbolic form.
|
| © 2013 Wolfram Research, Inc. |