Seiki Batch Script > Mathematical Functions

@cos

Returns the cosine of the specified floating point angle value

Class: Mathematical

Parameters: @d – An angle measured in radians

Syntax: @returnValue=@cos(@d)

Returns: The cosine of @d

Remarks: None

Example:

//Example for the mathematical @cos method

@d=0.456 //Set angle value (in radians)

@result=@cos(@d) //Calculate result (= 0.897821)

message(“Cosine of Angle “ + @d + “ (in radians) is “ + @result) //Display results message