Toward an API for the Real Numbers
81–85 of 85 posts
Re: Toward an API for the Real Numbers
#82Earlier quoted context omitted.
You can produce an arbitrary infinite stream using a random number generator, for instance.
The probability of generating any given infinite stream is 0, though.
Re: Toward an API for the Real Numbers
#83"We solved this 40 years ago in SmallTalk!"
Re: Toward an API for the Real Numbers
#84Earlier quoted context omitted.
If these 3 lines of Python give you correct results... I keep wondering and never have this answered to my satisfaction: if so many people are just using floating point numbers in scientific calculations, and arguably even most scientists don't understand FP math any way better than the users of Android's Calculator app, then how many bad results are out there, that could be attributed to FP errors? Related: I don't…
It seems strange that they don't use a rational type, those are much easier for "normal" people to reason about. What you want would maybe be better as probability distributions (maybe parameterized with rational numbers)
Re: Toward an API for the Real Numbers
#85Earlier quoted context omitted.
I disagree. IEEE 754 is a fantastic solution if you want a no-brainer plug-and-play approximation of the real numbers. Most people who complain really just want a rational number type.
Immaturity - it's the plague of our industry. The experts in floating point arithmetic, each having years of real-world experience, came together and hashed-out a standard embodying their collective experience. Yes, it's complicated. Yes, you need to learn it. No, you're highly unlikely to come up with anything better. Moreover, even if you did come up with something better it WILL have bugs, there WILL be edge cases…