For the function: $f(x)= \begin{cases} x^2 & \mbox{if }x \mbox{ is rational } \\ -x^2 & \mbox{if }x \mbox{ is irrational } \\ \end{cases}$
I am looking for points where it is continuous My thought is that this function is not continuous for any number except 0 since if we consider a point $x_{0}$ in $R$, then since both rational and irrational numbers are dense we can find a sequence of rational numbers ${a_{n}}$ and a sequence of irrational numbers ${b_{n}}$ that converge to $x_{0}$, and then we have $x_{0}^2 = -x_{0}^2$, which is only true for $x_{0} = 0$ Am I missing something here?