1

In numerical analysis, we have the scheme to evaluate $x^{1/2}$ or more generally the scheme to evaluate $x^{1/n}$.

For $x^k$ with $k\in[0,1]$, is there a fast scheme to evaluate it? My naive implement is writting $k$ into fration like $k=\frac{\alpha}{\beta}$, but it seems that this method will not work for irrational number and the computation is expensive. I am wondering in programming like mathematica or matlab, how is $x^k$ calculated?

vonbrand
  • 27,812
Langma
  • 321

1 Answers1

2

Do $x^\alpha = \exp(\alpha \ln x)$, use a CORDIC algorithm for the functions.

vonbrand
  • 27,812