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

Constructor of interval that contains number not represented exactly by IEEE 754 #20

Open
markcampanelli opened this issue Feb 11, 2018 · 0 comments

Comments

@markcampanelli
Copy link

Thanks for making this interval package available publicly. I have found it useful for making "gold" datasets for verifying and benchmarking competing numerical algorithms to solve the same problem.

I would like to pyinterval to have a constructor that will return the smallest interval (with exact IEEE 754 endpoints) that contains a number passed in as an "exact" decimal representation as a string.

For example,

x = interval('0.1')

would return the smallest interval (with exact IEEE 754 endpoints) containing 0.1.

Also, it would be very helpful to be able to turn on a "full precision" mode that shows all interval endpoints at full (decimal) precision. A hexidecimal option here would make things more compact as well (cf. https://docs.python.org/3/library/functions.html#hex).

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