-
Notifications
You must be signed in to change notification settings - Fork 4
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
The nome and tau
#13
Comments
Yes, the dilemma is clear. This is what NIST has to say about it: |
@simonp0420 I'm lost actually. We have the correct implementation for the nome. If |
I'm not sure I take your exact meaning, but your comment made me reflect on what the choice of branch means in terms of our computations. Consider the following numerical experiment:
Since Is this what you're referring to? |
So you mean that the theta functions depend on |
Yes the theta functions depend on tau only through q. You can see this by looking at the fundamental definitions of these functions on the NIST site. |
Ok. So in order to fix this error, is it enough to replace |
Yeah, that ought to do it! |
I haven't looked at all the other functions in the package, but if we change the theta functions to take q as an input rather than tau, then that would also do it for them. |
Ok thanks. Today I implemented the Dixon elliptic functions in terms of the Jacobi elliptic functions (sn, etc.) and there were some errors, I'm wondering whether this is due to these possibly wrong calculations of the theta functions. Will check. |
I'm impressed that your beautiful graphics are also useful for debugging! |
One of our "primitive" functions used to evaluate the Jacobi theta functions is defined in terms of
tau
. The nome isq = exp(1im * pi * tau)
. There's a consistency issue: if one starts withtau
, then calculatesq
with this formula, then calculatestau = log(q) / pi / 1im
, then we do not always find the original value oftau
(if its imaginary part does not belong to(0, 2pi)
I think). And this can lead to different values of the Jacobi functions.Should we ban
tau
as an argument of the Jacobi theta functions, and usez, q
as arguments instead? That was already suggested by @simonp0420.@simonp0420 am I clear? Not sure.
The text was updated successfully, but these errors were encountered: