MTM - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : MTM Package : MTM/coeffs

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

t:=2+3+4lnx25lnx

(1)

coeffsexpandt

111619

(2)

ya+bsinx+csin2x

y:=a+bsinx+csin2x

(3)

coeffsy,sinx

a+csin2xb

(4)

coeffsexpandy,sinx

ab+2ccosx

(5)

z3x2u2+5xu3

z:=5u3x+3u2x2

(6)

coeffsz

53

(7)

coeffsz,x

3u25u3

(8)

c,t

c,2+3+4lnx25lnx

(9)

See Also

MTM[expand]

MTM[log]

MTM[sin]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam