Difference between revisions of "Log10"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function Log10(X: Extended): Extended; </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Returns the 10th [h...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function Log10(X: Extended): Extended;
+
function Log10(const X: Extended): Extended;
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns the 10th [http://en.wikipedia.org/wiki/Logarithm logarithm] of a value given by '''X'''.
+
Returns the [http://en.wikipedia.org/wiki/Logarithm logarithm] of a value given by '''X''' with base 10.
  
 
==Example==
 
==Example==
Line 15: Line 15:
 
   WriteLn(Log10(10));
 
   WriteLn(Log10(10));
 
   WriteLn(Log10(5));
 
   WriteLn(Log10(5));
 +
  WriteLn(Log10(2));
 
end.
 
end.
 
</source>
 
</source>
Line 21: Line 22:
 
  1
 
  1
 
  0,698970004336019
 
  0,698970004336019
 +
0,301029995663981
  
 
==See Also==
 
==See Also==
 
*[[Log2]]
 
*[[Log2]]
 
*[[LogN]]
 
*[[LogN]]
 +
*[[Ln]]
 
*[[LnXP1]]
 
*[[LnXP1]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Math Functions]]
 
[[Category:Math Functions]]

Latest revision as of 11:26, 23 September 2011

Definition

function Log10(const X: Extended): Extended;

Availability

SCAR Divi 3.00 > Current

Description

Returns the logarithm of a value given by X with base 10.

Example

begin
  WriteLn(Log10(10));
  WriteLn(Log10(5));
  WriteLn(Log10(2));
end.

Output:

1
0,698970004336019
0,301029995663981

See Also