LnXP1 function
Return natural logarithm of 1+X.
Declaration
function LnXP1(x: Float): FloatDescription
Lnxp1 returns the natural logarithm of
1+X. The result
is more precise for small values of
x.
x should be larger
than -1.Errors
If $x\leq -1$ then an
EInvalidArgument exception will be raised.
See also
Example: ex20
Program Example20;
{ Program to demonstrate the lnxp1 function. }
Uses math;
begin
writeln(lnxp1(0));
writeln(lnxp1(0.5));
writeln(lnxp1(1));
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
