Comment

Comment by mike-the-mikado

I recently implemented something somewhat similar, but from the perspective of set membership.

I therefore needed to include a complement operation, so that I could do full Boolean analysis of interval membership.

Your intervals are all closed sets, consequently the complements are open intervals. I chose not to distinguish between open and closed intervals, since for my practical purposes whether the end points are members of the set is unimportant.

Of course, with inexact arithmetic, the question of whether the set is open of closed probably not well-defined.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton