How to get power by knowing the number and result.
$$2^n = 8$$
how can i return the power $n$ by knowing number $2$ and result $8$
$$4^n = 1024$$
how can i return the power 'n' by knowing number $4$ and result $1024$
Is there any formula