Previous topic

scipy.special.erfcx

Next topic

scipy.special.erfinv

scipy.special.erfi

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

Imaginary error function, -i erf(i z).

See also

erf, erfc, erfcx, dawsn, wofz

Notes

New in version 0.12.0.

References

[R355]Steven G. Johnson, Faddeeva W function implementation. http://ab-initio.mit.edu/Faddeeva

Examples

>>> 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()

(Source code)

../_images/scipy-special-erfi-1.png