I'm dealing with the continuity of $\sin(\frac{1}{x})$. I think that I have a proof but I'm not sure if it's right! Here is my proof:
We take the functions $g(x)=\frac{1}{x}$ and $h(x)=\sin(x)$, now we see that:
$g(x)$ is continuous in the open interval $(-\infty,0) \cup (0,\infty)$ because it's defined for every $x \in R$ except in $x=0$. On the other hand $h(x)$ is continuous all over reals. So it's also continuous in $(-\infty,0) \cup (0,\infty)$, then by the fact that the composition of two continuous functions is continuous we conclude $(hog)(x)=h(g(x))=\sin(\frac{1}{x})$ is also continuous in $(-\infty,0) \cup (0,\infty)$, so it's continuous all over reals except in $x=0$.
Am I right?! I'm not interested in other proofs because I have seen them, but I want to know if this is right! Thanks!