Average Error: 26.5 → 1.2
Time: 28.8s
Precision: binary64
Cost: 10632
\[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
\[\begin{array}{l} t_0 := \mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y + -130977.50649958357}{x \cdot x}\right)\\ t_1 := x \cdot \left(x + 43.3400022514\right)\\ \mathbf{if}\;x \leq -1.1109843388509654 \cdot 10^{+78}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 8.125148622231434 \cdot 10^{+25}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + t_1\right)\right) + 47.066876606} + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \frac{x \cdot \left(69434.9244037198 - {t_1}^{2}\right)}{263.505074721 - t_1}\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
(FPCore (x y z)
 :precision binary64
 (/
  (*
   (- x 2.0)
   (+
    (*
     (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
     x)
    z))
  (+
   (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
   47.066876606)))
(FPCore (x y z)
 :precision binary64
 (let* ((t_0
         (+
          (fma x 4.16438922228 -110.1139242984811)
          (+ (/ 3655.1204654076414 x) (/ (+ y -130977.50649958357) (* x x)))))
        (t_1 (* x (+ x 43.3400022514))))
   (if (<= x -1.1109843388509654e+78)
     t_0
     (if (<= x 8.125148622231434e+25)
       (*
        (+ x -2.0)
        (+
         (/
          (*
           x
           (+
            y
            (*
             x
             (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
          (+ (* x (+ 313.399215894 (* x (+ 263.505074721 t_1)))) 47.066876606))
         (/
          z
          (+
           47.066876606
           (*
            x
            (+
             313.399215894
             (/
              (* x (- 69434.9244037198 (pow t_1 2.0)))
              (- 263.505074721 t_1))))))))
       t_0))))
double code(double x, double y, double z) {
	return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
double code(double x, double y, double z) {
	double t_0 = fma(x, 4.16438922228, -110.1139242984811) + ((3655.1204654076414 / x) + ((y + -130977.50649958357) / (x * x)));
	double t_1 = x * (x + 43.3400022514);
	double tmp;
	if (x <= -1.1109843388509654e+78) {
		tmp = t_0;
	} else if (x <= 8.125148622231434e+25) {
		tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) / ((x * (313.399215894 + (x * (263.505074721 + t_1)))) + 47.066876606)) + (z / (47.066876606 + (x * (313.399215894 + ((x * (69434.9244037198 - pow(t_1, 2.0))) / (263.505074721 - t_1)))))));
	} else {
		tmp = t_0;
	}
	return tmp;
}
function code(x, y, z)
	return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606))
end
function code(x, y, z)
	t_0 = Float64(fma(x, 4.16438922228, -110.1139242984811) + Float64(Float64(3655.1204654076414 / x) + Float64(Float64(y + -130977.50649958357) / Float64(x * x))))
	t_1 = Float64(x * Float64(x + 43.3400022514))
	tmp = 0.0
	if (x <= -1.1109843388509654e+78)
		tmp = t_0;
	elseif (x <= 8.125148622231434e+25)
		tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) / Float64(Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + t_1)))) + 47.066876606)) + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * Float64(69434.9244037198 - (t_1 ^ 2.0))) / Float64(263.505074721 - t_1))))))));
	else
		tmp = t_0;
	end
	return tmp
end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision] + N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(N[(y + -130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1109843388509654e+78], t$95$0, If[LessEqual[x, 8.125148622231434e+25], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * N[(69434.9244037198 - N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(263.505074721 - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\begin{array}{l}
t_0 := \mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y + -130977.50649958357}{x \cdot x}\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
\mathbf{if}\;x \leq -1.1109843388509654 \cdot 10^{+78}:\\
\;\;\;\;t_0\\

\mathbf{elif}\;x \leq 8.125148622231434 \cdot 10^{+25}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + t_1\right)\right) + 47.066876606} + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \frac{x \cdot \left(69434.9244037198 - {t_1}^{2}\right)}{263.505074721 - t_1}\right)}\right)\\

\mathbf{else}:\\
\;\;\;\;t_0\\


\end{array}

Error

Target

Original26.5
Target0.7
Herbie1.2
\[\begin{array}{l} \mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\ \;\;\;\;\left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\ \mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\ \;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\ \mathbf{else}:\\ \;\;\;\;\left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\ \end{array} \]

