Skip to content

Commit d239226

Browse files
committed
Update test_hermite.jl
1 parent 36f0e65 commit d239226

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_hermite.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ import DomainSets: ℝ
44

55
@testset "Hermite" begin
66
H = Hermite()
7+
w = HermiteWeight()
8+
79
@test axes(H) == (Inclusion(ℝ), oneto(∞))
810
x = axes(H,1)
911
@test H[0.1,1:4] [1,2*0.1,4*0.1^2-2,8*0.1^3-12*0.1]
12+
@test w[0.1] exp(-0.1^2)
1013

1114
X = jacobimatrix(H)
1215
@test 0.1 * H[0.1,1:10]' H[0.1,1:11]'*X[1:11,1:10]
1316

17+
@test (H'*(w .* H))[1,1] sqrt(π)
18+
@test (H'*(w .* H))[2,2] 2sqrt(π)
19+
@test (H'*(w .* H))[3,3] 8sqrt(π)
20+
1421
D = Derivative(x)
1522
@test (D*H)[0.1,1:4] [0,2,8*0.1,24*0.1^2-12]
1623
end

0 commit comments

Comments
 (0)