scipy.special.erfinv¶
- scipy.special.erfinv(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'erfinv'>¶
误差函数的倒数。
计算误差函数的逆。
在复数域中,不存在唯一的满足ERF(W)=z的复数w,这表明一个真正的反函数是多值的。当定义域限制为实数时,-1<x<1,存在唯一的实数满足ERF(erfinv(X))=x。
- 参数
- yndarray
要在其上求值的参数。域: [-1, 1]
- 退货
- erfinvndarray
y的ERF的逆,按元素表示)
示例
计算浮点数
>>> from scipy import special >>> special.erfinv(0.5) 0.4769362762044698
评估ndarray
>>> from scipy import special >>> y = np.linspace(-1.0, 1.0, num=10) >>> special.erfinv(y) array([ -inf, -0.86312307, -0.5407314 , -0.30457019, -0.0987901 , 0.0987901 , 0.30457019, 0.5407314 , 0.86312307, inf])