scipy.special.itmodstruve0#
- scipy.special.itmodstruve0(x, out=None) = <ufunc 'itmodstruve0'>#
0 阶修正斯特鲁夫函数的积分。
\[I = \int_0^x L_0(t)\,dt\]- 参数:
- xarray_like
积分上限 (浮点数)。
- outndarray,可选
函数值的可选输出数组
- 返回:
- I标量或 ndarray
\(L_0\) 从 0 到 x 的积分。
另请参阅
modstruve
此函数积分的修正斯特鲁夫函数
注释
由张善杰和金建明创建的 Fortran 例程的包装器 [1]。
参考文献
[1]张善杰和金建明。“特殊函数的计算”,John Wiley and Sons,1996。 https://people.sc.fsu.edu/~jburkardt/f_src/special_functions/special_functions.html
示例
在一个点上评估函数。
>>> import numpy as np >>> from scipy.special import itmodstruve0 >>> itmodstruve0(1.) 0.3364726286440384
通过为 x 提供一个数组来评估多个点上的函数。
>>> points = np.array([1., 2., 3.5]) >>> itmodstruve0(points) array([0.33647263, 1.588285 , 7.60382578])
绘制从 -10 到 10 的函数。
>>> import matplotlib.pyplot as plt >>> x = np.linspace(-10., 10., 1000) >>> itmodstruve0_values = itmodstruve0(x) >>> fig, ax = plt.subplots() >>> ax.plot(x, itmodstruve0_values) >>> ax.set_xlabel(r'$x$') >>> ax.set_ylabel(r'$\int_0^xL_0(t)\,dt$') >>> plt.show()