Average Error: 29.2 → 0.8
Time: 3.3s
Precision: binary64
Cost: 130824
\[\frac{\left(\left(\left(\left(1 + 0.1049934947 \cdot \left(x \cdot x\right)\right) + 0.0424060604 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0072644182 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0005064034 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0001789971 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)}{\left(\left(\left(\left(\left(1 + 0.7715471019 \cdot \left(x \cdot x\right)\right) + 0.2909738639 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0694555761 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0140005442 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0008327945 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + \left(2 \cdot 0.0001789971\right) \cdot \left(\left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)} \cdot x \]
\[\begin{array}{l} \mathbf{if}\;x \leq -1.915396322130901 \cdot 10^{+20}:\\ \;\;\;\;\frac{0.5}{x}\\ \mathbf{elif}\;x \leq 1.2568918560855153 \cdot 10^{-11}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.1049934947, x \cdot x, \mathsf{fma}\left(0.0424060604, {x}^{4}, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left({x}^{10}, 0.0008327945, \mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left(x, x \cdot 0.7715471019, \mathsf{fma}\left({x}^{4}, 0.2909738639, 1\right)\right)\right)\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{x}\\ \end{array} \]
(FPCore (x)
 :precision binary64
 (*
  (/
   (+
    (+
     (+
      (+ (+ 1.0 (* 0.1049934947 (* x x))) (* 0.0424060604 (* (* x x) (* x x))))
      (* 0.0072644182 (* (* (* x x) (* x x)) (* x x))))
     (* 0.0005064034 (* (* (* (* x x) (* x x)) (* x x)) (* x x))))
    (* 0.0001789971 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x))))
   (+
    (+
     (+
      (+
       (+
        (+ 1.0 (* 0.7715471019 (* x x)))
        (* 0.2909738639 (* (* x x) (* x x))))
       (* 0.0694555761 (* (* (* x x) (* x x)) (* x x))))
      (* 0.0140005442 (* (* (* (* x x) (* x x)) (* x x)) (* x x))))
     (* 0.0008327945 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x))))
    (*
     (* 2.0 0.0001789971)
     (* (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)) (* x x)))))
  x))
(FPCore (x)
 :precision binary64
 (if (<= x -1.915396322130901e+20)
   (/ 0.5 x)
   (if (<= x 1.2568918560855153e-11)
     (*
      x
      (/
       (fma
        0.0001789971
        (pow x 10.0)
        (fma
         0.0005064034
         (pow x 8.0)
         (fma
          0.0072644182
          (pow x 6.0)
          (fma 0.1049934947 (* x x) (fma 0.0424060604 (pow x 4.0) 1.0)))))
       (fma
        (pow x 10.0)
        0.0008327945
        (fma
         0.0003579942
         (pow x 12.0)
         (fma
          (pow x 6.0)
          0.0694555761
          (fma
           (pow x 8.0)
           0.0140005442
           (fma x (* x 0.7715471019) (fma (pow x 4.0) 0.2909738639 1.0))))))))
     (/ 0.5 x))))
double code(double x) {
	return ((((((1.0 + (0.1049934947 * (x * x))) + (0.0424060604 * ((x * x) * (x * x)))) + (0.0072644182 * (((x * x) * (x * x)) * (x * x)))) + (0.0005064034 * ((((x * x) * (x * x)) * (x * x)) * (x * x)))) + (0.0001789971 * (((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)))) / ((((((1.0 + (0.7715471019 * (x * x))) + (0.2909738639 * ((x * x) * (x * x)))) + (0.0694555761 * (((x * x) * (x * x)) * (x * x)))) + (0.0140005442 * ((((x * x) * (x * x)) * (x * x)) * (x * x)))) + (0.0008327945 * (((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)))) + ((2.0 * 0.0001789971) * ((((((x * x) * (x * x)) * (x * x)) * (x * x)) * (x * x)) * (x * x))))) * x;
}
double code(double x) {
	double tmp;
	if (x <= -1.915396322130901e+20) {
		tmp = 0.5 / x;
	} else if (x <= 1.2568918560855153e-11) {
		tmp = x * (fma(0.0001789971, pow(x, 10.0), fma(0.0005064034, pow(x, 8.0), fma(0.0072644182, pow(x, 6.0), fma(0.1049934947, (x * x), fma(0.0424060604, pow(x, 4.0), 1.0))))) / fma(pow(x, 10.0), 0.0008327945, fma(0.0003579942, pow(x, 12.0), fma(pow(x, 6.0), 0.0694555761, fma(pow(x, 8.0), 0.0140005442, fma(x, (x * 0.7715471019), fma(pow(x, 4.0), 0.2909738639, 1.0)))))));
	} else {
		tmp = 0.5 / x;
	}
	return tmp;
}
function code(x)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(1.0 + Float64(0.1049934947 * Float64(x * x))) + Float64(0.0424060604 * Float64(Float64(x * x) * Float64(x * x)))) + Float64(0.0072644182 * Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)))) + Float64(0.0005064034 * Float64(Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)))) + Float64(0.0001789971 * Float64(Float64(Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)))) / Float64(Float64(Float64(Float64(Float64(Float64(1.0 + Float64(0.7715471019 * Float64(x * x))) + Float64(0.2909738639 * Float64(Float64(x * x) * Float64(x * x)))) + Float64(0.0694555761 * Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)))) + Float64(0.0140005442 * Float64(Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)))) + Float64(0.0008327945 * Float64(Float64(Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)))) + Float64(Float64(2.0 * 0.0001789971) * Float64(Float64(Float64(Float64(Float64(Float64(x * x) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)) * Float64(x * x)) * Float64(x * x))))) * x)
end
function code(x)
	tmp = 0.0
	if (x <= -1.915396322130901e+20)
		tmp = Float64(0.5 / x);
	elseif (x <= 1.2568918560855153e-11)
		tmp = Float64(x * Float64(fma(0.0001789971, (x ^ 10.0), fma(0.0005064034, (x ^ 8.0), fma(0.0072644182, (x ^ 6.0), fma(0.1049934947, Float64(x * x), fma(0.0424060604, (x ^ 4.0), 1.0))))) / fma((x ^ 10.0), 0.0008327945, fma(0.0003579942, (x ^ 12.0), fma((x ^ 6.0), 0.0694555761, fma((x ^ 8.0), 0.0140005442, fma(x, Float64(x * 0.7715471019), fma((x ^ 4.0), 0.2909738639, 1.0))))))));
	else
		tmp = Float64(0.5 / x);
	end
	return tmp
