Computing the logarithm of X for a specified Base.
function LogN(Base, x: extended): extended;
Parameter |
Type |
Value |
---|---|---|
Base |
extended |
Base of the logarithm; |
x |
extended |
number from which you need to compute the logarithm. |
Returns the log base Base of X.
var
y: extended;
begin
y := LogN(3, 243);
mLogScript(FloatToStr(y), '');
end.
[20:52:13] (Log "LogN"): 5.000000000000
[20:52:13] (Run "LogN"): Script operation time: 5 ms
[20:52:13] (Run "LogN"): Script done successfully.