cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
what is computationally more efficient
what is computationally more efficient
Jun 9, 2010 at 2:32pm UTC
oringent
(10)
Hi there,
I want to compute a geometric average. would it be faster to multiply values and then take the nth root over the result, or to sum logs and then take exp() of the result? Thank you
Jun 9, 2010 at 2:41pm UTC
Athar
(4466)
The best and often the only way to tell is to test both variants.
However it's safe to say that a multiplication is
much
faster than log().
Topic archived. No new replies allowed.