end
code[x_] := N[(N[(N[(N[(N[(N[(N[(1.0 + N[(0.1049934947 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0424060604 * N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0072644182 * N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0005064034 * N[(N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0001789971 * N[(N[(N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(1.0 + N[(0.7715471019 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.2909738639 * N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0694555761 * N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0140005442 * N[(N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0008327945 * N[(N[(N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 * 0.0001789971), $MachinePrecision] * N[(N[(N[(N[(N[(N[(x * x), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]
code[x_] := If[LessEqual[x, -1.915396322130901e+20], N[(0.5 / x), $MachinePrecision], If[LessEqual[x, 1.2568918560855153e-11], N[(x * N[(N[(0.0001789971 * N[Power[x, 10.0], $MachinePrecision] + N[(0.0005064034 * N[Power[x, 8.0], $MachinePrecision] + N[(0.0072644182 * N[Power[x, 6.0], $MachinePrecision] + N[(0.1049934947 * N[(x * x), $MachinePrecision] + N[(0.0424060604 * N[Power[x, 4.0], $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[Power[x, 10.0], $MachinePrecision] * 0.0008327945 + N[(0.0003579942 * N[Power[x, 12.0], $MachinePrecision] + N[(N[Power[x, 6.0], $MachinePrecision] * 0.0694555761 + N[(N[Power[x, 8.0], $MachinePrecision] * 0.0140005442 + N[(x * N[(x * 0.7715471019), $MachinePrecision] + N[(N[Power[x, 4.0], $MachinePrecision] * 0.2909738639 + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.5 / x), $MachinePrecision]]]
\frac{\left(\left(\left(\left(1 + 0.1049934947 \cdot \left(x \cdot x\right)\right) + 0.0424060604 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0072644182 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0005064034 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0001789971 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)}{\left(\left(\left(\left(\left(1 + 0.7715471019 \cdot \left(x \cdot x\right)\right) + 0.2909738639 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0694555761 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0140005442 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0008327945 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + \left(2 \cdot 0.0001789971\right) \cdot \left(\left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)} \cdot x
\begin{array}{l}
\mathbf{if}\;x \leq -1.915396322130901 \cdot 10^{+20}:\\
\;\;\;\;\frac{0.5}{x}\\

\mathbf{elif}\;x \leq 1.2568918560855153 \cdot 10^{-11}:\\
\;\;\;\;x \cdot \frac{\mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.1049934947, x \cdot x, \mathsf{fma}\left(0.0424060604, {x}^{4}, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left({x}^{10}, 0.0008327945, \mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left(x, x \cdot 0.7715471019, \mathsf{fma}\left({x}^{4}, 0.2909738639, 1\right)\right)\right)\right)\right)\right)}\\

\mathbf{else}:\\
\;\;\;\;\frac{0.5}{x}\\


\end{array}

Error

Derivation

  1. Split input into 2 regimes
  2. if x < -191539632213090110000 or 1.25689185608551535e-11 < x

    1. Initial program 59.4

      \[\frac{\left(\left(\left(\left(1 + 0.1049934947 \cdot \left(x \cdot x\right)\right) + 0.0424060604 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0072644182 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0005064034 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0001789971 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)}{\left(\left(\left(\left(\left(1 + 0.7715471019 \cdot \left(x \cdot x\right)\right) + 0.2909738639 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0694555761 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0140005442 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0008327945 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + \left(2 \cdot 0.0001789971\right) \cdot \left(\left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)} \cdot x \]
    2. Simplified59.4

      \[\leadsto \color{blue}{x \cdot \frac{\mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.1049934947, x \cdot x, \mathsf{fma}\left(0.0424060604, {x}^{4}, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left({x}^{10}, 0.0008327945, \mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left(x, x \cdot 0.7715471019, \mathsf{fma}\left({x}^{4}, 0.2909738639, 1\right)\right)\right)\right)\right)\right)}} \]
    3. Taylor expanded in x around inf 1.5

      \[\leadsto \color{blue}{\frac{0.5}{x}} \]

    if -191539632213090110000 < x < 1.25689185608551535e-11

    1. Initial program 0.0

      \[\frac{\left(\left(\left(\left(1 + 0.1049934947 \cdot \left(x \cdot x\right)\right) + 0.0424060604 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0072644182 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0005064034 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0001789971 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)}{\left(\left(\left(\left(\left(1 + 0.7715471019 \cdot \left(x \cdot x\right)\right) + 0.2909738639 \cdot \left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0694555761 \cdot \left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0140005442 \cdot \left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + 0.0008327945 \cdot \left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)\right) + \left(2 \cdot 0.0001789971\right) \cdot \left(\left(\left(\left(\left(\left(x \cdot x\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right) \cdot \left(x \cdot x\right)\right)} \cdot x \]
    2. Simplified0.0

      \[\leadsto \color{blue}{x \cdot \frac{\mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.1049934947, x \cdot x, \mathsf{fma}\left(0.0424060604, {x}^{4}, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left({x}^{10}, 0.0008327945, \mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left(x, x \cdot 0.7715471019, \mathsf{fma}\left({x}^{4}, 0.2909738639, 1\right)\right)\right)\right)\right)\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification0.8

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.915396322130901 \cdot 10^{+20}:\\ \;\;\;\;\frac{0.5}{x}\\ \mathbf{elif}\;x \leq 1.2568918560855153 \cdot 10^{-11}:\\ \;\;\;\;x \cdot \frac{\mathsf{fma}\left(0.0001789971, {x}^{10}, \mathsf{fma}\left(0.0005064034, {x}^{8}, \mathsf{fma}\left(0.0072644182, {x}^{6}, \mathsf{fma}\left(0.1049934947, x \cdot x, \mathsf{fma}\left(0.0424060604, {x}^{4}, 1\right)\right)\right)\right)\right)}{\mathsf{fma}\left({x}^{10}, 0.0008327945, \mathsf{fma}\left(0.0003579942, {x}^{12}, \mathsf{fma}\left({x}^{6}, 0.0694555761, \mathsf{fma}\left({x}^{8}, 0.0140005442, \mathsf{fma}\left(x, x \cdot 0.7715471019, \mathsf{fma}\left({x}^{4}, 0.2909738639, 1\right)\right)\right)\right)\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{x}\\ \end{array} \]

Alternatives

Alternative 1
Error1.5
Cost456
\[\begin{array}{l} \mathbf{if}\;x \leq -49188351581.29436:\\ \;\;\;\;\frac{0.5}{x}\\ \mathbf{elif}\;x \leq 1.2568918560855153 \cdot 10^{-11}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{x}\\ \end{array} \]
Alternative 2
Error31.0
Cost64
\[x \]

Error

Reproduce

herbie shell --seed 2022229 
(FPCore (x)
  :name "Jmat.Real.dawson"
  :precision binary64
  (* (/ (+ (+ (+ (+ (+ 1.0 (* 0.1049934947 (* x x))) (* 0.0424060604 (* (* x x) (* x x)))) (* 0.0072644182 (* (* (* x x) (* x x)) (* x x)))) (* 0.0005064034 (* (* (* (* x x) (* x x)) (* x x)) (* x x)))) (* 0.0001789971 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)))) (+ (+ (+ (+ (+ (+ 1.0 (* 0.7715471019 (* x x))) (* 0.2909738639 (* (* x x) (* x x)))) (* 0.0694555761 (* (* (* x x) (* x x)) (* x x)))) (* 0.0140005442 (* (* (* (* x x) (* x x)) (* x x)) (* x x)))) (* 0.0008327945 (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)))) (* (* 2.0 0.0001789971) (* (* (* (* (* (* x x) (* x x)) (* x x)) (* x x)) (* x x)) (* x x))))) x))