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

Intervals for arbitrary comparable values #21

Open
AlexandreDecan opened this issue Apr 12, 2018 · 2 comments
Open

Intervals for arbitrary comparable values #21

AlexandreDecan opened this issue Apr 12, 2018 · 2 comments

Comments

@AlexandreDecan
Copy link

Hello,

First of all, thank you for pyinterval!

This post is not really an issue but could be considered as an "ads", sorry for that ;-)
Some days ago, I was looking for a Python library providing interval arithmetic. A well-known search engine suggested pyinterval, but it seems that pyinterval is "restricted" to real numbers, and I was looking for a library that supports arbitrary objects (in short: I wanted to create and manipulate intervals of software versions).

Given I haven't found any maintained/stable/correct alternative, I decided to implement my own library that supports interval arithmetic for arbitrary comparable objects in Python. As I think I'm not the only one who found pyinterval by looking for a library that supports arbitrary objects, having a pointer to "alternative" libraries like mine could be interesting.

The library can be found at https://github.com/AlexandreDecan/python-intervals or on PyPI (package name is "python-intervals". Yeah, I known, that's not very imaginative ;-))

@taschini
Copy link
Owner

Thanks for the link.

My library is pretty much focused on numerical computations with correct rounding, hence the restriction to floats.

There is plenty of space for other libraries that implement interval libraries on types that are not affected by rounding issues.

@AlexandreDecan
Copy link
Author

AlexandreDecan commented Apr 12, 2018

Yes, but I was quite surprised to see that there was no library with similar quality than pyinterval but for arbitrary objects :)

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

2 participants