Skip to content

SIN

Sine of an Angle

This numeric function returns the sine of an angle expressed in radians.

SIN (numeric-value [,ERR=line-ref|,ERC=error-code])
numeric-value
is any valid number.
line-ref
is the program line number or label to branch to if this directive produces an error.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is generally available starting with release level 7.0.

This function returns a number in the range of +1.0 to -1.0 for numeric-values ranging from (.5 * Pi) to (-.5 * Pi) radians (+90 to -90 degrees).

Note that SIN and ASN are reverse functions, that is:

SIN (ASN(x))=x
ASN (SIN(x))=x
SIN (1.57)

The result is 1.

SIN (0)

The result is 0.

SIN (3.14)

The result is 0.

SIN (-3.14)

The result is 0.

SIN (-1.57)

The result is -1.

These examples assume PRECISION 2.

ASN function

From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF