Difference between revisions of "Log"

From Mesham
Jump to navigationJump to search
m
Line 9: Line 9:
  
 
  #include <maths>
 
  #include <maths>
  var a:=log(10.54);
+
   
var y:=log(a);
+
function void main() {
 +
    var a:=log(10.54);
 +
    var y:=log(a);
 +
};
  
 
''Since: Version 0.41b''
 
''Since: Version 0.41b''

Revision as of 14:35, 15 April 2013

Overview

This log(d) function will find the natural logarithmic value of d

  • Pass: A Double
  • Returns: A Double representing the logarithmic value

Example

#include <maths>

function void main() {
   var a:=log(10.54);
   var y:=log(a);
};

Since: Version 0.41b