Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SevenMath Functions (continued)

Cosine Function

Overview

The Cosine (cos) function returns the cosine of an angle in radians, degrees or gradians.

Syntax/Parameters

Syntax

float = Cosine ( float angle );

Parameters

angle

A float containing an angle. If x is not a float, the data will be converted to a 64-bit floating-point number. The default angle unit is in radians but can be changed to other values by using the SetAngleMode function.

Return Value

Returns a float containing the cosine of x.

Remarks

The illustration below shows the result of Cosine is x for the angle or θ.

(Courtesy Webysther)

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic