cos()
Calculates the cosine.
Synopsis
float cos( float x );
Parameters
Parameter | Description |
x | angle |
Return Value
In the event of an error 0.0
Description
Returns the cosine of the angle x. x should be specified in the radian measure.
Example
main () float f; f=cos(deg2rad(90)); //results in 0 f=cosh(0.33); //results in 1.05495 f=acos(1); // results in 0 } |
Assignment
Mathematical functions
Availability
CTRL