Re: Add error functions: erf() and erfc()

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Add error functions: erf() and erfc()
Дата
Msg-id 20230309001313.GA3622861@nathanxps13
обсуждение исходный текст
Ответ на Re: Add error functions: erf() and erfc()  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Ответы Re: Add error functions: erf() and erfc()  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Список pgsql-hackers
On Wed, Mar 08, 2023 at 11:29:12PM +0000, Dean Rasheed wrote:
> On Wed, 8 Mar 2023 at 20:11, Nathan Bossart <nathandbossart@gmail.com> wrote:
>> The man pages for these seem to indicate that underflow can occur.  Do we
>> need to check for that?
> 
> No, I don't think so. The docs indicate that if an underflow occurs,
> the correct result (after rounding) should be returned, so I think we
> should just return that result (as we do for tanh(), for example).

Makes sense.

I'm also wondering about whether we need the isinf() checks.  IIUC that
should never happen, but maybe you added that "just in case."

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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: lz4 --rm on Ubuntu 18.04 (Add LZ4 compression to pg_dump)
Следующее
От: Andres Freund
Дата:
Сообщение: Re: BUG: Postgres 14 + vacuum_defer_cleanup_age + FOR UPDATE + UPDATE