scipy.special.itmodstruve0#
- scipy.special.itmodstruve0(x, out=None) = <ufunc 'itmodstruve0'>#
0 阶修正 Struve 函数的积分。
\[I = \int_0^x L_0(t)\,dt\]- 参数:
- xarray_like
积分上限(浮点数)。
- outndarray, 可选
函数值的可选输出数组
- 返回:
- I标量或 ndarray
从 0 到 \(L_0\) 的 x 的积分。
参见
modstruve
被此函数积分的修正 Struve 函数
备注
由 Shanjie Zhang 和 Jianming Jin 创建的 Fortran 例程的包装器 [1]。
参考文献
[1]Zhang, Shanjie and Jin, Jianming. “Computation of Special Functions”, 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()