log, log10,
logn
log, log10,
logn — calculate logarithms.
log (number)
log10 (number)
logn (base, number)
numberAny numeric value.
baseThe logarithmic base.
For log, the natural logarithm of the argument. For
log10, the base 10 logarithm of the argument. For
logn, the logarithm of the number in the given
base.
Non-numeric arguments are treated as zero. Illegal values for the arguments will cause an error.
Gamma>log(2);0.69314718055994528623Gamma>log10(2);0.30102999566398119802Gamma>logn(8,2);2.9999999999999995559Gamma>