DataBasic Reference > Statements and Intrinsic Functions > S > SIN Function

Comment on this topic

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.

Reality V15.0 ()

SIN Function (DataBasic) (m618703+sin_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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.

RealityV15.0Comment on this topic