[SciPy-Dev] special.factorial accepting floats

Andrew Nelson andyfaff at gmail.com
Thu Apr 30 21:44:22 EDT 2020


The docstring for special.factorial says that the function accepts ints,
and int arrays.
However, it also seems to accept float arrays (including those that contain
np.nan).

Is there a rationale for it accepting floats/float arrays? One can't
calculate factorials of non-integers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20200501/ad4ecc74/attachment.html>


More information about the SciPy-Dev mailing list