Macro Library interval_ext
Interval functions extension. Version 1.0 November 4, 2014
canonicInterval(IntervalString)
Forms a canonic interval string, consisting of a union of connected intervalls sorted by order
IntervalString: Union of intervals as string
Example: canonicInterval("[2,2^2) U (-1,3]")="(-1,2^2)"
intersection(arrayOfIntervals)
Forms the intersection of unions of intervals in an array
arrayOfIntervals: array of strings in interval notation, ex: [2,5)
Example: intersection(array("(-2,0) U (0,2)","[-1,1)"))="[-1,0) U (0,1)"