mpmath version: 1.1.0
When the second argument for hyp0f1 in the mp context is a NaN, a 1 is returned
regardless of the other input. For what it's worth, the fp context
version throws a NoConvergence Exception. For the same input, GSL and
SciPy both agree on NaN as an output.
Example:
Python 3.6.8 (default, Aug 20 2019, 17:12:48)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mpmath import *
>>> import numpy as np
>>> mp.hyp0f1(2.5, np.nan)
mpf('1.0')
>>> mp.hyp0f1(25, np.nan)
mpf('1.0')
>>> mp.hyp0f1(2513, np.nan)
mpf('1.0')
>>> mp.hyp0f1(.25, np.nan)
mpf('1.0')
mpmath version: 1.1.0
When the second argument for hyp0f1 in the mp context is a NaN, a 1 is returned
regardless of the other input. For what it's worth, the fp context
version throws a NoConvergence Exception. For the same input, GSL and
SciPy both agree on NaN as an output.
Example: