MTM[coeffs] - extract all coefficients of a multivariate polynomial
|
Calling Sequence
|
|
coeffs(P)
coeffs(P, x)
c, t := coeffs(P, x)
|
|
Parameters
|
|
P
|
-
|
multivariate polynomial
|
x
|
-
|
variable
|
c
|
-
|
variable
|
t
|
-
|
variable
|
|
|
|
|
Description
|
|
•
|
coeffs(P) returns the coefficients of the polynomial P with respect to all the indeterminates of P.
|
•
|
coeffs(P,x) returns the coefficients of the polynomial P with respect to x.
|
•
|
[c, t] = coeffs(P,x) also returns an array of the terms of P. The terms of P line up such that add(i,i=zip(`*`,a,b)); gives back the original polynomial, P.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
|
|
Download Help Document
Was this information helpful?