Spherical Harmonics Library for Delphi.
-
$P_n^m(x)$ :Associated Legendre functions (ALFs) -
$\tilde{P}_n^m(x)$ :Normalized Associated Legendre functions (nALFs)
-
$\overline{P}_n^m(x)$ :Fully Normalized Associated Legendre functions (fnALFs)
ルジャンドル陪関数(Associated Legendre polynomials)は、ルジャンドル陪微分方程式(Associated Legendre Differential Equation):
の
0 | 0 |
1 | 0 | |
1 | 1 |
2 | 0 | |
2 | 1 | |
2 | 2 |
3 | 0 | |
3 | 1 | |
3 | 2 | |
3 | 3 |
4 | 0 | |
4 | 1 | |
4 | 2 | |
4 | 3 | |
4 | 4 |
5 | 0 | |
5 | 1 | |
5 | 2 | |
5 | 3 | |
5 | 4 | |
5 | 5 |
6 | 0 | |
6 | 1 | |
6 | 2 | |
6 | 3 | |
6 | 4 | |
6 | 5 | |
6 | 6 |
7 | 0 | |
7 | 1 | |
7 | 2 | |
7 | 3 | |
7 | 4 | |
7 | 5 | |
7 | 6 | |
7 | 7 |
8 | 0 | |
8 | 1 | |
8 | 2 | |
8 | 3 | |
8 | 4 | |
8 | 5 | |
8 | 6 | |
8 | 7 | |
8 | 8 |
Delphi (Object Pascal)
function ALFsPNN( const N:Integer; const X:Double ) :Double; var S :Double; I :Integer; begin S := Sqrt( 1 - Sqr( X ) ); Result := 1; // N = 0 for I := 1 to N do Result := -Result * ( 2 * I - 1 ) * S; end;
Delphi (Object Pascal)
function NALFsPNN( const N:Integer; const X:Double ) :Double; var S :Double; I :Integer; begin S := Sqrt( 1 - Sqr( X ) ); Result := 1/Sqrt(2); // N = 0 for I := 1 to N do Result := -Result * Sqrt( ( 2 * N + 1 ) / ( 2 * N ) ) * S; end;
Delphi (Object Pascal)
0 1 2 M 0 (P00)--P01--(P02) | | | 1 P10---P11---P12 | | | 2 (P20)--P21--[P22] N
function NALFsPNM22( const N,M:Integer; const P00,P02,P20:Double ) :Double; var A00, A02, A20 :Double; begin A00 := Sqrt( ( ( 2 * N + 1 ) * ( N + M - 3 ) * ( N + M - 2 ) ) / ( ( 2 * N - 3 ) * ( N + M - 1 ) * ( N + M ) ) ); A02 := Sqrt( ( ( 2 * N + 1 ) * ( N - M - 1 ) * ( N - M ) ) / ( ( 2 * N - 3 ) * ( N + M - 1 ) * ( N + M ) ) ); A20 := Sqrt( ( ( N - M + 1 ) * ( N - M + 2 ) ) / ( ( N + M - 1 ) * ( N + M ) ) ); Result := A00 * P00 + A02 * P02 - A20 * P20; end;
332 | 333 | 334 | 335 | 336 |
---|---|---|---|---|
2002 🟩 A unified approach to the Clenshaw summation and the recursive computation of very high degree and order fully normalised associated Legendre functions
- 地球流体電脳倶楽部:GFD-DENNOU Club
- 惑星科学研究センター:Center for Planetary Science
- 03.15・ルジャンドル陪函数の計算手法の比較
- 11.02・地球流体データ解析・数値計算ワークショップ