?

Average Error: 41.5% → 12.95%
Time: 20.0s
Precision: binary64
Cost: 4169

?

\[\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 := t + \left(x + y\right)\\ t_2 := \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_2 \leq -\infty \lor \neg \left(t_2 \leq 2 \cdot 10^{+204}\right):\\ \;\;\;\;z + a \cdot \left(\frac{y}{t_1} + \frac{t}{t_1}\right)\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \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 (+ t (+ x y)))
        (t_2 (/ (- (+ (* z (+ x y)) (* a (+ y t))) (* y b)) (+ y (+ x t)))))
   (if (or (<= t_2 (- INFINITY)) (not (<= t_2 2e+204)))
     (+ z (* a (+ (/ y t_1) (/ t t_1))))
     t_2)))
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 = t + (x + y);
	double t_2 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
	double tmp;
	if ((t_2 <= -((double) INFINITY)) || !(t_2 <= 2e+204)) {
		tmp = z + (a * ((y / t_1) + (t / t_1)));
	} else {
		tmp = t_2;
	}
	return tmp;
}
public static 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);
}
public static double code(double x, double y, double z, double t, double a, double b) {
	double t_1 = t + (x + y);
	double t_2 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
	double tmp;
	if ((t_2 <= -Double.POSITIVE_INFINITY) || !(t_2 <= 2e+204)) {
		tmp = z + (a * ((y / t_1) + (t / t_1)));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b):
	return ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y)
def code(x, y, z, t, a, b):
	t_1 = t + (x + y)
	t_2 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t))
	tmp = 0
	if (t_2 <= -math.inf) or not (t_2 <= 2e+204):
		tmp = z + (a * ((y / t_1) + (t / t_1)))
	else:
		tmp = t_2
	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(t + Float64(x + y))
	t_2 = Float64(Float64(Float64(Float64(z * Float64(x + y)) + Float64(a * Float64(y + t))) - Float64(y * b)) / Float64(y + Float64(x + t)))
	tmp = 0.0
	if ((t_2 <= Float64(-Inf)) || !(t_2 <= 2e+204))
		tmp = Float64(z + Float64(a * Float64(Float64(y / t_1) + Float64(t / t_1))));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp = code(x, y, z, t, a, b)
	tmp = ((((x + y) * z) + ((t + y) * a)) - (y * b)) / ((x + t) + y);
end
function tmp_2 = code(x, y, z, t, a, b)
	t_1 = t + (x + y);
	t_2 = (((z * (x + y)) + (a * (y + t))) - (y * b)) / (y + (x + t));
	tmp = 0.0;
	if ((t_2 <= -Inf) || ~((t_2 <= 2e+204)))
		tmp = z + (a * ((y / t_1) + (t / t_1)));
	else
		tmp = t_2;
	end
	tmp_2 = 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[(t + N[(x + y), $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] / N[(y + N[(x + t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$2, (-Infinity)], N[Not[LessEqual[t$95$2, 2e+204]], $MachinePrecision]], N[(z + N[(a * N[(N[(y / t$95$1), $MachinePrecision] + N[(t / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]
\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 := t + \left(x + y\right)\\
t_2 := \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_2 \leq -\infty \lor \neg \left(t_2 \leq 2 \cdot 10^{+204}\right):\\
\;\;\;\;z + a \cdot \left(\frac{y}{t_1} + \frac{t}{t_1}\right)\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original41.5%
Target18%
Herbie12.95%
\[\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 2 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 or 1.99999999999999998e204 < (/.f64 (-.f64 (+.f64 (*.f64 (+.f64 x y) z) (*.f64 (+.f64 t y) a)) (*.f64 y b)) (+.f64 (+.f64 x t) y))

    1. Initial program 92.84

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

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

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

      [Start]65.79

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

      +-commutative [=>]65.79

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

      associate--l+ [=>]65.79

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

      +-commutative [=>]65.79

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

      associate-+r+ [=>]65.79

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

      +-commutative [=>]65.79

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

      +-commutative [=>]65.79

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

      associate-+r+ [=>]65.79

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

      +-commutative [=>]65.79

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

      associate-+r+ [=>]65.79

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

      +-commutative [<=]65.79

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

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

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

    1. Initial program 0.46

      \[\frac{\left(\left(x + y\right) \cdot z + \left(t + y\right) \cdot a\right) - y \cdot b}{\left(x + t\right) + y} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification12.95

    \[\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 \lor \neg \left(\frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)} \leq 2 \cdot 10^{+204}\right):\\ \;\;\;\;z + a \cdot \left(\frac{y}{t + \left(x + y\right)} + \frac{t}{t + \left(x + y\right)}\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(z \cdot \left(x + y\right) + a \cdot \left(y + t\right)\right) - y \cdot b}{y + \left(x + t\right)}\\ \end{array} \]

Alternatives

Alternative 1
Error39.34%
Cost1884
\[\begin{array}{l} t_1 := \left(z + a\right) - b\\ t_2 := \frac{x \cdot z + t \cdot a}{x + t}\\ \mathbf{if}\;y \leq -4.3 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -1.4 \cdot 10^{-134}:\\ \;\;\;\;z + a \cdot \frac{y + t}{x}\\ \mathbf{elif}\;y \leq 2.1 \cdot 10^{-210}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{-153}:\\ \;\;\;\;a\\ \mathbf{elif}\;y \leq 4.5 \cdot 10^{-82}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{-6}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.08:\\ \;\;\;\;\frac{a \cdot \left(y + t\right) - y \cdot b}{y + \left(x + t\right)}\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{+98}:\\ \;\;\;\;z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error39.45%
Cost1760
\[\begin{array}{l} t_1 := z + a \cdot \frac{y + t}{x}\\ t_2 := \left(z + a\right) - b\\ t_3 := \frac{x \cdot z + t \cdot a}{x + t}\\ \mathbf{if}\;y \leq -5.5 \cdot 10^{-51}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -1.55 \cdot 10^{-134}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-208}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq 6.6 \cdot 10^{-154}:\\ \;\;\;\;a\\ \mathbf{elif}\;y \leq 1.8 \cdot 10^{-78}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;y \leq 3.6 \cdot 10^{-5}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq 3.3 \cdot 10^{+47}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{+98}:\\ \;\;\;\;z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 3
Error43.82%
Cost1636
\[\begin{array}{l} t_1 := z + a \cdot \frac{y + t}{x}\\ t_2 := \left(z + a\right) - b\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{+231}:\\ \;\;\;\;a\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{+64}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -5.6 \cdot 10^{+20}:\\ \;\;\;\;\frac{y}{\frac{t + \left(x + y\right)}{-b}}\\ \mathbf{elif}\;t \leq -1.06 \cdot 10^{-19}:\\ \;\;\;\;z\\ \mathbf{elif}\;t \leq -1.92 \cdot 10^{-131}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -9 \cdot 10^{-199}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{-194}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{-151}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 8.2 \cdot 10^{+151}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\frac{a}{\frac{x + t}{t}}\\ \end{array} \]
Alternative 4
Error40.7%
Cost1620
\[\begin{array}{l} t_1 := y + \left(x + t\right)\\ t_2 := \left(z + a\right) - b\\ t_3 := z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{if}\;z \leq -4.15 \cdot 10^{+21}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq -1.42 \cdot 10^{-18}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.22 \cdot 10^{-49}:\\ \;\;\;\;\frac{a \cdot \left(y + t\right) - y \cdot b}{t_1}\\ \mathbf{elif}\;z \leq 4.6 \cdot 10^{-11}:\\ \;\;\;\;\frac{a}{\frac{x + \left(y + t\right)}{y + t}}\\ \mathbf{elif}\;z \leq 1.1 \cdot 10^{+43}:\\ \;\;\;\;\frac{z \cdot \left(x + y\right) - y \cdot b}{t_1}\\ \mathbf{elif}\;z \leq 8 \cdot 10^{+121}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 5
Error31.27%
Cost1612
\[\begin{array}{l} t_1 := t + \left(x + y\right)\\ t_2 := z + a \cdot \left(\frac{y}{t_1} + \frac{t}{t_1}\right)\\ \mathbf{if}\;a \leq -6.8 \cdot 10^{-58}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-233}:\\ \;\;\;\;z \cdot \frac{x + y}{t_1}\\ \mathbf{elif}\;a \leq 3.85 \cdot 10^{-199}:\\ \;\;\;\;\frac{z \cdot \left(x + y\right) - y \cdot b}{y + \left(x + t\right)}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 6
Error39.47%
Cost1232
\[\begin{array}{l} \mathbf{if}\;x \leq -3.2 \cdot 10^{+64}:\\ \;\;\;\;z + a \cdot \frac{y + t}{x}\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{+51}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{elif}\;x \leq 3.65 \cdot 10^{+118}:\\ \;\;\;\;z \cdot \frac{x + y}{t + \left(x + y\right)}\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{+139}:\\ \;\;\;\;\left(y + t\right) \cdot \frac{a}{x + \left(y + t\right)}\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+248}:\\ \;\;\;\;z + t \cdot \frac{a}{x}\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{x}{x + t}\\ \end{array} \]
Alternative 7
Error41.09%
Cost976
\[\begin{array}{l} t_1 := \left(z + a\right) - b\\ \mathbf{if}\;t \leq -1.7 \cdot 10^{+242}:\\ \;\;\;\;a\\ \mathbf{elif}\;t \leq 4.4 \cdot 10^{-199}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{-151}:\\ \;\;\;\;z + \frac{y \cdot a}{x}\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+152}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{a}{\frac{x + t}{t}}\\ \end{array} \]
Alternative 8
Error37.81%
Cost841
\[\begin{array}{l} \mathbf{if}\;x \leq -3.2 \cdot 10^{+64} \lor \neg \left(x \leq 1.25 \cdot 10^{+112}\right):\\ \;\;\;\;z + a \cdot \frac{y + t}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]
Alternative 9
Error39.24%
Cost713
\[\begin{array}{l} \mathbf{if}\;x \leq -6.2 \cdot 10^{+117} \lor \neg \left(x \leq 6.2 \cdot 10^{+64}\right):\\ \;\;\;\;z + t \cdot \frac{a}{x}\\ \mathbf{else}:\\ \;\;\;\;\left(z + a\right) - b\\ \end{array} \]
Alternative 10
Error40.47%
Cost712
\[\begin{array}{l} \mathbf{if}\;x \leq -4.6 \cdot 10^{+117}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 10^{+115}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{x}{x + t}\\ \end{array} \]
Alternative 11
Error41.25%
Cost712
\[\begin{array}{l} \mathbf{if}\;x \leq -7.5 \cdot 10^{+62}:\\ \;\;\;\;z + \frac{y \cdot a}{x}\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{+66}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;z + t \cdot \frac{a}{x}\\ \end{array} \]
Alternative 12
Error56.32%
Cost592
\[\begin{array}{l} \mathbf{if}\;x \leq -2.15 \cdot 10^{+63}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq -2.4 \cdot 10^{-205}:\\ \;\;\;\;a\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{-289}:\\ \;\;\;\;z - b\\ \mathbf{elif}\;x \leq 3.1 \cdot 10^{+66}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
Alternative 13
Error40.94%
Cost584
\[\begin{array}{l} \mathbf{if}\;x \leq -3.5 \cdot 10^{+117}:\\ \;\;\;\;z\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{+192}:\\ \;\;\;\;\left(z + a\right) - b\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
Alternative 14
Error54.64%
Cost328
\[\begin{array}{l} \mathbf{if}\;z \leq -2.3 \cdot 10^{+93}:\\ \;\;\;\;z\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{-19}:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;z\\ \end{array} \]
Alternative 15
Error67.35%
Cost64
\[a \]

Error

Reproduce?

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