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).
withMTM:
f≔alnx−lnxx−x
collectf,lnx
a−xlnx−x
g≔intx2expx+exp−x,x
g≔−x2ⅇx−2xⅇx−2ⅇx+x2ⅇx−2xⅇx+2ⅇx
h≔intx3expx+exp−x,x
h≔−x3ⅇx−3x2ⅇx−6xⅇx−6ⅇx+x3ⅇx−3x2ⅇx+6xⅇx−6ⅇx
A≔Vectorg,h
A≔−x2ⅇx−2xⅇx−2ⅇx+x2ⅇx−2xⅇx+2ⅇx−x3ⅇx−3x2ⅇx−6xⅇx−6ⅇx+x3ⅇx−3x2ⅇx+6xⅇx−6ⅇx
collectA,expx
x2−2x+2ⅇx+−x2−2x−2ⅇxx3−3x2+6x−6ⅇx+−x3−3x2−6x−6ⅇx
See Also
MTM[exp]
MTM[expand]
MTM[factor]
MTM[findsym]
MTM[int]
MTM[log]
MTM[simple]
MTM[simplify]
Download Help Document