coeffs - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MTM

  

coeffs

  

extract all coefficients of a multivariate polynomial

 

Calling Sequence

Parameters

Description

Examples

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

withMTM:

t2+3+4logx25logx

t2+3+4lnx25lnx

(1)

coeffsexpandt

111619

(2)

ya+bsinx+csin2x

ya+bsinx+csin2x

(3)

coeffsy,sinx

a+csin2xb

(4)

coeffsexpandy,sinx

ab+2ccosx

(5)

z3x2u2+5xu3

z5xu3+3x2u2

(6)

coeffsz

53

(7)

coeffsz,x

3u25u3

(8)

c,t

c,2+3+4lnx25lnx

(9)

See Also

MTM[expand]

MTM[log]

MTM[sin]