|
|
|
|
|
by bjourne
1936 days ago
|
|
Yes, in a way. What distinguishes irrational numbers from rational numbers is that all rational numbers can be represented by strings drawn from a regular language. For example, all strings generated by the regular language "-?\d+\.\d+?_\d+" (where "_" denotes the repeating decimal expansion as in 1/6 = 0.1_6) correspond to exactly one rational number and all rational numbers correspond to at least one string in this regular language. Irrational numbers (and other types of "numbers" such as +inf and -inf) cannot be represented by any such regular language. |
|
I also included .9_ as it is an easy trap to show we have two ways of writing 1 in standard decimal notation.
Please read this whole post as a question. I'm genuinely not clear on the distinction.