This function evaluates the logarithmic integral.
ALI — Function value. (Output)
X — Argument for
which the logarithmic integral is desired. (Input)
It must be
greater than zero and not equal to one.
Specific: The specific interface names are S_ALI and D_ALI.
Double: The double precision function name is DALI.
The logarithmic integral, li(x), is defined to be
The argument x must be greater than zero and not equal to one. To avoid an undue loss of accuracy, x must be different from one at least by the square root of the machine precision.
The function li(x) approximates the function π(x), the number of primes less than or equal to x. Assuming the Riemann hypothesis (all non-real zeros of ζ(z) are on the line ℜz = 1/2), then
Figure 3- 2 Plot of li(x) and π(x)
3 2 Result of ALI(X) is accurate to less than one-half precision because X is too close to 1.0.
In this example, li(2.3) is computed and printed.
99999 FORMAT (' ALI(', F6.3, ') = ', F6.3)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |