import sys
mypath=sys.path[0]
if mypath.find('my_python') == -1:       #If true, then "my_python" could not be found
  print "Sorry.  You need to be in my_python for Halverson's program to work."
  print "(That''s because I am assuming that the tgraphlix.py and ezu3.py libraries are there.)"
  exit()
sys.path[0]=mypath[0:mypath.find('my_python')]+'my_python'

from math import *
from tgraphlibx import *

def cube(x):
  the_cube=pow(x,3)
  return the_cube

def convert_deg_to_rad(angle):
  angle_radians=angle*pi/180.0
  return angle_radians

x_array=[ ]
y_array=[ ]
for x in range(0,360*4,5):
  x_radians=convert_deg_to_rad(x)
  y=cos(x_radians)
  x_array=x_array+[x]
  y_array=y_array+[y]
graph_xy(x_array,y_array)  