Sin Function

Returns the sine of a numeric expression.

Syntax
Sin(radians)

Parameters

degrees
Specify the angle as a real number value.

Return Values
Numeric value representing the sine of the numeric expression radians.

Description
Sin returns the sine of the numeric expression. The numeric expression (radians) must be in radian units.

The value returned by the Sin function will range from -1 to 1.

To convert from radians to degrees, use the RadToDeg function.

See Also
Abs, Atan, Atan2, Cos, Int, Mod, Not, Sgn, Sqr, Str$, Tan, Val

Sin Function Example
The following example shows a simple program which uses Sin.

Function sintest
    Real x
    Print "Please enter a value in radians:"
    Input x
    Print "Sin of ", x, " is ", Sin(x)
Fend