scipy.special.
ai_zeros#
- scipy.special.ai_zeros(nt)[原始碼]#
計算 Airy 函數 Ai 及其導數的 nt 個零點和值。
計算 Airy 函數 Ai(x) 的前 nt 個零點 a;Airy 函數導數 Ai’(x) 的前 nt 個零點 ap;對應的值 Ai(a’);以及對應的值 Ai’(a)。
- 參數:
- ntint
要計算的零點數量
- 回傳:
- andarray
Ai(x) 的前 nt 個零點
- apndarray
Ai’(x) 的前 nt 個零點
- aindarray
在 Ai’(x) 的前 nt 個零點評估的 Ai(x) 值
- aipndarray
在 Ai(x) 的前 nt 個零點評估的 Ai’(x) 值
參考文獻
[1]Zhang, Shanjie 和 Jin, Jianming. “Computation of Special Functions”, John Wiley and Sons, 1996. https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html
範例
>>> from scipy import special >>> a, ap, ai, aip = special.ai_zeros(3) >>> a array([-2.33810741, -4.08794944, -5.52055983]) >>> ap array([-1.01879297, -3.24819758, -4.82009921]) >>> ai array([ 0.53565666, -0.41901548, 0.38040647]) >>> aip array([ 0.70121082, -0.80311137, 0.86520403])