I am trying to find a bijection between $[0,\infty)$ and $(0,1]$. All I've come up with so far is the below function which has a range of $[0, 1]$.
$$ \begin{align*} \frac{\cos(x)+1}{2} \end{align*} $$
Is there a way I can restrict the range of the function so that it does not include 0?
EDIT: I realize now that my function only worked for the domain $[0,\pi]$.
That which makes the result zero is when $cos(x)+1=0$. Therefore, multiply both the numerator and denominator by $cos(x)+1$ (multiplying by one) and all zero results will be holes in the graph.