Everything

cosl [V1.08 or later]


Cosine

[Classification]

Mathematical library

[Syntax]

#include <math.h>

long double __far cosl(long double x); (C99)

[Return value]

Returns the cosine of x.

If x is Not-a-Number or ±∞, cosl returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

If the solution is a denormal number, cosl sets macro ERANGE to global variable errno.

[Description]

This function calculates the cosine of x. Specify the angle in radian.