本文簡要介紹 python 語言中 scipy.special.fresnel
的用法。
用法:
scipy.special.fresnel(z, out=None) = <ufunc 'fresnel'>#
菲涅耳積分。
菲涅耳積分定義為
有關詳細信息,請參閱 [dlmf]。
- z: array_like
實值或複值參數
- out: ndarray 的 2 元組,可選
函數結果的可選輸出數組
- S, C: 標量或 ndarray 的 2 元組
菲涅耳積分的值
參數 ::
返回 ::
參考:
[dlmf]NIST 數學函數數字 Library https://dlmf.nist.gov/7.2#iii
例子:
>>> import numpy as np >>> import scipy.special as sc
隨著 z 沿實軸趨於無窮大,S 和 C 收斂到 0.5。
>>> S, C = sc.fresnel([0.1, 1, 10, 100, np.inf]) >>> S array([0.00052359, 0.43825915, 0.46816998, 0.4968169 , 0.5 ]) >>> C array([0.09999753, 0.7798934 , 0.49989869, 0.4999999 , 0.5 ])
它們與錯誤函數
erf
相關。>>> z = np.array([1, 2, 3, 4]) >>> zeta = 0.5 * np.sqrt(np.pi) * (1 - 1j) * z >>> S, C = sc.fresnel(z) >>> C + 1j*S array([0.7798934 +0.43825915j, 0.48825341+0.34341568j, 0.60572079+0.496313j , 0.49842603+0.42051575j]) >>> 0.5 * (1 + 1j) * sc.erf(zeta) array([0.7798934 +0.43825915j, 0.48825341+0.34341568j, 0.60572079+0.496313j , 0.49842603+0.42051575j])
相關用法
- Python SciPy special.fdtridfd用法及代碼示例
- Python SciPy special.fdtrc用法及代碼示例
- Python SciPy special.factorial用法及代碼示例
- Python SciPy special.fdtr用法及代碼示例
- Python SciPy special.factorial2用法及代碼示例
- Python SciPy special.factorialk用法及代碼示例
- Python SciPy special.fdtri用法及代碼示例
- Python SciPy special.exp1用法及代碼示例
- Python SciPy special.expn用法及代碼示例
- Python SciPy special.ncfdtri用法及代碼示例
- Python SciPy special.gamma用法及代碼示例
- Python SciPy special.y1用法及代碼示例
- Python SciPy special.y0用法及代碼示例
- Python SciPy special.ellip_harm_2用法及代碼示例
- Python SciPy special.i1e用法及代碼示例
- Python SciPy special.smirnovi用法及代碼示例
- Python SciPy special.ker用法及代碼示例
- Python SciPy special.ynp_zeros用法及代碼示例
- Python SciPy special.k0e用法及代碼示例
- Python SciPy special.j1用法及代碼示例
- Python SciPy special.logsumexp用法及代碼示例
- Python SciPy special.expit用法及代碼示例
- Python SciPy special.polygamma用法及代碼示例
- Python SciPy special.nbdtrik用法及代碼示例
- Python SciPy special.nbdtrin用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.special.fresnel。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。