cpp/numeric/math/cos

@1-3@ Computes the cosine of (measured in radians).

Return value
If no errors occur, the cosine of ($cos(num)$) in the range, is returned.

If a domain error occurs, an implementation-defined value is returned (NaN where supported).

If a range error occurs due to underflow, the correct result (after rounding) is returned.

Error handling
Errors are reported as specified in math_errhandling.

If the implementation supports IEEE floating-point arithmetic (IEC 60559),
 * if the argument is ±0, the result is
 * if the argument is ±∞, NaN is returned and fe_invalid is raised
 * if the argument is NaN, NaN is returned