\[\frac{2}{1 + e^{-2 \cdot x}} - 1\]
\frac{2}{1 + e^{-2 \cdot x}} - 1
double f(double x, double __attribute__((unused)) y) {
        double r32703 = 2.0;
        double r32704 = 1.0;
        double r32705 = -2.0;
        double r32706 = x;
        double r32707 = r32705 * r32706;
        double r32708 = exp(r32707);
        double r32709 = r32704 + r32708;
        double r32710 = r32703 / r32709;
        double r32711 = r32710 - r32704;
        return r32711;
}

Reproduce

Please include this information when filing a bug report:

herbie shell --seed 2019323 +o rules:numerics
(FPCore (x y)
  :name "Logistic function from Lakshay Garg"
  :precision binary64
  (- (/ 2 (+ 1 (exp (* -2 x)))) 1))

Backtrace

get-representation: Unknown representation realLC
(unnamed)/data/pavpan/nightlies/herbie/fix-interface-bugs/src/core/regimes.rkt653
filter/opt/racket-7.2/collects/racket/private/list.rkt2562
infer-splitpoints/data/pavpan/nightlies/herbie/fix-interface-bugs/src/core/regimes.rkt340
get-final-combination/data/pavpan/nightlies/herbie/fix-interface-bugs/src/mainloop.rkt3690
(unnamed)/opt/racket-7.2/collects/racket/private/more-scheme.rkt26128
run/opt/racket-7.2/share/pkgs/profile-lib/main.rkt392
profile-thunk16/opt/racket-7.2/share/pkgs/profile-lib/main.rkt90
(unnamed)/opt/racket-7.2/collects/racket/private/more-scheme.rkt26128