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.

sin()

Deprecated in 5.0.

Please use Math::Sin instead.

sin(x): float

Calculates sine from given angle in radians.

Table 1. Parameters

x

Float

Angle in radian

Return

Result of sine for this angle

print(sin(0.5)); //will print 0.479426