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

Algebra Calculator

#### Example

Function: example (<topic>)

Function: example () `example (<topic>)` displays some examples of <topic>, which is a symbol or a string. To get examples for operators like `if`, `do`, or `lambda` the argument must be a string, e.g. `example ("do")`. `example` is not case sensitive. Most topics are function names.

`example ()` returns the list of all recognized topics.

The name of the file containing the examples is given by the global option variable `manual_demo`, which defaults to `"manual.demo"`.

`example` quotes its argument. `example` returns `done` unless no examples are found or there is no argument, in which case `example` returns the list of all recognized topics.

Examples:

```          (%i1) example(append);
(%i2) append([x+y,0,-3.2],[2.5E+20,x])
(%o2)                    [y + x, 0, - 3.2, 2.5E+20, x]
(%o2)                                done
(%i3) example("lambda");
(%i4) lambda([x,y,z],z^2+y^2+x^2)
2    2    2
(%o4)                   lambda([x, y, z], z  + y  + x )
(%i5) %(1,2,a)
2
(%o5)                               a  + 5
(%i6) a+2+1
(%o6)                                a + 3
(%o6)                                done
(%i7) example("allROOTS");
(%i8) (1+2*x)^3 = 13.5*(1+x^5)
3          5
(%o8)                     (2 x + 1)  = 13.5 (x  + 1)
(%i9) allroots(%)
(%o9) [x = .8296749902129361, x = - 1.015755543828121,
x = .9659625152196369 %i - .4069597231924075,
x = - .9659625152196369 %i - .4069597231924075, x = 1.0]
(%o9)                                done```

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

### Related Examples

example(mult);

Calculate

##### example-expand-limit

n*((b+n+1)/(a+n+1)-1);

expand(n*((b+n+1)/(a+...

example(limit);

Calculate

##### example-hypergeometric-true

hypergeometric([],[],...

hypergeometric([1],[1...

hypergeometric([-1],[...

Calculate

##### example-genmatrix

example(genmatrix);

Calculate

##### example-limit-sin

example(limit);

limit(x*sin(x),x,0);

Calculate

example(approx);

Calculate

##### example-genmatrix

genmatrix(h,2,3);

example(genmatrix);

Calculate

example(matrix);

Calculate

##### example-inf-limit-sin

example(limit);

limit(x*sin(x),x,inf);

limit(sin(1/x),x,0);

Calculate

##### example-inf-limit-sin

example(limit);

limit(x*sin(x),x,inf);

limit(sin(1/x),x,0);

Calculate