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

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

> 

with⁡MTM:

> 

f≔a⁢ln⁡x−ln⁡x⁢x−x

f≔a⁢ln⁡x−ln⁡x⁢x−x

(1)
> 

collect⁡f,ln⁡x

a−x⁢ln⁡x−x

(2)
> 

with⁡MTM:

> 

g≔int⁡x2⁢exp⁡x+exp⁡−x,x

g≔−x2ⅇx−2⁢xⅇx−2ⅇx+x2⁢ⅇx−2⁢x⁢ⅇx+2⁢ⅇx

(3)
> 

h≔int⁡x3⁢exp⁡x+exp⁡−x,x

h≔−x3ⅇx−3⁢x2ⅇx−6⁢xⅇx−6ⅇx+x3⁢ⅇx−3⁢x2⁢ⅇx+6⁢x⁢ⅇx−6⁢ⅇx

(4)
> 

A≔Vector⁡g,h

A≔−x2ⅇx−2⁢xⅇx−2ⅇx+x2⁢ⅇx−2⁢x⁢ⅇx+2⁢ⅇx−x3ⅇx−3⁢x2ⅇx−6⁢xⅇx−6ⅇx+x3⁢ⅇx−3⁢x2⁢ⅇx+6⁢x⁢ⅇx−6⁢ⅇx

(5)
> 

collect⁡A,exp⁡x

x2−2⁢x+2⁢ⅇx+−x2−2⁢x−2ⅇxx3−3⁢x2+6⁢x−6⁢ⅇx+−x3−3⁢x2−6⁢x−6ⅇx

(6)

See Also

collect

MTM[exp]

MTM[expand]

MTM[factor]

MTM[findsym]

MTM[int]

MTM[log]

MTM[simple]

MTM[simplify]