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([x_max], [special.jv(k,x_max)],'ro') title('Different Bessel Functions and their local maxima') show()
发布于 2017-11-05 01:28:10 | 129 次阅读