Questions tagged [interval-arithmetic]
20 questions
0
votes
1 answer
Trigonometric Functions: Argument reduction
I'm trying to implement trigonometric functions for interval arithmetic, preferably with < ulp error which requires precisely compute trigonometric functions manually. The first step is usually argument reduction, but I'm not really sure how…

Simply Beautiful Art
- 1,284
- 15
- 16
0
votes
3 answers
Iterate through ranges and return those not in any range?
I have a list of floats.
values = [2.3, 6.4, 11.3]
What I want to do is find a range from each value in the list of size delta = 2, then iterate through another range of floats and compare each float to each range, then return the floats that do…

pariskey
- 53
- 6
0
votes
1 answer
how to plot a graph with mpmath in python?
I need to simulate several models with interval arithmetic, the most viable package I found was: mpmath. However I am having problems with plotting the graphics. I did an initial test before applying it to the models. can anybody help me?
Another…

Thalita
- 1
0
votes
1 answer
Rounding Modes in JavaScript
This is a pretty niche question, but I'm implementing interval arithmetic in JS and I'd like to have correct rounding. Therefore, I need to be able to add two Numbers and have it round towards infinity, -infinity, zero, etc. As far as I can tell JS…

Ovinus Real
- 528
- 3
- 10
-1
votes
1 answer
C++ algorithm for division between 2 signed integer intervals
Consider intervals A = [x1, y1] and B = [x2, y2], two intervals representing signed integers.
Interval arithmetic page on Wikipedia gives a formula to address the case where B does not contain 0, whose C++ implementation may be as follows:
void…

elokode
- 11
- 3