softsign function
Similar to the hyperbolic tangent, but its tails are quadratic polynomials, rather than exponentials, therefore causing the curve to approach its asymptotes much more slowly.
Implementation
double softsign(double x) => x / (1 + abs(x));