Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTIONS->Detailed Descriptions->cos() cosl()

Summary

#include <math.h>
    
double cos(double x)Calculate cosine to double precision
long double cosl(long double x);Calculate cosine to long double precision

Parameter
    
xAngle in radians
Description

These functions calculate the cosine of x.  If x is not within the range [-2pi..+2pi], it is reduced to within this range before the cosine is calculated.



Return

These functions return the cosine of the parameter passed.