Skip to content

Commit 6eea74c

Browse files
committed
Update test_ultraspherical.jl
1 parent d280bda commit 6eea74c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/test_ultraspherical.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,16 @@ using ClassicalOrthogonalPolynomials: grammatrix
204204
@test (C \ diff(U,1))[1:10,1:10] == (C \ diff(U))[1:10,1:10]
205205
@test (C³ \ diff(U,2))[1:10,1:10] == (C³ \ diff(diff(U)))[1:10,1:10]
206206
end
207+
208+
@testset "ladder" begin
209+
λ = 3/4
210+
P = Jacobi-1/2-1/2)
211+
W = Jacobi-1-1/2-1-1/2)
212+
Q = Jacobi+1-1/2+1-1/2)
213+
D = Derivative(P)
214+
t,n = 0.3,5
215+
@test (D*P)[t,n+1] (n+2λ)/2 * Q[t,n] # L₁
216+
# 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]
218+
end
207219
end

0 commit comments

Comments
 (0)