Questions tagged [intervals]

Mathematica's Interval Arithmetic is capable of handling the uncertainty in a rational manner

Filter by
Sorted by
Tagged with
20
votes
0answers
189 views

How to get an absolute value of Around?

Around is a useful feature of Mathematica 12 to work with uncertain data. x = Around[-1, {0.5, 1.5}] $-1.0^{+1.5}_{-0.5}$ ...
0
votes
1answer
46 views

Finding the volume of a 10-dimensional cube

I need help with finding the volume of a 10-dimensional cube with a given interval: $1 \geq x \geq -1$. I tried to defined the function by: $a^2+b^2+c^2...j^2 \leq 1$ as the question required. I can ...
3
votes
1answer
44 views

NDSolveValue::bcedge: Boundary condition is not specified on a single edge of the boundary of the computational domain

I'm solving a Schrödinger's Equation in 1d, where $\Omega$ is the domain, bcs the periodic boundary condition, init the initial condition. ...
0
votes
1answer
62 views

Using Piecewise to plot a defined function [closed]

I'm trying to Plot this function: Between the interval -0.2 < t < 0.1 but it doesn't work. All i get is a blank graph between my intervals. If you could help me out I'd greatly appreciate it. ...
7
votes
3answers
126 views

How to create an Interval object with specific end points?

When creating an Interval object, the end points are automatically widened when an end point is an inexact number. For instance: ...
1
vote
1answer
57 views

List manipulation Interval Intersection

I'm having some troubles manipulating a nested list: ...
1
vote
0answers
35 views

Buggy IntervalUnion with Quantities?

IntervalUnion can give wrong output when used with Quantity: ...
0
votes
1answer
324 views

How to divide an interval on 10 equal intervals? [closed]

I have a simple function f(x)= t [0.216019, 0.216971]. How do I tell the software to divide this interval into 10 equal intervals (and also to give me their values)?
4
votes
1answer
80 views

How to turn intervals into coordinate pairs?

So for the function (x^3 + 2)/(x^4 + 1) I needed to find the values where it is increasing and decreasing. I used ...
3
votes
1answer
81 views

Different intervals in 3D plot of multiple surfaces

I'm coming from R --hoping for better 3D graphs. I have the following code and graph: ...
0
votes
1answer
187 views

How to get a random real number in the half-open interval [0.0,1.0)? [duplicate]

As far as I understand, RandomReal[] is able to generate random numbers between 0.0 and 1.0 so thinking in Terms of an interval this means [0.0,1.0]. Now I want to ...
6
votes
3answers
215 views

How to efficiently get the Complement of a Domain and several Intervals (IntervalComplement?)

Suppose you have a list of intervals (or tuples), such as: intervals = {{3,7}, {17,43}, {64,70}}; And you wanted to know the intervals of all numbers not ...
0
votes
0answers
57 views

Mathematica IntervalGraph

I wanted to visualize an Interval Graph.Documentation says there exists a function IntervalGraph in Global which used to be in package Combinatorica before ...
0
votes
1answer
206 views

Division by an interval

I have a function: f[x_] := 1792 - 256 x - 2240 x^2 + 320 x^3 + 448 x^4 - 64 x^5 - 6 x^6 + 6 x^7 interval: ...
3
votes
3answers
99 views

Easy way to covert a Range or set of vales to an Interval object [duplicate]

I am generating data such as {4,5,6,7,8,9,20,21,22,23,24,25,78,79,90}. This list can reach thousands of elements. Is there a simple or good method to convert such a list into a set on Interval ...
0
votes
1answer
175 views

Interval of confidence

I need some help to understand the proper meaning of the way Mathematica estimates interval of confidence. I have some data points, which are quite scattered around a sinusoidal behavior. For physical ...
1
vote
1answer
69 views

Checking membership of 2d region

I want to check whether a point $(x,y)$ belongs to a square region whose x-interval is $[x_1,x_2]$ and y-interval is $[y_1,y_2]$. I defined the 2d region as ...
1
vote
1answer
2k views

How do I solve a trig equation over an interval?

I have an equation $4\sin^2(θ) = 1+4\cos(θ)$. I need to solve this equation on the interval $0<=θ<2 π$. How would I use the Solve and/or ...
1
vote
1answer
304 views

Timeline Plot with Date Intervals and Caption Array

I'm trying to achieve something similar to this example mentioned in the mathematica website below (https://reference.wolfram.com/language/ref/TimelinePlot.html), except I'm trying to get the event ...
3
votes
0answers
69 views

Representing inequalties with proper boundaries [closed]

I have a very simple problem: given an inequality, I'd like to represent it in a regional plot marking the boundary differently depending whether it belongs to the region or not. For example I'd like ...
2
votes
1answer
213 views

How to plot Extreme-Value functions that have parameters with finite intervals?

I would like to calculate/plot $min$ and $max$ values of a function whose parameters have finite intervals but I am receiving error messages as follows: ...
1
vote
0answers
86 views

Interval arithmetics and complex numbers

I am trying to do some simple calculations for a computer assisted proof and since they are not too demanding I thought of using Mathematica. I seems that Mathematica is great for interval ...
0
votes
3answers
3k views

Average function value over an Interval [closed]

What is the best way to find the average value of a function over a specific interval in Mathematica? I can not figure it out. I have two points on the interval and need to find the average value.
4
votes
2answers
277 views

Is there an analog of the `Complement` function for intervals?

I have two intervals: i1 = Interval[{1,4}]; i2 = Interval[{2,3}]; I need a function that subtracts i2 from ...
10
votes
1answer
394 views

How can I exclude endpoints of intervals?

I have list of intervals: Jintervals = {Interval[{18.9, 21.}], Interval[{21., 23.1}]} I need to exclude the endpoints - [18.9,21.), [21.,23.1) Wrong - <...
12
votes
1answer
171 views

A weird issue with Interval[$MaxNumber]

Bug introduced in 9.0 or earlier and persisting through 11.0.1 or later From the Interval documentation: For approximate machine- or arbitrary-precision numbers ...
1
vote
3answers
409 views

Plot multiple functions with different but overlapping intervals

Suppose I numerically solve a differential equation by using sol = ParametricNDSolve[{y'[x] == b y[x], y[0] == 1}, y, {x, 0, 0.3}, {b}] And then I want to plot $...
3
votes
2answers
124 views

Interval arithmetic for DawsonF (or other special functions)

I am currently trying to estimate a complicated expression involving DawsonF using interval arithmetic. The interval arithmetic is partially supported by ...
4
votes
2answers
408 views

Interval notation for NumberLinePlot

Consider: NumberLinePlot[Abs[3 - 4 x] < 2, x, PlotStyle -> {Thick, Blue, PointSize[Large]}, Ticks -> {Range[0, 1.5, .25]}] Which produces this image: ...
7
votes
3answers
297 views

Interval calculations in wolfram mathematica

If x = Interval[-100,100], then obviously x^2 + x = Interval[-0.25,10100], because as we know, ...
2
votes
2answers
95 views

Solving for intervals without using NumberLinePlot

I've been struggling to find a way to find an interval solution to an equation/inequality. I know mathematica can do this since for example, ...
6
votes
1answer
134 views

Why doesn't Rationalize work for 0. in Interval?

Same motivation as this q. Why doesn't Rationalize work for 0.? Interval[{0., 1.}] // Map[Rationalize, #, {2}] & ...
4
votes
0answers
203 views

Interval Arithmetic with Symbolic Intervals

I've run into a problem with IntervalUnion and IntervalIntersection when dealing with symbolic intervals. The following code ...
0
votes
0answers
79 views

How do I simplify Interval[{x,x}] to x? [duplicate]

How do I simplify Interval[{x,x}] to x ? Simplify and ...
3
votes
2answers
66 views

Weird results with Intervals

Sorry for presumably another dumb question... But here we go: Reduce[Sin[Cos[x]] == 0 && 0 <= x <= Pi/2, x] (* x == Pi/2 *) Yep. Nice. So now, a ...
0
votes
1answer
75 views

Fine precision control in IntervalSlider

I would like to develop a simple slider for exploring a wide range of intervals on the real line. Is it possible to get the MinimalSize of IntervalSlider to work ...
1
vote
1answer
484 views

How do you graph the confidence intervals that results from a GARCH over a time series?

Please, does someone know how to draw a confidence intervals (from the results of a GARCH (1,1)) in a way similar to these: *Asume an ARMA(1,1) fit the time series. Thank you very much
3
votes
2answers
454 views

NIntegrate and Interval regions

NIntegrate does not seem to like Intervals as regions. Consider the following example function defined for a parameter "a": ...
3
votes
1answer
466 views

How can I plot a circular region and lines?

I am having difficulty plotting something along these lines in Mathematica. I will explain what is going on here. Basically, I am solving an interval equation $ax=b$, in the first example $a = [1, 20]...
4
votes
2answers
133 views

Remove singleton from Interval

I am using operations over Interval and the result of an intersection (or union) contains some singletons. Would it be possible to remove them ? Example: ...
6
votes
2answers
640 views

Intersection of lists of disjoint intervals

Here is my problem: I have two very large lists of intervals (stored as many couples in the form {{"start point", "end point"}, ..., {"start point", "end point"}), ...
3
votes
3answers
314 views

A fast way to compare interval

I have a list of intervall. Some of these intervals are disjoint, some are overlapped and some are included in others. To leave no ambiguity about my explanation, you can see the following examples: {...
1
vote
1answer
556 views

How do assign an interval of values to a variable in order to use them in a function?

From my code (below) I have K1 and K2 set to zero in order to test this numerical method. However, K1 is on an interval from 0 to 32, and K2 is on an interval from 0 to 8. I would like to know if ...
3
votes
4answers
122 views

how do I can create a list of the first interval such as [-10+Sin [k], 10+Sin [K]]

A (k) =the closed interval [-10+Sin [k], 10+Sin [k]] How do I can create a list of the first 20 of such interval The find the intersection of the first 14 of them
5
votes
2answers
276 views

The UnitStep function and Intervals

For the input UnitStep[Interval[{-4, 5}]] I get Interval[{0, 1}] Why is this not ...
4
votes
4answers
921 views

Converting inequalities to intervals

I have an inequality, ie: 1.57116 < g < 14.1405 There will be a large set of similar inequalities, and I want to find the intersection of them all. I figured it would be easier to convert the ...
2
votes
2answers
1k views

How to plot function over interval returned by Reduce[]

Let $f(x) = (x^2 + 1) / x$. I need to plot the function for the values of $x$ in which the square of the function is larger than 4, and its cube is smaller than 64. So I used ...
25
votes
3answers
2k views

Can Mathematica Handle Open Intervals? Interval complements?

Open Intervals Following up on this question, I was wondering whether Mma can handle open intervals. For example, the union of the intervals, $$1<x<5$$ and $$5<x<8$$ should not ...
3
votes
1answer
2k views

Union and Intersection of intervals

I have two sets $A = \{1 \leq x \leq 5\}$ and $B = \{5 \leq x \leq 8\}$. Now I want to find the Union and Intersection of $A$ ...