Asked by kenny
A function whose domain is all reals, and which maps all rational numbers to 1 and all irrational
numbers to 0.
numbers to 0.
Answers
Answered by
Steve
not much to do except define at described. There are several functions which work with this kind of condition:
Thomae's function, which is 1/q when x=p/q (rational), and 0 when x is irrational
Dirichlet function is just as you describe
Thomae's function, which is 1/q when x=p/q (rational), and 0 when x is irrational
Dirichlet function is just as you describe
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.