ln


Purpose
Get the natural logarithm of a value.
Synopsis
function ln(r:real):real
Argument
Real value the function is applied to. This value must be positive.
Return value
Natural logarithm of the argument.
Example
The following example provides a function for calculating logarithms to any (positive) base:
function logn(base,number: real):real
 if (number > 0 and base > 0) then
  returned:= ln(number)/ln(base)
 else
  exit(1)
 end-if
end-function 
Related topics
exp, log, sqrt.


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.