Average Error: 13.3 → 0.3
Time: 16.8s
Precision: binary64
Cost: 96260
\[1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|} \]
\[\begin{array}{l} t_0 := 1 + 0.3275911 \cdot \left|x\right|\\ t_1 := \frac{1}{t_0}\\ t_2 := e^{x \cdot \left(-x\right)}\\ \mathbf{if}\;\left(t_1 \cdot \left(0.254829592 + t_1 \cdot \left(-0.284496736 + t_1 \cdot \left(1.421413741 + t_1 \cdot \left(-1.453152027 + t_1 \cdot 1.061405429\right)\right)\right)\right)\right) \cdot t_2 \leq 0.998:\\ \;\;\;\;1 + t_2 \cdot \left(t_1 \cdot \left(-0.254829592 + t_1 \cdot \left(0.284496736 + {\left(\sqrt[3]{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}\right)}^{3} \cdot \frac{-1}{t_0}\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \end{array} \]
(FPCore (x)
 :precision binary64
 (-
  1.0
  (*
   (*
    (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
    (+
     0.254829592
     (*
      (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
      (+
       -0.284496736
       (*
        (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
        (+
         1.421413741
         (*
          (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
          (+
           -1.453152027
           (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429)))))))))
   (exp (- (* (fabs x) (fabs x)))))))
(FPCore (x)
 :precision binary64
 (let* ((t_0 (+ 1.0 (* 0.3275911 (fabs x))))
        (t_1 (/ 1.0 t_0))
        (t_2 (exp (* x (- x)))))
   (if (<=
        (*
         (*
          t_1
          (+
           0.254829592
           (*
            t_1
            (+
             -0.284496736
             (*
              t_1
              (+ 1.421413741 (* t_1 (+ -1.453152027 (* t_1 1.061405429)))))))))
         t_2)
        0.998)
     (+
      1.0
      (*
       t_2
       (*
        t_1
        (+
         -0.254829592
         (*
          t_1
          (+
           0.284496736
           (*
            (pow
             (cbrt
              (+
               1.421413741
               (/
                (+ -1.453152027 (/ 1.061405429 (fma 0.3275911 x 1.0)))
                (fma 0.3275911 x 1.0))))
             3.0)
            (/ -1.0 t_0))))))))
     (+ 1e-9 (sqrt (pow (* x 1.128386358070218) 2.0))))))
double code(double x) {
	return 1.0 - (((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * 1.061405429))))))))) * exp(-(fabs(x) * fabs(x))));
}
double code(double x) {
	double t_0 = 1.0 + (0.3275911 * fabs(x));
	double t_1 = 1.0 / t_0;
	double t_2 = exp((x * -x));
	double tmp;
	if (((t_1 * (0.254829592 + (t_1 * (-0.284496736 + (t_1 * (1.421413741 + (t_1 * (-1.453152027 + (t_1 * 1.061405429))))))))) * t_2) <= 0.998) {
		tmp = 1.0 + (t_2 * (t_1 * (-0.254829592 + (t_1 * (0.284496736 + (pow(cbrt((1.421413741 + ((-1.453152027 + (1.061405429 / fma(0.3275911, x, 1.0))) / fma(0.3275911, x, 1.0)))), 3.0) * (-1.0 / t_0)))))));
	} else {
		tmp = 1e-9 + sqrt(pow((x * 1.128386358070218), 2.0));
	}
	return tmp;
}
function code(x)
	return Float64(1.0 - Float64(Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(0.254829592 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-0.284496736 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(1.421413741 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-1.453152027 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * 1.061405429))))))))) * exp(Float64(-Float64(abs(x) * abs(x))))))
end
function code(x)
	t_0 = Float64(1.0 + Float64(0.3275911 * abs(x)))
	t_1 = Float64(1.0 / t_0)
	t_2 = exp(Float64(x * Float64(-x)))
	tmp = 0.0
	if (Float64(Float64(t_1 * Float64(0.254829592 + Float64(t_1 * Float64(-0.284496736 + Float64(t_1 * Float64(1.421413741 + Float64(t_1 * Float64(-1.453152027 + Float64(t_1 * 1.061405429))))))))) * t_2) <= 0.998)
		tmp = Float64(1.0 + Float64(t_2 * Float64(t_1 * Float64(-0.254829592 + Float64(t_1 * Float64(0.284496736 + Float64((cbrt(Float64(1.421413741 + Float64(Float64(-1.453152027 + Float64(1.061405429 / fma(0.3275911, x, 1.0))) / fma(0.3275911, x, 1.0)))) ^ 3.0) * Float64(-1.0 / t_0))))))));
	else
		tmp = Float64(1e-9 + sqrt((Float64(x * 1.128386358070218) ^ 2.0)));
	end
	return tmp
