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

Nathan Bossart <nathandbossart@gmail.com>

From: Nathan Bossart <nathandbossart@gmail.com>
To: Dean Rasheed <dean.a.rasheed@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-03-08T20:11:14Z
Lists: pgsql-hackers
On Mon, Feb 27, 2023 at 12:54:35PM +0000, Dean Rasheed wrote:
> +	/*
> +	 * For erf, we don't need an errno check because it never overflows.
> +	 */

> +	/*
> +	 * For erfc, we don't need an errno check because it never overflows.
> +	 */

The man pages for these seem to indicate that underflow can occur.  Do we
need to check for that?

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



Commits

  1. Add support for the error functions erf() and erfc().