How do Calculators add fractions with different denominators

Click For Summary
SUMMARY

Calculators add fractions with different denominators using fixed precision floating point formats, typically employing binary double precision arithmetic. Early models like the HP35 and HP45 utilized decimal floating point with limited digit accuracy. Modern calculators compute fractions by converting them to binary, aligning their exponents, and then performing the addition before converting the result back to decimal for display. In contrast, computer algebra systems handle fraction addition by finding the least common multiple of the denominators, expanding the fractions, and simplifying the result.

PREREQUISITES
  • Understanding of binary double precision floating point arithmetic
  • Familiarity with fixed precision formats in calculators
  • Knowledge of least common multiples in fraction addition
  • Basic concepts of computer algebra systems
NEXT STEPS
  • Research binary double precision floating point arithmetic in calculators
  • Explore fixed precision formats and their implications on calculations
  • Learn about least common multiples and their role in fraction addition
  • Investigate how computer algebra systems perform rational arithmetic
USEFUL FOR

Mathematicians, software developers, educators, and anyone interested in understanding the computational methods behind fraction addition in calculators and computer algebra systems.

matqkks
Messages
283
Reaction score
6
How does computer technology add fractions with different denominators?
 
Mathematics news on Phys.org
matqkks said:
How does computer technology add fractions with different denominators?
A desktop calculator will typically work using a fixed precision floating point format. https://en.wikipedia.org/wiki/Floating-point_arithmetic.

My understanding is that the early calculators worked in decimal floating point. For instance, the HP35 and HP45 had 8 decimal digits of accuracy and the SR51 had 10 decimal digits plus three undisplayed guard digits. If you key in "(3/7) + (5/6)", a modern calculator will likely compute 3/7 using binary double precision floating point arithmetic, compute 5/6 using binary double precision floating point arithmetic and add the two binary fractions [after scaling them to share a common binary exponent if needed]. It will convert the result to decimal for display purposes.

A calculator performing infinite precision rational arithmetic would evaluate the sum differently.
 
  • Like
Likes   Reactions: matqkks and jedishrfu
It depends on the system. Typically it will just calculate it numerically with limited precision, in that case see the comment above. If you put it into a computer algebra system it will probably calculate it the same way a human does: Find the smallest common multiple of the denominators, expand both fractions to get the same denominator, add them. Alternatively expand both with the denominator of the other, add them, then simplify the result.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
17K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K