Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entireinterval is not a very good name #8

Closed
Tracked by #271
dpsanders opened this issue Apr 15, 2017 · 13 comments
Closed
Tracked by #271

entireinterval is not a very good name #8

dpsanders opened this issue Apr 15, 2017 · 13 comments
Labels
1.0 Planned for the major 1.0 release

Comments

@dpsanders
Copy link
Member

It is the entire real line.

cc @lbenet

@lbenet
Copy link
Member

lbenet commented Apr 20, 2017

I proposed that name inspired in the ieee standard. There, the entire interval is defined as Interval(-Inf,Inf). I proposed that name since entire is not clear enough. You are right that entireinterval corresponds to the entire real line (as an interval!). Since Interval refers to the one-dimensional case, whereas IntervalBox is for the multidimensional case, I think is ok. Do you have an alternative for the name of that function?

@dpsanders
Copy link
Member Author

I agree that entire is not clear enough.
Maybe entirerealline (ugly) / wholerealline / allreals (I think that is used in some package I have seen)

@dpsanders
Copy link
Member Author

dpsanders commented Apr 20, 2017

On the other hand, if it is not exported and is IntervalArithmetic.entire(), then maybe it is clear enough, but not very nice to write.

For what it's worth, I like just writing -∞..∞, although it does need quite a lot of typing. Writing -Inf..Inf is actually shorter (in terms of number of keystrokes) than (almost) any option involving the word entire with parentheses ;)

@dpsanders
Copy link
Member Author

How about just reals()?

@lbenet
Copy link
Member

lbenet commented Apr 20, 2017

From the suggestions, those names do not make clear that the result is an interval (which happens to be the whole real line). I agree with you that, from the point of view of the number of keystrokes, -Inf..Inf seems the best option, though I think the standard requires a specific function for that.

@dpsanders
Copy link
Member Author

I see your point. How about realline()? That does sound like a set.

@dpsanders
Copy link
Member Author

dpsanders commented Jun 11, 2017

Here's an idea: R() or RR()

@dpsanders
Copy link
Member Author

We could even have e.g. RR(3) for IntervalBox(-Inf..Inf, -Inf..Inf, -Inf..Inf)

@dpsanders
Copy link
Member Author

dpsanders commented Jun 13, 2017

Note that Julia also has "blackboard bold" ("double-struck") letters, e.g. \BbbR<TAB> gives

@lbenet
Copy link
Member

lbenet commented Jun 13, 2017

Yes, let's try it with RR()!

@dpsanders
Copy link
Member Author

Now \bbR. But unfortunately

julia> ℝ = -∞..∞
[-∞, ∞]

julia> ℝ^3
[-∞, ∞]

(of course). Although, we do have

julia> ℝ × ℝ
[-∞, ∞] × [-∞, ∞]

@dpsanders
Copy link
Member Author

And

julia> IntervalBox(ℝ, 4)
[-∞, ∞] × [-∞, ∞] × [-∞, ∞] × [-∞, ∞]

@Kolaru
Copy link
Collaborator

Kolaru commented Jul 24, 2023

entireinterval is fine enough, symbols will be exported in a separate module in 1.0-dev, see #270

@Kolaru Kolaru closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 Planned for the major 1.0 release
Projects
None yet
Development

No branches or pull requests

4 participants