MTM
collect
collect coefficients
Calling Sequence
Parameters
Description
Examples
collect(A, v)
A
-
polynomial, Array of polynomials
v
(optional) expression
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).
with⁡MTM:
f≔a⁢ln⁡x−ln⁡x⁢x−x
collect⁡f,ln⁡x
a−x⁢ln⁡x−x
g≔int⁡x2⁢exp⁡x+exp⁡−x,x
g≔−x2ⅇx−2⁢xⅇx−2ⅇx+x2⁢ⅇx−2⁢x⁢ⅇx+2⁢ⅇx
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
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
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
See Also
MTM[exp]
MTM[expand]
MTM[factor]
MTM[findsym]
MTM[int]
MTM[log]
MTM[simple]
MTM[simplify]
Download Help Document