SINDG
This function evaluates the sine for the argument in degrees.
Function Return Value
SINDG — Function value. (Output)
Required Arguments
X — Argument in degrees for which the sine is desired. (Input)
FORTRAN 90 Interface
Generic: SINDG (X)
Specific: The specific interface names are S_SINDG and D_SINDG.
FORTRAN 77 Interface
Single: SINDG (X)
Double: The double precision function name is DSINDG.
Description
To avoid unduly inaccurate results, the magnitude of x must not be so large that the integer part fills more than the computer word. Under no circumstances is the magnitude of x allowed to be larger than the largest representable integer because complete loss of accuracy occurs in this case.
Example
In this example, sin 45° is computed and printed.
 
USE SINDG_INT
USE UMACH_INT
 
IMPLICIT NONE
! Declare variables
INTEGER NOUT
REAL VALUE, X
! Compute
X = 45.0
VALUE = SINDG(X)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) X, VALUE
99999 FORMAT (' SIN(', F6.3, ' deg) = ', F6.3)
END
Output
 
SIN(45.000 deg) = 0.707.