Dave Chapeskie wrote:
>
> On Sun, May 10, 1998 at 12:14:11AM +0000, Thomas G. Lockhart wrote:
> > -- there isn't a floating point factorial operator...
> > tgl=> select (4.3 !);
> > ?column?
> > --------
> > 24
> > (1 row)
>
> Am I the only one that thinks the above is wrong? 4.3 factorial is
> mathematically undefined and does NOT equal 24.
Just put the gamma function in there and assume the argument is always a
float. A decent gamma function algorithm should make a special case for
integers.
--Gene