SIN

Elemental Intrinsic Function (Generic): Produces the sine of x.

Syntax

result = SIN (x)

x
(Input) Must be of type real or complex. It must be in radians and is treated as modulo 2*pi. (If x is of type complex, its real part is regarded as a value in radians.)

Results:

The result type is the same as x.

Specific Name Argument Type Result Type
SINREAL(4) REAL(4)
DSIN REAL(8) REAL(8)
QSIN 1 REAL(16) REAL(16)
CSIN 2 COMPLEX(4) COMPLEX(4)
CDSIN 3 COMPLEX(8) COMPLEX(8)
CQSIN 1 COMPLEX(16) COMPLEX(16)
1 VMS and U*X
2 The setting of compiler option /real_size can affect CSIN.
3 This function can also be specified as ZSIN.

Examples

SIN (2.0) has the value 0.9092974.

SIN (0.8) has the value 0.7173561.