mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-05 15:42:15 -07:00
attempt to fix test regression in older julia versions
This commit is contained in:
parent
e21df477fc
commit
8c99826160
2 changed files with 2 additions and 2 deletions
|
|
@ -286,7 +286,7 @@ function _wigner9j(T::Type{<:Real}, j₁::HalfInteger, j₂::HalfInteger, j₃::
|
||||||
return m * _convert(T, s) * convert(T, signedroot(r))
|
return m * _convert(T, s) * convert(T, signedroot(r))
|
||||||
end
|
end
|
||||||
|
|
||||||
# canonicalized entries
|
# canonicalized entries (m is a restoring sign factor)
|
||||||
j₁c, j₂c, j₃c, j₄c, j₅c, j₆c, j₇c, j₈c, j₉c = k
|
j₁c, j₂c, j₃c, j₄c, j₅c, j₆c, j₇c, j₈c, j₉c = k
|
||||||
|
|
||||||
# order irrelevant: product remains the same
|
# order irrelevant: product remains the same
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ end
|
||||||
js = rand(smalljlist, 9)
|
js = rand(smalljlist, 9)
|
||||||
|
|
||||||
debug |= !(@test(wigner9j(js...) ≈ sum(largejlist) do x # lazy choice for range of this sum, but good enough
|
debug |= !(@test(wigner9j(js...) ≈ sum(largejlist) do x # lazy choice for range of this sum, but good enough
|
||||||
(iseven(2x) ? (2x + 1) : -(2x + 1)) *
|
(iseven(Int(2x)) ? (2x + 1) : -(2x + 1)) *
|
||||||
wigner6j(js[1], js[4], js[7],
|
wigner6j(js[1], js[4], js[7],
|
||||||
js[8], js[9], x ) *
|
js[8], js[9], x ) *
|
||||||
wigner6j(js[2], js[5], js[8],
|
wigner6j(js[2], js[5], js[8],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue