mapping (0,1) onto [0,1]: any such continuous function?

Re: mapping (0,1) onto [0,1]

only one I can think of off the top of my head would have to be defined piece-wise ... is that satisfactory?
f(x)=1\displaystyle f(x) = 1
0<x14\displaystyle 0 < x \leq \frac{1}{4}

f(x)=2x+32\displaystyle f(x) = -2x + \frac{3}{2}
14<x<34\displaystyle \frac{1}{4} < x < \frac{3}{4}

f(x)=0\displaystyle f(x) = 0
34x<1\displaystyle \frac{3}{4} \leq x < 1
 
Top