Next: , Previous: , Up: Intrinsic Procedures   [Contents][Index]


9.250 SIN — Sine function

Description:

SIN(X) computes the sine of X.

Standard:

Fortran 77 and later

Class:

Elemental function

Syntax:

RESULT = SIN(X)

Arguments:
XThe type shall be REAL or COMPLEX.
Return value:

The return value has same type and kind as X.

Example:
program test_sin
  real :: x = 0.0
  x = sin(x)
end program test_sin
Specific names:
NameArgumentReturn typeStandard
SIN(X)REAL(4) XREAL(4)f77, gnu
DSIN(X)REAL(8) XREAL(8)f95, gnu
CSIN(X)COMPLEX(4) XCOMPLEX(4)f95, gnu
ZSIN(X)COMPLEX(8) XCOMPLEX(8)f95, gnu
CDSIN(X)COMPLEX(8) XCOMPLEX(8)f95, gnu
See also:

Inverse function: ASIN Degrees function: SIND