scipy.special.itstruve0#
- scipy.special.itstruve0(x, out=None) = <ufunc 'itstruve0'>#
0 階 Struve 函數的積分。
\[I = \int_0^x H_0(t)\,dt\]- 參數:
- xarray_like
積分上限 (浮點數)。
- outndarray, optional
函數值的選用輸出陣列
- 返回:
- Iscalar or ndarray
\(H_0\) 從 0 到 x 的積分。
參見
struve
此函數積分的函數
註解
由 Shanjie Zhang 和 Jianming Jin [1] 建立的 Fortran 常式包裝器。
參考文獻
[1]Zhang, Shanjie and 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 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()