[sf.cmath.general] (original) (raw)

29 Numerics library [numerics]

29.7 Mathematical functions for floating-point types [c.math]

29.7.6 Mathematical special functions [sf.cmath]

29.7.6.1 General [sf.cmath.general]

If any argument value to any of the functions specified in [sf.cmath]is a NaN (Not a Number), the function shall return a NaN but it shall not report a domain error.

Otherwise, the function shall report a domain error for just those argument values for which:

Unless otherwise specified, each function is defined for all finite values, for negative infinity, and for positive infinity.