sin
- Date:
02-06-2023
NAME
SIN, DSIN, CSIN, CDSIN, SIND, DSIND - Compute sine
SYNOPSIS
SIN ([X=]x)
DSIN ([X=]x)
CSIN ([X=]x)
CDSIN ([X=]x)
SIND ([X=]x) (Deferred implementation)
DSIND ([X=]x) (Deferred implementation)
STANDARDS
Fortran
Fortran extensions: CDSIN, SIND, DSIND
DESCRIPTION
These functions evaluate y = sin(x).
SIN and SIND are the generic function names; the others are specifics. These are elemental intrinsic functions. They accept the following argument:
- x
Must be of type real or complex. For SIN, DSIN, CSIN, and CDSIN, x must be specified in radians and is treated as modulo 2 * pi. For SIND, and DSIND, x must be specified in degrees and is treated as modulo 360.
There are vector versions of SIN and DSIN.
Note: Vector versions of CSIN and CDSIN are supported on Cray X2 systems only.
NOTES
The SIN, DSIN, and CSIN intrinsic function names can be passed as arguments; the others cannot.
Return values are:
SIN(x) yields NaN if |x| > 1.054e8 approximately. (Cray X2 systems only)
SIN(x) yields NaN if x is infinite or NaN.
Note: The sin() and csin() functions have Linux-equivalent names. Use the man -aname option to show all manual pages matching name within the MANPATH search path. Manual pages are displayed in the order found.
RETURN VALUES
SIN returns the real sine of its real arguments.
DSIN returns the double-precision real sine of its double-precision real argument.
CSIN returns the complex sine of its complex argument.
CDSIN returns the double-precision complex sine of its double-precision complex argument.
SIND returns the single-precision real sine of its single-precision real argument.
DSIND returns the double-precision real sine of its double-precision real argument.