JuliaMath / JuliaMath/IntervalSets.jl

roundup / down `Irrational` endpoints

Open
#33 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
109
Forks
29
PR merge metrics
No merged PRs in 30d

Description

I propose that `a .. b` should round `a` down and `b` up if they are irrational, so that `a in a..b` and `b in a..b` is always true. This would fix the following:
```julia
julia> π in 0..π
false

julia> π in (0..Float64(π, RoundUp))
true
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Julia examples using `a .. b`, `Irrational` endpoints, `Float64(..., RoundUp)`, and `in`. Then inspect the interval-construction and membership entry points to determine how irrational endpoints are represented and compared. Done means both endpoint membership checks are true without requiring manual rounding.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.