Difference between revisions of "LnXP1"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function LnXP1(X: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the [http:/...")
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function LnXP1(X: Extended): Extended;
+
function LnXP1(const X: Extended): Extended;
 
</source>
 
</source>
  

Revision as of 19:53, 30 August 2011

Definition

function LnXP1(const X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the natural logarithm of a value given by X + 1.

Example

begin
  WriteLn(LnXP1(0));
  WriteLn(LnXP1(0.5));
  WriteLn(LnXP1(2));
  WriteLn(LnXP1(10));
end.

Output:

0
0,405465108108164
1,09861228866811
2,39789527279837

See Also