scipy.special.erfi — SciPy v1.15.2 Manual (original) (raw)

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

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

Parameters:

zarray_like

Real or complex valued argument

outndarray, optional

Optional output array for the function results

Returns:

scalar or ndarray

Values of the imaginary error function

Notes

Added in version 0.12.0.

References

Examples

import numpy as np 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