Implementation : Improved Numerical stability by truncating the argument of tanh into [-10,10]. Avoids NaN when using fastapprox...