Is there a Continuous Function f:R-->R Discontinuous at All Other Numbers?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 2K views
nikolany
Messages
4
Reaction score
0
Is there a function f:R-->R that is continuous at π and discontinuous at all other numbers?

Thx

 
Physics news on Phys.org
Consider the function f(x)=0 for x irrational and f(x)=x for x rational. Where is that continuous? Can you modify that for your purposes?
 
Dick said:
Consider the function f(x)=0 for x irrational and f(x)=x for x rational. Where is that continuous? Can you modify that for your purposes?

So f(x)=(x-π)^18 for x rational and 0 otherwise should work I think!

Thank you very much