Re: factorial doc bug? - Mailing list pgsql-hackers

From Patrick Welche
Subject Re: factorial doc bug?
Date
Msg-id 20010912161022.L19454@quartz.newn.cam.ac.uk
Whole thread Raw
In response to Re: factorial doc bug?  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: factorial doc bug?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Wed, Sep 12, 2001 at 02:45:10PM +0200, Peter Eisentraut wrote:
> Thomas Lockhart writes:
> 
> > Keep in mind that he is a mathematician, and I'll guess that he won't
> > have much patience with folks who expect a result for a factorial of a
> > fractional number ;)
> 
> Real mathematicians will be perfectly happy with a factorial for a
> fractional number, as long as it's properly and consistently defined. ;-)
> 
> Seriously, there is a well-established definition of factorials of
> non-integral real numbers, but the current behaviour is probably the most
> intuitive for the vast majority of users.

I would be happy with with exp(lgamma(x+1)) as a synonym for x!
(So 4.3!=38.078 as far as I'm concerned :) )

Cheers,

Patrick


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: backend hba.c prob
Next
From: Giuseppe Tanzilli - CSF
Date:
Subject: pg_dump patch: Allow -X'exclude table from dump by pattern'