
The Archimedean spiral is a spiral named after the Greek mathematician Archimedes.



An Archimedean spiral can be described by the equation:






r
=
a
+
b
θ


{\displaystyle \,r=a+b\theta }


with real numbers a and b.



Task
Draw an Archimedean spiral.




a=1.5
b=1.5 
pi=3.141592
 
PSET (320,100)
FOR t=0 TO 40*pi STEP .1
  r=a+b*t  
  LINE -(320+2*r*SIN(t),100+r*COS(t))
NEXT