Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Intervals in modular arithmetic (fgiesen.wordpress.com)
43 points by mmozeiko on Sept 25, 2015 | hide | past | favorite | 2 comments


Interval arithmetic is neat. This is a great article for introducing modular interval arithmetic too. I'm going to add this to my toy interval arithmetic library when I get a chance. Thanks!


One quirk worth mentioning is equality testing. That is not simply a matter of checking that lower and upper boundaries are equal:

  [4,3] = [8,7]

  [4,4) = [8,8) = (4,4]
(The latter independently of the issue whether you think those sets are empty or the complements of the empty set)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: