scipy.special.

erf_zeros#

scipy.special.erf_zeros(nt)[source]#

計算第一象限中的前 nt 個零點,依絕對值排序。

其他象限中的零點可以透過使用對稱性 erf(-z) = erf(z) 和 erf(conj(z)) = conj(erf(z)) 獲得。

參數:
ntint

要計算的零點數量

返回:
erf 的零點位置ndarray (complex)

複數值,在此值 erf(z) 為零

參考文獻

[1]

Zhang, Shanjie and Jin, Jianming. “Computation of Special Functions”, John Wiley and Sons, 1996. https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html

範例

>>> from scipy import special
>>> special.erf_zeros(1)
array([1.45061616+1.880943j])

檢查 erf 對於 erf_zeros 返回的值是否(接近)零

>>> special.erf(special.erf_zeros(1))
array([4.95159469e-14-1.16407394e-16j])