XLPack 7.0
XLPack Numerical Library (Excel VBA) Reference Manual
Loading...
Searching...
No Matches

◆ Li_sub()

Sub Li_sub ( Ret As  Double,
X As  Double,
Optional Info As  Long 
)

Logarithmic integral li(x) (Subroutine version)

Purpose
Computes the logarithmic integral li(x).
li(x) = integral 1/ln(t) dt [0, x] = Ei(ln(x))
Function Ei(X As Double, Optional Info As Long) As Double
Exponential integral Ei(x)
Parameters
[out]RetLogarithmic integral li(x).
[in]XArgument x. (X >= 0)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X < 0)
= 1: Floating point range error.
Reference
boost/math/special_functions