from math import sin, cos, tan, pi, sqrt
x=0.0
dx= .1
r= 4.148
xmax=r

def f(x):
  y = sqrt(r*r - x*x)
  return y;

while x < xmax:
  print "G1 X%f Y%f" % (x, f(x))
  print "G1 Z-.5"
  print "G1 Z0"
  x=x+dx

print "m2"

