I need to evaluate EllipticK[m]
very close to 1. However, when I get too close to 1 the function defaults to the exact solution for 1 , which is ComplexInfinity
. I can enter a comparable number in Wolfram|Alpha and get both the exact and the numerical approximation, but nothing I have tried gets me that approximate number in Mathematica:
Wolfram|Alpha:
EllipticK[0.9999999999999999999999999999999999999999999999]
54.3458...
Mathematica:
EllipticK[0.9999999999999999999999999999999999999999999999]
ComplexInfinity
EllipticK[0.9999999999999999999999999999999999999999999999]//N
ComplexInfinity
I've tried various other combinations of precision manipulation as well, so far nothing has worked. Does anyone know how to override the exact answer?
Edit
I discovered half the solution immediately after posting. When I put a 0 at the end of the string of 9s, it will evaluate the decimal approximation. However, I don't know how to implement this for the purpose of, say, plotting the EllipticK
.
EllipticK[0.99999999999999999999999999999999999999
50]` $\endgroup$EllipticK[0.99999999999999999999999999999999999999`50]
$\endgroup$