The hyperbolic tangent is almost linear around the origin.
I'm looking for a way to modify the tanh function in order to have a bigger almost-linear zone while keeping the asymptote to y = 1. In other words, the function should 'leave' later the y = x straight line and approach sooner the y = 1 straight line, coming closer to the (1, 1) point. (think about "sooner" and "later" as if x was a time variable).
I'd like this 'linearity control' to be a parameter. If useful, feel free to ignore what happens for x < 0.
Thanks for any suggestion!
