scipy/scipy — pull request #2735 by pv (2013-08-17 16:52:14+00:00)
Title: BUG: special: Fix asymptotic expansion in rgamma and reimplement poch

The rgamma function in Cephes overflowed too early to inf, fix this by using lgam to evaluate the tail.
The behavior at large negative values is OK, the function is beyond float range (except at integers).

Reimplement the pochhammer symbol. The naive definition via gamma functions suffers from over/underflows and from hitting poles of the gamma functions which cancel out in several common cases.

Fixes gh-1437