本文簡要介紹 python 語言中 scipy.special.hyp1f1
的用法。
用法:
scipy.special.hyp1f1(a, b, x, out=None) = <ufunc 'hyp1f1'>#
合流超幾何函數 1F1。
合流超幾何函數由級數定義
有關詳細信息,請參閱 [dlmf]。這裏
poch
。 是Pochhammer符號;參見- a, b: array_like
實際參數
- x: array_like
真實或複雜的論點
- out: ndarray,可選
函數結果的可選輸出數組
- 標量或 ndarray
匯合超幾何函數的值
參數 ::
返回 ::
參考:
[dlmf]NIST 數學函數數字 Library https://dlmf.nist.gov/13.2#E2
例子:
>>> import numpy as np >>> import scipy.special as sc
當 x 為零時為 1:
>>> sc.hyp1f1(0.5, 0.5, 0) 1.0
當 b 為非正整數時,它是奇異的。
>>> sc.hyp1f1(0.5, -1, 0) inf
當 a 為非正整數時,它是多項式。
>>> a, b, x = -1, 0.5, np.array([1.0, 2.0, 3.0, 4.0]) >>> sc.hyp1f1(a, b, x) array([-1., -3., -5., -7.]) >>> 1 + (a / b) * x array([-1., -3., -5., -7.])
當 a = b 時,它簡化為 index 函數。
>>> sc.hyp1f1(2, 2, [1, 2, 3, 4]) array([ 2.71828183, 7.3890561 , 20.08553692, 54.59815003]) >>> np.exp([1, 2, 3, 4]) array([ 2.71828183, 7.3890561 , 20.08553692, 54.59815003])
相關用法
- Python SciPy special.hyp2f1用法及代碼示例
- Python SciPy special.hyperu用法及代碼示例
- Python SciPy special.hyp0f1用法及代碼示例
- Python SciPy special.h1vp用法及代碼示例
- Python SciPy special.hankel1e用法及代碼示例
- Python SciPy special.hankel2e用法及代碼示例
- Python SciPy special.huber用法及代碼示例
- Python SciPy special.h2vp用法及代碼示例
- Python SciPy special.hermite用法及代碼示例
- 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用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.special.hyp1f1。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。