Skip to content

HarrisonGrodin/SpecialSets.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpecialSets.jl

Travis Build Status AppVeyor Build Status Coverage Status

SpecialSets provides implementations of sets commonly used in mathematics, as well as the logic for cleanly combining such sets.

Examples

julia> LessThan(3)
{x | x < 3}

julia> LessThan(3, true)
{x | x  3}

julia> LessThan(3, true)  GreaterThan(3, true)
Set([3])

julia> LessThan(3, true)  TypeSet(String)
Set(Any[])

julia> GreaterThan(5, true)  NotEqual(12)
{x | x  12, x  5}

julia> GreaterThan(5, true)  NotEqual(3)
{x | x  5}

julia> Even  Step(3)
{x | (x  0 (mod 6))}

julia> Even  Step(3, 1)
{x | (x  4 (mod 6))}

julia> Even  Odd
Set(Any[])

julia> Even  LessThan(0)
{x | x < 0, (x  0 (mod 2))}

julia> Even  Set(1:5)  NotEqual(4)
Set([2])

About

Representations of commonly-used sets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages