scipy.special.erfi#
- scipy.special.erfi(z, out=None) = <ufunc 'erfi'>#
虛數誤差函數,
-i erf(i z)
。- 參數:
- zarray_like
實數或複數值引數
- outndarray,可選
函數結果的可選輸出陣列
- 返回:
- 純量或 ndarray
虛數誤差函數的值
註解
在 0.12.0 版本中新增。
參考文獻
[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) >>> plt.plot(x, special.erfi(x)) >>> plt.xlabel('$x$') >>> plt.ylabel('$erfi(x)$') >>> plt.show()