A function whose domain is all reals, and which maps all rational numbers to 1 and all irrational

numbers to 0.

1 answer

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
Similar Questions
  1. I'm asked to find the domain of fuction(x+5)/(x-3) saying that x is all reals except for x can not equal three is wrong correct?
    1. answers icon 13 answers
    1. answers icon 11 answers
  2. 2)Name the sets of numbers to which 457 belongs.(answer)natural,whole,integers,rational,reals My book says that every REAL
    1. answers icon 2 answers
    1. answers icon 1 answer
more similar questions