?

Average Error: 5.8 → 3.6
Time: 1.1min
Precision: binary64
Cost: 6088

?

\[ \begin{array}{c}[y, z] = \mathsf{sort}([y, z])\\ [j, k] = \mathsf{sort}([j, k])\\ \end{array} \]
\[\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 := j \cdot \left(27 \cdot k\right)\\ t_2 := \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\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;x \cdot \left(-4 \cdot i - y \cdot \left(z \cdot \left(t \cdot -18\right)\right)\right) + \left(b \cdot c - t_1\right)\\ \mathbf{elif}\;t_2 \leq -4 \cdot 10^{+127}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(y \cdot \left(x \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(\left(b \cdot c - x \cdot \left(4 \cdot i\right)\right) - t_1\right)\\ \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 (* j (* 27.0 k)))
        (t_2
         (-
          (-
           (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c))
           (* (* x 4.0) i))
          (* (* j 27.0) k))))
   (if (<= t_2 (- INFINITY))
     (+ (* x (- (* -4.0 i) (* y (* z (* t -18.0))))) (- (* b c) t_1))
     (if (<= t_2 -4e+127)
       t_2
       (+
        (* t (- (* y (* x (* 18.0 z))) (* a 4.0)))
        (- (- (* b c) (* x (* 4.0 i))) t_1))))))
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 = j * (27.0 * k);
	double t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	double tmp;
	if (t_2 <= -((double) INFINITY)) {
		tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1);
	} else if (t_2 <= -4e+127) {
		tmp = t_2;
	} else {
		tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1);
	}
	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 = j * (27.0 * k);
	double t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	double tmp;
	if (t_2 <= -Double.POSITIVE_INFINITY) {
		tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1);
	} else if (t_2 <= -4e+127) {
		tmp = t_2;
	} else {
		tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1);
	}
	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 = j * (27.0 * k)
	t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k)
	tmp = 0
	if t_2 <= -math.inf:
		tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1)
	elif t_2 <= -4e+127:
		tmp = t_2
	else:
		tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1)
	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(j * Float64(27.0 * k))
	t_2 = 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))
	tmp = 0.0
	if (t_2 <= Float64(-Inf))
		tmp = Float64(Float64(x * Float64(Float64(-4.0 * i) - Float64(y * Float64(z * Float64(t * -18.0))))) + Float64(Float64(b * c) - t_1));
	elseif (t_2 <= -4e+127)
		tmp = t_2;
	else
		tmp = Float64(Float64(t * Float64(Float64(y * Float64(x * Float64(18.0 * z))) - Float64(a * 4.0))) + Float64(Float64(Float64(b * c) - Float64(x * Float64(4.0 * i))) - t_1));
	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 = j * (27.0 * k);
	t_2 = (((((((x * 18.0) * y) * z) * t) - ((a * 4.0) * t)) + (b * c)) - ((x * 4.0) * i)) - ((j * 27.0) * k);
	tmp = 0.0;
	if (t_2 <= -Inf)
		tmp = (x * ((-4.0 * i) - (y * (z * (t * -18.0))))) + ((b * c) - t_1);
	elseif (t_2 <= -4e+127)
		tmp = t_2;
	else
		tmp = (t * ((y * (x * (18.0 * z))) - (a * 4.0))) + (((b * c) - (x * (4.0 * i))) - t_1);
	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[(j * N[(27.0 * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(x * N[(N[(-4.0 * i), $MachinePrecision] - N[(y * N[(z * N[(t * -18.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * c), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -4e+127], t$95$2, N[(N[(t * N[(N[(y * N[(x * N[(18.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * 4.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * c), $MachinePrecision] - N[(x * N[(4.0 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $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 := j \cdot \left(27 \cdot k\right)\\
t_2 := \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\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;x \cdot \left(-4 \cdot i - y \cdot \left(z \cdot \left(t \cdot -18\right)\right)\right) + \left(b \cdot c - t_1\right)\\

\mathbf{elif}\;t_2 \leq -4 \cdot 10^{+127}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(y \cdot \left(x \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(\left(b \cdot c - x \cdot \left(4 \cdot i\right)\right) - t_1\right)\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.8
Target1.7
Herbie3.6
\[\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 64.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. Simplified38.2

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

      [Start]64.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 \]

      rational.json-simplify-48 [=>]64.0

      \[ \color{blue}{\left(b \cdot c + \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) - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k \]

      rational.json-simplify-48 [=>]64.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) - \left(x \cdot 4\right) \cdot i\right) + \left(b \cdot c - \left(j \cdot 27\right) \cdot k\right)} \]

      rational.json-simplify-2 [=>]64.0

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

      rational.json-simplify-52 [=>]64.0

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

      rational.json-simplify-2 [=>]64.0

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

      rational.json-simplify-43 [=>]39.4

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

      rational.json-simplify-2 [=>]39.4

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

      rational.json-simplify-43 [=>]39.4

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

      rational.json-simplify-2 [=>]39.4

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

      rational.json-simplify-43 [=>]38.2

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

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

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

      [Start]8.3

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

      rational.json-simplify-2 [=>]8.3

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

      rational.json-simplify-43 [=>]8.3

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

      rational.json-simplify-9 [=>]8.3

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

      rational.json-simplify-12 [=>]8.3

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

      rational.json-simplify-2 [=>]8.3

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

      metadata-eval [<=]8.3

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

      rational.json-simplify-49 [<=]8.3

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

      rational.json-simplify-45 [=>]8.3

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

      rational.json-simplify-49 [=>]8.3

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

      metadata-eval [=>]8.3

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

      rational.json-simplify-2 [<=]8.3

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

      rational.json-simplify-5 [=>]8.3

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

      rational.json-simplify-43 [=>]8.3

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

      rational.json-simplify-2 [=>]8.3

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

      rational.json-simplify-2 [=>]8.3

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

      rational.json-simplify-43 [=>]8.3

      \[ x \cdot \left(-4 \cdot i - y \cdot \color{blue}{\left(z \cdot \left(t \cdot -18\right)\right)}\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\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)) < -3.99999999999999982e127

    1. Initial program 0.2

      \[\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 -3.99999999999999982e127 < (-.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 4.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 \]
    2. Simplified4.7

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

      [Start]4.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 \]

      rational.json-simplify-1 [=>]4.6

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

      rational.json-simplify-48 [=>]4.6

      \[ \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) + \left(b \cdot c - \left(x \cdot 4\right) \cdot i\right)\right)} - \left(j \cdot 27\right) \cdot k \]

      rational.json-simplify-1 [=>]4.6

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

      rational.json-simplify-48 [=>]4.6

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

      rational.json-simplify-2 [=>]4.6

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

      rational.json-simplify-52 [=>]4.6

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

      rational.json-simplify-2 [=>]4.6

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

      rational.json-simplify-43 [<=]4.6

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

      rational.json-simplify-43 [=>]4.7

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

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

Alternatives

Alternative 1
Error18.1
Cost2272
\[\begin{array}{l} t_1 := x \cdot \left(-4 \cdot i\right)\\ t_2 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_3 := 27 \cdot \left(k \cdot j\right)\\ t_4 := c \cdot b + -4 \cdot \left(a \cdot t\right)\\ t_5 := t_4 - t_3\\ t_6 := t_4 - 4 \cdot \left(i \cdot x\right)\\ \mathbf{if}\;j \leq -3.2 \cdot 10^{+171}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq -8.6 \cdot 10^{+133}:\\ \;\;\;\;t_1 + t_2\\ \mathbf{elif}\;j \leq -4.8 \cdot 10^{+20}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{-68}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;j \leq -2.35 \cdot 10^{-87}:\\ \;\;\;\;\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - t_3\\ \mathbf{elif}\;j \leq 6.6 \cdot 10^{-216}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;j \leq 2.7 \cdot 10^{-201}:\\ \;\;\;\;18 \cdot \left(\left(z \cdot x\right) \cdot \left(t \cdot y\right)\right) + t_2\\ \mathbf{elif}\;j \leq 2.55 \cdot 10^{-65}:\\ \;\;\;\;t_6\\ \mathbf{else}:\\ \;\;\;\;\left(t_1 + \left(b \cdot c + \left(1 - 27 \cdot \left(j \cdot k\right)\right)\right)\right) - 1\\ \end{array} \]
Alternative 2
Error5.0
Cost2252
\[\begin{array}{l} t_1 := j \cdot \left(27 \cdot k\right)\\ t_2 := x \cdot \left(4 \cdot i\right)\\ t_3 := b \cdot c - t_1\\ \mathbf{if}\;t \leq -3.6 \cdot 10^{-77}:\\ \;\;\;\;b \cdot c + \left(\left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right) - a \cdot 4\right) - t_2\right) - t_1\right)\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-110}:\\ \;\;\;\;\left(t \cdot \left(a \cdot -4\right) - t_2\right) + t_3\\ \mathbf{elif}\;t \leq 7 \cdot 10^{-109}:\\ \;\;\;\;\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - 27 \cdot \left(k \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(x \cdot \left(y \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(t_3 - t_2\right)\\ \end{array} \]
Alternative 3
Error18.7
Cost2140
\[\begin{array}{l} t_1 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_2 := 27 \cdot \left(k \cdot j\right)\\ t_3 := c \cdot b + -4 \cdot \left(a \cdot t\right)\\ t_4 := t_3 - t_2\\ t_5 := t_3 - 4 \cdot \left(i \cdot x\right)\\ \mathbf{if}\;j \leq -2.1 \cdot 10^{+171}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;j \leq -7.5 \cdot 10^{+133}:\\ \;\;\;\;x \cdot \left(-4 \cdot i\right) + t_1\\ \mathbf{elif}\;j \leq -2.1 \cdot 10^{+19}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;j \leq -5.2 \cdot 10^{-68}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq -3.05 \cdot 10^{-87}:\\ \;\;\;\;\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - t_2\\ \mathbf{elif}\;j \leq 6.2 \cdot 10^{-216}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq 2.7 \cdot 10^{-195}:\\ \;\;\;\;18 \cdot \left(t \cdot \left(z \cdot \left(x \cdot y\right)\right)\right) + t_1\\ \mathbf{elif}\;j \leq 2.4 \cdot 10^{-45}:\\ \;\;\;\;t_5\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(i \cdot x\right) - k \cdot \left(27 \cdot j\right)\\ \end{array} \]
Alternative 4
Error18.6
Cost2140
\[\begin{array}{l} t_1 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_2 := 27 \cdot \left(k \cdot j\right)\\ t_3 := c \cdot b + -4 \cdot \left(a \cdot t\right)\\ t_4 := t_3 - t_2\\ t_5 := t_3 - 4 \cdot \left(i \cdot x\right)\\ \mathbf{if}\;j \leq -5.5 \cdot 10^{+171}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;j \leq -8.5 \cdot 10^{+133}:\\ \;\;\;\;x \cdot \left(-4 \cdot i\right) + t_1\\ \mathbf{elif}\;j \leq -1.2 \cdot 10^{+19}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;j \leq -2.45 \cdot 10^{-68}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-87}:\\ \;\;\;\;\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - t_2\\ \mathbf{elif}\;j \leq 6.6 \cdot 10^{-216}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;j \leq 2.7 \cdot 10^{-201}:\\ \;\;\;\;18 \cdot \left(\left(z \cdot x\right) \cdot \left(t \cdot y\right)\right) + t_1\\ \mathbf{elif}\;j \leq 2.4 \cdot 10^{-45}:\\ \;\;\;\;t_5\\ \mathbf{else}:\\ \;\;\;\;-4 \cdot \left(i \cdot x\right) - k \cdot \left(27 \cdot j\right)\\ \end{array} \]
Alternative 5
Error8.1
Cost2120
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := j \cdot \left(27 \cdot k\right)\\ t_3 := \left(t \cdot \left(a \cdot -4\right) - t_1\right) + \left(b \cdot c - t_2\right)\\ \mathbf{if}\;a \cdot 4 \leq -5 \cdot 10^{-107}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \cdot 4 \leq 10^{-113}:\\ \;\;\;\;b \cdot c + \left(\left(18 \cdot \left(\left(z \cdot x\right) \cdot \left(y \cdot t\right)\right) - t_1\right) - t_2\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 6
Error8.0
Cost2120
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := j \cdot \left(27 \cdot k\right)\\ t_3 := \left(t \cdot \left(a \cdot -4\right) - t_1\right) + \left(b \cdot c - t_2\right)\\ \mathbf{if}\;a \cdot 4 \leq -5 \cdot 10^{-107}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \cdot 4 \leq 5 \cdot 10^{-139}:\\ \;\;\;\;y \cdot \left(\left(18 \cdot \left(z \cdot x\right)\right) \cdot t\right) + \left(\left(b \cdot c - t_1\right) - t_2\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 7
Error8.1
Cost2120
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_3 := \left(t \cdot \left(a \cdot -4\right) - t_1\right) + t_2\\ \mathbf{if}\;a \cdot 4 \leq -5 \cdot 10^{-107}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \cdot 4 \leq 10^{-113}:\\ \;\;\;\;\left(t \cdot \left(x \cdot \left(18 \cdot \left(z \cdot y\right)\right)\right) - t_1\right) + t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 8
Error7.8
Cost2120
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := \left(t \cdot \left(a \cdot -4\right) - t_1\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)\\ \mathbf{if}\;a \cdot 4 \leq -5 \cdot 10^{-107}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 4 \leq 10^{-113}:\\ \;\;\;\;\left(\left(y \cdot \left(z \cdot x\right)\right) \cdot \left(18 \cdot t\right) - t_1\right) + \left(b \cdot c - 27 \cdot \left(k \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 9
Error5.4
Cost2120
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := j \cdot \left(27 \cdot k\right)\\ t_3 := b \cdot c + \left(\left(t \cdot \left(y \cdot \left(\left(x \cdot 18\right) \cdot z\right) - a \cdot 4\right) - t_1\right) - t_2\right)\\ \mathbf{if}\;t \leq -5.4 \cdot 10^{-77}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t \leq 9 \cdot 10^{+14}:\\ \;\;\;\;\left(t \cdot \left(a \cdot -4\right) - t_1\right) + \left(b \cdot c - t_2\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 10
Error5.0
Cost2120
\[\begin{array}{l} t_1 := j \cdot \left(27 \cdot k\right)\\ t_2 := x \cdot \left(4 \cdot i\right)\\ t_3 := b \cdot c - t_1\\ \mathbf{if}\;t \leq -1 \cdot 10^{-76}:\\ \;\;\;\;t \cdot \left(y \cdot \left(x \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(\left(b \cdot c - t_2\right) - t_1\right)\\ \mathbf{elif}\;t \leq 2 \cdot 10^{-113}:\\ \;\;\;\;\left(t \cdot \left(a \cdot -4\right) - t_2\right) + t_3\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(x \cdot \left(y \cdot \left(18 \cdot z\right)\right) - a \cdot 4\right) + \left(t_3 - t_2\right)\\ \end{array} \]
Alternative 11
Error8.5
Cost1864
\[\begin{array}{l} t_1 := x \cdot \left(4 \cdot i\right)\\ t_2 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_3 := \left(t \cdot \left(a \cdot -4\right) - t_1\right) + t_2\\ \mathbf{if}\;a \leq -2.05 \cdot 10^{-108}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{-113}:\\ \;\;\;\;18 \cdot \left(x \cdot \left(t \cdot \left(y \cdot z\right)\right)\right) + \left(t_2 - t_1\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 12
Error21.1
Cost1752
\[\begin{array}{l} t_1 := x \cdot \left(-4 \cdot i\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)\\ t_2 := c \cdot b + -4 \cdot \left(a \cdot t\right)\\ t_3 := t_2 - 27 \cdot \left(k \cdot j\right)\\ \mathbf{if}\;a \leq -4.5 \cdot 10^{-37}:\\ \;\;\;\;t_2 - 4 \cdot \left(i \cdot x\right)\\ \mathbf{elif}\;a \leq -4.5 \cdot 10^{-131}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -7 \cdot 10^{-176}:\\ \;\;\;\;y \cdot \left(\left(t \cdot \left(z \cdot x\right)\right) \cdot 18\right) + c \cdot b\\ \mathbf{elif}\;a \leq -3.4 \cdot 10^{-243}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 5.8 \cdot 10^{-281}:\\ \;\;\;\;c \cdot b + t \cdot \left(18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\ \mathbf{elif}\;a \leq 1.8 \cdot 10^{-14}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 13
Error19.8
Cost1620
\[\begin{array}{l} t_1 := \left(c \cdot b + -4 \cdot \left(a \cdot t\right)\right) - 4 \cdot \left(i \cdot x\right)\\ t_2 := \left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - 27 \cdot \left(k \cdot j\right)\\ \mathbf{if}\;t \leq -4.5 \cdot 10^{-76}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 3.15 \cdot 10^{-10}:\\ \;\;\;\;x \cdot \left(-4 \cdot i\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)\\ \mathbf{elif}\;t \leq 1.55 \cdot 10^{+74}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+194}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{+226}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 14
Error10.2
Cost1608
\[\begin{array}{l} t_1 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ t_2 := \left(t \cdot \left(a \cdot -4\right) - x \cdot \left(4 \cdot i\right)\right) + t_1\\ \mathbf{if}\;a \leq -2.75 \cdot 10^{-218}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 4.3 \cdot 10^{-281}:\\ \;\;\;\;y \cdot \left(18 \cdot \left(t \cdot \left(z \cdot x\right)\right)\right) + t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 15
Error10.6
Cost1608
\[\begin{array}{l} t_1 := b \cdot c - j \cdot \left(27 \cdot k\right)\\ \mathbf{if}\;y \leq -2.26 \cdot 10^{+36}:\\ \;\;\;\;x \cdot \left(-4 \cdot i - y \cdot \left(z \cdot \left(t \cdot -18\right)\right)\right) + t_1\\ \mathbf{elif}\;y \leq 1.15 \cdot 10^{-110}:\\ \;\;\;\;\left(t \cdot \left(a \cdot -4\right) - x \cdot \left(4 \cdot i\right)\right) + t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(z \cdot \left(18 \cdot \left(t \cdot x\right)\right)\right) + t_1\\ \end{array} \]
Alternative 16
Error44.8
Cost1508
\[\begin{array}{l} t_1 := -27 \cdot \left(k \cdot j\right)\\ t_2 := -4 \cdot \left(i \cdot x\right)\\ \mathbf{if}\;c \leq -1.5 \cdot 10^{-128}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2.05 \cdot 10^{-283}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 9 \cdot 10^{-159}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 4.8 \cdot 10^{-56}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.85 \cdot 10^{-46}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{-19}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2.5 \cdot 10^{+60}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.4 \cdot 10^{+131}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2.35 \cdot 10^{+151}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;c \cdot b\\ \end{array} \]
Alternative 17
Error44.8
Cost1508
\[\begin{array}{l} t_1 := k \cdot \left(j \cdot -27\right)\\ t_2 := -4 \cdot \left(i \cdot x\right)\\ \mathbf{if}\;c \leq -1.46 \cdot 10^{-128}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2 \cdot 10^{-283}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \mathbf{elif}\;c \leq 3.5 \cdot 10^{-159}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 8.5 \cdot 10^{-56}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 1.5 \cdot 10^{-45}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 3.2 \cdot 10^{-18}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2.45 \cdot 10^{+60}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 10^{+130}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;c \leq 2.6 \cdot 10^{+151}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;c \cdot b\\ \end{array} \]
Alternative 18
Error35.2
Cost1492
\[\begin{array}{l} t_1 := -4 \cdot \left(i \cdot x\right)\\ t_2 := c \cdot b + 18 \cdot \left(y \cdot \left(t \cdot \left(z \cdot x\right)\right)\right)\\ t_3 := k \cdot \left(27 \cdot j\right)\\ t_4 := c \cdot b - t_3\\ \mathbf{if}\;t \leq -2900000000:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.3 \cdot 10^{-105}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t \leq -1.02 \cdot 10^{-169}:\\ \;\;\;\;c \cdot b + t_1\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{-299}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{+184}:\\ \;\;\;\;t_1 - t_3\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 19
Error34.5
Cost1492
\[\begin{array}{l} t_1 := -4 \cdot \left(i \cdot x\right)\\ t_2 := c \cdot b + t \cdot \left(18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\ t_3 := k \cdot \left(27 \cdot j\right)\\ t_4 := c \cdot b - t_3\\ \mathbf{if}\;t \leq -8000000000:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.85 \cdot 10^{-105}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t \leq -8.8 \cdot 10^{-172}:\\ \;\;\;\;c \cdot b + t_1\\ \mathbf{elif}\;t \leq 4.4 \cdot 10^{-302}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{+184}:\\ \;\;\;\;t_1 - t_3\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 20
Error22.6
Cost1224
\[\begin{array}{l} t_1 := c \cdot b + t \cdot \left(18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\ \mathbf{if}\;t \leq -3900000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 8.5 \cdot 10^{+190}:\\ \;\;\;\;x \cdot \left(-4 \cdot i\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 21
Error23.0
Cost1224
\[\begin{array}{l} \mathbf{if}\;t \leq -10200000000:\\ \;\;\;\;c \cdot b + t \cdot \left(18 \cdot \left(y \cdot \left(z \cdot x\right)\right)\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+74}:\\ \;\;\;\;x \cdot \left(-4 \cdot i\right) + \left(b \cdot c - j \cdot \left(27 \cdot k\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(t \cdot \left(\left(z \cdot x\right) \cdot y\right)\right) \cdot 18 - 27 \cdot \left(k \cdot j\right)\\ \end{array} \]
Alternative 22
Error33.4
Cost1104
\[\begin{array}{l} t_1 := c \cdot b + -4 \cdot \left(i \cdot x\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;j \leq -2.6 \cdot 10^{+168}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq -1.5 \cdot 10^{+133}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{+102}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq 1.3 \cdot 10^{-35}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;-27 \cdot \left(k \cdot j\right)\\ \end{array} \]
Alternative 23
Error31.1
Cost972
\[\begin{array}{l} t_1 := k \cdot \left(27 \cdot j\right)\\ t_2 := -4 \cdot \left(i \cdot x\right)\\ t_3 := c \cdot b - t_1\\ \mathbf{if}\;c \leq -1.5 \cdot 10^{-128}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 2.45 \cdot 10^{+60}:\\ \;\;\;\;t_2 - t_1\\ \mathbf{elif}\;c \leq 1.55 \cdot 10^{+177}:\\ \;\;\;\;c \cdot b + t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 24
Error43.1
Cost848
\[\begin{array}{l} t_1 := -27 \cdot \left(k \cdot j\right)\\ \mathbf{if}\;j \leq -3.8 \cdot 10^{+102}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq -3.7 \cdot 10^{-76}:\\ \;\;\;\;c \cdot b\\ \mathbf{elif}\;j \leq -3 \cdot 10^{-109}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 2 \cdot 10^{-46}:\\ \;\;\;\;c \cdot b\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 25
Error32.1
Cost708
\[\begin{array}{l} \mathbf{if}\;x \leq 4.3 \cdot 10^{-22}:\\ \;\;\;\;c \cdot b - k \cdot \left(27 \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot b + -4 \cdot \left(i \cdot x\right)\\ \end{array} \]
Alternative 26
Error48.4
Cost192
\[c \cdot b \]

Error

Reproduce?

herbie shell --seed 2023068 
(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)))