scipy.special.erfc¶
- scipy.special.erfc(x, out=None) = <ufunc 'erfc'>¶
互补误差函数,
1 - erf(x)
。- 参数
- xarray_like
实值或复值变元
- outndarray,可选
函数结果的可选输出数组
- 退货
- 标量或ndarray
互补误差函数的取值
参考文献
- 1
史蒂芬·G·约翰逊,Faddeeva W函数实现。http://ab-initio.mit.edu/Faddeeva
示例
>>> from scipy import special >>> import matplotlib.pyplot as plt >>> x = np.linspace(-3, 3) >>> plt.plot(x, special.erfc(x)) >>> plt.xlabel('$x$') >>> plt.ylabel('$erfc(x)$') >>> plt.show()