scipy.special.wofz#

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

Faddeeva 函数

返回复数自变量的 Faddeeva 函数的值

exp(-z**2) * erfc(-i*z)
参数:
z类似数组

复数自变量

outndarray,可选

函数结果的可选输出数组

返回:
标量或 ndarray

Faddeeva 函数的值

另请参阅

dawsn, erf, erfc, erfcx, erfi

引用

[1]

Steven G. Johnson, Faddeeva W 函数实现。 http://ab-initio.mit.edu/Faddeeva

示例

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