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

◆ Log1p_sub()

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

ln(1 + x) (Subroutine version)

Purpose
Computes ln(1 + x). It may be more accurate than using Log(1 + X) when x is near 0.
Parameters
[out]Retln(1 + x).
[in]XArgument x. (X > -1)
[out]Info(Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X < -1)
= 1: Floating point range error.