"A calculator app? Anyone could make that." Not true. A calculator...

- To add, you create a new polynomial that has their sum as a root
- To multiply, you use polynomial composition and resultants
Guess what? Still not good enough for Boehm. This only works for algebraic numbers. Doesn't get us π
You know how to generate digits of π. (3.14159...)
You can then take some of them and multiply that by 2. But how many digits do you need to take, to make sure your answer is within 0.01 of 2π?
It can handle expressions involving π or √2 without a problem. Essential for a calculator.
But, it SHOULD show 0 when you type sin(π). sin(π) is exactly 0
RRA gives us no way to tell that sin(π) is exactly 0
But Boehm and co had a realization. They don't need to work with all constructive real numbers
They only need to work with the numbers you can express with the operations available on a calculator
1. The four basic arithmetic operations, and square roots.
2. The sin, cos, and tan trigonometric functions and their
inverses.
3. Exponential and (natural) logarithm functions
It's too slow.
1 is not equal to 1 - e^(e^(-1000)). But for Richardson and Fitch's algorithm to detect that, it would require more steps than there are atoms in the universe.
They needed something faster.
They simplified it and got closer, by limiting how they could construct the numbers. That made the problem solvable, just slow.
Could they simplify it again?
Maybe a faster, conservative algorithm was possible?
You only need RRA when rational numbers aren't enough. Use it when numbers like π or √2 come into play, use rationals otherwise
Obviously we'll want a symbolic representation for the real number 1
But many irrational numbers we use are the result of applying an operation to a rational argument. We can have symbolic representations for these as well
But you do need them sometimes.
So now all they had to do was try to avoid RRA reals as much as possible!
Since the real parts are the same, we can perform the summation by adding the rational parts.
If it were (1 × π) + (3 × √2), they'd just use RRA for that.
All the digits shown on the screen are always correct. And they almost never show more digits than necessary.
A "computer algebra system" would have accomplished a similar goal, but been much slower and much more complicated
I hope you appreciate your android calculator a little more next time you use it!
(Also I decided to try writing this thread in the style of a linkedin influencer lol, sorry about that.)





