Derivation

  1. Split input into 2 regimes
  2. if x < -1.1109843388509654e78 or 8.1251486222314341e25 < x

    1. Initial program 60.3

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Taylor expanded in x around inf 1.5

      \[\leadsto \color{blue}{\left(\frac{y}{{x}^{2}} + \left(4.16438922228 \cdot x + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - \left(110.1139242984811 + 130977.50649958357 \cdot \frac{1}{{x}^{2}}\right)} \]
    3. Simplified1.5

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} - \frac{130977.50649958357 - y}{x \cdot x}\right)} \]
      Proof
      (+.f64 (fma.f64 x 104109730557/25000000000 -13764240537310136880149/125000000000000000000) (-.f64 (/.f64 2284450290879775841688574159837293/625000000000000000000000000000 x) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (fma.f64 x 104109730557/25000000000 (Rewrite<= metadata-eval (neg.f64 13764240537310136880149/125000000000000000000))) (-.f64 (/.f64 2284450290879775841688574159837293/625000000000000000000000000000 x) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (Rewrite<= fma-neg_binary64 (-.f64 (*.f64 x 104109730557/25000000000) 13764240537310136880149/125000000000000000000)) (-.f64 (/.f64 2284450290879775841688574159837293/625000000000000000000000000000 x) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 1 points decrease in error
      (+.f64 (-.f64 (Rewrite<= *-commutative_binary64 (*.f64 104109730557/25000000000 x)) 13764240537310136880149/125000000000000000000) (-.f64 (/.f64 2284450290879775841688574159837293/625000000000000000000000000000 x) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (-.f64 (/.f64 (Rewrite<= metadata-eval (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 1)) x) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (-.f64 (Rewrite<= associate-*r/_binary64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (*.f64 x x)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (-.f64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)) (/.f64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y) (Rewrite<= unpow2_binary64 (pow.f64 x 2))))): 0 points increase in error, 0 points decrease in error
      (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (-.f64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)) (/.f64 (Rewrite<= unsub-neg_binary64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (neg.f64 y))) (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (-.f64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (Rewrite<= mul-1-neg_binary64 (*.f64 -1 y))) (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= associate--l+_binary64 (-.f64 (+.f64 (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (*.f64 -1 y)) (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)) (-.f64 (*.f64 104109730557/25000000000 x) 13764240537310136880149/125000000000000000000))) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (*.f64 -1 y)) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (-.f64 (Rewrite<= associate--l+_binary64 (-.f64 (+.f64 (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)) (*.f64 104109730557/25000000000 x)) 13764240537310136880149/125000000000000000000)) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (*.f64 -1 y)) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (Rewrite<= +-commutative_binary64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)))) 13764240537310136880149/125000000000000000000) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (*.f64 -1 y)) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (/.f64 (+.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (Rewrite=> mul-1-neg_binary64 (neg.f64 y))) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (/.f64 (Rewrite=> unsub-neg_binary64 (-.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 y)) (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (Rewrite=> div-sub_binary64 (-.f64 (/.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (pow.f64 x 2)) (/.f64 y (pow.f64 x 2))))): 1 points increase in error, 2 points decrease in error
      (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (-.f64 (/.f64 (Rewrite<= metadata-eval (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 1)) (pow.f64 x 2)) (/.f64 y (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
      (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (-.f64 (Rewrite<= associate-*r/_binary64 (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (/.f64 1 (pow.f64 x 2)))) (/.f64 y (pow.f64 x 2)))): 2 points increase in error, 2 points decrease in error
      (Rewrite<= associate-+l-_binary64 (+.f64 (-.f64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) 13764240537310136880149/125000000000000000000) (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (/.f64 1 (pow.f64 x 2)))) (/.f64 y (pow.f64 x 2)))): 0 points increase in error, 0 points decrease in error
      (+.f64 (Rewrite<= associate--r+_binary64 (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) (+.f64 13764240537310136880149/125000000000000000000 (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (/.f64 1 (pow.f64 x 2)))))) (/.f64 y (pow.f64 x 2))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= +-commutative_binary64 (+.f64 (/.f64 y (pow.f64 x 2)) (-.f64 (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x))) (+.f64 13764240537310136880149/125000000000000000000 (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (/.f64 1 (pow.f64 x 2))))))): 0 points increase in error, 0 points decrease in error
      (Rewrite<= associate--l+_binary64 (-.f64 (+.f64 (/.f64 y (pow.f64 x 2)) (+.f64 (*.f64 104109730557/25000000000 x) (*.f64 2284450290879775841688574159837293/625000000000000000000000000000 (/.f64 1 x)))) (+.f64 13764240537310136880149/125000000000000000000 (*.f64 409304707811198655637810418659684985388407301/3125000000000000000000000000000000000000 (/.f64 1 (pow.f64 x 2)))))): 0 points increase in error, 0 points decrease in error

    if -1.1109843388509654e78 < x < 8.1251486222314341e25

    1. Initial program 2.7

      \[\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606} \]
    2. Simplified0.9

      \[\leadsto \color{blue}{\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}} \]
      Proof
      (*.f64 (+.f64 x -2) (/.f64 (fma.f64 x (fma.f64 x (fma.f64 x (fma.f64 x 104109730557/25000000000 393497462077/5000000000) 4297481763/31250000) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (+.f64 x (Rewrite<= metadata-eval (neg.f64 2))) (/.f64 (fma.f64 x (fma.f64 x (fma.f64 x (fma.f64 x 104109730557/25000000000 393497462077/5000000000) 4297481763/31250000) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (Rewrite<= sub-neg_binary64 (-.f64 x 2)) (/.f64 (fma.f64 x (fma.f64 x (fma.f64 x (fma.f64 x 104109730557/25000000000 393497462077/5000000000) 4297481763/31250000) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (fma.f64 x (fma.f64 x (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000)) 4297481763/31250000) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 1 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (fma.f64 x (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000)) 4297481763/31250000)) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (fma.f64 x (fma.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x)) 4297481763/31250000) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000)) y)) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (fma.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x)) y) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y)) z)) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 1 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x)) z) (fma.f64 x (fma.f64 x (fma.f64 x (+.f64 x 216700011257/5000000000) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (fma.f64 x (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 x 216700011257/5000000000)) 263505074721/1000000000)) 156699607947/500000000) 23533438303/500000000))): 1 points increase in error, 1 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (fma.f64 x (fma.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 x 216700011257/5000000000) x)) 263505074721/1000000000) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (fma.f64 x (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000)) 156699607947/500000000)) 23533438303/500000000))): 1 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (fma.f64 x (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x)) 156699607947/500000000) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (Rewrite<= fma-def_binary64 (+.f64 (*.f64 x (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000)) 23533438303/500000000)))): 0 points increase in error, 0 points decrease in error
      (*.f64 (-.f64 x 2) (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+.f64 (Rewrite<= *-commutative_binary64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x)) 23533438303/500000000))): 0 points increase in error, 0 points decrease in error
      (Rewrite=> associate-*r/_binary64 (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000))): 12 points increase in error, 8 points decrease in error
    3. Taylor expanded in z around 0 0.9

      \[\leadsto \left(x + -2\right) \cdot \color{blue}{\left(\frac{\left(\left(137.519416416 + \left(78.6994924154 + 4.16438922228 \cdot x\right) \cdot x\right) \cdot x + y\right) \cdot x}{\left(313.399215894 + \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right) \cdot x\right) \cdot x + 47.066876606} + \frac{z}{\left(313.399215894 + \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right) \cdot x\right) \cdot x + 47.066876606}\right)} \]
    4. Applied egg-rr1.0

      \[\leadsto \left(x + -2\right) \cdot \left(\frac{\left(\left(137.519416416 + \left(78.6994924154 + 4.16438922228 \cdot x\right) \cdot x\right) \cdot x + y\right) \cdot x}{\left(313.399215894 + \left(263.505074721 + x \cdot \left(43.3400022514 + x\right)\right) \cdot x\right) \cdot x + 47.066876606} + \frac{z}{\left(313.399215894 + \color{blue}{\frac{\left(69434.9244037198 - {\left(x \cdot \left(x + 43.3400022514\right)\right)}^{2}\right) \cdot x}{263.505074721 - x \cdot \left(x + 43.3400022514\right)}}\right) \cdot x + 47.066876606}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification1.2

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.1109843388509654 \cdot 10^{+78}:\\ \;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y + -130977.50649958357}{x \cdot x}\right)\\ \mathbf{elif}\;x \leq 8.125148622231434 \cdot 10^{+25}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606} + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \frac{x \cdot \left(69434.9244037198 - {\left(x \cdot \left(x + 43.3400022514\right)\right)}^{2}\right)}{263.505074721 - x \cdot \left(x + 43.3400022514\right)}\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y + -130977.50649958357}{x \cdot x}\right)\\ \end{array} \]

