EllipticFunctions.jl icon indicating copy to clipboard operation
EllipticFunctions.jl copied to clipboard

Strange assertion error

Open EDiSalvo30 opened this issue 1 year ago • 2 comments

Hi I just downloaded your nice package and I am immediately running into trouble when trying to evaluate a simple computation.

[julia> EllipticFunctions.jtheta_ab(0.0,0.0,0,1.0*im)
ERROR: AssertionError: ArgumentError("Invalid `q`.")
Stacktrace:
 [1] jtheta_ab(a::Float64, b::Float64, z::Int64, q::ComplexF64)
   @ EllipticFunctions ~/.julia/packages/EllipticFunctions/SVjra/src/EllipticFunctions.jl:554
 [2] top-level scope
   @ REPL[8]:1

Any idea of what's going on? Thanks!

EDiSalvo30 avatar Jan 16 '24 13:01 EDiSalvo30

The final argument is q which must be strictly less than 1 in magnitude. Note that in the next release of the package this argument definition has been changed to to be tau, which must be complex with positive imaginary part. However, this change has not yet been released. If you wish, you may install the "master" branch to have this change in force.

simonp0420 avatar Jan 16 '24 18:01 simonp0420

Got it! Many thanks!

EDiSalvo30 avatar Jan 17 '24 13:01 EDiSalvo30