Questions tagged [intervals]

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

67 questions
12
votes
1 answer

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 - IntervalMemberQ[Jintervals[[1]], 21] (* True *) IntervalMemberQ[Jintervals[[2]], 21] (*…
xhF731
  • 329
  • 1
  • 4
6
votes
2 answers

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$ and $B$. I tried Union[A, B], I got {1 <= x <= 5, 5 <= x <= 8} and for Intersection[A, B], I got {}. The correct answer…
minthao_2011
  • 4,503
  • 3
  • 31
  • 46
5
votes
2 answers

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: Interval[ {2894486400, 2894486400}, {2894659200, 2894832000}, {2895004800, 2895004800}, …
Mammouth
  • 481
  • 2
  • 9
4
votes
1 answer

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 Reduce[D[f[x], x] > 0, x] // N to find where it is increasing. Then I used Reduce[D[f[x], x] < 0, x] // N to find where it is…
awild
  • 51
  • 1
4
votes
2 answers

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 i1, returning: Interval[{1,2},{3,4}] In other words, is there an analog of the Complement function for intervals? And if not, how would one…
verse
  • 1,287
  • 6
  • 18
3
votes
2 answers

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 seemingly equivalent statement: Reduce[Sin[Cos[x]] == 0 && IntervalMemberQ[Interval[{0, Pi/2}], x],…
gaazkam
  • 817
  • 5
  • 15
3
votes
4 answers

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
mais
  • 71
  • 3
0
votes
1 answer

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 not find the codes that works for this problem.…
Eda K
  • 11
  • 1