scipy.special.itstruve0#

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

0 阶 Struve 函数的积分。

\[I = \int_0^x H_0(t)\,dt\]
参数:
x类数组

积分上限(浮点数)。

outndarray, 可选

可选的函数值输出数组

返回:
I标量或 ndarray

\(H_0\) 从 0 到 x 的积分。

另请参阅

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 itstruve0
>>> itstruve0(1.)
0.30109042670805547

通过为 x 提供一个数组来计算函数在多个点的值。

>>> points = np.array([1., 2., 3.5])
>>> itstruve0(points)
array([0.30109043, 1.01870116, 1.96804581])

绘制从 -20 到 20 的函数图像。

>>> import matplotlib.pyplot as plt
>>> x = np.linspace(-20., 20., 1000)
>>> istruve0_values = itstruve0(x)
>>> fig, ax = plt.subplots()
>>> ax.plot(x, istruve0_values)
>>> ax.set_xlabel(r'$x$')
>>> ax.set_ylabel(r'$\int_0^{x}H_0(t)\,dt$')
>>> plt.show()
../../_images/scipy-special-itstruve0-1.png