gamma() and lgamma() functions - Mailing list pgsql-hackers

From Dean Rasheed
Subject gamma() and lgamma() functions
Date
Msg-id CAEZATCXpGyfjXCirFk9au+FvM0y2Ah+2-0WSJx7MO368ysNUPA@mail.gmail.com
Whole thread Raw
Responses Re: gamma() and lgamma() functions
Re: gamma() and lgamma() functions
List pgsql-hackers
Attached is a patch adding support for the gamma and log-gamma
functions. See, for example:

https://en.wikipedia.org/wiki/Gamma_function

I think these are very useful general-purpose mathematical functions.
They're part of C99, and they're commonly included in other
mathematical libraries, such as the python math module, so I think
it's useful to make them available from SQL.

The error-handling for these functions seems to be a little trickier
than most, so that might need further discussion.

Regards,
Dean

Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Converting README documentation to Markdown
Next
From: Shubham Khanna
Date:
Subject: Re: Pgoutput not capturing the generated columns