?

Average Error: 3.1 → 0.8
Time: 39.2s
Precision: binary64
Cost: 1220

?

\[ \begin{array}{c}[y, z, t] = \mathsf{sort}([y, z, t])\\ \end{array} \]
\[\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b \]
\[\begin{array}{l} \mathbf{if}\;z \leq 2.25 \cdot 10^{+64}:\\ \;\;\;\;\left(x \cdot 2 - y \cdot \left(9 \cdot \left(z \cdot t\right)\right)\right) + a \cdot \left(27 \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b\\ \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b)))
(FPCore (x y z t a b)
 :precision binary64
 (if (<= z 2.25e+64)
   (+ (- (* x 2.0) (* y (* 9.0 (* z t)))) (* a (* 27.0 b)))
   (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b))))
double code(double x, double y, double z, double t, double a, double b) {
	return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= 2.25e+64) {
		tmp = ((x * 2.0) - (y * (9.0 * (z * t)))) + (a * (27.0 * b));
	} else {
		tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    code = ((x * 2.0d0) - (((y * 9.0d0) * z) * t)) + ((a * 27.0d0) * b)
end function
real(8) function code(x, y, z, t, a, b)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8) :: tmp
    if (z <= 2.25d+64) then
        tmp = ((x * 2.0d0) - (y * (9.0d0 * (z * t)))) + (a * (27.0d0 * b))
    else
        tmp = ((x * 2.0d0) - (((y * 9.0d0) * z) * t)) + ((a * 27.0d0) * b)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
	return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double tmp;
	if (z <= 2.25e+64) {
		tmp = ((x * 2.0) - (y * (9.0 * (z * t)))) + (a * (27.0 * b));
	} else {
		tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	return ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b)
