We've identified a bug in our hypergeometric function, where the approximation that we're using fails.
Basically, we approximate hyp2f1(a, b, c, x) where b==c and |x| < 1.0 as (1.0 - x)^(-a). However, this approximation seems to fail when b is a negative integer such that |b| < 100 (I'm sorry, but I haven't used the math formatting before).
What is a good approximation for the hypergeometric function when b==c and |b| < 100 and b < 0 and b is an integer and |x| < 1.0? Thanks for your help in advance.


plot 2f1(2, 1, 1, x) and (1.0 - x)^(-2) for x = 0 to 5into wolframalpha and the results were different fromplot 2f1(2, -1, -1, x) and (1.0 - x)^(-2) for x = 0 to 5. Something is going on here. – xaav Oct 04 '17 at 20:10