In a right angled triangle cos(val) = Adjacent / Hypotenuse where val is one of the three angles. This function will always return a number between 1 and -1.
NOTE: This function takes a value in radians not degrees.
cos(val);
Argument | Type | Description |
---|---|---|
val | Real | The angle (in radians) to return the cosine of. |
val = cos( 0 );
This will set val to 1.