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 函數。
- 參數:
- xarray_like
積分下限。
- outndarray,選用
函數值的選用輸出陣列
- 回傳值:
- I純量或 ndarray
積分值。
參見
註解
由 Shanjie Zhang 和 Jianming Jin [1] 建立的 Fortran 常式包裝器。
參考文獻
[1]Zhang, Shanjie 和 Jin, Jianming。「特殊函數計算」,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()