Alternatives

Alternative 1
Error1.1
Cost7624
\[\begin{array}{l} t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606\\ t_1 := \mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y + -130977.50649958357}{x \cdot x}\right)\\ \mathbf{if}\;x \leq -1.1109843388509654 \cdot 10^{+78}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 8.125148622231434 \cdot 10^{+25}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{t_0} + \frac{z}{t_0}\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error1.4
Cost3656
\[\begin{array}{l} t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606\\ \mathbf{if}\;x \leq -1.1109843388509654 \cdot 10^{+78}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 4.4176917540243755 \cdot 10^{+37}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)}{t_0} + \frac{z}{t_0}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \end{array} \]
Alternative 3
Error1.9
Cost3012
\[\begin{array}{l} t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606\\ \mathbf{if}\;x \leq -4.359438924066183 \cdot 10^{+47}:\\ \;\;\;\;4.16438922228 \cdot \left(x + -2\right) - z \cdot \left(2 \cdot \frac{1}{t_0} - \frac{x}{t_0}\right)\\ \mathbf{elif}\;x \leq 9.408032020018875 \cdot 10^{+57}:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{t_0}\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
Alternative 4
Error1.9
Cost2632
\[\begin{array}{l} \mathbf{if}\;x \leq -4.359438924066183 \cdot 10^{+47}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \mathbf{elif}\;x \leq 9.408032020018875 \cdot 10^{+57}:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606}\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
Alternative 5
Error2.7
Cost2504
\[\begin{array}{l} t_0 := 47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)\\ \mathbf{if}\;x \leq -4.359438924066183 \cdot 10^{+47}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t_0}\right)\\ \mathbf{elif}\;x \leq 9.408032020018875 \cdot 10^{+57}:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{t_0}\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
Alternative 6
Error3.1
Cost2120
\[\begin{array}{l} t_0 := x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606\\ \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t_0}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\ \end{array} \]
Alternative 7
Error3.6
Cost1992
\[\begin{array}{l} t_0 := \frac{z}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606}\\ \mathbf{if}\;x \leq -0.004117797940046108:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_0\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(t_0 + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\ \end{array} \]
Alternative 8
Error3.5
Cost1992
\[\begin{array}{l} t_0 := \frac{z}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606}\\ \mathbf{if}\;x \leq -0.004117797940046108:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_0\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(t_0 + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\ \end{array} \]
Alternative 9
Error5.2
Cost1744
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -0.004117797940046108:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \end{array} \]
Alternative 10
Error3.8
Cost1608
\[\begin{array}{l} t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \mathbf{if}\;x \leq -1017252.0955331573:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 11
Error3.8
Cost1608
\[\begin{array}{l} \mathbf{if}\;x \leq -1017252.0955331573:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right)\right)\right)}\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \end{array} \]
Alternative 12
Error3.7
Cost1608
\[\begin{array}{l} \mathbf{if}\;x \leq -0.004117797940046108:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right) + 47.066876606}\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 - \left(x \cdot x\right) \cdot \left(-43.3400022514 - x\right)\right)}\right)\\ \end{array} \]
Alternative 13
Error6.7
Cost1488
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -1017252.0955331573:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot y\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \end{array} \]
Alternative 14
Error6.7
Cost1488
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -0.004117797940046108:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\right)\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot \left(z + x \cdot y\right)}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \end{array} \]
Alternative 15
Error15.1
Cost1232
\[\begin{array}{l} t_0 := -110.1139242984811 + x \cdot 4.16438922228\\ \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -29209402715367.03:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\frac{\left(x + -2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 16
Error15.2
Cost1104
\[\begin{array}{l} t_0 := -110.1139242984811 + x \cdot 4.16438922228\\ \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -29209402715367.03:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 7.363662232202376 \cdot 10^{-6}:\\ \;\;\;\;\frac{-2 \cdot z}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 17
Error15.3
Cost1104
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -29209402715367.03:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 5.712792903906652 \cdot 10^{-12}:\\ \;\;\;\;\frac{-2 \cdot z}{47.066876606 + x \cdot 313.399215894}\\ \mathbf{else}:\\ \;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\\ \end{array} \]
Alternative 18
Error15.4
Cost976
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -2.9974768665746244 \cdot 10^{+20}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 44332594597.41559:\\ \;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\ \mathbf{else}:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \end{array} \]
Alternative 19
Error15.3
Cost848
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -2.9974768665746244 \cdot 10^{+20}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 7.363662232202376 \cdot 10^{-6}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;-110.1139242984811 + x \cdot 4.16438922228\\ \end{array} \]
Alternative 20
Error15.5
Cost720
\[\begin{array}{l} \mathbf{if}\;x \leq -1.0800725983653995 \cdot 10^{+35}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq -6.915639608598828 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{x \cdot x}\\ \mathbf{elif}\;x \leq -2.9974768665746244 \cdot 10^{+20}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 5.712792903906652 \cdot 10^{-12}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
Alternative 21
Error15.4
Cost456
\[\begin{array}{l} \mathbf{if}\;x \leq -2.9974768665746244 \cdot 10^{+20}:\\ \;\;\;\;x \cdot 4.16438922228\\ \mathbf{elif}\;x \leq 5.712792903906652 \cdot 10^{-12}:\\ \;\;\;\;z \cdot -0.0424927283095952\\ \mathbf{else}:\\ \;\;\;\;x \cdot 4.16438922228\\ \end{array} \]
Alternative 22
Error61.9
Cost192
\[\frac{137.519416416}{x} \]
Alternative 23
Error35.5
Cost192
\[x \cdot 4.16438922228 \]

Error

Reproduce

herbie shell --seed 2022300 
(FPCore (x y z)
  :name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
  :precision binary64

  :herbie-target
  (if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))

  (/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))