taschini / pyinterval

PyInterval — Interval arithmetic in Python
http://pyinterval.readthedocs.io
Other
83 stars 25 forks source link

Add "empty" and "full" intervals #28

Open padraic-mcatee opened 2 years ago

padraic-mcatee commented 2 years ago

It would be nice to have identity elements for operations on intervals. For example, "empty interval" would be the identity element for Union operation. "Full" would be identity element for Intersect operation.