standard.C.math.cos

cos is available since version 1.0.

Prototype:

number cos(number angle)

Parameters

angle
[in] The angle in radians

Description:

Returns the cosine of the specified angle.
The angle must be in radians. Multiply by PI/180 to convert degrees to radians.

Return value:

Returns the cosine of the specified angle.

Example
import standard.C.math

class Main {
     function Main() {
          // Evaluate sin(2 * X) = 2 * sin(X) * cos(X).
          var X = 45;
          var angle = X * M_PI/180;
          echo "sin(2 * " + X + ") = " + 2*sin(angle)*cos(angle);
     }
}
 

Results 
sin(2 * 45) = 1