Something
public text v1 · immutablefrom math import *
print "G20 F60"
print "G64 P0.001"
a=.1
for i in range(100):
t = i/10.
x = a * (cos(t) + t * sin(t))
y = a * (sin(t) - t * cos(t))
print "G01 X%f Y%f" % (x,y)
print "M2"
from math import *
print "G20 F60"
print "G64 P0.001"
a=.1
for i in range(100):
t = i/10.
x = a * (cos(t) + t * sin(t))
y = a * (sin(t) - t * cos(t))
print "G01 X%f Y%f" % (x,y)
print "M2"