# Pattern

## VAM Temple project

The VAM Temple project was completed by 3 primary school students (Year 5, aged 9) in 2003, using the archived VRMath 1.0 application. The Logo program they wrote at the time can still run in the new VRMath2 Editor with few modifications. You can try to recreate it in the VRMath2 Editor, by openning the  vam_temple.logo in the Logo Editor and executing the program.

## An attempt at using recursion

All of my projects to date have required step by step instructions (some upwards of 300 lines of code!), so I decided to have a go at working out how to create a recursive code. After studying "Cayley graph 3D" working out in my head how the code was constructed, I was finally able to start my own. The following is based on an image of

Cayley Graph of the Free Product Z3 * Z5

After much trial and error I was able to develop ...

## Cayley graph 3D

I was in the keynote session of AAMT conference. In the keynote, the mathematician Hanna Neumann was mentioned. I immediately googled and started reading about her on Wikipedia.

While reading, my thoughts are like the hyperlinks that go everywhere, then suddenly I saw and clicked into the Group theory, where I found the Cayley graph that caught my attention.

It is easily recognisable that this cayley graph is a fractal image, which can be produced with a simple recursive procedure in VRMath2's LOGO language.

## Recursive 2D fern leaf procedure

In my previous blog, I explained about a recursive tree procedure. Here is another one borrowed from Joshua's Logo Interpreter example: fern leaf procedure. This fern leaf procedure creates a 2D fern leaf in VRMath2's 3D space. You can examine it below in the 3D space with the LOGO program.

## Recursive 2D tree

One of the powerful abilities of LOGO programming language is its recursive execution of procedure. Recursive call of procedure means a procedure calls itself until an exiting condition is met. A recursive procedure can be very simple yet it can produce complex and beautiful mathematical graphics such as fractal images and naturally occurring objects.