This function is similar to the log2(n) and log10(n)functions, only you stipulate the log base value. For example, logn(5,25) will return how many 5's we need to multiply to get 25 (which is 2).
logn(n, val);
Argument | Description |
---|---|
n | The log base. |
val | The input value. |
Real
logval = logn(5, num);
The above code gets the log5 of the value stored in "num".