Average Error: 26.4 → 6.5
Time: 18.0s
Precision: binary64
Cost: 16712
\[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
\[\begin{array}{l} t_1 := y + \left(x + t\right)\\ t_2 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{t_1}\\ \mathbf{if}\;t_2 \leq -\infty:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;t_2 \leq 10^{+269}:\\ \;\;\;\;\frac{\mathsf{fma}\left(x, z, \mathsf{fma}\left(y, z + \left(a - b\right), t \cdot a\right)\right)}{t_1}\\ \mathbf{else}:\\ \;\;\;\;a + \frac{z - b}{\frac{y + t}{y}}\\ \end{array} \]
(FPCore (x y z t a b)
 :precision binary64
 (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))
(FPCore (x y z t a b)
 :precision binary64
 (let* ((t_1 (+ y (+ x t)))
        (t_2 (/ (- (+ (* z (+ x y)) (* a (+ y t))) (* y b)) t_1)))
   (if (<= t_2 (- INFINITY))
     (- (+ z a) b)
     (if (<= t_2 1e+269)
       (/ (fma x z (fma y (+ z (- a b)) (* t a))) t_1)
       (+ a (/ (- z b) (/ (+ y t) y)))))))
double code(double x, double y, double z, double t, double a, double b) {
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
}
double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = y + (x + t);
	double t_2 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / t_1;
	double tmp;
	if (t_2 <= -((double) INFINITY)) {
		tmp = (z + a) - b;
	} else if (t_2 <= 1e+269) {
		tmp = fma(x, z, fma(y, (z + (a - b)), (t * a))) / t_1;
	} else {
		tmp = a + ((z - b) / ((y + t) / y));
	}
	return tmp;
}
function code(x, y, z, t, a, b)
	return Float64(Float64(Float64(Float64(Float64(x + y) * z) + Float64(Float64(t + y) * a)) - Float64(y * b)) / Float64(Float64(x + t) + y))
