Forum Discussion
Altera_Forum
Honored Contributor
10 years agoy**x = 2**(x*log2 y) if y > 0.
avoid division and use rational approach 1/x = x**(-1) = 2**(-log2 x) , x>0. You can rewrite your equation fully in 2**x and log2 x function. if you need to compute sum the problem of accuracy still exists. you have to remember if you will add unsorted floating-point. Does it take place in FPGA?