end
code[x_] := N[(1.0 - N[(N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(0.254829592 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-0.284496736 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.421413741 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-1.453152027 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 1.061405429), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Exp[(-N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_] := Block[{t$95$0 = N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(1.0 / t$95$0), $MachinePrecision]}, Block[{t$95$2 = N[Exp[N[(x * (-x)), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[N[(N[(t$95$1 * N[(0.254829592 + N[(t$95$1 * N[(-0.284496736 + N[(t$95$1 * N[(1.421413741 + N[(t$95$1 * N[(-1.453152027 + N[(t$95$1 * 1.061405429), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision], 0.998], N[(1.0 + N[(t$95$2 * N[(t$95$1 * N[(-0.254829592 + N[(t$95$1 * N[(0.284496736 + N[(N[Power[N[Power[N[(1.421413741 + N[(N[(-1.453152027 + N[(1.061405429 / N[(0.3275911 * x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.3275911 * x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision] * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1e-9 + N[Sqrt[N[Power[N[(x * 1.128386358070218), $MachinePrecision], 2.0], $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]]
1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
\begin{array}{l}
t_0 := 1 + 0.3275911 \cdot \left|x\right|\\
t_1 := \frac{1}{t_0}\\
t_2 := e^{x \cdot \left(-x\right)}\\
\mathbf{if}\;\left(t_1 \cdot \left(0.254829592 + t_1 \cdot \left(-0.284496736 + t_1 \cdot \left(1.421413741 + t_1 \cdot \left(-1.453152027 + t_1 \cdot 1.061405429\right)\right)\right)\right)\right) \cdot t_2 \leq 0.998:\\
\;\;\;\;1 + t_2 \cdot \left(t_1 \cdot \left(-0.254829592 + t_1 \cdot \left(0.284496736 + {\left(\sqrt[3]{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}\right)}^{3} \cdot \frac{-1}{t_0}\right)\right)\right)\\

\mathbf{else}:\\
\;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\


\end{array}

Error

Derivation

  1. Split input into 2 regimes
  2. if (*.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (exp.f64 (neg.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))) < 0.998

    1. Initial program 0.0

      \[1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|} \]
    2. Applied egg-rr0.3

      \[\leadsto 1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \color{blue}{{\left(\sqrt[3]{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}\right)}^{3}}\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|} \]

    if 0.998 < (*.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (exp.f64 (neg.f64 (*.f64 (fabs.f64 x) (fabs.f64 x)))))

    1. Initial program 27.0

      \[1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|} \]
    2. Simplified27.0

      \[\leadsto \color{blue}{1 + \frac{\frac{-0.254829592 + \frac{0.284496736 - \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, \left|x\right|, 1\right)}}{\mathsf{fma}\left(0.3275911, \left|x\right|, 1\right)}}{\mathsf{fma}\left(0.3275911, \left|x\right|, 1\right)}}{\mathsf{fma}\left(0.3275911, \left|x\right|, 1\right)}}{\mathsf{fma}\left(0.3275911, \left|x\right|, 1\right)}}{{\left(e^{x}\right)}^{x}}} \]
      Proof
      (+.f64 1 (/.f64 (/.f64 (+.f64 -31853699/125000000 (/.f64 (-.f64 8890523/31250000 (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 1061405429/1000000000 (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (Rewrite<= metadata-eval (neg.f64 31853699/125000000)) (/.f64 (-.f64 8890523/31250000 (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 1061405429/1000000000 (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (Rewrite<= metadata-eval (neg.f64 -8890523/31250000)) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 1061405429/1000000000 (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 (Rewrite<= metadata-eval (*.f64 1 1061405429/1000000000)) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 (*.f64 1 1061405429/1000000000) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 3275911/10000000 (fabs.f64 x)) 1)))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (/.f64 (*.f64 1 1061405429/1000000000) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (+.f64 -1453152027/1000000000 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (Rewrite<= *-lft-identity_binary64 (*.f64 1 (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (*.f64 1 (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 3275911/10000000 (fabs.f64 x)) 1)))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (/.f64 (*.f64 1 (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (+.f64 1421413741/1000000000 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (Rewrite<= *-lft-identity_binary64 (*.f64 1 (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (*.f64 1 (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 3275911/10000000 (fabs.f64 x)) 1)))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (/.f64 (*.f64 1 (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (-.f64 (neg.f64 -8890523/31250000) (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 1 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (Rewrite<= unsub-neg_binary64 (+.f64 (neg.f64 -8890523/31250000) (neg.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (Rewrite<= distribute-neg-in_binary64 (neg.f64 (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (neg.f64 (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 3275911/10000000 (fabs.f64 x)) 1)))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (/.f64 (neg.f64 (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (Rewrite<= distribute-neg-frac_binary64 (neg.f64 (/.f64 (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))) (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (neg.f64 (/.f64 (Rewrite<= *-lft-identity_binary64 (*.f64 1 (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))) (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (+.f64 (neg.f64 31853699/125000000) (neg.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 1 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (Rewrite<= distribute-neg-in_binary64 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))))) (fma.f64 3275911/10000000 (fabs.f64 x) 1)) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 3275911/10000000 (fabs.f64 x)) 1))) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (Rewrite<= +-commutative_binary64 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x))))) (pow.f64 (exp.f64 x) x))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (Rewrite<= exp-prod_binary64 (exp.f64 (*.f64 x x))))): 0 points increase in error, 1 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (exp.f64 (Rewrite<= sqr-abs_binary64 (*.f64 (fabs.f64 x) (fabs.f64 x)))))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (/.f64 (Rewrite<= *-lft-identity_binary64 (*.f64 1 (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))))) (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (exp.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (neg.f64 (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))))) (exp.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))): 1 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (Rewrite<= distribute-rgt-neg-in_binary64 (neg.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))))) (exp.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (/.f64 (Rewrite<= *-rgt-identity_binary64 (*.f64 (neg.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))))) 1)) (exp.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (Rewrite<= associate-*r/_binary64 (*.f64 (neg.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))))) (/.f64 1 (exp.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))))): 0 points increase in error, 0 points decrease in error
      (+.f64 1 (*.f64 (neg.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000)))))))))) (Rewrite<= exp-neg_binary64 (exp.f64 (neg.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))))): 1 points increase in error, 2 points decrease in error
      (Rewrite<= cancel-sign-sub-inv_binary64 (-.f64 1 (*.f64 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 31853699/125000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -8890523/31250000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 1421413741/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) (+.f64 -1453152027/1000000000 (*.f64 (/.f64 1 (+.f64 1 (*.f64 3275911/10000000 (fabs.f64 x)))) 1061405429/1000000000))))))))) (exp.f64 (neg.f64 (*.f64 (fabs.f64 x) (fabs.f64 x))))))): 0 points increase in error, 0 points decrease in error
    3. Applied egg-rr27.5

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{-0.254829592 + \frac{0.284496736 - \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)}} \]
    4. Taylor expanded in x around 0 1.6

      \[\leadsto \color{blue}{10^{-9} + 1.128386358070218 \cdot x} \]
    5. Applied egg-rr0.4

      \[\leadsto 10^{-9} + \color{blue}{\sqrt{{\left(1.128386358070218 \cdot x\right)}^{2}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification0.3

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{x \cdot \left(-x\right)} \leq 0.998:\\ \;\;\;\;1 + e^{x \cdot \left(-x\right)} \cdot \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.284496736 + {\left(\sqrt[3]{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}\right)}^{3} \cdot \frac{-1}{1 + 0.3275911 \cdot \left|x\right|}\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \end{array} \]

Alternatives

Alternative 1
Error0.4
Cost95556
\[\begin{array}{l} t_0 := \frac{1}{1 + 0.3275911 \cdot \left|x\right|}\\ \mathbf{if}\;\left(t_0 \cdot \left(0.254829592 + t_0 \cdot \left(-0.284496736 + t_0 \cdot \left(1.421413741 + t_0 \cdot \left(-1.453152027 + t_0 \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{x \cdot \left(-x\right)} \leq 0.998:\\ \;\;\;\;\left(1 + \left(1 + \frac{-0.254829592 + \frac{0.284496736 - \frac{\mathsf{fma}\left(-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}, \frac{1}{\mathsf{fma}\left(0.3275911, x, 1\right)}, 1.421413741\right)}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)\right) + -1\\ \mathbf{else}:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \end{array} \]
Alternative 2
Error0.4
Cost47496
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 1.110504878131793 \cdot 10^{-7}:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;-1 + \left(1 + \left(1 + \frac{-0.254829592 + \frac{0.284496736 + \frac{-1.421413741 + \frac{1.453152027 + \frac{-1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)\right)\\ \end{array} \]
Alternative 3
Error0.4
Cost47240
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 1.110504878131793 \cdot 10^{-7}:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-0.254829592 + \frac{0.284496736 + \frac{-1.421413741 + \frac{1.453152027 + \frac{-1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\\ \end{array} \]
Alternative 4
Error0.5
Cost46600
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 0.09687437569888654:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;-1 + e^{\mathsf{log1p}\left(1 + \frac{-0.254829592 + \frac{0.284496736 + \frac{-1.029667143}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)}\\ \end{array} \]
Alternative 5
Error0.5
Cost13448
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 0.571042581190123:\\ \;\;\;\;10^{-9} + \sqrt{{\left(x \cdot 1.128386358070218\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 6
Error1.0
Cost1096
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 0.571042581190123:\\ \;\;\;\;10^{-9} + x \cdot \left(1.128386358070218 + x \cdot \left(-0.00011824294398844343 + x \cdot -0.37545125292247583\right)\right)\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 7
Error1.5
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 0.571042581190123:\\ \;\;\;\;10^{-9} + x \cdot 0.909012084998214\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 8
Error1.1
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 0.571042581190123:\\ \;\;\;\;10^{-9} + x \cdot 1.128386358070218\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 9
Error1.5
Cost328
\[\begin{array}{l} \mathbf{if}\;x \leq -484.483050810706:\\ \;\;\;\;1\\ \mathbf{elif}\;x \leq 1.110504878131793 \cdot 10^{-7}:\\ \;\;\;\;10^{-9}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 10
Error28.4
Cost64
\[1 \]

Error

Reproduce

herbie shell --seed 2022291 
(FPCore (x)
  :name "Jmat.Real.erf"
  :precision binary64
  (- 1.0 (* (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (exp (- (* (fabs x) (fabs x)))))))