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

outward-directed rounding #107

Open
pcarbonn opened this issue Nov 24, 2024 · 2 comments
Open

outward-directed rounding #107

pcarbonn opened this issue Nov 24, 2024 · 2 comments

Comments

@pcarbonn
Copy link

It's not clear to me whether inari does outward-directed rounding of computations, i.e., that every computed interval is guaranteed to include the hull of the theoretical computation. You may want to clarify that in the documentation (unless I have missed it).

I see in the source code that the internal representation of [a,b] is [[-a, b]], and that [a,b]+[c,d] is computed as [[(-a)+(- c); b + d]]: this accomplishes outward-rouding if addition rounds up. Is that so ?

@Chris00
Copy link
Contributor

Chris00 commented Nov 24, 2024

It's not clear to me whether inari does outward-directed rounding of computations, i.e., that every computed interval is guaranteed to include the hull of the theoretical computation.

It does. It is implicit in the fact that it implements the standard IEEE Std 1788.1-2017. Actually, IMHO, a library should not call itself an interval arithmetic library if it fails to do that (although some nonetheless do ☹).

@pcarbonn
Copy link
Author

Thank you for your quick reply.

As I don't know the details of IEEE standard, I asked chatGPT whether the standard asks for outward-directed rounding, and it answered "no". Of course, I should never rely on chatGPT, and I'm glad I asked you.

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