Lahey/Fujitsu Fortran

SIN Function

Description

The SIN function returns the trigonometric sine of a REAL or COMPLEX argument.

Syntax

SIN (x)

Arguments

x is an INTENT(IN) scalar or array of type REAL or COMPLEX and must be expressed in radians.

Result

The result is of the same type and kind as x. Its value is a REAL or COMPLEX representation of the sine of x.

Example

real :: x..5,y(2)=(/1.,1./) complex :: z=(1.,1.) write(*,*) sin(x) ! writes .4794255 write(*,*) sin(y) ! writes .8414709 .8414709 write(*,*) sin(z) ! writes (1.298457 .6349639)