Purpose |
LOG returns the natural (base e) logarithm of its argument. LOG2 returns the base 2 logarithm. LOG10 returns the common (base 10) logarithm. |
Syntax |
y = LOG(numeric_expression) y = LOG2(numeric_expression) y = LOG10(numeric_expression) |
Remarks |
A logarithm of a number is the power to which the base would have to be raised to yield the number. Thus: logarithm (base b) of n = x if b^x = n and: (base)^log(n) = n The EXP functions complement the LOG functions. For example, if s = LOG(t), then t = EXP(s). By definition, the logarithm (any base) of 1 is 0. LOG returns the natural logarithm (base e, where e = 2.718282...) of its argument. LOG2 and LOG10 return the logarithm for base 2 and 10, respectively. numeric_expression must be a value greater than zero. LOG, LOG2, and LOG10 return Extended-precision values. |
See also |