LogN function
Return N-based logarithm.
Declaration
function LogN(n: Float; x: Float): FloatDescription
Logn returns the n-base logarithm of
X.Errors
If
x is less than or equal to 0 an 'invalid fpu operation' error
will occur.
See also
Example: ex23
Program Example23;
{ Program to demonstrate the logn function. }
Uses math;
begin
Writeln(Logn(3,4):8:4);
Writeln(Logn(2,4):8:4);
Writeln(Logn(6,9):8:4);
Writeln(Logn(exp(1),exp(1)):8:4);
Writeln(Logn(0.5,1):8:4);
Writeln(Logn(0.25,3):8:4);
Writeln(Logn(0.125,5):8:4);
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
