https://github.com/juliaaplavin/intervalunions.jl
https://github.com/juliaaplavin/intervalunions.jl
intervals math
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliaaplavin/intervalunions.jl
- Owner: JuliaAPlavin
- License: mit
- Created: 2024-02-18T17:57:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-22T19:35:58.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T12:05:58.175Z (over 1 year ago)
- Topics: intervals, math
- Language: Julia
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IntervalUnions.jl
Extend [IntervalSets.jl](https://github.com/JuliaMath/IntervalSets.jl) with _interval unions_ -- unions of disjoint intervals. Not all operations are type-stable for now, this is subject to further improvements.
## Examples
```julia
julia> iu = IntervalUnion((1..2., 3..4.))
1.0..2.0 ∪ 3.0..4.0
julia> iu ∪ (10..11.)
1.0..2.0 ∪ 3.0..4.0 ∪ 10.0..11.0
julia> setdiff(iu, 1.3..3)
1.0..1.3 (closed–open) ∪ 3.0..4.0 (open–closed)
```