tanh(x/(50-abs(x)))/(2) + 0.5 from -50 to 50