Ln function
Prototype: |
function Ln(const X: extended): extended; |
|
Description: |
The Ln function returns the natural logarithm. The opposite function is Exp function. |
|
Syntax: |
Ln(X); / variable:= Ln(X); |
|
Part |
Description |
|
variable |
A variable declared as extended |
|
X |
The input (extended value) to the Ln function |
|
Return value: |
The result of the calculation as an extended value |
|
Example:
var
x,z : extended;
begin
x:= 4;
z:= Ln(x);
ShowMessage(FloatToStr(z));
end.
// Next examples: Ln(1) = 0
// "Ln(Eulers number)" = 1 //Ln(Exp(1))
// Ln(12) = 2.30258...
Output in Field-Map Data Collector:

See also:
Power; Round; RoundTo, RoundVariant; Round2int, Cos; ArcCos; ArcCosH; Sin; ArcSin; ArcSinH; ArcTan; ArcTan2; ArcTanH; CosH; SinH; Tan; TanH; Random; RandomRange; Randomize; Floor; Ceil; Int; Frac; Log10; Ln; Exp; Abs; Min; Max; Odd; SecondsBetween;CompareValue; SameValue; Trunc
© 2024 IFER-Monitoring and Mapping Solutions