I was told the extended real \hat{R}=R\cup\{-\infty,\infty\} is homeomorphic to [0,1], I was wondering if the mapping
h: [0,1]\rightarrow\hat{R}, h(x)=\cot^{-1}(\pi x), 0<x<1, h(0)=\infty, h(1)=-\infty
is a valid homeomorphism, so that a metric may be defined by the metric on [0,1]? Thank...