So I'm just trying to produce a Simple graph but i keep getting a value error for some reason, code below
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
time = np.linspace(0,2,500)
pi = np.pi
def y(t):
np.cos((2*pi*10*t)+30)
plt.plot(time,y(time))