; Log Example ; ----------- ; Log returns the NATURAL logarithm (base e) - the inverse of Exp. ; It answers: to what power must e be raised to give this value? Print "Log(1) = "+Log(1) Print "Log(2.7182818) = "+Log(2.7182818)+" (e itself, so the answer is 1)" Print "Log(100) = "+Log(100) Print "" ; Log undoes Exp Print "Exp(3) = "+Exp(3) Print "Log(Exp(3)) = "+Log(Exp(3)) Print "" ; Divide by Log(base) to get a logarithm in any other base Print "Log base 2 of 1024 = Log(1024)/Log(2) = "+(Log(1024)/Log(2)) Print "" Print "Press any key to close the example" WaitKey End