# Difference between revisions of "Fractal Polygons"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 1: | Line 1: | ||

+ | With turtle graphics it is quite easy to construct in a recursive manner regular polygones. | ||

+ | |||

+ | It is possible to play around with this example: | ||

In the last line of the input window there is the command | In the last line of the input window there is the command | ||

<source lang="javascript"> | <source lang="javascript"> |

## Revision as of 12:47, 21 December 2008

With turtle graphics it is quite easy to construct in a recursive manner regular polygones.

It is possible to play around with this example: In the last line of the input window there is the command

```
fracPolygone(5,100,0.4,5);
```

The meaning of the parameters is

- 5: number of vertices of the regular polygone,
- 100: length of a side of the initial poylgone,
- 0.4: shrink factor from one level to the next,
- 5: number of recursion steps.

### References

- Peter Baptist, Wolfgang Neidhardt, Alfred Wassermann:
*Symmetry and Regular Polygons*, Prispevki k poucevanju Matematike, The Improvement of Mathematics Education in Secondary Schools: A Tempus Project, Maribor 1996.