In [3]:
import math
print(math.log(0.2) + math.log(0.5))
print(math.log(0.2 * 0.5))
In [4]:
print(math.log(math.exp(0.2) * math.exp(0.7)))
print(0.2 + 0.7)
Using product rule, and confirming from https://en.wikipedia.org/wiki/Exponential_function:
$$ \frac{d}{dx} \exp(f(x)) = \frac{df(x)}{dx} \exp(f(x)) $$