Questions tagged [interval-arithmetic]
20 questions
7
votes
4 answers
Storing elements in a Vector using "for" loop in Julia
I aim to divide elements of two different interval vectors, alpha, and gamma, and want to store the resultant intervals in a vector form.
I am trying to run this code in Pluto-Julia but not getting the results:
using IntervalArithmetic, Plots,…

Kanishk Sharma
- 173
- 7
6
votes
7 answers
A good uncertainty (interval) arithmetic library?
edited
Given that the words "uncertain" and "uncertainty" are fairly ubiquitous, it's hard to Google "uncertainty arithmetic" and get anything immediately helpful. Thus, can anyone suggest a good library of routines, in almost any…

bugmagnet
- 7,631
- 8
- 69
- 131
4
votes
2 answers
Calculate the duration of overlapping time ranges using pandas
I have large csv files of traffic data similar to the sample below, for which I need to calculate the total bytes and the duration of each data transfer.
The time ranges are overlapping, but they must be merged:
first_packet_ts last_packet_ts …

George Vakras
- 93
- 2
- 8
3
votes
1 answer
How to do interval algorithms based integration using "IntervalArithmetic" package in Julia?
How to integrate an interval-algorithm-based nonlinear function (for example, d(F(X))/dX= a/(1+cX), where a=[1, 2], c=[2, 3] are interval constants) using the "IntervalArithmetic" package in Julia? Could you please give an example? Or could you…

Kanishk Sharma
- 173
- 7
3
votes
0 answers
How to draw 3D plot of interval valued function using "IntervalArithmetic" package in Julia?
I have a function P = f(a, b, c) = squareroot( a^2 + b^2 + ac + bc), where a, b, and c are in intervals. I want to draw a 3D or cubical type plot where a, b, and c will be on the x, y, and z axes. My aim is to visualize how the interval value of P…

Kanishk Sharma
- 173
- 7
3
votes
1 answer
Exact solutions for lib(ic)
Using ECLiPSe Prolog's lib(ic) I stumbled upon the following problem from David H. Bailey, "Resolving numerical anomalies in scientific computation." which I was referred to by the Unum book. Actually, it is only part of it. First, let me formulate…

false
- 10,264
- 13
- 101
- 209
3
votes
1 answer
arithmetic library for tracking worst case error
(edited)
Is there any library or tool that allows for knowing the maximum accumulated error in arithmetic operations?
For example if I make some iterative calculation ...
myVars = initialValues;
while (notEnded) {
myVars =…

Javier
- 678
- 5
- 17
2
votes
1 answer
How to find a Jacobian matrix of a vector function in Julia using "IntervalArithmetic.jl" package?
Could you please provide a solution for finding a Jacobian matrix for a vector function using the "IntervalArithmetic.jl" package in Julia? The function representation and the required Jacobian matrix is shown below.
f = [f1(x,y,z), f2(x,y,z),…

Kanishk Sharma
- 173
- 7
2
votes
0 answers
How to reduce runtime of Julia code to find roots using "IntervalRootFinding.jl" package?
I am trying to find roots using the "IntervalArithmetic.jl", and "IntervalRootFinding.jl" package in Julia. It seems that the code is running for an infinite time, as it neither gives roots nor terminates at some point. The code is shown…

Kanishk Sharma
- 173
- 7
2
votes
1 answer
Is there a built in function for length of boost::numeric::interval
I'm typing the following in my code
boost::numeric::interval foo = ...;
double length = std::abs(foo.upper() - foo.lower());
It surprises me I can't find a simple utility in boost::numeric::interval that calculates the length. I'd expect a…

bradgonesurfing
- 30,949
- 17
- 114
- 217
2
votes
0 answers
Conservative AABB for voxel-triangle intersection
The problem I am trying to solve is to generate an AABB for the intersection of a triangle and a cube. In 2D, the required volume is the green square shown here:
The input points and output bounds are IEEE float.
My current method using floating…

Greg
- 123
- 6
2
votes
2 answers
Conservative interval arithmetic library in Javascript
Is there a good existing library for conservative interval arithmetic in Javascript?
By conservative I mean that given two intervals representing ranges of real numbers (whose endpoints happen to be floating point), their interval sum contains all…

Geoffrey Irving
- 6,483
- 4
- 32
- 40
1
vote
1 answer
Floating and interval arithmetic in Isabelle
I'm using the Approximation.thy from the Descision_Procs file for interval arithmetic in Isabelle. The file gives you a tactic for proving inequalities over the reals, such as:
theorem "3 ≤ x ∧ x ≤ 6 ⟹ sin ( pi / x) > 0.4" by (approximation…

user1868607
- 2,558
- 1
- 17
- 38
1
vote
3 answers
memcpy [or not?] and multithreading [std::thread from c++11]
I writing a software in C/C++ using a lot BIAS/Profil, an interval algebra library. In my algorithm I have a master which divide a domain and feeds parts of it to slave process(es). Those return an int statute about those domain parts. There is…

luneart
- 182
- 1
- 8
0
votes
0 answers
How to extract solution values "x" if solution is obtained using ReachabilityAnalysis.jl package?
I am solving a differential equation (with an initial condition in an interval) using ReachabilityAnalysis.jl package in Julia as,
prob = @ivp(x' = f(x), x(0) ∈ X0, dim=1)
sol = solve(prob, alg=TMJets21a(abstol=1e-18), T=15)
I wish to get an array…

Kanishk Sharma
- 173
- 7