SIN (The GNU Fortran Compiler)

### 8.259 `SIN` — Sine function ¶

Synopsis:

  `RESULT = SIN(X)`

Description:

  `SIN(X)` computes the sine of X.

Class:

  Elemental function

Arguments:

  X | The 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:

  Name | Argument | Return type | Standard
  --- | --- | --- | ---
  `SIN(X)` | `REAL(4) X` | `REAL(4)` | Fortran 77 and later
  `DSIN(X)` | `REAL(8) X` | `REAL(8)` | Fortran 77 and later
  `CSIN(X)` | `COMPLEX(4) X` | `COMPLEX(4)` | Fortran 77 and later
  `ZSIN(X)` | `COMPLEX(8) X` | `COMPLEX(8)` | GNU extension
  `CDSIN(X)` | `COMPLEX(8) X` | `COMPLEX(8)` | GNU extension

Standard:

  Fortran 77 and later

See also:

  Inverse function:
  `ASIN` — Arcsine function
  Degrees function:
  `SIND` — Sine function, degrees