My machine (or, perhaps the Java Math Library) is unable to calculate 2^1024(+), it can however, calculate up to 2^1023.
If I wanted to calculate a higher value, such as 2^1024, then how would I go about doing this? It can be in standard form if required.
I'm happy to implement C++ for this, but would prefer pure Java.
Any ideas? Is there some sort of algorithm I could use to allow larger operations? Could I some how split the calculation into several individual calculations, run them seperately, and then somehow combine the answers?
(I doubt I need to remind you that these are EXTREMELY large numbers; i.e:
2^1023 = 8.98846567431158e+307
Which is something like:
So, storing the results in a variable isn't my ultimate goal, I just need to output the solutions...