Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 415 Bytes

cos.adoc

File metadata and controls

34 lines (27 loc) · 415 Bytes

cos()

Important

Deprecated in 5.0.

Please use [func-math-cos] instead.

cos(x) => Float

Calculates cosine from given angle in radians.

Table 1. Parameters

x

Float

Angle in rad

Return

Result of cosine for this angle

Example
print(cos(0.5)); //will print 0.877583