I have a problem to check the validity of an algorithm I've implemented in C++ to compute the Jacobi elliptic function $\mathrm{sn}(u, k)$ (inspired and improved from Numerical Recipes 3rd edition). I would like to test my algorithm for $u=0.2$ and $k=0.5$. I obtain the following results:
- C++ (double precision): $\mathrm{sn}(0.2, 0.5) = 0.198345391214472$
- Maple: $\mathrm{sn}(0.2, 0.5) = 0.198345391214472$
- Wolfram Alpha: $\mathrm{sn}(0.2, 0.5) = 0.198021742981970$
My result is consistent with the result of Maple. But my big problem is that Maple and Wolfram Alpha do not give the same value...
So what is the exact value of the 15 first decimals of $\mathrm{sn}(0.2, 0.5)$ ?