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

Online Help

All Products    Maple    MapleSim


MTM

  

collect

  

collect coefficients

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

collect(A, v)

Parameters

A

-

polynomial, Array of polynomials

v

-

(optional) expression

Description

• 

For polynomial A, the function collect(A,v) will return a polynomial equal to A, but with coefficients of like powers of v collected.  

• 

If the parameter v is omitted, then v is taken to be the default symbol given by findsym(A,1).

• 

If A is an array, then collect(A,v) will return an array M with the same dimensions of A. For each element a of A, the corresponding element in M will have the value collect(a,v).

Examples

withMTM:

falnxlnxxx

falnxlnxxx

(1)

collectf,lnx

axlnxx

(2)

withMTM:

gintx2expx+expx,x

gx2ⅇx2xⅇx2ⅇx+x2ⅇx2xⅇx+2ⅇx

(3)

hintx3expx+expx,x

hx3ⅇx3x2ⅇx6xⅇx6ⅇx+x3ⅇx3x2ⅇx+6xⅇx6ⅇx

(4)

AVectorg,h

Ax2ⅇx2xⅇx2ⅇx+x2ⅇx2xⅇx+2ⅇxx3ⅇx3x2ⅇx6xⅇx6ⅇx+x3ⅇx3x2ⅇx+6xⅇx6ⅇx

(5)

collectA,expx

x22x+2ⅇx+x22x2ⅇxx33x2+6x6ⅇx+x33x26x6ⅇx

(6)

See Also

collect

MTM[exp]

MTM[expand]

MTM[factor]

MTM[findsym]

MTM[int]

MTM[log]

MTM[simple]

MTM[simplify]