I am trying to derive exponential function using logarithms. I know from below equation log(22026.4657948067), is 10 and exp(10) is 22026.4657948067
I would like to understand the basic math behind exp() and log(). At the moment, I have log() in C and I would like to know the conversion logic so that I can calculate exponential() from log(). Thank you
The logarithms returns the exponent to which a base must be raised to yield a given number.
So if we have x=9, then (base 3) log(9) = 2 because 3^2 = 9.
In C the log() function uses base e where e is the Euler's number (2.71828).
So in your case what's happening is basically: log(22026.4657948067) = 10 and then e^10 = 22026.4657948067