This function is compatible with the following targets:
|
|
#include <math.h>
double cos(double x);
float cosf(float);
long double cosl(long double);Parameters:
Parameters for this function are:
cos() returns the cosine of x. x is measured in radians.
#include <math.h>
#include <stdio.h>
int main(void)
{
double x = 0.0;
printf("The cosine of %f is %f.\n", x, cos(x));
return 0;
}
Output:
The cosine of 0.000000 is 1.000000.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 16, 2000