Group Abstract Group Abstract

Message Boards Message Boards

0
|
1.5K Views
|
8 Replies
|
7 Total Likes
View groups...
Share
Share this post:

Overflow while computing 10^16 digit

Posted 5 months ago

I have joined you guys because the biggest number Wolfram Mathematica computes is 10^16 digit number, and go bigger than that and it overflows!
Is there any way to compute the first 4, 000 digits of my expression 96717311574016^(8^36 * 14) * 5764801 * 7^3, since that is about 10^20 bigger than the biggest number Mathematica can compute?
I know it isn't possible to see the whole number; it will take me at least BILLIONS OF YEARS to scan over that number! I just need to know how to get the first 4, 000 digits of any number bigger than 8^16, like my expression above. It's like scientific notation with a long number after the decimal. Do I use logarithms?
What's the largest ever number Wolfram alpha can ever compute? This site says it computes answers to arbitrary precision. So does arbitrary in this context mean there's no limit to how big it can go?
Most importantly, how come 8^16 is the biggest number Mathematica can compute and any bigger number overflows?

POSTED BY: Mark Raygorodsky
8 Replies
POSTED BY: Michael Rogers

ok thanks mike! so computing logarithms doesn't work on every single number? I know how to compute a numbers last digits, the first digits are what is extremely hard for me. how do I compute the first 4000 digits of my expression 96717311574016^(8^36 * 14) * 5764801 * 7^3

POSTED BY: Mark Raygorodsky

Does digits show the first 4000 digits or the last 4000 digits? I would call digits the first 400 4000 digits, but maybe you meant something else.

POSTED BY: Michael Rogers

I meant the first 4000 digits. The last 4000 digits I figured how to calculate. Just take the rightmost digits and do arithmetic operations with it eg. 8^2. So for the first 4000 digits do I just take the leftmost 4000 digits and do the same thing as I do the rightmost?

POSTED BY: Mark Raygorodsky
POSTED BY: Michael Rogers

Maybe try giving the base of that power finite precision, say 10000 digits. See what precision the result has.

POSTED BY: Daniel Lichtblau
Posted 5 months ago

Just to be clear, 8^16 is nowhere near the biggest number Mathematica can compute. I think you meant that the max contains 10^16 digits, like you said in your first sentence. You can ask for what the biggest number Mathematica can handle is with $MaxNumber.

As for why, it's obviously because computers have finite memory. Mathematica can't compute a number that it can't actually represent in the memory available on the computer where it's running.

As for how to compute the 4000 leading digits of your number, I think that's more of a math question. Are there algorithms for computing the leading digits of a product without first computing the trailing digits? Seems infeasible to me, but I'm not a mathematician.

POSTED BY: Eric Rimbey
POSTED BY: Mark Raygorodsky
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard