### 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-optimize

example(optimize);

Calculate

##### example-scsimp

example (scsimp);

Calculate

##### example

example(example);

Calculate

example (limit);

Calculate

##### example-scsimp

example (scsimp);

Calculate

example(limit);

limit(x*sin(x));

Calculate

##### example

example(optimise);

Calculate

##### example-integrate

example(integrate);

Calculate

##### example-infinity-limit-sqrt

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

sqrt((2*x+1)/(x+3));

limit(sqrt((2*x+1)/(x...

Calculate

example(limit);

Calculate