注册

Python的科学计算包 SciPy

SciPy (pronounced "Sigh Pie") 是一个开源的数学、科学和工程计算包。示例代码:from scipy import optimize, special
from numpy import *
from pylab import *

x = arange(0,10,0.01)

for k in arange(0.5,5.5):
y = special.jv(k,x)
plot(x,y)
f = lambda x: -special.jv(k,x)
x_max = optimize.fminbound(f,0,6)
plot(, ,'ro')

title('Different Bessel functions and their local maxima')
show()

已邀请:

要回复问题请先登录注册