This function evaluates the sine for the argument in degrees.
SINDG — Function value. (Output)
X — Argument in degrees for which the sine is desired. (Input)
Specific: The specific interface names are S_SINDG and D_SINDG.
Double: The double precision function name is DSINDG.
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.
In this example, sin 45° is computed and printed.
99999 FORMAT (' SIN(', F6.3, ' deg) = ', F6.3)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |