<div id="comment:0"></div> ``` sage: factorial(-5) ... ValueError: factorial -- self = (-5) must be nonnegative ``` Adapt the function's behaviour to what other CASs (sympy, Wolfram) do at integer n<-1: return unsigned infinity. Component: **symbolics** Author: **Ashutosh Ahelleya** Branch/Commit: **[u/aashu12/return_infinity_from_factorial_of_negative_integer](https://github.com/sagemath/sagetrac-mirror/tree/u/aashu12/return_infinity_from_factorial_of_negative_integer) @ [`02fc09c`](https://github.com/sagemath/sagetrac-mirror/commit/02fc09cc36e79ed9301f4b58f0268eb81697ba9e)** _Issue created by migration from https://trac.sagemath.org/ticket/21560_