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

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

Faddeeva function

Returns the value of the Faddeeva function for complex argument:

Parameters:

zarray_like

complex argument

outndarray, optional

Optional output array for the function results

Returns:

scalar or ndarray

Value of the Faddeeva function

References

Examples

import numpy as np from scipy import special import matplotlib.pyplot as plt

x = np.linspace(-3, 3) z = special.wofz(x)

plt.plot(x, z.real, label='wofz(x).real') plt.plot(x, z.imag, label='wofz(x).imag') plt.xlabel('$x$') plt.legend(framealpha=1, shadow=True) plt.grid(alpha=0.25) plt.show()

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