3 ms·
Another example of how to solve this problem is the rational number library used in the Microsoft Calculator. It is called “RatPak” and it is open source: http
by MarkSweep 6y ago
Another example of how to solve this problem is the rational number library used in the Microsoft Calculator. It is called “RatPak” and it is open source:
https://github.com/microsoft/calculator/blob/master/src/CalcManager/Ratpack/ratpak.h https://github.com/microsoft/calculator/blob/master/src/Calc...
- yarg 6y agoRationals are a strict subset of the reals. There are also the irrationals, and most of those cannot even be expressed (fortunately, since they cannot be expressed, there's no chance of you bumping into them by accident - so it's somewhat of a moot point). The subset that you want to aim for is not the rationals, but the definable reals: https://en.wikipedia.org/wiki/Definable_real_number https://en.wikipedia.org/wiki/Definable_real_number.