Document: WG14 N1376 (was N1319B during meeting)
Submitter: Fred Tydeman (USA)
Submission Date: 2009-03-31
Related WG14 documents: N1319, N748, Defect Report
331
Subject: Adding pole error to math library functions
POSIX (IEEE P1003.1 draft 5, 2008) has Domain error, Pole error, and Range error. So, they have already split this class of error out of domain and/or range error. So, for example, atanh() has pole error, domain error, and range error.
Changes to C1x
7.12.5.3 atanh change "A range error may occur if the argument equals -1 or +1." to "A pole error may occur if the argument equals -1 or +1."
7.12.6.7 log change "A range error may occur if the argument is zero." to "A pole error may occur if the argument is zero."
7.12.6.8 log10 change "A range error may occur if the argument is zero." to "A pole error may occur if the argument is zero."
7.12.6.9 log1p change "A range error may occur if the argument equals -1." to "A pole error may occur if the argument equals -1."
7.12.6.10 log2 change "A range error may occur if the argument is zero." to "A pole error may occur if the argument is zero."
7.12.6.11 logb change "A domain error or range error may occur if the argument is zero." to "A domain error or pole error may occur if the argument is zero."
7.12.7.4 pow change "A domain error or range error may occur if x is zero and y is less than zero." to "A domain error or pole error may occur if x is zero and y is less than zero."
7.12.8.3 lgamma change "A range error may occur if x is a negative integer or zero." to "A pole error may occur if x is a negative integer or zero."
7.12.8.4 tgamma change "A domain error or range error may occur if x is a negative integer or zero." to "A domain error or pole error may occur if x is a negative integer or zero."