From: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | gamma() and lgamma() functions |
Date: | 2024-07-01 10:33:35 |
Message-ID: | CAEZATCXpGyfjXCirFk9au+FvM0y2Ah+2-0WSJx7MO368ysNUPA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
gamma-and-lgamma.patch | text/x-patch | 7.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Shubham Khanna | 2024-07-01 10:38:03 | Re: Pgoutput not capturing the generated columns |
Previous Message | Daniel Gustafsson | 2024-07-01 10:22:10 | Re: Converting README documentation to Markdown |