Let a
and b
are the known Big Integers [Each of length 308]. I want to find the big integer x
in the equation a^x = b
using Java
Mathematically, By taking log on both sides of the above equation, I can simplify it as follows.
x · log2(a) = log2(b)
The above-simplified equation can be programmed. But Math.log
is supported only for double values and not for Big Integers. So am looking for any alternate functions to compute this.
How to compute the value of Big Integer x. Any help will be appreciated.