?

Average Accuracy: 90.9% → 98.3%
Time: 46.3s
Precision: binary64
Cost: 6088

?

\[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
\[\begin{array}{l} t_1 := i \cdot \left(x \cdot -4\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := t \cdot \left(a \cdot -4\right)\\ t_4 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t_3\right) + b \cdot c\right) + t_1\right) + t_2\\ \mathbf{if}\;t_4 \leq -\infty:\\ \;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;t_4 \leq 5 \cdot 10^{+292}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(\left(z \cdot \left(x \cdot t\right)\right) \cdot \left(18 \cdot y\right) + t_3\right)\right) + t_1\right) + t_2\\ \end{array} \]
(FPCore (x y z t a b c i j k)
 :precision binary64
 (-
  (-
   (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c))
   (* (* x 4.0) i))
  (* (* j 27.0) k)))
(FPCore (x y z t a b c i j k)
 :precision binary64
 (let* ((t_1 (* i (* x -4.0)))
        (t_2 (* k (* j -27.0)))
        (t_3 (* t (* a -4.0)))
        (t_4 (+ (+ (+ (+ (* (* (* (* x 18.0) y) z) t) t_3) (* b c)) t_1) t_2)))
   (if (<= t_4 (- INFINITY))
     (+
      (+
       (* b c)
       (+ (* x (+ (* 18.0 (* y (* z t))) (* i -4.0))) (* -4.0 (* t a))))
      (* (* j k) -27.0))
     (if (<= t_4 5e+292)
       t_4
       (+ (+ (+ (* b c) (+ (* (* z (* x t)) (* 18.0 y)) t_3)) t_1) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = i * (x * -4.0);
	double t_2 = k * (j * -27.0);
	double t_3 = t * (a * -4.0);
	double t_4 = (((((((x * 18.0) * y) * z) * t) + t_3) + (b * c)) + t_1) + t_2;
	double tmp;
	if (t_4 <= -((double) INFINITY)) {
		tmp = ((b * c) + ((x * ((18.0 * (y * (z * t))) + (i * -4.0))) + (-4.0 * (t * a)))) + ((j * k) * -27.0);
	} else if (t_4 <= 5e+292) {
		tmp = t_4;
	} else {
		tmp = (((b * c) + (((z * (x * t)) * (18.0 * y)) + t_3)) + t_1) + t_2;
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k) {
	double t_1 = i * (x * -4.0);
	double t_2 = k * (j * -27.0);
	double t_3 = t * (a * -4.0);
	double t_4 = (((((((x * 18.0) * y) * z) * t) + t_3) + (b * c)) + t_1) + t_2;
	double tmp;
	if (t_4 <= -Double.POSITIVE_INFINITY) {
		tmp = ((b * c) + ((x * ((18.0 * (y * (z * t))) + (i * -4.0))) + (-4.0 * (t * a)))) + ((j * k) * -27.0);
	} else if (t_4 <= 5e+292) {
		tmp = t_4;
	} else {
		tmp = (((b * c) + (((z * (x * t)) * (18.0 * y)) + t_3)) + t_1) + t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k):
	return (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
def code(x, y, z, t, a, b, c, i, j, k):
	t_1 = i * (x * -4.0)
	t_2 = k * (j * -27.0)
	t_3 = t * (a * -4.0)
	t_4 = (((((((x * 18.0) * y) * z) * t) + t_3) + (b * c)) + t_1) + t_2
	tmp = 0
	if t_4 <= -math.inf:
		tmp = ((b * c) + ((x * ((18.0 * (y * (z * t))) + (i * -4.0))) + (-4.0 * (t * a)))) + ((j * k) * -27.0)
	elif t_4 <= 5e+292:
		tmp = t_4
	else:
		tmp = (((b * c) + (((z * (x * t)) * (18.0 * y)) + t_3)) + t_1) + t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j, k)
	return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) - Float64(Float64(a * 4.0) * t)) + Float64(b * c)) - Float64(Float64(x * 4.0) * i)) - Float64(Float64(j * 27.0) * k))
end
function code(x, y, z, t, a, b, c, i, j, k)
	t_1 = Float64(i * Float64(x * -4.0))
	t_2 = Float64(k * Float64(j * -27.0))
	t_3 = Float64(t * Float64(a * -4.0))
	t_4 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 18.0) * y) * z) * t) + t_3) + Float64(b * c)) + t_1) + t_2)
	tmp = 0.0
	if (t_4 <= Float64(-Inf))
		tmp = Float64(Float64(Float64(b * c) + Float64(Float64(x * Float64(Float64(18.0 * Float64(y * Float64(z * t))) + Float64(i * -4.0))) + Float64(-4.0 * Float64(t * a)))) + Float64(Float64(j * k) * -27.0));
	elseif (t_4 <= 5e+292)
		tmp = t_4;
	else
		tmp = Float64(Float64(Float64(Float64(b * c) + Float64(Float64(Float64(z * Float64(x * t)) * Float64(18.0 * y)) + t_3)) + t_1) + t_2);
	end
	return tmp
