I made some test calculations with the kleinj function. It does not work for some numbers near the real axis. e.g.
julia> kleinj(1+0.01im)
NaN + NaN*im
while kleinj(0.01im) works (both should be the same value). Another example
julia> kleinj(0.005025125628140614 + 0.001im )
NaN + NaN*im
while kleinj(0.005+ 0.001im ) produces a result. Plotting a color-coded phase plot of the function has visible errors near -1,0, and 1.
I made some test calculations with the kleinj function. It does not work for some numbers near the real axis. e.g.
julia> kleinj(1+0.01im)
NaN + NaN*im
while kleinj(0.01im) works (both should be the same value). Another example
julia> kleinj(0.005025125628140614 + 0.001im )
NaN + NaN*im
while kleinj(0.005+ 0.001im ) produces a result. Plotting a color-coded phase plot of the function has visible errors near -1,0, and 1.