math.legendre
code:Lua
y = textmodule.math.legendre(l, x)
モジュール
引数
table:_
変数 型 概要
1 l number 処理する数値
2 x number 処理する数値
返り値
table:_
変数 型 概要
1 y number 処理された数値
概要
ルジャンドル多項式を計算する。
$ y=P_l(x)=\frac{1}{2^ll!}\frac{d^l}{dx^l}(x^2-1)^l \qquad (|x|\leq1)
n >= 128の場合、関数の結果は未定義である。