end
function tmp = code(x, y, z, t, a, b, c, i, j, k)
	tmp = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k)
	t_1 = i * (x * -4.0);
	t_2 = k * (j * -27.0);
	t_3 = t * (a * -4.0);
	t_4 = (((((((x * 18.0) * y) * z) * t) + t_3) + (b * c)) + t_1) + t_2;
	tmp = 0.0;
	if (t_4 <= -Inf)
		tmp = ((b * c) + ((x * ((18.0 * (y * (z * t))) + (i * -4.0))) + (-4.0 * (t * a)))) + ((j * k) * -27.0);
	elseif (t_4 <= 5e+292)
		tmp = t_4;
	else
		tmp = (((b * c) + (((z * (x * t)) * (18.0 * y)) + t_3)) + t_1) + t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] - N[(N[(a * 4.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] - N[(N[(x * 4.0), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(j * 27.0), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_] := Block[{t$95$1 = N[(i * N[(x * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(k * N[(j * -27.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(a * -4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[(N[(N[(N[(N[(x * 18.0), $MachinePrecision] * y), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision] + t$95$3), $MachinePrecision] + N[(b * c), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], N[(N[(N[(b * c), $MachinePrecision] + N[(N[(x * N[(N[(18.0 * N[(y * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * -4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-4.0 * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * k), $MachinePrecision] * -27.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, 5e+292], t$95$4, N[(N[(N[(N[(b * c), $MachinePrecision] + N[(N[(N[(z * N[(x * t), $MachinePrecision]), $MachinePrecision] * N[(18.0 * y), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision]]]]]]]
\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k
\begin{array}{l}
t_1 := i \cdot \left(x \cdot -4\right)\\
t_2 := k \cdot \left(j \cdot -27\right)\\
t_3 := t \cdot \left(a \cdot -4\right)\\
t_4 := \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t_3\right) + b \cdot c\right) + t_1\right) + t_2\\
\mathbf{if}\;t_4 \leq -\infty:\\
\;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\

\mathbf{elif}\;t_4 \leq 5 \cdot 10^{+292}:\\
\;\;\;\;t_4\\

\mathbf{else}:\\
\;\;\;\;\left(\left(b \cdot c + \left(\left(z \cdot \left(x \cdot t\right)\right) \cdot \left(18 \cdot y\right) + t_3\right)\right) + t_1\right) + t_2\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original90.9%
Target97.3%
Herbie98.3%
\[\begin{array}{l} \mathbf{if}\;t < -1.6210815397541398 \cdot 10^{-69}:\\ \;\;\;\;\left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - \left(a \cdot t + i \cdot x\right) \cdot 4\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\ \mathbf{elif}\;t < 165.68027943805222:\\ \;\;\;\;\left(\left(18 \cdot y\right) \cdot \left(x \cdot \left(z \cdot t\right)\right) - \left(a \cdot t + i \cdot x\right) \cdot 4\right) + \left(c \cdot b - 27 \cdot \left(k \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(18 \cdot t\right) \cdot \left(\left(x \cdot y\right) \cdot z\right) - \left(a \cdot t + i \cdot x\right) \cdot 4\right) - \left(\left(k \cdot j\right) \cdot 27 - c \cdot b\right)\\ \end{array} \]

Derivation?

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

    1. Initial program 0.0%

      \[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
    2. Simplified31.8%

      \[\leadsto \color{blue}{\left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + j \cdot \left(27 \cdot k\right)\right)} \]
      Proof

      [Start]0.0

      \[ \left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      associate--l- [=>]0.0

      \[ \color{blue}{\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right)} \]

      associate-+l- [=>]0.0

      \[ \color{blue}{\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(\left(a \cdot 4\right) \cdot t - b \cdot c\right)\right)} - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right) \]

      associate-+l- [<=]0.0

      \[ \color{blue}{\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right)} - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right) \]

      distribute-rgt-out-- [=>]0.0

      \[ \left(\color{blue}{t \cdot \left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z - a \cdot 4\right)} + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right) \]

      associate-*l* [=>]30.9

      \[ \left(t \cdot \left(\color{blue}{\left(x \cdot 18\right) \cdot \left(y \cdot z\right)} - a \cdot 4\right) + b \cdot c\right) - \left(\left(x \cdot 4\right) \cdot i + \left(j \cdot 27\right) \cdot k\right) \]

      associate-*l* [=>]30.9

      \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(\color{blue}{x \cdot \left(4 \cdot i\right)} + \left(j \cdot 27\right) \cdot k\right) \]

      associate-*l* [=>]31.8

      \[ \left(t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) - a \cdot 4\right) + b \cdot c\right) - \left(x \cdot \left(4 \cdot i\right) + \color{blue}{j \cdot \left(27 \cdot k\right)}\right) \]
    3. Taylor expanded in x around 0 93.5%

      \[\leadsto \color{blue}{\left(c \cdot b + \left(\left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) - 4 \cdot i\right) \cdot x + -4 \cdot \left(a \cdot t\right)\right)\right) - 27 \cdot \left(k \cdot j\right)} \]

    if -inf.0 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k)) < 4.9999999999999996e292

    1. Initial program 99.6%

      \[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

    if 4.9999999999999996e292 < (-.f64 (-.f64 (+.f64 (-.f64 (*.f64 (*.f64 (*.f64 (*.f64 x 18) y) z) t) (*.f64 (*.f64 a 4) t)) (*.f64 b c)) (*.f64 (*.f64 x 4) i)) (*.f64 (*.f64 j 27) k))

    1. Initial program 39.9%

      \[\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
    2. Taylor expanded in x around 0 80.5%

      \[\leadsto \left(\left(\left(\color{blue}{18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)} - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
    3. Simplified86.0%

      \[\leadsto \left(\left(\left(\color{blue}{\left(z \cdot \left(t \cdot x\right)\right) \cdot \left(18 \cdot y\right)} - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
      Proof

      [Start]80.5

      \[ \left(\left(\left(18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      associate-*r* [=>]79.8

      \[ \left(\left(\left(\color{blue}{\left(18 \cdot y\right) \cdot \left(t \cdot \left(z \cdot x\right)\right)} - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      *-commutative [=>]79.8

      \[ \left(\left(\left(\color{blue}{\left(t \cdot \left(z \cdot x\right)\right) \cdot \left(18 \cdot y\right)} - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      associate-*r* [=>]87.8

      \[ \left(\left(\left(\color{blue}{\left(\left(t \cdot z\right) \cdot x\right)} \cdot \left(18 \cdot y\right) - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      *-commutative [<=]87.8

      \[ \left(\left(\left(\left(\color{blue}{\left(z \cdot t\right)} \cdot x\right) \cdot \left(18 \cdot y\right) - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]

      associate-*l* [=>]86.0

      \[ \left(\left(\left(\color{blue}{\left(z \cdot \left(t \cdot x\right)\right)} \cdot \left(18 \cdot y\right) - \left(a \cdot 4\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4\right) \cdot i\right) - \left(j \cdot 27\right) \cdot k \]
  3. Recombined 3 regimes into one program.
  4. Final simplification98.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t \cdot \left(a \cdot -4\right)\right) + b \cdot c\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right) \leq -\infty:\\ \;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t \cdot \left(a \cdot -4\right)\right) + b \cdot c\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right) \leq 5 \cdot 10^{+292}:\\ \;\;\;\;\left(\left(\left(\left(\left(\left(x \cdot 18\right) \cdot y\right) \cdot z\right) \cdot t + t \cdot \left(a \cdot -4\right)\right) + b \cdot c\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(\left(z \cdot \left(x \cdot t\right)\right) \cdot \left(18 \cdot y\right) + t \cdot \left(a \cdot -4\right)\right)\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right)\\ \end{array} \]

Alternatives

Alternative 1
Accuracy56.2%
Cost3420
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ t_4 := \left(j \cdot 27\right) \cdot k\\ t_5 := b \cdot c + t_1\\ \mathbf{if}\;t_4 \leq -1 \cdot 10^{+56}:\\ \;\;\;\;t_2 + i \cdot \left(x \cdot -4\right)\\ \mathbf{elif}\;t_4 \leq -2 \cdot 10^{+32}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;t_4 \leq -200000000:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t_4 \leq -2 \cdot 10^{-20}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\\ \mathbf{elif}\;t_4 \leq 2 \cdot 10^{-307}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;t_4 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t_4 \leq 5 \cdot 10^{+133}:\\ \;\;\;\;t_1 + t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + \left(j \cdot k\right) \cdot -27\\ \end{array} \]
Alternative 2
Accuracy57.0%
Cost3032
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := t_1 + k \cdot \left(j \cdot -27\right)\\ t_3 := \left(j \cdot 27\right) \cdot k\\ t_4 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;t_3 \leq -4 \cdot 10^{+27}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_3 \leq -200000000:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t_3 \leq -0.0005:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_3 \leq 2 \cdot 10^{-307}:\\ \;\;\;\;b \cdot c + t_1\\ \mathbf{elif}\;t_3 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t_3 \leq 5 \cdot 10^{+133}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + \left(j \cdot k\right) \cdot -27\\ \end{array} \]
Alternative 3
Accuracy85.6%
Cost3024
\[\begin{array}{l} t_1 := \left(b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\right) + -4 \cdot \left(x \cdot i\right)\\ t_2 := \left(j \cdot 27\right) \cdot k\\ t_3 := x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\ t_4 := \left(b \cdot c + t \cdot \left(a \cdot -4\right)\right) + t_3\\ \mathbf{if}\;t_2 \leq -1 \cdot 10^{-187}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t_2 \leq 6 \cdot 10^{-114}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_2 \leq 4000000000000:\\ \;\;\;\;\left(b \cdot c + x \cdot \left(\left(y \cdot t\right) \cdot \left(18 \cdot z\right)\right)\right) + t_3\\ \mathbf{elif}\;t_2 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_4\\ \end{array} \]
Alternative 4
Accuracy44.3%
Cost2548
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := b \cdot c + t_1\\ t_3 := b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\ t_4 := k \cdot \left(j \cdot -27\right)\\ t_5 := b \cdot c + t_4\\ t_6 := t_4 + i \cdot \left(x \cdot -4\right)\\ \mathbf{if}\;y \leq -4.5 \cdot 10^{+213}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq -7.8 \cdot 10^{+201}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;y \leq -1.95 \cdot 10^{+167}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\\ \mathbf{elif}\;y \leq -1.15 \cdot 10^{+108}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;y \leq -1.22 \cdot 10^{+24}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right)\\ \mathbf{elif}\;y \leq -3.6 \cdot 10^{-13}:\\ \;\;\;\;b \cdot c + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;y \leq -3 \cdot 10^{-77}:\\ \;\;\;\;t_1 + t_4\\ \mathbf{elif}\;y \leq -7 \cdot 10^{-112}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;y \leq -3.3 \cdot 10^{-157}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;y \leq -2.05 \cdot 10^{-258}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.7 \cdot 10^{-278}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;y \leq 1.16 \cdot 10^{-132}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 1.26 \cdot 10^{-30}:\\ \;\;\;\;t_5\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 5
Accuracy62.8%
Cost2281
\[\begin{array}{l} t_1 := t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right) + t \cdot \left(a \cdot -4\right)\\ t_2 := b \cdot c + \left(\left(j \cdot k\right) \cdot -27 + -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{if}\;t \leq -1.25 \cdot 10^{+178}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2.15 \cdot 10^{+112}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{+23}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\\ \mathbf{elif}\;t \leq -1.25 \cdot 10^{-14}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.05 \cdot 10^{-57}:\\ \;\;\;\;-4 \cdot \left(t \cdot a\right) + k \cdot \left(j \cdot -27\right)\\ \mathbf{elif}\;t \leq 4 \cdot 10^{-227}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{-172}:\\ \;\;\;\;b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{elif}\;t \leq 3.4 \cdot 10^{-39} \lor \neg \left(t \leq 1.55 \cdot 10^{+28}\right) \land t \leq 3.5 \cdot 10^{+139}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Accuracy56.6%
Cost2256
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t_3 \leq -1 \cdot 10^{+56}:\\ \;\;\;\;t_2 + i \cdot \left(x \cdot -4\right)\\ \mathbf{elif}\;t_3 \leq 2 \cdot 10^{-307}:\\ \;\;\;\;b \cdot c + t_1\\ \mathbf{elif}\;t_3 \leq 2 \cdot 10^{+52}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;t_3 \leq 5 \cdot 10^{+133}:\\ \;\;\;\;t_1 + t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + \left(j \cdot k\right) \cdot -27\\ \end{array} \]
Alternative 7
Accuracy87.4%
Cost2249
\[\begin{array}{l} t_1 := \left(j \cdot 27\right) \cdot k\\ \mathbf{if}\;t_1 \leq -1 \cdot 10^{-187} \lor \neg \left(t_1 \leq 6 \cdot 10^{-114}\right):\\ \;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4\right)\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot c + t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right)\right) + -4 \cdot \left(x \cdot i\right)\\ \end{array} \]
Alternative 8
Accuracy96.8%
Cost2249
\[\begin{array}{l} \mathbf{if}\;x \leq -5.5 \cdot 10^{-70} \lor \neg \left(x \leq 2 \cdot 10^{+35}\right):\\ \;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(\left(z \cdot \left(x \cdot t\right)\right) \cdot \left(18 \cdot y\right) + t \cdot \left(a \cdot -4\right)\right)\right) + i \cdot \left(x \cdot -4\right)\right) + k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 9
Accuracy92.6%
Cost2121
\[\begin{array}{l} \mathbf{if}\;x \leq -1.35 \cdot 10^{-73} \lor \neg \left(x \leq 7.2 \cdot 10^{-164}\right):\\ \;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4\right)\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\ \end{array} \]
Alternative 10
Accuracy96.5%
Cost2121
\[\begin{array}{l} \mathbf{if}\;t \leq -3.1 \cdot 10^{+81} \lor \neg \left(t \leq 1.55 \cdot 10^{-77}\right):\\ \;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) + a \cdot -4\right)\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot c + \left(x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right) + -4 \cdot \left(t \cdot a\right)\right)\right) + \left(j \cdot k\right) \cdot -27\\ \end{array} \]
Alternative 11
Accuracy30.1%
Cost2028
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := x \cdot \left(i \cdot -4\right)\\ t_3 := k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;c \leq -1.6 \cdot 10^{-87}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq -1.02 \cdot 10^{-130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq -1.3 \cdot 10^{-183}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -3.7 \cdot 10^{-245}:\\ \;\;\;\;18 \cdot \left(\left(z \cdot t\right) \cdot \left(x \cdot y\right)\right)\\ \mathbf{elif}\;c \leq 1.06 \cdot 10^{-302}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.15 \cdot 10^{-179}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{-119}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 3.9 \cdot 10^{-26}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 1.85 \cdot 10^{+31}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 3.7 \cdot 10^{+82}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;c \leq 3.1 \cdot 10^{+91}:\\ \;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{elif}\;c \leq 1.08 \cdot 10^{+101}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 12
Accuracy30.1%
Cost2028
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;c \leq -1.22 \cdot 10^{-87}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq -1.58 \cdot 10^{-130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq -3.4 \cdot 10^{-184}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq -8.2 \cdot 10^{-244}:\\ \;\;\;\;18 \cdot \left(\left(z \cdot t\right) \cdot \left(x \cdot y\right)\right)\\ \mathbf{elif}\;c \leq 2.7 \cdot 10^{-302}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 7 \cdot 10^{-180}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 7.4 \cdot 10^{-119}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.68 \cdot 10^{-25}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 1.35 \cdot 10^{+31}:\\ \;\;\;\;x \cdot \left(i \cdot -4\right)\\ \mathbf{elif}\;c \leq 3.2 \cdot 10^{+82}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;c \leq 1.5 \cdot 10^{+103}:\\ \;\;\;\;t \cdot \left(18 \cdot \left(z \cdot \left(x \cdot y\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 13
Accuracy72.5%
Cost1620
\[\begin{array}{l} t_1 := \left(j \cdot k\right) \cdot -27\\ t_2 := b \cdot c + \left(t_1 + -4 \cdot \left(x \cdot i\right)\right)\\ t_3 := x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right)\\ \mathbf{if}\;x \leq -2.1 \cdot 10^{+154}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2 \cdot 10^{+53}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-69}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 3.6 \cdot 10^{-6}:\\ \;\;\;\;\left(b \cdot c + -4 \cdot \left(t \cdot a\right)\right) + t_1\\ \mathbf{elif}\;x \leq 9.2 \cdot 10^{+216}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 14
Accuracy83.8%
Cost1476
\[\begin{array}{l} t_1 := t \cdot \left(a \cdot -4\right)\\ \mathbf{if}\;x \leq 9.5 \cdot 10^{+216}:\\ \;\;\;\;\left(b \cdot c + t_1\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\ \mathbf{elif}\;x \leq 5.5 \cdot 10^{+298}:\\ \;\;\;\;x \cdot \left(18 \cdot \left(y \cdot \left(z \cdot t\right)\right) + i \cdot -4\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right)\right) + t_1\\ \end{array} \]
Alternative 15
Accuracy30.1%
Cost1376
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right)\\ t_2 := -4 \cdot \left(t \cdot a\right)\\ \mathbf{if}\;k \leq -2.3 \cdot 10^{-126}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;k \leq 8.5 \cdot 10^{-288}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \leq 4.8 \cdot 10^{-56}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;k \leq 2.05 \cdot 10^{-26}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \leq 2500000000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 4.7 \cdot 10^{+33}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;k \leq 1.15 \cdot 10^{+38}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;k \leq 7.3 \cdot 10^{+74}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 16
Accuracy44.6%
Cost1105
\[\begin{array}{l} \mathbf{if}\;j \leq -3.7 \cdot 10^{+171}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;j \leq -1.6 \cdot 10^{+135} \lor \neg \left(j \leq -1.6 \cdot 10^{+75}\right) \land j \leq 125:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 17
Accuracy50.8%
Cost1104
\[\begin{array}{l} t_1 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ t_2 := b \cdot c + k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;k \leq -1.2 \cdot 10^{-176}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;k \leq 9.2 \cdot 10^{-271}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 1.15 \cdot 10^{-9}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;k \leq 7.3 \cdot 10^{+74}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 18
Accuracy50.7%
Cost1104
\[\begin{array}{l} t_1 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;k \leq -1.5 \cdot 10^{-183}:\\ \;\;\;\;b \cdot c + \left(j \cdot k\right) \cdot -27\\ \mathbf{elif}\;k \leq 2.3 \cdot 10^{-273}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;k \leq 3.7 \cdot 10^{-9}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;k \leq 7.6 \cdot 10^{+74}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 19
Accuracy30.9%
Cost980
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := \left(j \cdot k\right) \cdot -27\\ \mathbf{if}\;c \leq -2.05 \cdot 10^{-88}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq 3 \cdot 10^{-302}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{-163}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 2.85 \cdot 10^{-118}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.02 \cdot 10^{+86}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 20
Accuracy31.0%
Cost980
\[\begin{array}{l} t_1 := -4 \cdot \left(t \cdot a\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;c \leq -1.2 \cdot 10^{-87}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq 9.8 \cdot 10^{-303}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.5 \cdot 10^{-181}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 4.1 \cdot 10^{-119}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.02 \cdot 10^{+86}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 21
Accuracy51.4%
Cost841
\[\begin{array}{l} \mathbf{if}\;k \leq -1 \cdot 10^{-127} \lor \neg \left(k \leq 1.4 \cdot 10^{+37}\right):\\ \;\;\;\;b \cdot c + k \cdot \left(j \cdot -27\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(t \cdot a\right)\\ \end{array} \]
Alternative 22
Accuracy32.0%
Cost584
\[\begin{array}{l} \mathbf{if}\;c \leq -1.4 \cdot 10^{-93}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq 1.02 \cdot 10^{+86}:\\ \;\;\;\;\left(j \cdot k\right) \cdot -27\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 23
Accuracy24.0%
Cost192
\[b \cdot c \]

Error

Reproduce?

herbie shell --seed 2023135 
(FPCore (x y z t a b c i j k)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, E"
  :precision binary64

  :herbie-target
  (if (< t -1.6210815397541398e-69) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b))) (if (< t 165.68027943805222) (+ (- (* (* 18.0 y) (* x (* z t))) (* (+ (* a t) (* i x)) 4.0)) (- (* c b) (* 27.0 (* k j)))) (- (- (* (* 18.0 t) (* (* x y) z)) (* (+ (* a t) (* i x)) 4.0)) (- (* (* k j) 27.0) (* c b)))))

  (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))