Optimizing division/exponential calculation
Posted
by Saltheart
on Stack Overflow
See other posts from Stack Overflow
or by Saltheart
Published on 2010-04-15T19:59:14Z
Indexed on
2010/04/15
20:03 UTC
Read the original article
Hit count: 134
I've inherited a Visual Studio/VB.Net numerical simulation project that has a likely inefficient calculation. Profiling indicates that the function is called a lot (1 million times plus) and spends about 50% of the overall calculation within this function. Here is the problematic portion
Result = (A * (E ^ C)) / (D ^ C * B) (where A-C are local double variables and D & E global double variables)
Result is then compared to a threshold which might have additional improvements as well, but I'll leave them another day
any thoughts or help would be appreciated
Steve
© Stack Overflow or respective owner