SIN(3M) Last changed: 2-12-98
NAME
SIN, DSIN, CSIN, CDSIN - Computes the sine
SYNOPSIS
UNICOS and UNICOS/mk systems:
SIN ([X=]x)
DSIN ([X=]x)
CSIN ([X=]x)
UNICOS and IRIX systems:
CDSIN ([X=]x)
IMPLEMENTATION
UNICOS, UNICOS/mk, and IRIX systems
STANDARDS
Fortran 90
CDSIN is a compiler extension to Fortran 90.
DESCRIPTION
CDSIN is the generic function name. These functions are CF90
elemental functions.
A vector version of this intrinsic exists on UNICOS and UNICOS/mk
systems. On UNICOS/mk systems, the vector version of this intrinsic
is used when -h vector3 (C compiler) or -O vector3 or -O3 (Fortran
compiler) has been specified on the compiler command line.
The entry point CDSIN is provided for support in other languages. It
is not recognized as an intrinsic function; therefore, you must use
the CDIR$ VFUNCTION directive to allow vectorization.
These functions evaluate y = sin(x).
CF90
CDSIN is called implicitly by the Fortran 90 compiler as a result of a
generic SIN call with a complex double-precision argument.
CAL Register Usage (Cray Research Systems Only)
Scalar SIN: SIN% (call-by-register)
on entry (S1) = argument
on exit (S1) = result
Vector SIN: %SIN% (call-by-register)
on entry (V1) = argument vector
on exit (V1) = result vector
Scalar DSIN: DSIN% (call-by-register)
on entry (S1) and (S2) = argument
on exit (S1) and (S2) = result
Vector DSIN: %DSIN% (call-by-register)
on entry (V1) and (V2) = argument vector
on exit (V1) and (V2) = result vector
Scalar CSIN: CSIN% (call-by-register)
on entry (S1) and (S2) = argument
on exit (S1) and (S2) = result
Vector CSIN: %CSIN% (call-by-register)
on entry (V1) and (V2) = argument vector
on exit (V1) and (V2) = result vector
Scalar CDSIN: CSDIN% (call-by-register)
on entry (S1), (S2), (S3), and (S4) = argument
on exit (S1), (S2), (S3), and (S4) = result
Vector CDSIN: %CSDIN% (call-by-register)
on entry (V1), (V2), (V3), and (V4) = argument vecto
on exit (V1), (V2), (V3), and (V4) = result vector
Argument Range
SIN:
25
|x| < 2
DSIN:
45
|x| < 2
25
On UNICOS/mk systems, |x| < 2
CSIN:
25 13
|x | < 2 , |x | < 2 * ln2
r i 25
On UNICOS/mk systems, |x|< 2 , |x | < 710.47586
i
CDSIN:
45 13
|x | < 2 , |x | < 2 * ln2
r i
NOTES
CDSIN is an outmoded routine for the CF90 compiler. Refer to the
Fortran Language Reference Manual, Volume 3, publication SR-3905, for
information about outmoded features and their preferred standard
alternatives.
The name of the SIN, DSIN, and CSIN intrinsic can be passed as an
argument. The name of the CDSIN intrinsic cannot be passed as an
argument.
RETURN VALUES
SIN returns the real sine of its real argument.
DSIN returns the double-precision sine of its double-precision
argument.
CSIN returns the complex sine of its complex argument.
CDSIN returns the complex double-precision sine of its complex
double-precision argument.
On CRAY T90 systems that support IEEE arithmetic, the following return
values occur:
25
SIN(x) = NaN if |x| > 2
SIN(NaN) = NaN
Additional entry points are available on IRIX systems. See the IRIX
man pages for details.
SEE ALSO
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.