Closed jagot closed 5 years ago
We should also ask @Jutho to export the HalfInteger
interface.
You mean a simple export HalfInteger
in WignerSymbols.jl? I am certainly fine with that.
Would you also consider some minor API additions? I have a version of your HalfInteger
with some updates in one of the PRs. I would be more than happy to prepare a PR against WignerSymbols.
HalfIntegerRange
type, mirroring UnitRange
, so that you could write e.g. HalfInteger(-10) : HalfInteger(10)
. Not sure if that is appropriate for WignerSymbols.HalfInteger(n) == n
not HalfInteger(n) == n // 2
. Yes I am open to such changes and would probably benefit from them as well. The most Julian choice for the constructor was also something I was wondering about.
In many places,
Rational
s are being used for angular momenta. These can be more efficiently represented byHalfInteger
from WignerSymbols.jl. E.gTerm
would simply be