A community for students.
Here's the question you clicked on:
 0 viewing
ParthKohli
 2 years ago
Sage.
ParthKohli
 2 years ago
Sage.

This Question is Closed

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0I want to define a function which presents everything in interval notation.

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0here is an input, for example: ``` In[1]: 34 In[2]: 53 ``` The output is very easy in this case: ``` [34,53] ```

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0But what if I have something like this? ``` In[1]: x > 4 ln[2]: x < infinity ``` Where I want ``` [4,infty) ```

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0Yup. @experimentX I know that you are rad at programming. Can you help?

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.0what do you want to do?

drfrankenstein
 2 years ago
Best ResponseYou've already chosen the best response.0rad? welcome to 1990s

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0@TuringTest You, please?

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0OK, on second thought, I want something like this: ``` Number 1: 4 Number 2: infinity Inequality type: closed. ``` And the output is... ``` [4,infty) ```

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0Just an interval notation.

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.0I don't think you could do that, because the set of real number is both closed and open set.

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.0[4, infinity) could be both (neither closed nor open) and (closed set)

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.0try something like this around in mathematica `f[a_, b_] := If[NumericQ[a] && NumericQ[b], Print["Closed"], Print["Open"] ] ` ` f[1,2] ` BTW how did you put those colorful text?

ParthKohli
 2 years ago
Best ResponseYou've already chosen the best response.0I don't have Mathematica; my computer got formatted :(

experimentX
 2 years ago
Best ResponseYou've already chosen the best response.0on what language are you planning to write it?
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.