SIN Function
Calculates the sine of an angle.
Syntax
SIN(expression)
Syntax Elements
expression is any DataBasic expression that evaluates to a value in degrees.
The relation between radians and degrees is: 2 Pi radians = 360 degrees.
Operation
If there is no PRECISION statement in the program, the value is returned rounded to the nearest four decimal places. Otherwise, the number of decimal places returned is as specified by the PRECISION statement.
In each case, the significant decimal places returned are the result of rounding. However, only up to five places are significant: if the PRECISION statement specifies a precision greater than five, trailing zeros are appended to the five significant places so as to return the numbers of places specified.
Examples
DEG = 3.1416 * RAD/180
SINE = SIN(DEG)
Determines the sine of RAD radians.
A = 42
B = SIN(A)
PRINT B
Prints the sine of variable A.