Rev Language Reference


sin - Apply the sine function to an angular input x in radians.

`sin` calculates the trigonometric ratio of the length of the side opposite the angle and length of the hypotenuse. sin(x) = opposite/hypotenuse.

Usage

sin(RealPos x)

Arguments

x : RealPos (pass by const reference)
A number.

Return Type

Example

pi <- 3.1415926536
sin(pi/2) # = 1