Continuous function from $(0, 1]$ onto $(0, 1)$?

8.7k Views Asked by At

Is there any continuous function defined on $(0, 1]$ whose range is $(0, 1)$?

4

There are 4 best solutions below

0
On BEST ANSWER

Something like $$x\mapsto \frac{1+(1-x)\sin(1/x)}{2} $$ will do.

1
On

Yes, there is. First send $(0,1]$ onto a spiral that winds inside a circle (e.g centered at $x=1/2$ and radius $1/2$) and then project it onto $(0,1)$.

0
On

$$f(x)=\frac12+\frac1\pi\arctan\left(\frac1x\cos\left(\frac1x\right)\right)$$

1
On

**Answer without words! see the figure **enter image description here