Draw a Spiral of Theodorus

This project may need some discussion by the instructor.

Project #1

Use graphics.py. It is a simple graphics library. Click HERE for more information. (download, install, documentation, ...)

Draw a spiral of Theodorus up to √17.

Note: A Theodorus spiral is also called a square root spiral, or Pythagorean spiral.

image missing
From: commons.wikimedia.org

image missing
From: commons.wikimedia.org

Helpful Hints?

Use polar coordinates and convert to x,y coordinates to draw the spiral.

We know sides a, b, and the hypotenuse of each triangle that makes up the spiral. We just need to accumulate angles of triangles. (i.e. A spiral's (polar coordinate) angle is the sum of all of the angles that came before it.)

Polar Cartesian Coordinate Conversion

Arc Tangent

Links

Spiral of Theodorus (YouTube)

Spiral of Theodorus (Wikipedia)

Easiest Way to Find Shortest Distance from Point to the Line (YouTube)