함수 y = sin(x * x) 의 그래프 그리기 연습

* 윈도우 7 에서 Mathematica 8 을 이용하여 그린 함수의 그래프:




* 윈도우 7 에서 Maxima 5.25.0 을 이용하여 그린 함수의 그래프:





* 윈도우 XP 에서 Cygwin-X 의 Gnuplot 을 이용하여 그린 함수의 그래프:






* Mac OS X Lion 에서 Grapher 이용하여 그린 함수의 그래프:




* 윈도우 XP 의 Python 2.6 에 matplotlib 1.0.1 을 설치하여 파이썬 소스로 그린 함수의 그래프:

#!/usr/bin/env python


from pylab import *
import matplotlib.pyplot as plt


x = arange(-2.0*pi, 2.0*pi, 0.01)

plot(x, sin(x**2), '-')
grid(True)
xlabel('x')
ylabel('y')


# set the rectangular range to be viewed.
plt.axis([-2*pi, 2*pi, -1.5, 1.5])


show()





 



 

Posted by Scripter
,