[A83] Re: Nth Roots


[Prev][Next][Index][Thread]

[A83] Re: Nth Roots




To find the n'th root, r, of x:

r = x ^ (1 / n)

_YTOX should be the correct ROM call to perform OP1 ^ OP2.  There are plenty
of examples on how to everything else.

Your question is funny, because many people who buy an 89 can't seem to
figure out how to do Nth roots, because it doesn't have an explicit
key/function for that (because it is, of course, not necessary).

> I'm making a program which needs to find the Nth roots of a number for
> math class, and instead of making a small BASIC program, i decided to
> try my hand at asm.  Is there a romcall i don't know about that will do
> this?  I know that there are square and cube roots, but i have looked
> through several include files and don't see any Nth root ones.





Follow-Ups: References: