commands → log
log(x,b)
The log command computes the base-b logarithm of a numeric value x.
Examples
# floating point
log(10.,10);
1.
# symbolic
log(x);
log(x)
Algorithm
To compute log(x) to the base b, we compute the quotient ln(x)/ln(b).
References
Gullberg, Jan. Mathematics: From the Birth of Numbers. Norton, 1996.