1 | initial version |
Sage uses mpmath for numerical evaluation. The documentation for the underlying function says explicitly:
If a nonpositive integer −n appears in both
a_s
andb_s
, this parameter cannot be unambiguously removed since it creates a term 0 / 0. In this case the hypergeometric series is understood to terminate before the division by zero occurs. This convention is consistent with Mathematica.
I have confirmed that Mathematica gives the same answers as Sage. Apparently Maxima chooses a different convention, so be aware of this.