from math import sin, cos, pi
import matplotlib.pyplot as plt

def setup_arrays(n):
    x = []
    y = []
    z = []
    for i in range(n):
        theta = 6*i*pi/n
        x.append(theta)
        y.append(cos(theta))
        z.append(sin(theta))
    return x,y,z

if __name__ == "__main__" :

    x,y,z = setup_arrays(500)
    
    plt.plot(x, y, label='cos')
    plt.plot(x, z, label='sin')
    plt.legend()
    plt.show()
