Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange assertion error #35

Open
EDiSalvo30 opened this issue Jan 16, 2024 · 2 comments
Open

Strange assertion error #35

EDiSalvo30 opened this issue Jan 16, 2024 · 2 comments

Comments

@EDiSalvo30
Copy link

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!

@simonp0420
Copy link
Contributor

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.

@EDiSalvo30
Copy link
Author

Got it! Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants