I am calculating the incomplete elliptic integral of the third kind in Mathematica 11.3 using EllipticPi. Since my range of phi goes beyond Pi/2 I tested my calculations before and realised that Mathematica evaluates EllipticPi[3,3*Pi/4,0.6] as EllipticPi[3,3*Pi/4-Pi,0.6]. However, if phi=m*Pi/2, where $m \in \{1,2,3,4,5,6,\dots\}$, I always obtain the correct result
EllipticPi[3,m*Pi/2,0.6]=m*EllipticPi[3,Pi/2,0.6]. So I would like to ask if somebody could confirm that this is a bug (which I strongly suspect) or Mathematica simply uses a different way of calculating EllipticPi?
Asked
Active
Viewed 209 times
5
Szabolcs
- 234,956
- 30
- 623
- 1,263
Torben Frost
- 51
- 2
EllipticPi[]admittedly has not a few branch cut problems, but for $n > 1$ and $0<m<1$ there is the quasiperiodicity relationEllipticPi[n, z, m] == (-1)^Round[Mod[z + π/2, π]/π - 1/2] EllipticPi[n, Mod[z + π/2, π] - π/2, m] + 2 Round[Mod[z + π/2, π]/π - 1/2] EllipticPi[n, m]. Exactly what "correct result(s)" did you have in mind? – J. M.'s missing motivation Mar 23 '20 at 04:47With[{n = 3, z = 3 π/2 + π/6, m = 3/5}, N[{EllipticPi[n, z, m], (-1)^Round[Mod[z + π/2, π]/π - 1/2] EllipticPi[n, Mod[z + π/2, π] - π/2, m] + 2 Round[Mod[z + π/2, π]/π - 1/2]}, 20]]. Altho these two expressions agree, you claim that there is a missing4 EllipticPi[n, m]additional term. Did I get it? – J. M.'s missing motivation Mar 27 '20 at 13:49