def code(x, y, z, t, a, b):
	tmp = 0
	if z <= 2.25e+64:
		tmp = ((x * 2.0) - (y * (9.0 * (z * t)))) + (a * (27.0 * b))
	else:
		tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b)
	return tmp
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(Float64(a * 27.0) * b))
end
function code(x, y, z, t, a, b)
	tmp = 0.0
	if (z <= 2.25e+64)
		tmp = Float64(Float64(Float64(x * 2.0) - Float64(y * Float64(9.0 * Float64(z * t)))) + Float64(a * Float64(27.0 * b)));
	else
		tmp = Float64(Float64(Float64(x * 2.0) - Float64(Float64(Float64(y * 9.0) * z) * t)) + Float64(Float64(a * 27.0) * b));
	end
	return tmp
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
end
function tmp_2 = code(x, y, z, t, a, b)
	tmp = 0.0;
	if (z <= 2.25e+64)
		tmp = ((x * 2.0) - (y * (9.0 * (z * t)))) + (a * (27.0 * b));
	else
		tmp = ((x * 2.0) - (((y * 9.0) * z) * t)) + ((a * 27.0) * b);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 2.25e+64], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(y * N[(9.0 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(27.0 * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 2.0), $MachinePrecision] - N[(N[(N[(y * 9.0), $MachinePrecision] * z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 27.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b
\begin{array}{l}
\mathbf{if}\;z \leq 2.25 \cdot 10^{+64}:\\
\;\;\;\;\left(x \cdot 2 - y \cdot \left(9 \cdot \left(z \cdot t\right)\right)\right) + a \cdot \left(27 \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original3.1
Target3.5
Herbie0.8
\[\begin{array}{l} \mathbf{if}\;y < 7.590524218811189 \cdot 10^{-161}:\\ \;\;\;\;\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + a \cdot \left(27 \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 2 - 9 \cdot \left(y \cdot \left(t \cdot z\right)\right)\right) + \left(a \cdot 27\right) \cdot b\\ \end{array} \]

Derivation?

  1. Split input into 2 regimes
  2. if z < 2.24999999999999987e64

    1. Initial program 3.3

      \[\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b \]
    2. Simplified0.8

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

      [Start]3.3

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.24999999999999987e64 < z

    1. Initial program 0.2

      \[\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b \]
  3. Recombined 2 regimes into one program.
  4. Final simplification0.8

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq 2.25 \cdot 10^{+64}:\\ \;\;\;\;\left(x \cdot 2 - y \cdot \left(9 \cdot \left(z \cdot t\right)\right)\right) + a \cdot \left(27 \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot 2 - \left(\left(y \cdot 9\right) \cdot z\right) \cdot t\right) + \left(a \cdot 27\right) \cdot b\\ \end{array} \]

Alternatives

Alternative 1
Error17.3
Cost3044
\[\begin{array}{l} t_1 := 27 \cdot \left(a \cdot b\right)\\ t_2 := t_1 + 2 \cdot x\\ t_3 := y \cdot \left(\left(t \cdot z\right) \cdot -9\right) - \left(a \cdot b\right) \cdot -27\\ t_4 := \left(x + x\right) - \left(t \cdot z\right) \cdot \left(9 \cdot y\right)\\ \mathbf{if}\;a \cdot 27 \leq -1 \cdot 10^{+200}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 27 \leq -5 \cdot 10^{+108}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \cdot 27 \leq -1 \cdot 10^{+39}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 27 \leq -1000000:\\ \;\;\;\;t_4\\ \mathbf{elif}\;a \cdot 27 \leq -4 \cdot 10^{-43}:\\ \;\;\;\;2 \cdot x - z \cdot \left(9 \cdot \left(y \cdot t\right)\right)\\ \mathbf{elif}\;a \cdot 27 \leq -2 \cdot 10^{-102}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \cdot 27 \leq -4 \cdot 10^{-130}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \cdot 27 \leq -2 \cdot 10^{-160}:\\ \;\;\;\;t_1 - 9 \cdot \left(z \cdot \left(t \cdot y\right)\right)\\ \mathbf{elif}\;a \cdot 27 \leq 10^{-196}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 2
Error29.0
Cost1508
\[\begin{array}{l} t_1 := y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+114}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{+102}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -9.6 \cdot 10^{+74}:\\ \;\;\;\;b \cdot \left(a \cdot 27\right)\\ \mathbf{elif}\;x \leq -7.1 \cdot 10^{-12}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1.5 \cdot 10^{-44}:\\ \;\;\;\;t \cdot \left(\left(y \cdot z\right) \cdot -9\right)\\ \mathbf{elif}\;x \leq 1.04 \cdot 10^{-305}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{elif}\;x \leq 6.5 \cdot 10^{-197}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 7.3 \cdot 10^{-82}:\\ \;\;\;\;27 \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 3
Error29.1
Cost1508
\[\begin{array}{l} t_1 := \left(-9 \cdot z\right) \cdot \left(y \cdot t\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+114}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{+102}:\\ \;\;\;\;y \cdot \left(t \cdot \left(z \cdot -9\right)\right)\\ \mathbf{elif}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -8 \cdot 10^{+74}:\\ \;\;\;\;b \cdot \left(a \cdot 27\right)\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{-11}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -2.55 \cdot 10^{-36}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.3 \cdot 10^{-304}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{-197}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{-82}:\\ \;\;\;\;27 \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 4
Error29.1
Cost1508
\[\begin{array}{l} t_1 := b \cdot \left(a \cdot 27\right)\\ t_2 := \left(t \cdot z\right) \cdot \left(y \cdot -9\right)\\ \mathbf{if}\;x \leq -2.2 \cdot 10^{+114}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{+102}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -8 \cdot 10^{+74}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -2 \cdot 10^{-12}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -2.85 \cdot 10^{-37}:\\ \;\;\;\;\left(-9 \cdot z\right) \cdot \left(y \cdot t\right)\\ \mathbf{elif}\;x \leq 7.8 \cdot 10^{-305}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{-196}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.4 \cdot 10^{-84}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 5
Error29.0
Cost1508
\[\begin{array}{l} t_1 := b \cdot \left(a \cdot 27\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+114}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{+102}:\\ \;\;\;\;\left(y \cdot \left(t \cdot z\right)\right) \cdot -9\\ \mathbf{elif}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -1 \cdot 10^{+75}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -8.8 \cdot 10^{-12}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{-31}:\\ \;\;\;\;\left(-9 \cdot z\right) \cdot \left(y \cdot t\right)\\ \mathbf{elif}\;x \leq 4 \cdot 10^{-305}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{-196}:\\ \;\;\;\;\left(t \cdot z\right) \cdot \left(y \cdot -9\right)\\ \mathbf{elif}\;x \leq 7.3 \cdot 10^{-82}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 6
Error19.4
Cost1368
\[\begin{array}{l} t_1 := 27 \cdot \left(a \cdot b\right) + 2 \cdot x\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+114}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{+102}:\\ \;\;\;\;\left(y \cdot \left(t \cdot z\right)\right) \cdot -9\\ \mathbf{elif}\;x \leq -3.15 \cdot 10^{-15}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.2 \cdot 10^{-30}:\\ \;\;\;\;\left(-9 \cdot z\right) \cdot \left(y \cdot t\right)\\ \mathbf{elif}\;x \leq 1.5 \cdot 10^{-304}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 10^{-196}:\\ \;\;\;\;\left(t \cdot z\right) \cdot \left(y \cdot -9\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error13.9
Cost1360
\[\begin{array}{l} t_1 := 27 \cdot \left(a \cdot b\right)\\ t_2 := t_1 - 9 \cdot \left(z \cdot \left(t \cdot y\right)\right)\\ \mathbf{if}\;x \leq -1.12 \cdot 10^{+92}:\\ \;\;\;\;\left(x + x\right) - \left(t \cdot z\right) \cdot \left(9 \cdot y\right)\\ \mathbf{elif}\;x \leq -1 \cdot 10^{+75}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.25 \cdot 10^{-11}:\\ \;\;\;\;t_1 + 2 \cdot x\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{-82}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x - t \cdot \left(9 \cdot \left(y \cdot z\right)\right)\\ \end{array} \]
Alternative 8
Error28.7
Cost1244
\[\begin{array}{l} t_1 := t \cdot \left(\left(y \cdot z\right) \cdot -9\right)\\ \mathbf{if}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -6.5 \cdot 10^{+74}:\\ \;\;\;\;b \cdot \left(a \cdot 27\right)\\ \mathbf{elif}\;x \leq -1.25 \cdot 10^{-11}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq -5.2 \cdot 10^{-45}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 7.6 \cdot 10^{-306}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{-249}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.8 \cdot 10^{-82}:\\ \;\;\;\;27 \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 9
Error15.1
Cost1232
\[\begin{array}{l} t_1 := 2 \cdot x - t \cdot \left(9 \cdot \left(y \cdot z\right)\right)\\ t_2 := 27 \cdot \left(a \cdot b\right) + 2 \cdot x\\ \mathbf{if}\;b \leq -1.02 \cdot 10^{-173}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 7.2 \cdot 10^{-179}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 4.8 \cdot 10^{-102}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 1.15 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 10
Error15.1
Cost1232
\[\begin{array}{l} t_1 := 27 \cdot \left(a \cdot b\right) + 2 \cdot x\\ \mathbf{if}\;b \leq -1.7 \cdot 10^{-173}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 7.2 \cdot 10^{-179}:\\ \;\;\;\;2 \cdot x - t \cdot \left(9 \cdot \left(y \cdot z\right)\right)\\ \mathbf{elif}\;b \leq 1.15 \cdot 10^{-97}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 1.3 \cdot 10^{-7}:\\ \;\;\;\;2 \cdot x - z \cdot \left(9 \cdot \left(y \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 11
Error14.7
Cost1232
\[\begin{array}{l} t_1 := 27 \cdot \left(a \cdot b\right) + 2 \cdot x\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{-123}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 4.8 \cdot 10^{-202}:\\ \;\;\;\;\left(x + x\right) - \left(t \cdot z\right) \cdot \left(9 \cdot y\right)\\ \mathbf{elif}\;b \leq 1.12 \cdot 10^{-101}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 1.4 \cdot 10^{-7}:\\ \;\;\;\;2 \cdot x - z \cdot \left(9 \cdot \left(y \cdot t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 12
Error1.2
Cost1220
\[\begin{array}{l} \mathbf{if}\;z \leq 2.1 \cdot 10^{+65}:\\ \;\;\;\;\left(x \cdot 2 - y \cdot \left(9 \cdot \left(z \cdot t\right)\right)\right) + a \cdot \left(27 \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x - z \cdot \left(9 \cdot \left(y \cdot t\right)\right)\\ \end{array} \]
Alternative 13
Error1.8
Cost1220
\[\begin{array}{l} \mathbf{if}\;z \leq 5.1 \cdot 10^{+103}:\\ \;\;\;\;\left(x \cdot 2 - \left(y \cdot 9\right) \cdot \left(z \cdot t\right)\right) + \left(a \cdot 27\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;27 \cdot \left(a \cdot b\right) - 9 \cdot \left(z \cdot \left(t \cdot y\right)\right)\\ \end{array} \]
Alternative 14
Error28.9
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-83}:\\ \;\;\;\;27 \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 15
Error28.8
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -6.3 \cdot 10^{+91}:\\ \;\;\;\;2 \cdot x\\ \mathbf{elif}\;x \leq 7.3 \cdot 10^{-82}:\\ \;\;\;\;a \cdot \left(27 \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;2 \cdot x\\ \end{array} \]
Alternative 16
Error37.1
Cost192
\[2 \cdot x \]

Error

Reproduce?

herbie shell --seed 2023077 
(FPCore (x y z t a b)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1, A"
  :precision binary64

  :herbie-target
  (if (< y 7.590524218811189e-161) (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* a (* 27.0 b))) (+ (- (* x 2.0) (* 9.0 (* y (* t z)))) (* (* a 27.0) b)))

  (+ (- (* x 2.0) (* (* (* y 9.0) z) t)) (* (* a 27.0) b)))