Elliptic function - different definitions

  • Context: Graduate 
  • Thread starter Thread starter csopi
  • Start date Start date
  • Tags Tags
    Definitions Function
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 2K views
csopi
Messages
81
Reaction score
2
Elliptic function -- different definitions

Hi,

I have recently discovered, that the definition of the complete elliptic integral of the first kind in Wolfram Mathematica (EllipticK[m]) is different from the usual (K(m)), given in Abramowitz-Stegun.

Their domains are not the same. In Abramowitz-Stegun, K is defined for |m| < 1, however in Mathematica, the domain is -Infinity < m<1.

My question is, the following. How EllipticK[m] is related to K, when m < -1? Is it related at all?
 
on Phys.org
Thanks for the fast reply.

Yes, I have checked it, although I did not really understand it. For m > 1, EllipticK is complex, while for m < -1 it is real, and I cannot see, how they are related.

To be specific, my problem is that I am writing a numerical code in GSL, that uses elliptic functions. The formulas to be calculated numerically were derivedwith the help of Mathematica, so they contain EllipticK. The problem is, that (following Abramowitz) the GSL version of K(m) is defined only for |m| < 1, and when I'm passing a large negative argument to it (e.g. -4, that is a valid value for EllipticK), it dies with an out of domain error. So I need to express EllipticK[m] in terms of K.