You'll be using the math coprocessor (which, in this day and age, is no longer a coprocessor).
Load the numbers into the math coprocessor, and perform the operation.
Unfortunately, the math coprocessor does NOT support an X^Y operation. So what do you do? Well, we CAN use logarithms and their weird properties. Now:
2 log x
happens to be equal to
log x^2
and
y log2 (x)
happens tp be equal to
log2 (x^y)
and as it happens, the processor supports both log base 2 and anti-log base 2 operations.
Implementation is up to you, for the simple reason that while I know how it's done, I've never actually implemented it. Experiment. Back up your hard disk. Good luck.
"Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.