end
function code(x, y, z, t, a, b)
	t_1 = Float64(y + Float64(x + t))
	t_2 = Float64(Float64(Float64(Float64(z * Float64(x + y)) + Float64(a * Float64(y + t))) - Float64(y * b)) / t_1)
	tmp = 0.0
	if (t_2 <= Float64(-Inf))
		tmp = Float64(Float64(z + a) - b);
	elseif (t_2 <= 1e+269)
		tmp = Float64(fma(x, z, fma(y, Float64(z + Float64(a - b)), Float64(t * a))) / t_1);
	else
		tmp = Float64(a + Float64(Float64(z - b) / Float64(Float64(y + t) / y)));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(N[(N[(x + y), $MachinePrecision] * z), $MachinePrecision] + N[(N[(t + y), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(N[(x + t), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(z * N[(x + y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(y + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(z + a), $MachinePrecision] - b), $MachinePrecision], If[LessEqual[t$95$2, 1e+269], N[(N[(x * z + N[(y * N[(z + N[(a - b), $MachinePrecision]), $MachinePrecision] + N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(a + N[(N[(z - b), $MachinePrecision] / N[(N[(y + t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y}
\begin{array}{l}
t_1 := y + \left(x + t\right)\\
t_2 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{t_1}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;\left(z + a\right) - b\\

\mathbf{elif}\;t_2 \leq 10^{+269}:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, z, \mathsf{fma}\left(y, z + \left(a - b\right), t \cdot a\right)\right)}{t_1}\\

\mathbf{else}:\\
\;\;\;\;a + \frac{z - b}{\frac{y + t}{y}}\\


\end{array}

Error

Target

Original26.4
Target11.1
Herbie6.5
\[\begin{array}{l} \mathbf{if}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} < -3.5813117084150564 \cdot 10^{+153}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} < 1.2285964308315609 \cdot 10^{+82}:\\ \;\;\;\;\frac{1}{\frac{\left(x + t\right) + y}{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}}\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]

Derivation

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

    1. Initial program 64.0

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Taylor expanded in y around inf 17.4

      \[\leadsto \color{blue}{\left(a + z\right) - b} \]
    3. Simplified17.4

      \[\leadsto \color{blue}{\left(z + a\right) - b} \]
      Proof

      [Start]17.4

      \[ \left(a + z\right) - b \]

      +-commutative [=>]17.4

      \[ \color{blue}{\left(z + a\right)} - b \]

    if -inf.0 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y)) < 1e269

    1. Initial program 0.2

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Simplified0.2

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(x, z, \mathsf{fma}\left(y, z + \left(a - b\right), t \cdot a\right)\right)}{y + \left(x + t\right)}} \]
      Proof

      [Start]0.2

      \[ \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]

    if 1e269 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

    1. Initial program 61.3

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    2. Simplified61.3

      \[\leadsto \color{blue}{\frac{\mathsf{fma}\left(x, z, \mathsf{fma}\left(y, z + \left(a - b\right), t \cdot a\right)\right)}{y + \left(x + t\right)}} \]
      Proof

      [Start]61.3

      \[ \frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
    3. Taylor expanded in a around inf 61.3

      \[\leadsto \color{blue}{\frac{\left(z - b\right) \cdot y}{y + \left(t + x\right)} + \left(\frac{z \cdot x}{y + \left(t + x\right)} + \frac{a \cdot \left(y + t\right)}{y + \left(t + x\right)}\right)} \]
    4. Simplified19.5

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

      [Start]61.3

      \[ \frac{\left(z - b\right) \cdot y}{y + \left(t + x\right)} + \left(\frac{z \cdot x}{y + \left(t + x\right)} + \frac{a \cdot \left(y + t\right)}{y + \left(t + x\right)}\right) \]

      associate-/l* [=>]45.3

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

      associate-/r/ [=>]46.6

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

      +-commutative [=>]46.6

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

      associate-+l+ [=>]46.6

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

      +-commutative [<=]46.6

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

      +-commutative [=>]46.6

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

      associate-+l+ [=>]46.6

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

      +-commutative [<=]46.6

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

      associate-/l* [=>]19.0

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

      associate-/r/ [=>]19.5

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

      +-commutative [=>]19.5

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

      associate-+l+ [=>]19.5

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

      +-commutative [<=]19.5

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

      +-commutative [=>]19.5

      \[ \frac{z - b}{t + \left(y + x\right)} \cdot y + \left(\frac{z \cdot x}{t + \left(y + x\right)} + \frac{a}{t + \left(y + x\right)} \cdot \color{blue}{\left(t + y\right)}\right) \]
    5. Taylor expanded in t around inf 21.7

      \[\leadsto \frac{z - b}{t + \left(y + x\right)} \cdot y + \left(\frac{z \cdot x}{t + \left(y + x\right)} + \color{blue}{a}\right) \]
    6. Taylor expanded in x around 0 44.3

      \[\leadsto \color{blue}{a + \frac{\left(z - b\right) \cdot y}{y + t}} \]
    7. Simplified13.5

      \[\leadsto \color{blue}{a + \frac{z - b}{\frac{y + t}{y}}} \]
      Proof

      [Start]44.3

      \[ a + \frac{\left(z - b\right) \cdot y}{y + t} \]

      associate-/l* [=>]13.5

      \[ a + \color{blue}{\frac{z - b}{\frac{y + t}{y}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification6.5

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

Alternatives

Alternative 1
Error6.5
Cost4168
\[\begin{array}{l} t_1 := \frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)}\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;t_1 \leq 10^{+269}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;a + \frac{z - b}{\frac{y + t}{y}}\\ \end{array} \]
Alternative 2
Error19.6
Cost2412
\[\begin{array}{l} t_1 := y + \left(x + t\right)\\ t_2 := \frac{z \cdot \left(x + y\right) - y \cdot b}{t_1}\\ t_3 := t + \left(x + y\right)\\ t_4 := y \cdot \frac{z - b}{t_3} + \left(z + a\right)\\ t_5 := a + \frac{z - b}{\frac{y + t}{y}}\\ t_6 := \frac{a \cdot \left(y + t\right) - y \cdot b}{t_1}\\ \mathbf{if}\;y \leq -1.9 \cdot 10^{-12}:\\ \;\;\;\;t_5\\ \mathbf{elif}\;y \leq -3.6 \cdot 10^{-135}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;y \leq -1.35 \cdot 10^{-197}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{-228}:\\ \;\;\;\;\frac{x \cdot z + t \cdot a}{x + t}\\ \mathbf{elif}\;y \leq 1.3 \cdot 10^{-168}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;y \leq 3.8 \cdot 10^{-162}:\\ \;\;\;\;\left(x + y\right) \cdot \left(z \cdot \frac{1}{t_1}\right)\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{-107}:\\ \;\;\;\;t_6\\ \mathbf{elif}\;y \leq 1.25 \cdot 10^{-49}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 90000:\\ \;\;\;\;t_6\\ \mathbf{elif}\;y \leq 1.55 \cdot 10^{+19}:\\ \;\;\;\;z \cdot \frac{x + y}{t_3}\\ \mathbf{elif}\;y \leq 3.6 \cdot 10^{+54}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;t_5\\ \end{array} \]
Alternative 3
Error21.1
Cost2016
\[\begin{array}{l} t_1 := t + \left(x + y\right)\\ t_2 := y \cdot \frac{z - b}{t_1} + \left(z + a\right)\\ t_3 := a + \frac{z - b}{\frac{y + t}{y}}\\ \mathbf{if}\;y \leq -8.4 \cdot 10^{-11}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq -1 \cdot 10^{-148}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -1.2 \cdot 10^{-197}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{-280}:\\ \;\;\;\;z \cdot \frac{x + y}{t_1}\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-232}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq 3.1 \cdot 10^{-161}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 2.8 \cdot 10^{-114}:\\ \;\;\;\;\frac{a \cdot \left(y + t\right) - y \cdot b}{y + \left(x + t\right)}\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{+54}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 4
Error27.3
Cost1300
\[\begin{array}{l} t_1 := \frac{-b}{\frac{y + \left(x + t\right)}{y}}\\ \mathbf{if}\;b \leq -2.2 \cdot 10^{+200}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -520000000000:\\ \;\;\;\;z + a\\ \mathbf{elif}\;b \leq 3.4 \cdot 10^{+15}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;b \leq 4.4 \cdot 10^{+37}:\\ \;\;\;\;a + \frac{x \cdot z}{x + t}\\ \mathbf{elif}\;b \leq 4.6 \cdot 10^{+182}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error16.9
Cost1224
\[\begin{array}{l} t_1 := t + \left(x + y\right)\\ \mathbf{if}\;x \leq -6.6 \cdot 10^{+107}:\\ \;\;\;\;z \cdot \frac{x + y}{t_1}\\ \mathbf{elif}\;x \leq 2.5 \cdot 10^{+134}:\\ \;\;\;\;a + \frac{z - b}{\frac{y + t}{y}}\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - b}{t_1} + \left(z + a\right)\\ \end{array} \]
Alternative 6
Error25.6
Cost972
\[\begin{array}{l} t_1 := \left(z + a\right) - b\\ \mathbf{if}\;y \leq -25000000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{-129}:\\ \;\;\;\;z + a\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{-118}:\\ \;\;\;\;\frac{t \cdot a}{y + \left(x + t\right)}\\ \mathbf{elif}\;y \leq 5.2 \cdot 10^{+35}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error16.8
Cost968
\[\begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{+107}:\\ \;\;\;\;z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{elif}\;x \leq 2.5 \cdot 10^{+174}:\\ \;\;\;\;a + \frac{z - b}{\frac{y + t}{y}}\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
Alternative 8
Error25.5
Cost848
\[\begin{array}{l} t_1 := \left(z + a\right) - b\\ \mathbf{if}\;y \leq -7.5 \cdot 10^{+20}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{-129}:\\ \;\;\;\;z + a\\ \mathbf{elif}\;y \leq 6.5 \cdot 10^{-118}:\\ \;\;\;\;\frac{t}{\frac{x + t}{a}}\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{+36}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error25.6
Cost848
\[\begin{array}{l} t_1 := \left(z + a\right) - b\\ \mathbf{if}\;y \leq -3.1 \cdot 10^{+16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.7 \cdot 10^{-129}:\\ \;\;\;\;z + a\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{-118}:\\ \;\;\;\;\frac{t \cdot a}{x + t}\\ \mathbf{elif}\;y \leq 1.25 \cdot 10^{+36}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Error37.0
Cost592
\[\begin{array}{l} \mathbf{if}\;a \leq -0.25:\\ \;\;\;\;a\\ \mathbf{elif}\;a \leq 7 \cdot 10^{-13}:\\ \;\;\;\;z\\ \mathbf{elif}\;a \leq 2.2 \cdot 10^{+105}:\\ \;\;\;\;a\\ \mathbf{elif}\;a \leq 2.02 \cdot 10^{+211}:\\ \;\;\;\;z\\ \mathbf{else}:\\ \;\;\;\;a\\ \end{array} \]
Alternative 11
Error31.0
Cost588
\[\begin{array}{l} \mathbf{if}\;x \leq -4.8 \cdot 10^{+123}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq -7 \cdot 10^{+24}:\\ \;\;\;\;z + a\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-158}:\\ \;\;\;\;a - b\\ \mathbf{else}:\\ \;\;\;\;z + a\\ \end{array} \]
Alternative 12
Error25.4
Cost585
\[\begin{array}{l} \mathbf{if}\;y \leq -92000000 \lor \neg \left(y \leq 5 \cdot 10^{+35}\right):\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;z + a\\ \end{array} \]
Alternative 13
Error30.7
Cost324
\[\begin{array}{l} \mathbf{if}\;b \leq 7.3 \cdot 10^{+183}:\\ \;\;\;\;z + a\\ \mathbf{else}:\\ \;\;\;\;-b\\ \end{array} \]
Alternative 14
Error43.2
Cost64
\[a \]

Error

Reproduce

herbie shell --seed 2023016 
(FPCore (x y z t a b)
  :name "AI.Clustering.Hierarchical.Internal:ward from clustering-0.2.1"
  :precision binary64

  :herbie-target
  (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) -3.5813117084150564e+153) (- (+ z a) b) (if (< (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)) 1.2285964308315609e+82) (/ 1.0 (/ (+ (+ x t) y) (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)))) (- (+ z a) b)))

  (/ (- (+ (* (+ x y) z) (* (+ t y) a)) (* y b)) (+ (+ x t) y)))