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

Provide tool for checking if a function plays well with intervals #537

Open
Kolaru opened this issue Jul 1, 2022 · 1 comment
Open

Provide tool for checking if a function plays well with intervals #537

Kolaru opened this issue Jul 1, 2022 · 1 comment

Comments

@Kolaru
Copy link
Collaborator

Kolaru commented Jul 1, 2022

There recently have been some discussions about what can be done in Julia to prevent composing various package in a way that leads to silent error or nonsensical result. A possible solution is better test infrastructure.

I thought about what it could mean for IA since we had quite serious silent bugs caused by IA being used with boolean operations.

It could be interesting to provide a function like

plays_well_with_IA(func, args...)

where args contains some interval arguments. Then func(args...) is computed as well as the values of func for a bunch of point inside the intervals (maybe the bounds and random points inside) and the values are checked to fall inside func(args...).

This would allow users to easily have a sanity check to see if everything seems fine and could be used in the package tests as well.

@lbenet
Copy link
Member

lbenet commented Jul 1, 2022

Fully agree with the idea! Incidentally, the same function could be used inside our own tests to check consistency. In TaylorModels I implemented something like that, though certainly not so user friendly, which includes calculations using extended precision.

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