@@ -210,10 +210,29 @@ using ClassicalOrthogonalPolynomials: grammatrix
210210 P = Jacobi (λ- 1 / 2 ,λ- 1 / 2 )
211211 W = Jacobi (λ- 1 - 1 / 2 ,λ- 1 - 1 / 2 )
212212 Q = Jacobi (λ+ 1 - 1 / 2 ,λ+ 1 - 1 / 2 )
213+ # a+ b = 2λ-1
213214 D = Derivative (P)
214- t,n = 0.3 ,5
215+ x,n = 0.3 ,5
216+ # L₁
215217 @test (D* P)[t,n+ 1 ] ≈ (n+ 2 λ)/ 2 * Q[t,n] # L₁
216218 # L₃L₂
217- - (JacobiWeight (- (a+ b+ n),0 ) .* (D * (JacobiWeight (a+ b+ n+ 1 ,- (a+ b+ n)) .* D * (JacobiWeight (0 ,a+ b+ n+ 1 ) .* P))))[t,n+ 1 ]
219+ @test - (JacobiWeight (- (2 λ+ n),0 ) .* (D * (JacobiWeight (2 λ+ n+ 1 ,- (2 λ+ n- 1 )) .* D * (JacobiWeight (0 ,2 λ+ n) .* P))))[x,n+ 1 ] ≈
220+ (n + 2 λ)* (1 + n + 2 λ) * P[x,n+ 1 ] + 2 x* (1 + n+ 2 λ)* diff (P)[x,n+ 1 ] + (x^ 2 - 1 ) * diff (P,2 )[x,n+ 1 ] ≈ (n+ 2 λ)* (n+ 2 λ+ 1 )* Q[x,n+ 1 ]
221+ # L₄'L₃ == L₅'L₂
222+ @test - (JacobiWeight (0 ,n+ 1 ) .* (D * (JacobiWeight (- (2 λ+ n- 1 ),- n) .* D * (JacobiWeight (2 λ+ n,0 ) .* P))))[x,n+ 1 ] ≈
223+ (JacobiWeight (n+ 1 ,0 ) .* (D * (JacobiWeight (- n,- (2 λ+ n- 1 )) .* D * (JacobiWeight (0 ,2 λ+ n) .* P))))[x,n+ 1 ] ≈
224+ - n * (n + 2 λ) * P[x,n+ 1 ] + (1 + 2 n + x + 2 λ + 2 x* λ)* diff (P)[x,n+ 1 ] + (x^ 2 - 1 ) * diff (P,2 )[x,n+ 1 ] ≈
225+ n * (n + 2 λ) * P[x,n+ 1 ] + (1 + 2 n - x + 2 λ - 2 x* λ)* diff (P)[x,n+ 1 ] + (1 - x^ 2 ) * diff (P,2 )[x,n+ 1 ] ≈ (n+ 2 λ)* (n+ λ+ 1 / 2 )* Q[x,n]
226+ # L₅'L₄' == L₄'L₅'
227+ @test (JacobiWeight (n,0 ) .* (D * (JacobiWeight (1 - n,n+ 1 ) .* D * (JacobiWeight (0 ,- n) .* P))))[x,n+ 1 ] ≈
228+ (JacobiWeight (0 ,n) .* (D * (JacobiWeight (n+ 1 ,1 - n) .* D * (JacobiWeight (- n,0 ) .* P))))[x,n+ 1 ] ≈
229+ - n * (n - 1 ) * P[x,n+ 1 ] + 2 x * (n- 1 )* diff (P)[x,n+ 1 ] - (x^ 2 - 1 ) * diff (P,2 )[x,n+ 1 ] ≈
230+ (n+ λ- 1 / 2 )^ 2 * Q[x,n- 1 ]
231+
232+ P = Ultraspherical (λ)
233+ Q = Ultraspherical (λ+ 1 )
234+ # L₃L₂
235+ @test (n + 2 λ)* (1 + n + 2 λ) * P[t,n+ 1 ] + 2 t* (1 + n+ 2 λ)* diff (P)[t,n+ 1 ] + (t^ 2 - 1 ) * diff (P,2 )[t,n+ 1 ] ≈ 2 λ* (1 + 2 n + 2 λ)Q[t,n+ 1 ]
236+
218237 end
219238end
0 commit comments