Sin Function
Returns the sine of a numeric expression.
Syntax
Sin(radians)
Parameters
- radians
- 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 degrees to radians, use the DegToRad function.
See Also
Abs Function, Atan Function, Atan2 Function, Cos Function, Int Function, Mod Operator, Not Operator, Sgn Function, Sqr Function, Str$ Function, Tan Function, Val Function
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