|
|
◆ 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] | Ret | ln(1 + x). |
| [in] | X | Argument x. (X > -1) |
| [out] | Info | (Optional)
= 0: Successful exit.
= -1: The argument X had an illegal value. (X < -1)
= 1: Floating point range error. |
|