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

Algebra Calculator

#### Partition

Function: partition (<expr>, <x>) Returns a list of two expressions. They are (1) the factors of <expr> (if it is a product), the terms of <expr> (if it is a sum), or the list (if it is a list) which dont contain <x> and, (2) the factors, terms, or list which do.

```          (%i1) partition (2*a*x*f(x), x);
(%o1)                     [2 a, x f(x)]
(%i2) partition (a+b, x);
(%o2)                      [b + a, 0]
(%i3) partition ([a, b, f(a), c], a);
(%o3)                  [[b, c], [a, f(a)]]```

There are also some inexact matches for `partition`. Try `?? partition` to see them.

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

### Related Examples

##### partition

partition(u[1]^2*u*a[...

Calculate

##### partition

partition(u[1]^2/u*a[...

Calculate

##### partition

partition(u[1]^2/u*a[...

Calculate

##### partition

partition (2*a*x*f(x)...

partition (a+b, x);

partition ([a, b, f(...

Calculate

##### partition

? num_distinct_partit...

Calculate

##### partition

partition(9*e^(3*x),x);

Calculate

##### partition

partition(u[1]+u*a[2]...

Calculate

##### partition

integer_partition(10);

Calculate

##### partition

integer_partition(255...

Calculate

##### partition

partition ([3, 4, 5, ...

partition (a+b, x);

partition ([a, b, f(...

Calculate