Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonicalizing Unbounded Intervals #37

Open
vansivallab opened this issue Oct 4, 2017 · 0 comments
Open

Canonicalizing Unbounded Intervals #37

vansivallab opened this issue Oct 4, 2017 · 0 comments

Comments

@vansivallab
Copy link

vansivallab commented Oct 4, 2017

Canonicalizing an unbounded interval changes the meaning of the interval.

As an example:

>>> a = IntInterval((None, None))
>>> infinity.inf in a
False
>>> b = canonicalize(a, lower_inc=True, upper_inc=True)
>>> b
IntInterval('[,]')
>>> infinity.inf in b
True

The initial version (a) of the interval suggests that infinity is not included in the interval, but after the canonicalization infinity is in the interval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant