I am looking for a function f(x) with a value range of [0,1].
f(x) should increase from 0 to 1 while its parameter x increases from 0 to +infinity.
f(x) increases very fast when x is small, and then very slow and eventually approach 1 when x is infinity.
Here is a figure. The green curve is what I am looking for:
Thanks.
It would be great if I can adjust the slope of the increase. Although this is not a compulsory requirement.
Best Answer
I think this should work well for your purposes: $$ f(x) = \frac{x}{x + a} $$ Where $a$ can be any number bigger than $0$. The smaller $a$ is, the sharper the increase will be.
ADDENDUM: if you want to extend this to an odd (and continuously differentiable) function, simply take $$ f(x) = \frac{x}{|x| + a} $$