Core Function Cos
From Sputnik Wiki
Cos( <expression> )
Contents |
Description
Calculates the cosine of a number.
Parameters
expression
Value in radians.
Return Value
Returns the trigonometric cosine of number.
Remarks
1° = pi / 180 radians.
Example
$Param = 60.0; $Result = Cos($Param * @PI / 180); MsgBox("The cosine of $Param, degrees is $Result."); // Output: The cosine of 60.000000 degrees is 0.500000.