I have a simple text file composed of 8 columns and I read it with loadtxt function. I want to plot as y-axis column2-column5 and as x-axis column1-column4 divided by cos(column2-column5) so I put this commands
>>> y = data[:,2] - data[:,5]
>>> x = (data[:,1] - data[:,4])/cos(y)
and it gave this error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'cos' is not defined
What is the problem?