Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: changed quote

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 domain error occurs if an input argument is outside the domain over which the mathematical function is defined.

Paragraph 3 states:
... 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.

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.

...