mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-13 02:02:14 -07:00
fix bug in delta
This commit is contained in:
parent
f647d8948b
commit
e56bea0cf9
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
__precompile__(false)
|
||||||
module WignerSymbols
|
module WignerSymbols
|
||||||
export δ, Δ, clebschgordan, wigner3j, wigner6j, racahV, racahW
|
export δ, Δ, clebschgordan, wigner3j, wigner6j, racahV, racahW
|
||||||
|
|
||||||
|
|
@ -19,6 +20,7 @@ function δ(j₁, j₂, j₃)
|
||||||
j₃ <= j₁ + j₂ || return false
|
j₃ <= j₁ + j₂ || return false
|
||||||
j₁ <= j₂ + j₃ || return false
|
j₁ <= j₂ + j₃ || return false
|
||||||
j₂ <= j₃ + j₁ || return false
|
j₂ <= j₃ + j₁ || return false
|
||||||
|
isinteger(j₁+j₂+j₃) || return false
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue