To the power of?
PatM
Posts: 72
I've been searching the prop manual but I can't seem to find an exponent operator. How do you do something like
val := 10 ^ 6 ?
Yes, I learned quickly that the carat isn't what I need [noparse];)[/noparse]
·
val := 10 ^ 6 ?
Yes, I learned quickly that the carat isn't what I need [noparse];)[/noparse]
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
If you need isolated values of a^b then use loops... if you need results from a tight series of a values, then there is a way to speed up the calculations. As a crude "rule of thumb," for "this" to be of any advantage the number of consecutive values of a needs to exceed the average value of b.
Example shows 100 consecutive values of x^2 and x^3. Since series of a can start anywhere... it is usually necessary to caluculate seed values from a limited series of looped calculations.