This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

Math::Cos

Math::Cos(x): float

Calculates cosine from given angle in radians.

Table 1. Parameters

x

number

Angle in radians

Return

Result of cosine for this angle

print(Math::Cos(0.5)); // Will print "0.877583"