5.3.2 scipy库

更新于 2026年10月10日 版权声明
5.3.2 scipy库

scipy库是建立在numpy库基础上的更加专业的、基于科学计算和工程计算的科学计算包,是高级工程人员和科学家关注的重点。

scipy库的special模块从名称上指向特殊数学函数,是相对于numpy库的现有函数而言的,是对numpy库函数内容的大幅扩展。

到写本书之时为止,special模块下的特殊函数分类包括:错误处理(Error Handling)、艾里函数(Airy Functions)、椭圆函数和积分(Elliptic Functions and Integrals)、贝塞尔函数(Bessel Functions)、斯特鲁维函数(Struve Functions)、原始统计函数(Raw Statistical Functions)、信息论函数(Information Theory Functions)、伽马及相关函数(Gamma and Related Functions)、误差函数和菲涅耳积分(Error Function and Fresnel Integrals)、勒让德函数(Legendre Functions)、椭球谐波(Ellipsoidal Harmonics)、正交多项式(Orthogonal Polynomials)、超几何函数(Hypergeometric Functions)、抛物柱形函数(Parabolic Cylinder Functions)、马蒂厄及相关函数(Mathieu and Related Functions)、球状波函数(Spheroidal Wave Functions)、开尔文函数(Kelvin Functions)、组合学(Combinatorics)、Lambert W及相关函数(Lambert W and Related Functions)、便利函数(Convenience Functions)、其他特殊函数(Other Special Functions)。

在Anaconda开发包里自带scipy库,所以可以通过导入该库对其直接使用。在Spyder的交互式方式下查看scipy库自带的函数,如图5.5所示。

图示(https://www.daowen.com)

图5.5 scipy库里自带的函数

图示

(2)scipy库自带函数使用示例二:求统计数据的平均值。

图示

↑上一章 ↓下一章
关注公众号获取验证码
复制内容需要验证码(7.99元/天)