Mathematica Long Numbers: Unexpected Results

  • Thread starter Thread starter mas1o
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary
SUMMARY

The discussion centers on the unexpected results encountered when adding extremely large numbers, specifically 1204812635653636 and 534095083405834058, which resulted in an incorrect output of 8234823635636365464560000 followed by numerous zeros. This anomaly suggests a potential overflow issue or limitations in the numerical representation within the programming environment used. The suggestion to consult Wolfram for accurate calculations indicates the need for reliable computational tools when handling large integers.

PREREQUISITES
  • Understanding of numerical data types in programming languages
  • Familiarity with integer overflow concepts
  • Knowledge of arbitrary-precision arithmetic libraries
  • Experience with computational tools like Wolfram Alpha
NEXT STEPS
  • Research how to implement arbitrary-precision arithmetic in Python using the 'decimal' module
  • Learn about integer overflow handling in Java with BigInteger
  • Explore the capabilities of Wolfram Alpha for large number computations
  • Investigate the limitations of numerical data types in C++ and their implications
USEFUL FOR

Software developers, mathematicians, and data analysts who work with large numerical datasets and require accurate computations without overflow errors.

mas1o
Messages
1
Reaction score
0
hello

i try add 1204812635653636...a really long number...4235345345667 to 534095083405834058...long too...5703457034953. everything is ok, but my result is 8234823635636365464560000...and few pages with only 000000000000000000.


what happened?

ps all numbers is only for example.
 
Physics news on Phys.org
How about forwarding this to Wolfram? They should be able to give you an accurate answer.

Cheers
Vivek
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
14K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
857