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

\mathbf{elif}\;t_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_1\\

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


\end{array}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original5.7
Target1.6
Herbie2.0
\[\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. Simplified40.6

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, k \cdot -27, \mathsf{fma}\left(x, i \cdot -4, \mathsf{fma}\left(t, \mathsf{fma}\left(x, z \cdot \left(18 \cdot y\right), a \cdot -4\right), b \cdot c\right)\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 \]

      sub-neg [=>]64.0

      \[ \color{blue}{\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(-\left(j \cdot 27\right) \cdot k\right)} \]

      +-commutative [=>]64.0

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

      associate-*l* [=>]63.7

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

      distribute-rgt-neg-in [=>]63.7

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

      fma-def [=>]63.7

      \[ \color{blue}{\mathsf{fma}\left(j, -27 \cdot k, \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)} \]

      *-commutative [=>]63.7

      \[ \mathsf{fma}\left(j, -\color{blue}{k \cdot 27}, \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) \]

      distribute-rgt-neg-in [=>]63.7

      \[ \mathsf{fma}\left(j, \color{blue}{k \cdot \left(-27\right)}, \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) \]

      metadata-eval [=>]63.7

      \[ \mathsf{fma}\left(j, k \cdot \color{blue}{-27}, \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) \]

      sub-neg [=>]63.7

      \[ \mathsf{fma}\left(j, k \cdot -27, \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\right)}\right) \]

      +-commutative [=>]63.7

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

      associate-*l* [=>]63.7

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

      distribute-rgt-neg-in [=>]63.7

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

      fma-def [=>]63.7

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

      *-commutative [=>]63.7

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

      distribute-rgt-neg-in [=>]63.7

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

      metadata-eval [=>]63.7

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

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

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

      fma-def [=>]63.7

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

      associate-*l* [=>]63.3

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

      associate-*l* [=>]40.6

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

      fma-neg [=>]40.6

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

      *-commutative [=>]40.6

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

      distribute-rgt-neg-in [=>]40.6

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

      metadata-eval [=>]40.6

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

      \[\leadsto \color{blue}{\left(18 \cdot \left(y \cdot \left(t \cdot z\right)\right) + -4 \cdot i\right) \cdot x} \]
    4. Applied egg-rr41.4

      \[\leadsto \left(\color{blue}{\left(e^{\mathsf{log1p}\left(\left(y \cdot t\right) \cdot \left(z \cdot 18\right)\right)} - 1\right)} + -4 \cdot i\right) \cdot x \]
    5. Simplified21.8

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

      [Start]41.4

      \[ \left(\left(e^{\mathsf{log1p}\left(\left(y \cdot t\right) \cdot \left(z \cdot 18\right)\right)} - 1\right) + -4 \cdot i\right) \cdot x \]

      expm1-def [=>]35.9

      \[ \left(\color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\left(y \cdot t\right) \cdot \left(z \cdot 18\right)\right)\right)} + -4 \cdot i\right) \cdot x \]

      expm1-log1p [=>]23.3

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

      associate-*l* [=>]21.8

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

      *-commutative [=>]21.8

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

    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)) < 1.9999999999999999e304

    1. Initial program 0.3

      \[\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 1.9999999999999999e304 < (-.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 51.7

      \[\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. Simplified32.6

      \[\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]51.7

      \[ \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- [=>]51.7

      \[ \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- [=>]51.7

      \[ \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- [<=]51.7

      \[ \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-- [=>]51.7

      \[ \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* [=>]33.6

      \[ \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* [=>]33.6

      \[ \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* [=>]32.6

      \[ \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 a around 0 14.8

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

    \[\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:\\ \;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\ \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 2 \cdot 10^{+304}:\\ \;\;\;\;\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(b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) + \left(x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Error34.1
Cost2290
\[\begin{array}{l} t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ t_2 := -27 \cdot \left(j \cdot k\right) + -4 \cdot \left(t \cdot a\right)\\ t_3 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;i \leq -5.8 \cdot 10^{+219}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq -1.35 \cdot 10^{+81}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -9.2 \cdot 10^{+53}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -3.2 \cdot 10^{-91}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -1.4 \cdot 10^{-154}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 7.8 \cdot 10^{-292}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 4.2 \cdot 10^{-207}:\\ \;\;\;\;b \cdot c + k \cdot \left(j \cdot -27\right)\\ \mathbf{elif}\;i \leq 6 \cdot 10^{-142} \lor \neg \left(i \leq 1.4 \cdot 10^{-26}\right) \land \left(i \leq 3.3 \cdot 10^{+45} \lor \neg \left(i \leq 5.4 \cdot 10^{+154}\right) \land i \leq 1.55 \cdot 10^{+242}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 2
Error34.0
Cost2289
\[\begin{array}{l} t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ t_4 := -4 \cdot \left(t \cdot a\right)\\ t_5 := t_2 + t_4\\ t_6 := -27 \cdot \left(j \cdot k\right) + t_4\\ \mathbf{if}\;i \leq -8.2 \cdot 10^{+219}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq -4.6 \cdot 10^{+73}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;i \leq -7.8 \cdot 10^{+53}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -1.2 \cdot 10^{-91}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq -2.8 \cdot 10^{-153}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 5.2 \cdot 10^{-294}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq 1.95 \cdot 10^{-207}:\\ \;\;\;\;b \cdot c + t_2\\ \mathbf{elif}\;i \leq 4.4 \cdot 10^{-142}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;i \leq 1.8 \cdot 10^{-27}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq 9.6 \cdot 10^{+45}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq 3.4 \cdot 10^{+167} \lor \neg \left(i \leq 2.5 \cdot 10^{+242}\right):\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_5\\ \end{array} \]
Alternative 3
Error32.8
Cost2289
\[\begin{array}{l} t_1 := b \cdot c + -4 \cdot \left(x \cdot i\right)\\ t_2 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ t_3 := -4 \cdot \left(t \cdot a\right)\\ t_4 := -27 \cdot \left(j \cdot k\right) + t_3\\ t_5 := k \cdot \left(j \cdot -27\right)\\ t_6 := t_5 + t_3\\ t_7 := t_5 - \left(x \cdot 4\right) \cdot i\\ \mathbf{if}\;i \leq -9 \cdot 10^{+188}:\\ \;\;\;\;t_7\\ \mathbf{elif}\;i \leq -1.9 \cdot 10^{+74}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq -2.8 \cdot 10^{+53}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -4.3 \cdot 10^{-91}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;i \leq -4.3 \cdot 10^{-153}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 1.8 \cdot 10^{-294}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;i \leq 6 \cdot 10^{-207}:\\ \;\;\;\;b \cdot c + t_5\\ \mathbf{elif}\;i \leq 5.4 \cdot 10^{-142}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq 4.5 \cdot 10^{-28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 6.8 \cdot 10^{+45}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;i \leq 8.5 \cdot 10^{+191} \lor \neg \left(i \leq 3.8 \cdot 10^{+251}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_7\\ \end{array} \]
Alternative 4
Error32.8
Cost2289
\[\begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ t_2 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ t_3 := k \cdot \left(j \cdot -27\right)\\ t_4 := -4 \cdot \left(t \cdot a\right)\\ t_5 := t_3 + t_4\\ t_6 := t_1 + t_4\\ t_7 := -4 \cdot \left(x \cdot i\right)\\ t_8 := b \cdot c + t_7\\ \mathbf{if}\;i \leq -1.1 \cdot 10^{+181}:\\ \;\;\;\;t_7 + t_1\\ \mathbf{elif}\;i \leq -3.4 \cdot 10^{+73}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;i \leq -5.8 \cdot 10^{+53}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -2 \cdot 10^{-92}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq -2.05 \cdot 10^{-153}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 1.9 \cdot 10^{-292}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq 3.2 \cdot 10^{-207}:\\ \;\;\;\;b \cdot c + t_3\\ \mathbf{elif}\;i \leq 5.6 \cdot 10^{-142}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{-27}:\\ \;\;\;\;t_8\\ \mathbf{elif}\;i \leq 3.3 \cdot 10^{+46}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;i \leq 1.1 \cdot 10^{+192} \lor \neg \left(i \leq 3.6 \cdot 10^{+249}\right):\\ \;\;\;\;t_8\\ \mathbf{else}:\\ \;\;\;\;t_3 - \left(x \cdot 4\right) \cdot i\\ \end{array} \]
Alternative 5
Error6.7
Cost2252
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\ \mathbf{if}\;y \leq -6 \cdot 10^{+240}:\\ \;\;\;\;\left(b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) + t_1\\ \mathbf{elif}\;y \leq -7.6 \cdot 10^{+115}:\\ \;\;\;\;b \cdot c + \left(t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right) + -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{+52}:\\ \;\;\;\;\left(b \cdot c + t \cdot \left(\left(x \cdot 18\right) \cdot \left(y \cdot z\right) + a \cdot -4\right)\right) + t_1\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot \left(18 \cdot \left(z \cdot t\right)\right)\right) + k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 6
Error36.6
Cost2161
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right)\\ t_2 := t \cdot \left(a \cdot -4\right)\\ t_3 := b \cdot c + k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;c \leq -7.6 \cdot 10^{-141}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -4.2 \cdot 10^{-270}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq -1 \cdot 10^{-299}:\\ \;\;\;\;-27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;c \leq 1.42 \cdot 10^{-303}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 3.1 \cdot 10^{-276}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 3.7 \cdot 10^{-256}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 2.5 \cdot 10^{-199}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 1.9 \cdot 10^{-191}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 4.5 \cdot 10^{-177}:\\ \;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{elif}\;c \leq 7.4 \cdot 10^{-149} \lor \neg \left(c \leq 9 \cdot 10^{-43}\right) \land c \leq 48000000:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 7
Error36.6
Cost2160
\[\begin{array}{l} t_1 := b \cdot c + j \cdot \left(k \cdot -27\right)\\ t_2 := x \cdot \left(i \cdot -4\right)\\ t_3 := t \cdot \left(a \cdot -4\right)\\ t_4 := b \cdot c + k \cdot \left(j \cdot -27\right)\\ \mathbf{if}\;c \leq -3.3 \cdot 10^{-142}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;c \leq -7.5 \cdot 10^{-269}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -2.05 \cdot 10^{-300}:\\ \;\;\;\;-27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;c \leq 3.6 \cdot 10^{-303}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 4 \cdot 10^{-277}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 1.3 \cdot 10^{-257}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 7.2 \cdot 10^{-200}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-191}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{-181}:\\ \;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{elif}\;c \leq 3 \cdot 10^{-148}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq 2.7 \cdot 10^{-43}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;c \leq 48000000:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Error31.3
Cost2152
\[\begin{array}{l} t_1 := k \cdot \left(j \cdot -27\right)\\ t_2 := -4 \cdot \left(t \cdot a\right)\\ t_3 := -27 \cdot \left(j \cdot k\right) + t_2\\ \mathbf{if}\;x \leq -2.5 \cdot 10^{-11}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;x \leq -1.26 \cdot 10^{-58}:\\ \;\;\;\;18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right) + t_1\\ \mathbf{elif}\;x \leq -3.8 \cdot 10^{-84}:\\ \;\;\;\;t_1 - \left(x \cdot 4\right) \cdot i\\ \mathbf{elif}\;x \leq -1 \cdot 10^{-146}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-166}:\\ \;\;\;\;b \cdot c + j \cdot \left(k \cdot -27\right)\\ \mathbf{elif}\;x \leq -1.65 \cdot 10^{-269}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{-199}:\\ \;\;\;\;b \cdot c + t_1\\ \mathbf{elif}\;x \leq 2.2 \cdot 10^{-52}:\\ \;\;\;\;t_1 + t_2\\ \mathbf{elif}\;x \leq 225000000:\\ \;\;\;\;x \cdot \left(i \cdot -4 + 18 \cdot \left(y \cdot \left(z \cdot t\right)\right)\right)\\ \mathbf{elif}\;x \leq 1.75 \cdot 10^{+28}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\ \end{array} \]
Alternative 9
Error21.6
Cost2016
\[\begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ t_2 := b \cdot c + \left(t_1 + -4 \cdot \left(t \cdot a\right)\right)\\ t_3 := x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\ t_4 := -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;x \leq -9.5 \cdot 10^{+208}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -7.6 \cdot 10^{+172}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.35 \cdot 10^{-11}:\\ \;\;\;\;b \cdot c + t_4\\ \mathbf{elif}\;x \leq -3.7 \cdot 10^{-47}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -3.8 \cdot 10^{-82}:\\ \;\;\;\;t_4 + t_1\\ \mathbf{elif}\;x \leq 1.55 \cdot 10^{-21}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 150000000:\\ \;\;\;\;x \cdot \left(i \cdot -4 + 18 \cdot \left(t \cdot \left(y \cdot z\right)\right)\right)\\ \mathbf{elif}\;x \leq 1.5 \cdot 10^{+31}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 10
Error10.0
Cost1740
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right) + j \cdot \left(k \cdot -27\right)\\ \mathbf{if}\;y \leq -1.08 \cdot 10^{+241}:\\ \;\;\;\;\left(b \cdot c + 18 \cdot \left(y \cdot \left(t \cdot \left(x \cdot z\right)\right)\right)\right) + t_1\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{+115}:\\ \;\;\;\;b \cdot c + \left(t \cdot \left(18 \cdot \left(y \cdot \left(x \cdot z\right)\right) + a \cdot -4\right) + -4 \cdot \left(x \cdot i\right)\right)\\ \mathbf{elif}\;y \leq 115000000:\\ \;\;\;\;\left(b \cdot c + t \cdot \left(a \cdot -4\right)\right) + t_1\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot \left(18 \cdot \left(z \cdot t\right)\right)\right) + k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 11
Error20.4
Cost1620
\[\begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ t_2 := b \cdot c + \left(t_1 + -4 \cdot \left(t \cdot a\right)\right)\\ t_3 := -4 \cdot \left(x \cdot i\right)\\ \mathbf{if}\;x \leq -3.2 \cdot 10^{-38}:\\ \;\;\;\;t_3 + \left(b \cdot c + t \cdot \left(a \cdot -4\right)\right)\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-122}:\\ \;\;\;\;b \cdot c + \left(t_3 + t_1\right)\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{-52}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 180000000:\\ \;\;\;\;x \cdot \left(\left(y \cdot t\right) \cdot \left(18 \cdot z\right)\right) + x \cdot \left(i \cdot -4\right)\\ \mathbf{elif}\;x \leq 3.2 \cdot 10^{+31}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\ \end{array} \]
Alternative 12
Error45.5
Cost1508
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := t \cdot \left(a \cdot -4\right)\\ \mathbf{if}\;a \leq -7.5 \cdot 10^{+113}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -13000:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -1.3 \cdot 10^{-56}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;a \leq -1.5 \cdot 10^{-65}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -5 \cdot 10^{-92}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;a \leq -3.9 \cdot 10^{-213}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.45 \cdot 10^{-254}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;a \leq 5.3 \cdot 10^{-254}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 9 \cdot 10^{+17}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 13
Error45.5
Cost1508
\[\begin{array}{l} t_1 := x \cdot \left(i \cdot -4\right)\\ t_2 := k \cdot \left(j \cdot -27\right)\\ t_3 := t \cdot \left(a \cdot -4\right)\\ \mathbf{if}\;a \leq -1.3 \cdot 10^{+110}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -2020:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -1.42 \cdot 10^{-56}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;a \leq -1.15 \cdot 10^{-70}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.45 \cdot 10^{-88}:\\ \;\;\;\;18 \cdot \left(t \cdot \left(y \cdot \left(x \cdot z\right)\right)\right)\\ \mathbf{elif}\;a \leq -9.8 \cdot 10^{-213}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.3 \cdot 10^{-254}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;a \leq 3 \cdot 10^{-253}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+17}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 14
Error19.5
Cost1488
\[\begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ t_2 := b \cdot c + \left(t_1 + -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{if}\;x \leq -7.5 \cdot 10^{-121}:\\ \;\;\;\;b \cdot c + \left(-4 \cdot \left(x \cdot i\right) + t_1\right)\\ \mathbf{elif}\;x \leq 6.6 \cdot 10^{-52}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 170000000:\\ \;\;\;\;x \cdot \left(\left(y \cdot t\right) \cdot \left(18 \cdot z\right)\right) + x \cdot \left(i \cdot -4\right)\\ \mathbf{elif}\;x \leq 3.2 \cdot 10^{+31}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot \left(t \cdot \left(18 \cdot z\right)\right) + i \cdot -4\right)\\ \end{array} \]
Alternative 15
Error10.0
Cost1476
\[\begin{array}{l} \mathbf{if}\;y \leq 115000000:\\ \;\;\;\;\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}:\\ \;\;\;\;x \cdot \left(y \cdot \left(18 \cdot \left(z \cdot t\right)\right)\right) + k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 16
Error16.9
Cost1225
\[\begin{array}{l} t_1 := -27 \cdot \left(j \cdot k\right)\\ \mathbf{if}\;a \leq -2.7 \cdot 10^{-57} \lor \neg \left(a \leq 2.8 \cdot 10^{+18}\right):\\ \;\;\;\;b \cdot c + \left(t_1 + -4 \cdot \left(t \cdot a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c + \left(-4 \cdot \left(x \cdot i\right) + t_1\right)\\ \end{array} \]
Alternative 17
Error34.4
Cost1104
\[\begin{array}{l} t_1 := b \cdot c + k \cdot \left(j \cdot -27\right)\\ t_2 := t \cdot \left(a \cdot -4\right)\\ \mathbf{if}\;a \leq -1.16 \cdot 10^{+148}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -2.8 \cdot 10^{-59}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 4.7 \cdot 10^{-250}:\\ \;\;\;\;b \cdot c + -4 \cdot \left(x \cdot i\right)\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+26}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 18
Error43.2
Cost981
\[\begin{array}{l} \mathbf{if}\;c \leq -1.2 \cdot 10^{-70}:\\ \;\;\;\;b \cdot c\\ \mathbf{elif}\;c \leq 5.4 \cdot 10^{-41}:\\ \;\;\;\;k \cdot \left(j \cdot -27\right)\\ \mathbf{elif}\;c \leq 2.9 \cdot 10^{+44} \lor \neg \left(c \leq 1.25 \cdot 10^{+116}\right) \land c \leq 1.66 \cdot 10^{+137}:\\ \;\;\;\;x \cdot \left(i \cdot -4\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 19
Error43.2
Cost585
\[\begin{array}{l} \mathbf{if}\;k \leq -3.5 \cdot 10^{-95} \lor \neg \left(k \leq 8.6 \cdot 10^{-69}\right):\\ \;\;\;\;-27 \cdot \left(j \cdot k\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot c\\ \end{array} \]
Alternative 20
Error43.3
Cost584
\[\begin{array}{l} \mathbf{if}\;k \leq -4.4 \cdot 10^{-99}:\\ \;\;\;\;-27 \cdot \left(j \cdot k\right)\\ \mathbf{elif}\;k \leq 2.3 \cdot 10^{-68}:\\ \;\;\;\;b \cdot c\\ \mathbf{else}:\\ \;\;\;\;k \cdot \left(j \cdot -27\right)\\ \end{array} \]
Alternative 21
Error48.2
Cost192
\[b \cdot c \]

Error

Reproduce

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