notebook.community
Edit and run
Today we're plotting $y = \cos(x)~~$ and hey you can insert latex into markdown, that's neat.
In [ ]: x = linspace(1, 3*pi, 1000) y = cos(x)
x = linspace(1, 3*pi, 1000) y = cos(x)
In [ ]: plot(x,y) plot(x,-y,'r--')
plot(x,y) plot(x,-y,'r--')
In [ ]: subplot(2,1,1) plot(x,y,'g') subplot(2,1,2) plot(x,-y,'r')
subplot(2,1,1) plot(x,y,'g') subplot(2,1,2) plot(x,-y,'r')
In [ ]: