Skip to content

Commit da04724

Browse files
authored
Test Angular momentum operator (#83)
* Test Angular momentum operator * Update Project.toml * Update Project.toml * Update Project.toml
1 parent 04704a8 commit da04724

File tree

2 files changed

+27
-11
lines changed

2 files changed

+27
-11
lines changed

Project.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2424
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2525

2626
[compat]
27-
ArrayLayouts = "0.6, 0.7"
27+
ArrayLayouts = "0.7"
2828
BandedMatrices = "0.16"
29-
BlockArrays = "0.14.1, 0.15"
29+
BlockArrays = "0.15"
3030
BlockBandedMatrices = "0.10.1"
31-
ClassicalOrthogonalPolynomials = "0.3.2"
32-
ContinuumArrays = "0.7.3"
31+
ClassicalOrthogonalPolynomials = "0.4"
32+
ContinuumArrays = "0.8"
3333
DomainSets = "0.4, 0.5"
34-
FastTransforms = "0.11, 0.12"
34+
FastTransforms = "0.12"
3535
FillArrays = "0.11"
36-
HarmonicOrthogonalPolynomials = "0.0.4, 0.0.5, 0.1"
36+
HarmonicOrthogonalPolynomials = "0.1"
3737
InfiniteArrays = "0.10"
3838
InfiniteLinearAlgebra = "0.5"
39-
LazyArrays = "0.21"
40-
LazyBandedMatrices = "0.5"
41-
QuasiArrays = "0.4, 0.5"
42-
SpecialFunctions = "0.10, 1"
43-
StaticArrays = "0.12, 1"
39+
LazyArrays = "0.21.5"
40+
LazyBandedMatrices = "0.5.8"
41+
QuasiArrays = "0.6"
42+
SpecialFunctions = "1"
43+
StaticArrays = "1"
4444
julia = "1.6"
4545

4646
[extras]

test/test_triangle.jl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,4 +317,20 @@ import MultivariateOrthogonalPolynomials: tri_forwardrecurrence, grid, TriangleR
317317
end
318318
end
319319
end
320+
321+
@testset "AngularMomentum" begin
322+
P = JacobiTriangle()
323+
= JacobiTriangle(1,1,1)
324+
xy = axes(P,1)
325+
x,y = first.(xy),last.(xy)
326+
∂ˣ = PartialDerivative{1}(xy)
327+
∂ʸ = PartialDerivative{2}(xy)
328+
L1 = x .* ∂ʸ
329+
L2 = y .* ∂ˣ
330+
L = x .* ∂ʸ - y .* ∂ˣ
331+
A =\ (L1 * P)
332+
B =\ (L2 * P)
333+
C =\ (L * P)
334+
@test C[1:10,1:10] A[1:10,1:10] - B[1:10,1:10]
335+
end
320336
end

0 commit comments

Comments
 (0)