SIN(X)

Purpose

Sine function.

Class

Elemental function

Argument type and attributes

X
must be of type real or complex. If X is real, it is regarded as a value in radians. If X is complex, its real and imaginary parts are regarded as values in radians.

Result type and attributes

Same as X.

Result value

It approximates sin(X).

Examples

SIN (1.0) has the value 0.84147098 (approximately).

Specific Name Argument Type Result Type Pass As Arg?
SIN default real default real yes
DSIN double precision real double precision real yes
QSIN REAL(16) REAL(16) yes  1 
CSIN  2a  default complex default complex yes
CDSIN  2b  double complex double complex yes  1 
ZSIN  2b  double complex double complex yes  1 
CQSIN  2b  COMPLEX(16) COMPLEX(16) yes  1 
Notes:
  •  1  IBM Extension: the ability to pass the name as an argument.
  • Given that X is a complex number in the form a + bi, where i = (-1)½:
  •  2a  abs(b) must be less than or equal to 88.7228; a is any real value.
  •  2b  abs(b) must be less than or equal to 709.7827; a is any real value.