scipy.special.erfcinv

scipy.special.erfcinv(x, /, out=None, *, where=True, casting='same_kind', order='K', dtype=None, subok=True[, signature, extobj]) = <ufunc 'erfcinv'>

互补误差函数的逆。

计算互补误差函数的逆。

在复数域中,不存在满足ERFC(W)=z的唯一复数w,这表明真逆函数具有多值。当定义域限制为实数时,0<x<2时,存在唯一的实数满足erfc(erfcinv(X))=erfcinv(erfc(X))。

它与误差函数的逆erfcinv(1-x)=erfinv(X)有关

参数
yndarray

要在其上求值的参数。域: [0, 2]

退货
erfcinvndarray

y的ERFC的逆,逐元素

参见

erf

复变元的错误函数

erfc

互补误差函数, 1 - erf(x)

erfinv

误差函数的逆

示例

  1. 计算浮点数

>>> from scipy import special
>>> special.erfcinv(0.5)
0.4769362762044698
  1. 评估ndarray

>>> from scipy import special
>>> y = np.linspace(0.0, 2.0, num=11)
>>> special.erfcinv(y)
array([        inf,  0.9061938 ,  0.59511608,  0.37080716,  0.17914345,
       -0.        , -0.17914345, -0.37080716, -0.59511608, -0.9061938 ,
              -inf])