Subclause 7.12.1 of the C Standard [ISO/IEC 9899:2011] defines three types of errors that relate specifically to math functions in math.h
. Paragraph 2 states:
A ... a domain error occurs if an input argument is outside the domain over which the mathematical function is defined.
Paragraph 3 states:
... a
A pole error (also known as a singularity or infinitary) occurs if the mathematical function has an exact infinite result as the finite input argument(s) are approached in the limit.A
Paragraph 4 states:
...a range error occurs if the mathematical result of the function cannot be represented in an object of the specified type, due to extreme magnitude.
...