The SIN function returns the trigonometric sine of a REAL or COMPLEX argument.
x is an INTENT(IN) scalar or array of type REAL or COMPLEX and must be expressed in radians.
The result is of the same type and kind as x. Its value is a REAL or COMPLEX representation of the sine of x.
Examplereal :: 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)