5 ms·
Yeah, you call tan() on that number, and suddenly your interval is like most of the number line. Actually, you don't even have to be that fancy: if the number i
by OskarS 6y ago
Yeah, you call tan() on that number, and suddenly your interval is like most of the number line. Actually, you don't even have to be that fancy: if the number is close to epsilon, the error bars on 1/x would be huge.
- crazygringo 6y agoBut isn't that a feature, rather than a bug? It prevents you from getting "false accuracy".
- klyrs 6y agoYes, that's a feature. If you're using interval arithmetic and your result is an unreasonably large interval, then there's a good chance the algorithm in use is numerically unstable.
- yarg 6y agoSure, but what's the use case for mathematics where you don't know what side of an asymptote you're on?
- deleted 6y ago[deleted]
- thaumasiotes 6y ago>> if the number is close to epsilon, the error bars on 1/x would be huge. > Sure, but what's the use case for mathematics where you don't know what side of an asymptote you're on? Knowing which side of the asymptote you're on does not solve this problem or even ameliorate it.
- yarg 6y agoThat's not what I'm saying - it seems to me to be programmer error that such a question is being asked (an exception should be thrown regardless, since the result is not of a usable quality).