##okhan 3/6/00
##5A
##sin-cos-curve shape folds out

g.antialias(1)
import math
g.paper(70)

   
for x in range(0, 101):
     
      angle2 = (x/44.0) * math.pi
      z = int(math.cos(angle2)*30) 
      g.pen(40)
      g.line(x+10, 100, x+10, 60-z)

       
for x in range(0, 101):    
      
      angle1 = (x/22.0) * math.pi
      angle2 = (x/55.0) * math.pi
      y = int(math.sin(angle1)*30)
      z = int(math.cos(angle2)*30)
      for n in range(35, 60):   
       g.setPixel(2*x, y+n, 0)
      g.pen(40)
      g.line(x+10, 0, x+10, y+30)
      g.pen(50)
      g.line(10, 50, 27, 50)