scipy.special.itmodstruve0#

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

order 0 的 modified Struve 函數的積分。

\[I = \int_0^x L_0(t)\,dt\]
參數:
xarray_like

積分上限 (float)。

outndarray, optional

函數值的選用性輸出陣列

返回:
Iscalar or ndarray

從 0 到 x\(L_0\) 積分。

參見

modstruve

此函數積分的 Modified Struve 函數

註解

由 Shanjie Zhang 和 Jianming Jin [1] 建立的 Fortran 常式包裝器。

參考文獻

[1]

Zhang, Shanjie 和 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 itmodstruve0
>>> itmodstruve0(1.)
0.3364726286440384

通過為 x 提供陣列,在多個點評估函數。

>>> points = np.array([1., 2., 3.5])
>>> itmodstruve0(points)
array([0.33647263, 1.588285  , 7.60382578])

繪製從 -10 到 10 的函數圖。

>>> import matplotlib.pyplot as plt
>>> x = np.linspace(-10., 10., 1000)
>>> itmodstruve0_values = itmodstruve0(x)
>>> fig, ax = plt.subplots()
>>> ax.plot(x, itmodstruve0_values)
>>> ax.set_xlabel(r'$x$')
>>> ax.set_ylabel(r'$\int_0^xL_0(t)\,dt$')
>>> plt.show()
../../_images/scipy-special-itmodstruve0-1.png