Re: Add error functions: erf() and erfc() - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Add error functions: erf() and erfc()
Date
Msg-id 20230309003002.GA3623552@nathanxps13
Whole thread Raw
In response to Re: Add error functions: erf() and erfc()  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-hackers
On Thu, Mar 09, 2023 at 12:27:47AM +0000, Dean Rasheed wrote:
> On Thu, 9 Mar 2023 at 00:13, Nathan Bossart <nathandbossart@gmail.com> wrote:
>> I'm also wondering about whether we need the isinf() checks.  IIUC that
>> should never happen, but maybe you added that "just in case."
> 
> I copied those from dtanh(), otherwise I probably wouldn't have
> bothered. erf() is always in the range [-1, 1], just like tanh(), so
> it should never overflow, but maybe it can happen in a broken
> implementation.

Okay.  This looks good to me, then.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: Add error functions: erf() and erfc()
Next
From: Michael Paquier
Date:
Subject: Re: lz4 --rm on Ubuntu 18.04 (Add LZ4 compression to pg_dump)