Clicky

Fortran Wiki
sin

Description

sin(x) computes the sine of x.

Standard

FORTRAN 77 and later

Class

Elemental function

Syntax

result = sin(x)

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

See also

asin, cos, tan

category: intrinsics