challenge | notes

Challenge 11 - More on circles

A reminder:
C = π x d  or  C = 2 x π x r

Where C is the circumference of a circle and π (pi) is equal to 3.14159….
The circumference being the distance all the way round a circle.

In terms of LOGO it means that circles of any diameter, radius or circumference can be drawn.

Consider the following  procedure…

TO CIRC :C

REPEAT 360 [ FD :C/360 RT 1]

END

What do you think this is about?  Once decided, trace the procedure through in your mind's eye.  If you can, talk to others about what you think is happening.

If in doubt out check your thoughts by typing in the procedure and testing what it does.
N.B. PI is a primitive equal to π  and equals 3.14159 (approximately).

Try CIRC 314
For now experiment by changing:

Alternatively you might like to consider the next procedure

TO CIR :D

REPEAT 360 [FD :D*PI/360 RT 1]

END

Try the following CIR 100

What do you notice now?