scipy.special.it2struve0#

scipy.special.it2struve0(x, out=None) = <ufunc 'it2struve0'>#

与 0 阶 Struve 函数相关的积分。

返回以下积分:

\[\int_x^\infty \frac{H_0(t)}{t}\,dt\]

其中 \(H_0\) 是 0 阶 Struve 函数。

参数:
x类数组

积分下限。

outndarray, 可选

用于函数值的可选输出数组

返回:
I标量或 ndarray

积分的值。

另请参见

struve

注意

由张善杰(Shanjie Zhang)和金建明(Jianming Jin)创建的 Fortran 例程的包装器 [1]

参考文献

[1]

张善杰(Shanjie Zhang)和金建明(Jianming Jin)。“特殊函数计算”,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 it2struve0
>>> it2struve0(1.)
0.9571973506383524

通过为 x 提供数组,在多个点评估函数。

>>> points = np.array([1., 2., 3.5])
>>> it2struve0(points)
array([0.95719735, 0.46909296, 0.10366042])

绘制从 -10 到 10 的函数图。

>>> import matplotlib.pyplot as plt
>>> x = np.linspace(-10., 10., 1000)
>>> it2struve0_values = it2struve0(x)
>>> fig, ax = plt.subplots()
>>> ax.plot(x, it2struve0_values)
>>> ax.set_xlabel(r'$x$')
>>> ax.set_ylabel(r'$\int_x^{\infty}\frac{H_0(t)}{t}\,dt$')
>>> plt.show()
../../_images/scipy-special-it2struve0-1.png