scipy.special.

erf_zeros#

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

计算第一象限中的前 nt 个零点,按绝对值排序。

其他象限中的零点可以通过使用对称性 erf(-z) = erf(z) 和 erf(conj(z)) = conj(erf(z)) 获得。

参数:
ntint

要计算的零点的数量

返回值:
erf 的零点的位置ndarray (复数)

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_zeros 返回的值,erf 是否(接近于)零

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