本文簡要介紹 python 語言中 scipy.special.euler
的用法。
用法:
scipy.special.euler(n)#
歐拉數 E(0), E(1), ..., E(n)。
歐拉數 [1] 也稱為割行數。
因為
euler(n)
返回浮點值,它不給出大的精確值n.第一個不精確的值是 E(22)。- n: int
要返回的歐拉數的最高索引。
- ndarray
歐拉數 [E(0), E(1), ..., E(n)]。包括全為零的奇數歐拉數。
參數 ::
返回 ::
參考:
[1]序列 A122045,On-Line 整數序列百科全書,https://oeis.org/A122045
[2]張善傑和金建明。 “特殊函數的計算”,John Wiley and Sons,1996 年。https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html
例子:
>>> import numpy as np >>> from scipy.special import euler >>> euler(6) array([ 1., 0., -1., 0., 5., 0., -61.])
>>> euler(13).astype(np.int64) array([ 1, 0, -1, 0, 5, 0, -61, 0, 1385, 0, -50521, 0, 2702765, 0])
>>> euler(22)[-1] # Exact value of E(22) is -69348874393137901. -69348874393137976.0
相關用法
- Python SciPy special.exp1用法及代碼示例
- Python SciPy special.expn用法及代碼示例
- Python SciPy special.ellip_harm_2用法及代碼示例
- Python SciPy special.expit用法及代碼示例
- Python SciPy special.expm1用法及代碼示例
- Python SciPy special.ellip_normal用法及代碼示例
- Python SciPy special.erfinv用法及代碼示例
- Python SciPy special.erf用法及代碼示例
- Python SciPy special.ellipj用法及代碼示例
- Python SciPy special.erf_zeros用法及代碼示例
- Python SciPy special.erfi用法及代碼示例
- Python SciPy special.erfc用法及代碼示例
- Python SciPy special.eval_legendre用法及代碼示例
- Python SciPy special.erfcx用法及代碼示例
- Python SciPy special.expi用法及代碼示例
- Python SciPy special.ellipe用法及代碼示例
- Python SciPy special.exp10用法及代碼示例
- Python SciPy special.exp2用法及代碼示例
- Python SciPy special.eval_chebyc用法及代碼示例
- Python SciPy special.erfcinv用法及代碼示例
- Python SciPy special.elliprd用法及代碼示例
- Python SciPy special.eval_chebys用法及代碼示例
- Python SciPy special.exprel用法及代碼示例
- Python SciPy special.errstate用法及代碼示例
- Python SciPy special.ellip_harm用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.special.euler。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。