DEPRECATED in favour of https://github.com/Jutho/WignerSymbols.jl
Julia wrapper for the WIGXJPF library used to calculate Wigner 3j, 6j and 9j symbols. Since the original library is release under the GPLv3 license, so is this Julia wrapper.
The original library expects all arguments to multiplied by two. For instance, to calculate the 3j symbol (1 1 0; 0 0 0) = -1/√3, one would say
using WIGXJPF
wig3jj(2, 2, 0,
0, 0, 0)
-0.5773502691896258
This Julia library also provides a wrapper which performs the multiplication by two under the hood:
wig3j(1, 1, 0,
0, 0, 0)
-0.5773502691896258
It also works for rational arguments:
wig3j(1//2, 1//2, 0,
1//2, -1//2, 0)
0.7071067811865475