JuliaApproximation / DomainSets.jl

A Julia package for describing domains as continuous sets of elements
MIT License
72 stars 12 forks source link

add known set operations for FixedIntervals #48

Closed daanhb closed 4 years ago

daanhb commented 4 years ago

Since is a FixedInterval is always completely determined by its type, there are several set operations that we know explicitly. I tried to think of all combinations and added them, mainly because in other code elsewhere I want the intersection of a ChebyshevInterval with itself to remain a ChebyshevInterval, and currently that is not the case (the generic code returns a generic closed interval [-1,1]).