?

Average Accuracy: 89.8% → 96.7%
Time: 32.7s
Precision: binary64
Cost: 14852

?

\[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
\[\begin{array}{l} t_1 := a + b \cdot c\\ t_2 := \left(x \cdot y + z \cdot t\right) - \left(c \cdot t_1\right) \cdot i\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(b \cdot \left(i \cdot \left(-c\right)\right), c, \mathsf{fma}\left(x, y, z \cdot t\right)\right)\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+300}:\\ \;\;\;\;t_2 \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_1 \cdot i\right)\right)\\ \end{array} \]
(FPCore (x y z t a b c i)
 :precision binary64
 (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))
(FPCore (x y z t a b c i)
 :precision binary64
 (let* ((t_1 (+ a (* b c))) (t_2 (- (+ (* x y) (* z t)) (* (* c t_1) i))))
   (if (<= t_2 (- INFINITY))
     (* 2.0 (fma (* b (* i (- c))) c (fma x y (* z t))))
     (if (<= t_2 2e+300) (* t_2 2.0) (* 2.0 (- (* x y) (* c (* t_1 i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return 2.0 * (((x * y) + (z * t)) - (((a + (b * c)) * c) * i));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	double t_1 = a + (b * c);
	double t_2 = ((x * y) + (z * t)) - ((c * t_1) * i);
	double tmp;
	if (t_2 <= -((double) INFINITY)) {
		tmp = 2.0 * fma((b * (i * -c)), c, fma(x, y, (z * t)));
	} else if (t_2 <= 2e+300) {
		tmp = t_2 * 2.0;
	} else {
		tmp = 2.0 * ((x * y) - (c * (t_1 * i)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i)
	return Float64(2.0 * Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(Float64(a + Float64(b * c)) * c) * i)))
end
function code(x, y, z, t, a, b, c, i)
	t_1 = Float64(a + Float64(b * c))
	t_2 = Float64(Float64(Float64(x * y) + Float64(z * t)) - Float64(Float64(c * t_1) * i))
	tmp = 0.0
	if (t_2 <= Float64(-Inf))
		tmp = Float64(2.0 * fma(Float64(b * Float64(i * Float64(-c))), c, fma(x, y, Float64(z * t))));
	elseif (t_2 <= 2e+300)
		tmp = Float64(t_2 * 2.0);
	else
		tmp = Float64(2.0 * Float64(Float64(x * y) - Float64(c * Float64(t_1 * i))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(2.0 * N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a + N[(b * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * y), $MachinePrecision] + N[(z * t), $MachinePrecision]), $MachinePrecision] - N[(N[(c * t$95$1), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(2.0 * N[(N[(b * N[(i * (-c)), $MachinePrecision]), $MachinePrecision] * c + N[(x * y + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+300], N[(t$95$2 * 2.0), $MachinePrecision], N[(2.0 * N[(N[(x * y), $MachinePrecision] - N[(c * N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right)
\begin{array}{l}
t_1 := a + b \cdot c\\
t_2 := \left(x \cdot y + z \cdot t\right) - \left(c \cdot t_1\right) \cdot i\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;2 \cdot \mathsf{fma}\left(b \cdot \left(i \cdot \left(-c\right)\right), c, \mathsf{fma}\left(x, y, z \cdot t\right)\right)\\

\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+300}:\\
\;\;\;\;t_2 \cdot 2\\

\mathbf{else}:\\
\;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_1 \cdot i\right)\right)\\


\end{array}

Error?

Target

Original89.8%
Target97.1%
Herbie96.7%
\[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right) \]

Derivation?

  1. Split input into 3 regimes
  2. if (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)) < -inf.0

    1. Initial program 0.0%

      \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
    2. Taylor expanded in a around 0 36.4%

      \[\leadsto 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \color{blue}{{c}^{2} \cdot \left(i \cdot b\right)}\right) \]
    3. Simplified65.0%

      \[\leadsto 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \color{blue}{b \cdot \left(c \cdot \left(c \cdot i\right)\right)}\right) \]
      Proof

      [Start]36.4

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - {c}^{2} \cdot \left(i \cdot b\right)\right) \]

      associate-*r* [=>]36.4

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \color{blue}{\left({c}^{2} \cdot i\right) \cdot b}\right) \]

      *-commutative [=>]36.4

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \color{blue}{b \cdot \left({c}^{2} \cdot i\right)}\right) \]

      unpow2 [=>]36.4

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - b \cdot \left(\color{blue}{\left(c \cdot c\right)} \cdot i\right)\right) \]

      associate-*l* [=>]65.0

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - b \cdot \color{blue}{\left(c \cdot \left(c \cdot i\right)\right)}\right) \]
    4. Applied egg-rr78.7%

      \[\leadsto 2 \cdot \color{blue}{\mathsf{fma}\left(\left(-b\right) \cdot \left(c \cdot i\right), c, \mathsf{fma}\left(x, y, z \cdot t\right)\right)} \]
      Proof

      [Start]65.0

      \[ 2 \cdot \left(\left(x \cdot y + z \cdot t\right) - b \cdot \left(c \cdot \left(c \cdot i\right)\right)\right) \]

      sub-neg [=>]65.0

      \[ 2 \cdot \color{blue}{\left(\left(x \cdot y + z \cdot t\right) + \left(-b \cdot \left(c \cdot \left(c \cdot i\right)\right)\right)\right)} \]

      +-commutative [=>]65.0

      \[ 2 \cdot \color{blue}{\left(\left(-b \cdot \left(c \cdot \left(c \cdot i\right)\right)\right) + \left(x \cdot y + z \cdot t\right)\right)} \]

      distribute-lft-neg-in [=>]65.0

      \[ 2 \cdot \left(\color{blue}{\left(-b\right) \cdot \left(c \cdot \left(c \cdot i\right)\right)} + \left(x \cdot y + z \cdot t\right)\right) \]

      *-commutative [=>]65.0

      \[ 2 \cdot \left(\left(-b\right) \cdot \color{blue}{\left(\left(c \cdot i\right) \cdot c\right)} + \left(x \cdot y + z \cdot t\right)\right) \]

      associate-*r* [=>]78.6

      \[ 2 \cdot \left(\color{blue}{\left(\left(-b\right) \cdot \left(c \cdot i\right)\right) \cdot c} + \left(x \cdot y + z \cdot t\right)\right) \]

      fma-def [=>]78.7

      \[ 2 \cdot \color{blue}{\mathsf{fma}\left(\left(-b\right) \cdot \left(c \cdot i\right), c, x \cdot y + z \cdot t\right)} \]

      fma-def [=>]78.7

      \[ 2 \cdot \mathsf{fma}\left(\left(-b\right) \cdot \left(c \cdot i\right), c, \color{blue}{\mathsf{fma}\left(x, y, z \cdot t\right)}\right) \]

    if -inf.0 < (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i)) < 2.0000000000000001e300

    1. Initial program 99.5%

      \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]

    if 2.0000000000000001e300 < (-.f64 (+.f64 (*.f64 x y) (*.f64 z t)) (*.f64 (*.f64 (+.f64 a (*.f64 b c)) c) i))

    1. Initial program 18.2%

      \[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(\left(a + b \cdot c\right) \cdot c\right) \cdot i\right) \]
    2. Taylor expanded in z around 0 69.2%

      \[\leadsto 2 \cdot \color{blue}{\left(y \cdot x - c \cdot \left(i \cdot \left(c \cdot b + a\right)\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification96.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(x \cdot y + z \cdot t\right) - \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i \leq -\infty:\\ \;\;\;\;2 \cdot \mathsf{fma}\left(b \cdot \left(i \cdot \left(-c\right)\right), c, \mathsf{fma}\left(x, y, z \cdot t\right)\right)\\ \mathbf{elif}\;\left(x \cdot y + z \cdot t\right) - \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i \leq 2 \cdot 10^{+300}:\\ \;\;\;\;\left(\left(x \cdot y + z \cdot t\right) - \left(c \cdot \left(a + b \cdot c\right)\right) \cdot i\right) \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Accuracy96.6%
Cost2504
\[\begin{array}{l} t_1 := a + b \cdot c\\ t_2 := \left(c \cdot t_1\right) \cdot i\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(t_1 \cdot i\right)\right)\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+305}:\\ \;\;\;\;\left(\left(x \cdot y + z \cdot t\right) - t_2\right) \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)\\ \end{array} \]
Alternative 2
Accuracy64.0%
Cost2416
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)\\ t_2 := i \cdot \left(a \cdot c\right)\\ t_3 := 2 \cdot \left(z \cdot t - t_2\right)\\ t_4 := 2 \cdot \left(x \cdot y - t_2\right)\\ t_5 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;z \leq -1.75 \cdot 10^{+37}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;z \leq -2.25 \cdot 10^{-42}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq -4.5 \cdot 10^{-120}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.2 \cdot 10^{-140}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;z \leq -2.55 \cdot 10^{-151}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \mathbf{elif}\;z \leq -1.6 \cdot 10^{-192}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;z \leq -7.5 \cdot 10^{-251}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;z \leq -6.6 \cdot 10^{-285}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -1.9 \cdot 10^{-286}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-275}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{-269}:\\ \;\;\;\;2 \cdot \left(z \cdot t - \left(c \cdot c\right) \cdot \left(b \cdot i\right)\right)\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{-162}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_5\\ \end{array} \]
Alternative 3
Accuracy63.9%
Cost2416
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y - c \cdot \left(b \cdot \left(c \cdot i\right)\right)\right)\\ t_2 := i \cdot \left(a \cdot c\right)\\ t_3 := 2 \cdot \left(z \cdot t - t_2\right)\\ t_4 := 2 \cdot \left(x \cdot y - t_2\right)\\ t_5 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ t_6 := 2 \cdot \left(x \cdot y - c \cdot \left(i \cdot \left(b \cdot c\right)\right)\right)\\ \mathbf{if}\;z \leq -1.75 \cdot 10^{+37}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;z \leq -7.5 \cdot 10^{-40}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq -7.8 \cdot 10^{-118}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.2 \cdot 10^{-140}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;z \leq -3.6 \cdot 10^{-148}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \mathbf{elif}\;z \leq -2.1 \cdot 10^{-192}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-250}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;z \leq -6.6 \cdot 10^{-285}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;z \leq -2 \cdot 10^{-286}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-275}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{-269}:\\ \;\;\;\;2 \cdot \left(z \cdot t - \left(c \cdot c\right) \cdot \left(b \cdot i\right)\right)\\ \mathbf{elif}\;z \leq 7.6 \cdot 10^{-164}:\\ \;\;\;\;t_6\\ \mathbf{else}:\\ \;\;\;\;t_5\\ \end{array} \]
Alternative 4
Accuracy64.7%
Cost1888
\[\begin{array}{l} t_1 := i \cdot \left(a \cdot c\right)\\ t_2 := 2 \cdot \left(x \cdot y - t_1\right)\\ t_3 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;c \leq -1.2 \cdot 10^{+123}:\\ \;\;\;\;c \cdot \left(-2 \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\ \mathbf{elif}\;c \leq -3.5 \cdot 10^{+42}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -1.55 \cdot 10^{-30}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 1.28 \cdot 10^{-139}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 8.5 \cdot 10^{-91}:\\ \;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\ \mathbf{elif}\;c \leq 1.14 \cdot 10^{-67}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 3.1 \cdot 10^{+75}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 5.5 \cdot 10^{+129}:\\ \;\;\;\;2 \cdot \left(z \cdot t - \left(c \cdot c\right) \cdot \left(b \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \end{array} \]
Alternative 5
Accuracy70.0%
Cost1884
\[\begin{array}{l} t_1 := i \cdot \left(a \cdot c\right)\\ t_2 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ t_3 := 2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\ t_4 := 2 \cdot \left(x \cdot y - t_1\right)\\ \mathbf{if}\;c \leq -5.8 \cdot 10^{+39}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -2.9 \cdot 10^{-27}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;c \leq -2.15 \cdot 10^{-44}:\\ \;\;\;\;2 \cdot \left(z \cdot t - \left(c \cdot c\right) \cdot \left(b \cdot i\right)\right)\\ \mathbf{elif}\;c \leq 1.28 \cdot 10^{-139}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-92}:\\ \;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\ \mathbf{elif}\;c \leq 2.55 \cdot 10^{-65}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 2.5 \cdot 10^{+76}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 6
Accuracy86.5%
Cost1748
\[\begin{array}{l} t_1 := x \cdot y + z \cdot t\\ t_2 := 2 \cdot \left(t_1 - i \cdot \left(a \cdot c\right)\right)\\ t_3 := 2 \cdot \left(t_1 - b \cdot \left(c \cdot \left(c \cdot i\right)\right)\right)\\ \mathbf{if}\;a \leq -4.3 \cdot 10^{+64}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -0.0078:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -3.2 \cdot 10^{-102}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 4 \cdot 10^{-258}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq 17000000000:\\ \;\;\;\;2 \cdot \left(x \cdot y + \left(z \cdot t - \left(c \cdot i\right) \cdot \left(b \cdot c\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 7
Accuracy64.0%
Cost1628
\[\begin{array}{l} t_1 := i \cdot \left(a \cdot c\right)\\ t_2 := 2 \cdot \left(x \cdot y - t_1\right)\\ t_3 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;c \leq -2.1 \cdot 10^{+122}:\\ \;\;\;\;c \cdot \left(-2 \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\ \mathbf{elif}\;c \leq -2.3 \cdot 10^{+42}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -1 \cdot 10^{-28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 1.28 \cdot 10^{-139}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 10^{-91}:\\ \;\;\;\;2 \cdot \left(z \cdot t - t_1\right)\\ \mathbf{elif}\;c \leq 2.3 \cdot 10^{-65}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 5.3 \cdot 10^{+110}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \end{array} \]
Alternative 8
Accuracy62.3%
Cost1498
\[\begin{array}{l} t_1 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;y \leq -7.5 \cdot 10^{-148}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -1.05 \cdot 10^{-174}:\\ \;\;\;\;2 \cdot \left(c \cdot \left(b \cdot \left(i \cdot \left(-c\right)\right)\right)\right)\\ \mathbf{elif}\;y \leq -1.25 \cdot 10^{-275} \lor \neg \left(y \leq 4.2 \cdot 10^{-279}\right) \land \left(y \leq 9.5 \cdot 10^{-260} \lor \neg \left(y \leq 1.35 \cdot 10^{-200}\right)\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \end{array} \]
Alternative 9
Accuracy73.9%
Cost1488
\[\begin{array}{l} t_1 := 2 \cdot \left(x \cdot y - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\ t_2 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;c \leq -3.8 \cdot 10^{-35}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.28 \cdot 10^{-139}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-92}:\\ \;\;\;\;2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\ \mathbf{elif}\;c \leq 1.3 \cdot 10^{-68}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Accuracy88.2%
Cost1353
\[\begin{array}{l} \mathbf{if}\;a \leq -7.5 \cdot 10^{+63} \lor \neg \left(a \leq 7000000000\right):\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot \left(a \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y + \left(z \cdot t - \left(c \cdot i\right) \cdot \left(b \cdot c\right)\right)\right)\\ \end{array} \]
Alternative 11
Accuracy65.8%
Cost1232
\[\begin{array}{l} t_1 := \left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{if}\;c \leq -1.02 \cdot 10^{+123}:\\ \;\;\;\;c \cdot \left(-2 \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\ \mathbf{elif}\;c \leq 1.22 \cdot 10^{-139}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.02 \cdot 10^{-91}:\\ \;\;\;\;2 \cdot \left(z \cdot t - i \cdot \left(a \cdot c\right)\right)\\ \mathbf{elif}\;c \leq 9.5 \cdot 10^{+128}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right) \cdot -2\\ \end{array} \]
Alternative 12
Accuracy85.4%
Cost1225
\[\begin{array}{l} \mathbf{if}\;c \leq -1.45 \cdot 10^{+102} \lor \neg \left(c \leq 1.4 \cdot 10^{+92}\right):\\ \;\;\;\;2 \cdot \left(z \cdot t - c \cdot \left(\left(a + b \cdot c\right) \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(x \cdot y + z \cdot t\right) - i \cdot \left(a \cdot c\right)\right)\\ \end{array} \]
Alternative 13
Accuracy97.1%
Cost1216
\[2 \cdot \left(\left(x \cdot y + z \cdot t\right) - \left(a + b \cdot c\right) \cdot \left(c \cdot i\right)\right) \]
Alternative 14
Accuracy65.5%
Cost904
\[\begin{array}{l} \mathbf{if}\;c \leq -1.5 \cdot 10^{+122}:\\ \;\;\;\;c \cdot \left(-2 \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\ \mathbf{elif}\;c \leq 2.05 \cdot 10^{+152}:\\ \;\;\;\;\left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(\left(c \cdot i\right) \cdot \left(b \cdot \left(-c\right)\right)\right)\\ \end{array} \]
Alternative 15
Accuracy65.7%
Cost904
\[\begin{array}{l} \mathbf{if}\;c \leq -1.3 \cdot 10^{+122}:\\ \;\;\;\;c \cdot \left(-2 \cdot \left(c \cdot \left(b \cdot i\right)\right)\right)\\ \mathbf{elif}\;c \leq 1.9 \cdot 10^{+115}:\\ \;\;\;\;\left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(c \cdot \left(b \cdot \left(i \cdot \left(-c\right)\right)\right)\right)\\ \end{array} \]
Alternative 16
Accuracy43.1%
Cost850
\[\begin{array}{l} \mathbf{if}\;t \leq -1.8 \cdot 10^{-98} \lor \neg \left(t \leq 2.6 \cdot 10^{-6}\right) \land \left(t \leq 1.55 \cdot 10^{+87} \lor \neg \left(t \leq 9 \cdot 10^{+103}\right)\right):\\ \;\;\;\;2 \cdot \left(z \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y\right)\\ \end{array} \]
Alternative 17
Accuracy42.9%
Cost849
\[\begin{array}{l} t_1 := 2 \cdot \left(z \cdot t\right)\\ \mathbf{if}\;z \leq -5.5 \cdot 10^{+18}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.5 \cdot 10^{-37}:\\ \;\;\;\;-2 \cdot \left(c \cdot \left(a \cdot i\right)\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-43} \lor \neg \left(z \leq 9 \cdot 10^{-77}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(x \cdot y\right)\\ \end{array} \]
Alternative 18
Accuracy42.8%
Cost776
\[\begin{array}{l} t_1 := 2 \cdot \left(z \cdot t\right)\\ \mathbf{if}\;z \leq -6.6 \cdot 10^{+35}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.25 \cdot 10^{-37}:\\ \;\;\;\;-2 \cdot \left(i \cdot \left(a \cdot c\right)\right)\\ \mathbf{elif}\;z \leq 9 \cdot 10^{-77}:\\ \;\;\;\;2 \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 19
Accuracy65.1%
Cost708
\[\begin{array}{l} \mathbf{if}\;a \leq 4.3 \cdot 10^{+192}:\\ \;\;\;\;\left(x \cdot y + z \cdot t\right) \cdot 2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot \left(a \cdot \left(i \cdot \left(-c\right)\right)\right)\\ \end{array} \]
Alternative 20
Accuracy34.1%
Cost320
\[2 \cdot \left(z \cdot t\right) \]

Error

Reproduce?

herbie shell --seed 2023151 
(FPCore (x y z t a b c i)
  :name "Diagrams.ThreeD.Shapes:frustum from diagrams-lib-1.3.0.3, A"
  :precision binary64

  :herbie-target
  (* 2.0 (- (+ (* x y) (* z t)) (* (+ a (* b c)) (* c i))))

  (* 2.0 (- (+ (* x y) (* z t)) (* (* (+ a (* b c)) c) i))))