(12C) Check if two numbers is to the power of other
|
09-06-2018, 07:07 PM
(This post was last modified: 09-06-2018 07:08 PM by stored.)
Post: #2
|
|||
|
|||
RE: (12C) Check if two numbers is to the power of other
Interesting.
Perhaps it is more practical to use logarithmic formula: if a=b^n where a, b, n -- integers, a,b>0, then n=ln(a)/ln(b) -- also must be integer number. But the problem of this approach is a big rounding errors in some cases, so it is necessary to make a direct verification. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)