alternate form 0.5 *tanh(-0.5*x) + 0.5