ThirdWizard
First Post
Patryn of Elvenshae said:Where's the recursion, I ask? I certainly never advocated recursion. I merely said that it is not required that the exponent be calculated first, and that, rather, it may be done during the same step as multiplication.
Here's the crux of Rystil's argument.
When you use order of operations to do, say X*Y*Z, you don't have to know either X nor Y to calculate the multiplication of Z. When you calculate XY^Z (with your method) and do XY first, then you must still know what Y is to finish the calculation. Thus, you are doing two separate calculations still. You're doing XY and Y^(Z-1). You can in no way calculate them in order and expect to get the correct calculations. The exponent must still be calculated independantly.