Dear virogr,
there might be a problem with the precision of elliptic123. I run the following code on 64bit linux version of Matlab:
K>> [~, K1]= elliptic123(pi/2, 1+2.*eps(0.5))
K1 =
K>> [~, K1]= elliptic123(pi/2, 1)
K1 =
K>> ellipticE(pi/2, 1+2.*eps(0.5))
ans =
K>> ellipticE(pi/2, 1)
ans =
Thanks!
Best wishes,
Jinchuan