[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:
- the function description's Returns: element explicitly specifies a domain and those argument values fall outside the specified domain, or
- the corresponding mathematical function value has a nonzero imaginary component, or
- the corresponding mathematical function is not mathematically defined.254
Unless otherwise specified, each function is defined for all finite values, for negative infinity, and for positive infinity.