From Clomosy Docs
function Cos(const X: Extended): Extended;
Calculates the cosine of an angle.
In Clomosy code, Cos returns the cosine of the angle X.
X is a real-type expression that represents an angle in radians.
PI radians = 180 degrees
Example
var floatValue : single; const PI = 3.14; { // The Sine of 60 degrees = 0.5 floatValue = Cos(PI/3); // = 180/3 = 60 degrees ShowMessage('Cos(PI/3) = '+FloatToStr(floatValue)); }
Output:
Cos(PI/3) = 0,500459689008206