This function evaluates a function closely related to the cosine integral.
CIN — Function value. (Output)
X — Argument for which the function value is desired. (Input)
Specific: The specific interface names are S_CIN and D_CIN.
Double: The double precision function name is DCIN.
The alternate definition of the cosine integral, Cin(x), is
where s = AMACH(1) is the smallest representable positive number, the result underflows. For
the answer is less accurate than half precision, while for |x| > 1 /ε, the answer has no precision. Here, ε = AMACH(4) is the machine precision.
2 1 The function underflows because X is too small.
In this example, Cin(2π) is computed and printed.
99999 FORMAT (' CIN(', F6.3, ') = ', F6.3)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |