[cfp-interest 3587] Re: "invalid" => domain error?

Damian McGuckin damianm at esi.com.au
Sat Sep 6 22:32:19 PDT 2025


On Sun, 7 Sep 2025, Fred J. Tydeman wrote:

> Should C23 Annex F.10 Mathematics <math.h> and <tgmath.h>
> be updated with:
>
> "Invalid" being raised is a domain error.
> "Divide-by-zero" being raised is a pole error.
> "Overflow" being raised is a range error.
> "Underflow" being raised is a range error.

I thought we had gone away from the concept of "pole" error to be more a 
generic singularity. Jerome is the expert.

Also, how about:

 	"Invalid" being raised is generally a domain error

I have a sneaky suspicion there are one or two cases where it is not 
strictly a domain but I cannot recall off the top of my head. I will 
double check.

Later Fred - Damian


More information about the cfp-interest mailing list