1. The problem statement, all variables and given/known data I need to write a program (or use one that's already written) to compute the elliptic integral of the 1st and 2nd kind - ie F and E respectively. Please note that this is NOT a homework assignment. Thus, I do not actually need to write the code, and will be happy to use something that's already written. (In fact, I would be surprised if this hasn't been done quite a lot already, I just can't seem to find any code/library)! 2. Relevant equations No equations. I looked to see if I could find this code already implemented in C or Fortran, and no luck thus far. So, I decided to try and see if I could get my own code to work via Numerical Recipes in C. I wrote the code, and the code is giving me a value of 2, always. Clearly it's not working. 3. The attempt at a solution I will be happy to e-mail someone my code if he/she is willing to look at it (it's written in C++). Consequently, if anyone knows if this is already implemented in some library, please let me know. Also, please note that I am a beginner programmer, so I apologize ahead of time if my questions are "simple"! Thank you.