Lecture 5 demo

Demo of plotting $y = \cos(x)~~$ and $y = -\cos(x)$


In [ ]:
x = linspace(0,5*pi,1000)
y = cos(x)

In [ ]:
print y[100]

In [ ]:
plot(x,y)
plot(x,-y,'r')

In [ ]: