A new instruction will added in v11 for Pow. In the meantime you can use this formula:
I have found a mathematical equivalent if the Prorealtime LOG function (called Napierian log in the manual) is actually the common LN function:
y = x^p = e^(p*LN(x))
This could then be coded as: y = EXP(p*LOG(x)) This works fine.
For negative exponent, use this formula:
y = 1/(EXP(p*LOG(x)))
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue
What if I want to usean exponent different than 2?
A new instruction will added in v11 for Pow. In the meantime you can use this formula:
I have found a mathematical equivalent if the Prorealtime LOG function (called Napierian log in the manual) is actually the common LN function:
y = x^p = e^(p*LN(x))
This could then be coded as: y = EXP(p*LOG(x)) This works fine.
For negative exponent, use this formula:
y = 1/(EXP(p*LOG(x)))