I would like to calculate the Gauss Continued Fraction for this particular Hypergeometric function: \begin{equation} _{2}F_{1}\left( 1-\frac{1}{p}, \frac{1}{p}; 1+\frac{1}{p}; x^p \right) \end{equation} since it satisfies the transformation: \begin{equation} \frac{_{2}F_{1}\left(a+1, b; c+1; z \right)}{_{2}F_{1}\left(a, b; c; z \right)}=\frac{1}{1+\frac{\frac{(a-c)b}{c(c+1)}z}{1+\cdots}} \end{equation} for $b=c=-a=1/p$ and $z=x^p, p>1$. My target is to see whether I could get a good approximation for this function by using this transformation.

I have tried to find a build-in function in Mathematica to calculate this continued fraction, but it was not possible.

I would like to ask if there exists a library where I could possibly find this, or if you could help me write it down on my own.

  • $\begingroup$ there exists a package called HypExp by Maitre, in which an expansion around eps=1/p. Furthermore, there are serveral packages by RISC, which deal with hypergeometric summations. maybe there is something... not sure. $\endgroup$ – Armin May 4 '17 at 12:01
  • $\begingroup$ [...]expansion around eps=1/p might be possible. $\endgroup$ – Armin May 4 '17 at 12:03
  • $\begingroup$ MathematicalFunctionData["Hypergeometric2F1", "ContinuedFractionRepresentations"]? $\endgroup$ – Michael E2 May 5 '17 at 3:17

You can use this code to construct the continued fraction expansion to any given order:

          OddQ[n], -((a+k)(c-b+k))/((c+2k-1)(c+2k))]]/;n>0;


Give it a try. Just type, for example, "cfrac[4]". I haven't checked convergence properties for your case of interest.

  • $\begingroup$ Seems pretty good, thank you! I will try to check whether convergence holds. $\endgroup$ – Mitscaype May 11 '17 at 8:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.