scipy.special.it2j0y0#
- scipy.special.it2j0y0(x, out=None) = <ufunc 'it2j0y0'>#
与 0 阶第一类贝塞尔函数相关的积分。
计算积分
\[\begin{split}\int_0^x \frac{1 - J_0(t)}{t} dt \\ \int_x^\infty \frac{Y_0(t)}{t} dt.\end{split}\]有关更多 \(J_0\) 和 \(Y_0\) 内容,请参见
j0
和y0
。参考
[1]S. 张与 J.M. 金,“特殊函数计算”,威利 1996
示例
在一处评估函数。
>>> from scipy.special import it2j0y0 >>> int_j, int_y = it2j0y0(1.) >>> int_j, int_y (0.12116524699506871, 0.39527290169929336)
在多处评估函数。
>>> import numpy as np >>> points = np.array([0.5, 1.5, 3.]) >>> int_j, int_y = it2j0y0(points) >>> int_j, int_y (array([0.03100699, 0.26227724, 0.85614669]), array([ 0.26968854, 0.29769696, -0.02987272]))
绘制 0 到 10 的函数图像。
>>> import matplotlib.pyplot as plt >>> fig, ax = plt.subplots() >>> x = np.linspace(0., 10., 1000) >>> int_j, int_y = it2j0y0(x) >>> ax.plot(x, int_j, label=r"$\int_0^x \frac{1-J_0(t)}{t}\,dt$") >>> ax.plot(x, int_y, label=r"$\int_x^{\infty} \frac{Y_0(t)}{t}\,dt$") >>> ax.legend() >>> ax.set_ylim(-2.5, 2.5) >>> plt.show()