using python modules/sine.py
author anand
Mon, 15 Nov 2010 14:31:42 +0530
changeset 498 4255f995a40c
parent 261 c7f0069d698a
permissions -rw-r--r--
checklist not OK; one more long answer question has to be included.

from scipy import linspace, pi, sin
from pylab import plot, legend, show, title
from pylab import xlabel, ylabel

x = linspace(-2*pi,2*pi,100)
plot(x,sin(x))
legend(['sin(x)'])
title('Sine plot')
xlabel('x')
ylabel('sin(x)')
show()