Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
SIN Function (DataBasic) (m618703+sin_f.htm)
Calculates the sine of an angle.
SIN(expression)
expression is any DataBasic expression that evaluates to a value in degrees.
The relation between radians and degrees is: 2 Pi radians = 360 degrees.
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.
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.