Concept Framework 2.2 documentation Contents | Index

standard.C.math.log

Name Version Deprecated
log version 1.0 no

Prototype:
number log(number n)

Parameters:
n      [in] Number whose natural logarithm is to be found

Description:
Returns the natural logarithm of n if successful. If n is negative or 0, log returns an indefinite, by default.

Example:
import standard.C.math

class Main {
     function Main() {
          var x = 9000;
          var y;

          y = log(x);
          echo "log(" + x + ") = " + y + "\n";
          y = log10(x);
          echo "log10(" + x + ") = " + y;
     }
} 
 

Results 
log(9000) = 9.1049798563183568
log10(9000) = 3.954242467880249  

Returns:
Returns the natural logarithm of n if successful. If n is negative or 0, log returns an indefinite, by default.

Documented by Simona Gabriela Plesuvu, generation time: Sun Jan 27 18:15:14 2013 GMT(c)2013 Devronium Applications