指数関数の作成
[1]プロット
import pylab
>>> import pylab
>>> # -10 から 10 まで 0.1 刻みの配列をつくる (numpy.arange )
... x = pylab.arange(-10.0, 10.0, 0.1)
>>> # 関数 numpy.sin : x の各要素に Math.sin を適用して配列オブジェクトを生成
... y = pylab.sin(x)
>>> # x,y を描画
... pylab.plot(x,y,'r*')
[]
>>> # 描画
... pylab.show()
[2]
math.exp(x)
REF
[1]http://symfoware.blog68.fc2.com/blog-entry-1416.html
数式の作成
[2]http://docs.python.jp/2.4/lib/module-math.html
指数表示