From 65e3f34649ec3b4773a6f75f2f048e3744946548 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Thu, 10 Jan 2019 23:05:52 +0100 Subject: [PATCH] export HalfInteger --- README.md | 3 +-- src/WignerSymbols.jl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3a4477a..06ad68f 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,7 @@ While the following function signatures are probably self-explanatory, you can q * `δ(j₁, j₂, j₃) -> ::Bool` * `Δ(T::Type{<:AbstractFloat} = Float64, j₁, j₂, j₃) -> ::T` -The package also defines the `HalfInteger` type that can be used to represent half-integer values. -Furthermore, the range operator `a:b` can be used to create ranges of `HalfInteger` values (a `HalfIntegerRange`). +The package also defines the `HalfInteger` type that can be used to represent half-integer values. Construct if as `HalfInteger(a::Real)` or `HalfInteger(numerator::Integer, denominator::Integer)`. Furthermore, the range operator `a:b` can be used to create ranges of `HalfInteger` values (a `HalfIntegerRange`). ## Implementation Largely based on reading the paper (but not the code): diff --git a/src/WignerSymbols.jl b/src/WignerSymbols.jl index 6db64dc..eeb6d3b 100644 --- a/src/WignerSymbols.jl +++ b/src/WignerSymbols.jl @@ -1,6 +1,6 @@ __precompile__(true) module WignerSymbols -export δ, Δ, clebschgordan, wigner3j, wigner6j, racahV, racahW +export δ, Δ, clebschgordan, wigner3j, wigner6j, racahV, racahW, HalfInteger using Base.GMP.MPZ