As you may know, you can calculate the logarithm of x in base y by the following: ln(x)/ln(y).
Currently we have, as you noted, two logarithm functons ln(x [, espilon]) and log(x [, epsilion]). Perhaps addiing 3rd function .. oh say call it logb(x, base [, epsilon]), where the 2nd base argument is required could return ln(x)/ln(base) for you.
I'm not sure what the best name for this buildin function. Alas we cannot use ln() nor log() because today their 2nd argument, if given, is the epsilon error term. So maybe we can use lnb(x,base[,ep]) or maybe logb(x,base[,ep]) or ???
chongo (Landon Curt Noll) /\oo/\
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Three words: change-of-base.
Question closed.
Hello,
As you may know, you can calculate the logarithm of x in base y by the following: ln(x)/ln(y).
Currently we have, as you noted, two logarithm functons ln(x [, espilon]) and log(x [, epsilion]). Perhaps addiing 3rd function .. oh say call it logb(x, base [, epsilon]), where the 2nd base argument is required could return ln(x)/ln(base) for you.
I'm not sure what the best name for this buildin function. Alas we cannot use ln() nor log() because today their 2nd argument, if given, is the epsilon error term. So maybe we can use lnb(x,base[,ep]) or maybe logb(x,base[,ep]) or ???
chongo (Landon Curt Noll) /\oo/\