Is log(a*b) always faster in Matlab than log(a) + log(b)?
I tested for several inputs and it seems log(a*b) is faster. Can you more experienced guys give me some opinions on this? Maybe warnings that this might not always be the case, or something else I should be careful with? So in the first case we have 1 log operation and 1 multiplication, in the second case we have two log operations and one summation.
Edit:
To add to my original post, the more general question is:
is log (a*b*...*z) always faster than log(a) + log(b) + ... + log(z)?
Thanks