Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Remove intervals that are wholly contained in other intervals
ResourceFunction["RemoveSubintervals"][intervals] removes an interval if it is wholly contained within another interval. |
A list of pairs representing intervals:
In[1]:= |
Remove pairs that are wholly contained in other intervals:
In[2]:= |
Out[2]= |
A list of Interval objects:
In[3]:= |
Remove intervals that are wholly contained within other intervals:
In[4]:= |
Out[4]= |
A large list of pairs:
In[5]:= |
The number of intervals left are removing all subintervals:
In[6]:= |
Out[6]= |
A list of Interval objects with approximate real numbers:
In[7]:= |
Remove subintervals:
In[8]:= |
Out[8]= |
The remaining Interval objects have not had their endpoints rounded further:
In[9]:= |
Out[9]= |
In[10]:= |
Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License