Skip to content

return Infinity from factorial of negative integer #21560

@rwst

Description

@rwst
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 @ 02fc09c

Issue created by migration from https://trac.sagemath.org/ticket/21560

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions