From: | Stepan Neretin <sncfmgg(at)gmail(dot)com> |
---|---|
To: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: gamma() and lgamma() functions |
Date: | 2024-07-01 14:20:08 |
Message-ID: | CAN-sa+C0RpL378BcvQ=8cqXQ170LjBOqz24+upXnhk_DCuE5PQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jul 1, 2024 at 5:33 PM Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
wrote:
> 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
>
Hi! The patch file seems broken.
git apply gamma-and-lgamma.patch
error: git apply: bad git-diff — exptec /dev/null in line 2
Best regards, Stepan Neretin.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-07-01 14:21:35 | Re: Surround CheckRelation[Oid]LockedByMe() with USE_ASSERT_CHECKING |
Previous Message | Daniel Gustafsson | 2024-07-01 14:19:55 | Re: Should we move the resowner field from JitContext to LLVMJitContext? |