Re: factorial of negative numbers - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: factorial of negative numbers
Date
Msg-id 7095d570-f564-6c42-fe3b-65ca37b4b9a7@2ndquadrant.com
Whole thread Raw
In response to Re: factorial of negative numbers  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: factorial of negative numbers
List pgsql-hackers
On 2020-06-16 11:49, Dean Rasheed wrote:
> With [1], we could return 'Infinity', which would be more correct from
> a mathematical point of view, and might be preferable to erroring-out
> in some contexts.

But the limit of the gamma function is either negative or positive 
infinity, depending on from what side you come, so we can't just return 
one of those two.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Parallel Seq Scan vs kernel read ahead
Next
From: Alexander Korotkov
Date:
Subject: Re: Operator class parameters and sgml docs