This function evaluates the cosine for the argument in degrees.
COSDG — Function value. (Output)
X — Argument in degrees for which the cosine is desired. (Input)
Specific: The specific interface names are S_COSDG and D_COSDG.
Double: The double precision function name is DCOSDG.
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, cos 100° computed and printed.
99999 FORMAT (' COS(', F6.2, ' deg) = ', F6.3)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |