I was calculating a problem and came across elliptic integrals (complete, first and second kind) no problem here as I have dealt with these before. Once I achieved my final solution I moved the answer over into C++ and here I had an error pop up. So I went back and looked at my argument, $k$, inside of my elliptic integral function and there were times when it became smaller than -1.
If you plot the elliptic complete functions you will see that they can take values less than -1. My understanding, and what I've read concludes that the argument that goes inside must be $|k| < 1$ which can be understood just by looking at part of the integral for both first and second, $$\sqrt{1-k^2 \sin\theta}.$$
So my question is, why am I allowed to have $k<-1$? (I'm hoping that a complete understanding of this will help my overall problem).
Thanks!