SciPy 库建立在 Numpy 库之上,提供了大量科学算法,主要包括这些主题:
· 特殊函数 (scipy.special)
· 积分(scipy.integrate)
· 最优化 (scipy.optimize)
· 插值(scipy.interpolate)
· 傅立叶变换 (scipy.fftpack)
· 信号处理 (scipy.signal)
· 线性代数 (scipy.linalg)
· 稀疏特征值 (scipy.sparse)
· 统计(scipy.stats)
· 多维图像处理 (scipy.ndimage)
· 文件IO (scipy.io)
与初始条件
。 注意到高阶常微分方程常常写成引入新的变量作为中间导数的形式。 一旦我们定义了函数 f 与数组 y_0 我们可以使用 odeint 函数: