-
Notifications
You must be signed in to change notification settings - Fork 71
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
nai() not working with rational intervals #462
Comments
actually it seems decorated intervals with rationals do not work at all
|
That's not quite true:
Rather, it's a constructor issue I believe. |
found the problem with the constructor. At the moment we have
since
and then it fails. Was there any particular reason for having |
there's still a small problem with
The problem is that Rational does not have anything for |
At the moment
nai(Rational)
returns an erroras Luis proposed, one solution might be to define
I think this would work because
NaI
is allowed only as decorated interval and not as bare, hence it would not be confused with[1//0, -1//0]_trv
which is the empty interval. This might require manually adjusting a couple of functions (at least hardcoding the printing forNaI
and possibly checking that the current definitions ofisnai
andisnan
still work), but other than that I don't see why it would not work.The text was updated successfully, but these errors were encountered: