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

Algebra Calculator

#### Chaosgame

Function: chaosgame (`[[`<x1>, <y1>`]`...`[`<xm>, <ym>`]]`, `[`<x0>, <y0>`]`, <b>, <n>, ..., options, ...); Implements the so-called chaos game: the initial point (<x0>, <y0>) is plotted and then one of the <m> points `[`<x1>, <y1>`]`...`[`<xm>, <ym>`]` will be selected at random. The next point plotted will be on the segment from the previous point plotted to the point chosen randomly, at a distance from the random point which will be <b> times that segments length. The procedure is repeated <n> times.

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

### Related Examples

evolution(cos(y), 2,...

staircase(cos(y), 1,...

Calculate

##### chaosgame

? chaosgame;

Calculate

evolution(cos(y), 2,...

staircase(cos(y), 1,...

Calculate

##### chaosgame-sqrt

chaosgame([[0, 0], [1...

Calculate

chaosgame([[0,0],[1,0...

Calculate

evolution(cos(y), 2,...

staircase(cos(y), 1,...

Calculate

##### chaosgame

? chaosgame;

Calculate

evolution(cos(y), 2,...

staircase(cos(y), 1,...

Calculate

##### chaosgame-sqrt

chaosgame([[0, 0], [1...

Calculate