Sponsored links: Algebra eBooks

### The Maxima on-line user's manual

Algebra Calculator

#### Collectterms

Function: collectterms (<expr>, <arg_1>, ..., <arg_n>) If several expressions have been simplified with `facsum`, `factorfacsum`, `factenexpand`, `facexpten` or `factorfacexpten`, and they are to be added together, it may be desirable to combine them using the function `collecterms`. `collecterms` can take as arguments all of the arguments that can be given to these other associated functions with the exception of `nextlayerfactor`, which has no effect on `collectterms`. The advantage of `collectterms` is that it returns a form similar to `facsum`, but since it is adding forms that have already been processed by `facsum`, it does not need to repeat that effort. This capability is especially useful when the expressions to be summed are very large.

```(%o1)                                true
(%i2) ```

### Related Examples

##### collectterms-expand

expand((x-(1/a)-(1/b)...

collectterms((x-(1/a)...

Calculate

##### collectterms-expand

collectterms( expand(...

Calculate

##### collectterms-factor

f : factor((x-(1/a)-(...

collectterms(x);

Calculate

##### collectterms-matrix-transpose

w1: matrix([w1a],[w1b...

w2: matrix([w2a],[w2b...

x: matrix([xa],[xb],[...

Calculate

##### collectterms-denom-lhs-ratsimp-rhs-solve-subst

eq1: k*(psi*iQ+Ldiff*...

eq2: solve(eq1 = M, iQ);

eq3: iD^2+iQ^2;

Calculate

##### collectterms-psi-rhs-subst

eq1: uD = iD*R -w*LQ*iQ;

eq2: uQ = iQ*R + w*LD...

eq3: u^2 = uD^2+uQ^2;

Calculate

##### collectterms-expand-ratsimp

f :( x^4 + 4*x^3 - 17...

g : (x^2 - 5*x + 3);

c : expand(f*g);

Calculate

##### collectterms-expand-ratsimp

f : (x-(1/a)-(1/b))*(...

expand(f);

collectterms(f,x);

Calculate

##### collectterms-expand

a:(x-(1/a)-(1/b));

b:(x-(1/b)-(1/c));

c:(x-(1/c)-(1/a));

Calculate

##### collectterms

h1: 2*s^3 - 3*s^2 + 1;

h2: -2*s^3 + 3*s^2;

h3: s^3 - 2*s^2 + s;

Calculate