Are there tricks to calcualte the complete elliptic integral the third kind fast?

65 Views Asked by At

I use matlab to work on some algorithm. I need to solve all three kinds complete elliptic integrals. I noticed that for the first and second kind, matlab funlction ellipke is very fast. However for ellipticPi function, it is very slow (I work with column vectors in 10k scale). I am wondering if there are any tricks that I can use to calculate the results faster, beside numerical methods.

Thanks.