Is it possible to make graphs of subsets of Rational Numbers in Mathem

Click For Summary
Creating subsets of rational numbers in Mathematica for graphing purposes poses challenges due to the density of rational numbers in any interval, such as [0, 1]. The discussion highlights the difficulty in graphing a set of rational numbers since they are dense, meaning that between any two rational numbers, there are infinitely many others. While the idea of graphing a segment with "holes" for irrational numbers was considered, it was concluded that this cannot be accurately represented in a traditional graphing sense. A workaround was found using a tablet and OneNote to visually illustrate the concept with open circles, but no direct solution in Mathematica was identified for this specific graphing task.
MidgetDwarf
Messages
1,580
Reaction score
698
Is it possible to make subsets of rational numbers in Mathematica using the plot command, or any other command? Ie., say I want to graph the set of rational numbers from 0 to 1.
 
Technology news on Phys.org
The rationals are dense in [0,1]. What do you mean by "make subsets"? How would you "graph" a set?
 
Thats what I was thinking. Due to the density of ℚ its not possible. By graphing, I meant if it was possible to create a segment of say length 1, with "holes" (no irrationals). Ofcourse, it would not be an exact, but something that approximated it.

Anyways, it cannot be done. I found a workaround by using a tablet and using one note to draw open circles to illustrate what I was aiming for.

Thanks.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

Replies
7
Views
2K
Replies
21
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
85
Views
8K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
638
  • · Replies 13 ·
Replies
13
Views
4K
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K