scipy.special.erfi

scipy.special.erfi(z, out=None) = <ufunc 'erfi'>

假想误差函数, -i erf(i z)

参数
zarray_like

实值或复值变元

outndarray,可选

函数结果的可选输出数组

退货
标量或ndarray

虚误差函数的值

参见

erf, erfc, erfcx, dawsn, wofz

注意事项

0.12.0 新版功能.

参考文献

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.erfi(x))
>>> plt.xlabel('$x$')
>>> plt.ylabel('$erfi(x)$')
>>> plt.show()
../../_images/scipy-special-erfi-1.png