mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-13 02:02:14 -07:00
Fix argument order in clebschgordan docs.
This commit is contained in:
parent
dd75309fe6
commit
9350aae469
2 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ Now that it is register, install via `Pkg.add("WignerSymbols")`.
|
||||||
While the following function signatures are probably self-explanatory, you can query help for them in the Julia REPL to get further details.
|
While the following function signatures are probably self-explanatory, you can query help for them in the Julia REPL to get further details.
|
||||||
* `wigner3j(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = -m₂-m₁) -> ::T`
|
* `wigner3j(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = -m₂-m₁) -> ::T`
|
||||||
* `wigner6j(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, j₄, j₅, j₆) -> ::T`
|
* `wigner6j(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, j₄, j₅, j₆) -> ::T`
|
||||||
* `clebschgordan(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = m₁+m₂) -> ::T`
|
* `clebschgordan(T::Type{<:AbstractFloat} = Float64, j₁, m₁, j₂, m₂, j₃, m₃ = m₁+m₂) -> ::T`
|
||||||
* `racahV(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = -m₁-m₂) -> ::T`
|
* `racahV(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = -m₁-m₂) -> ::T`
|
||||||
* `racahW(T::Type{<:AbstractFloat} = Float64, j₁, j₂, J, j₃, J₁₂, J₂₃) -> ::T`
|
* `racahW(T::Type{<:AbstractFloat} = Float64, j₁, j₂, J, j₃, J₁₂, J₂₃) -> ::T`
|
||||||
* `δ(j₁, j₂, j₃) -> ::Bool`
|
* `δ(j₁, j₂, j₃) -> ::Bool`
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ wigner3j(j₁, j₂, j₃, m₁, m₂, m₃ = -m₁-m₂) = wigner3j(Float64, j
|
||||||
function wigner3j(T::Type{<:AbstractFloat}, j₁, j₂, j₃, m₁, m₂, m₃ = -m₁-m₂)
|
function wigner3j(T::Type{<:AbstractFloat}, j₁, j₂, j₃, m₁, m₂, m₃ = -m₁-m₂)
|
||||||
# check angular momenta
|
# check angular momenta
|
||||||
for (jᵢ,mᵢ) in ((j₁, m₁), (j₂, m₂), (j₃, m₃))
|
for (jᵢ,mᵢ) in ((j₁, m₁), (j₂, m₂), (j₃, m₃))
|
||||||
ϵ(jᵢ, mᵢ) || throw(DomainError("invalid (jᵢ, mᵢ)", (jᵢ, mᵢ) ))
|
ϵ(jᵢ, mᵢ) || throw(DomainError((jᵢ, mᵢ), "invalid combination (jᵢ, mᵢ)"))
|
||||||
end
|
end
|
||||||
# check triangle condition and m₁+m₂+m₃ == 0
|
# check triangle condition and m₁+m₂+m₃ == 0
|
||||||
if !δ(j₁, j₂, j₃) || !iszero(m₁+m₂+m₃)
|
if !δ(j₁, j₂, j₃) || !iszero(m₁+m₂+m₃)
|
||||||
|
|
@ -111,7 +111,7 @@ function wigner3j(T::Type{<:AbstractFloat}, j₁, j₂, j₃, m₁, m₂, m₃ =
|
||||||
end
|
end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
clebschgordan(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃, m₁, m₂, m₃ = m₁+m₂) -> ::T
|
clebschgordan(T::Type{<:AbstractFloat} = Float64, j₁, m₁, j₂, m₂, j₃, m₃ = m₁+m₂) -> ::T
|
||||||
|
|
||||||
Compute the value of the Clebsch-Gordan coefficient <j₁, m₁; j₂, m₂ | j₃, m₃ >
|
Compute the value of the Clebsch-Gordan coefficient <j₁, m₁; j₂, m₂ | j₃, m₃ >
|
||||||
as a type `T` floating point number. By default, `T = Float64` and `m₃ = m₁+m₂`.
|
as a type `T` floating point number. By default, `T = Float64` and `m₃ = m₁+m₂`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue