Of course, if it's just the normal algorithm then I wouldn't post this. but this works with fractional exponents as well! a ∈ ℝ b ∈ ℝ