Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Distrib

Function: distrib (<expr>) Distributes sums over products. It differs from `expand` in that it works at only the top level of an expression, i.e., it doesnt recurse and it is faster than `expand`. It differs from `multthru` in that it expands all sums at that level. Examples:

```          (%i1) distrib ((a+b) * (c+d));
(%o1)                 b d + a d + b c + a c
(%i2) multthru ((a+b) * (c+d));
(%o2)                 (b + a) d + (b + a) c
(%i3) distrib (1/((a+b) * (c+d)));
1
(%o3)                    ---------------
(b + a) (d + c)
(%i4) expand (1/((a+b) * (c+d)), 1, 0);
1
(%o4)                 ---------------------
b d + a d + b c + a c```

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

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

### Related Examples

##### distrib

distrib ((a+b) * (c+d));

Calculate

random_normal(0,1,4);

Calculate

m:175;

s:7.5;

Calculate a:random_poisson(0.01...

plot2d(a,[x,0,20]);

Calculate

pdf_hypergeometric(1,...

Calculate

expand(pdf_noncentral...

pdf_chi2(x,n);

Calculate

pdf_poisson(5,3),numer;

Calculate

d1:1/(volat*sqrt(T))*...

d2:d1-volat*sqrt(T);

Calculate

##### distrib-tex

/* maxima code */r1:[...

r2:[c, d];

r1:r1*(a^x);

Calculate 