I want to evaluate accurately $f_n(x)={}_2F_1(-n, 1-x; 2; 2)$, where ${}_2F_1$ is the Gauss hypergeometric function. I am interested in the case with $x\in(0,2)$ and $n$ a natural number as large as possible. Fixed $n$, if one expands $f_n(x)$, it seems to consist of only positive coefficients (I don't know how to prove this), whose sum is equal to 1. However, I have tried myself a number of implementations and all of them are unstable for even rather small values of $n$. On the other hand, the existing comercial packages are not of much help either. For instance, in Matlab,
hypergeom([-400, 1 - 1.9], 2, 2)
returns -1.476649544606420e+10
and, in Mathematica,
Hypergeometric2F1[-400, 1 - 1.9, 2, 2]
returns 1.25542*10^58
Any suggestions would be highly appreciated, including how to generate them, etc. Thanks in advance.
Simplify[Hypergeometric2F1[-400, 1 - x, 2, 2]] /. x -> 1.9(that is, simplify ${_2}F_1(-400,1-x;2;2)$ to obtain some degree-$400$ polynomial, and then evaluate at $x=1.9$) gives the far more believable result224.8712571980159. – Semiclassical Aug 19 '19 at 21:35Hypergeometric2F1[-400, N[1-19/10, 50], 2, 2]. – Somos Aug 19 '19 at 21:39N[Hypergeometric2F1[-400, 1 - 19/10, 2, 2]]also works just fine. – Semiclassical Aug 19 '19 at 21:44