I am trying to calculate the value of $\log_b(x)$ for any $b\in(0, \infty)$ and any $x>0.$ I am supposed to do this only using basic arithmetic operations and exponentiation.
I know that in order to find zeros using the secant method, you use the following formula.
$$x_{k+1} = x_k - f(x_k)\frac{x_k - x_{k-1}}{f(x_k) - f(x_{k-1})}$$
But I have no idea what $f(x)$ will be in this case. Any pointers to get me on the right track?
Thank you.