?

Average Accuracy: 87.7% → 98.2%
Time: 26.7s
Precision: binary64
Cost: 8393

?

\[ \begin{array}{c}[x, y] = \mathsf{sort}([x, y])\\ [z, t] = \mathsf{sort}([z, t])\\ \end{array} \]
\[\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2} \]
\[\begin{array}{l} t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_1 \leq -4 \cdot 10^{+202} \lor \neg \left(t_1 \leq 10^{+217}\right):\\ \;\;\;\;x \cdot \left(y \cdot \frac{0.5}{a}\right) - \frac{z}{\frac{a}{9}} \cdot \frac{t}{2}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{a} \cdot \mathsf{fma}\left(x, y, z \cdot \left(t \cdot -9\right)\right)\\ \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (/ (- (* x y) (* (* z 9.0) t)) (* a 2.0)))
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (- (* x y) (* (* z 9.0) t))))
   (if (or (<= t_1 -4e+202) (not (<= t_1 1e+217)))
     (- (* x (* y (/ 0.5 a))) (* (/ z (/ a 9.0)) (/ t 2.0)))
     (* (/ 0.5 a) (fma x y (* z (* t -9.0)))))))
double code(double x, double y, double z, double t, double a) {
	return ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
}
double code(double x, double y, double z, double t, double a) {
	double t_1 = (x * y) - ((z * 9.0) * t);
	double tmp;
	if ((t_1 <= -4e+202) || !(t_1 <= 1e+217)) {
		tmp = (x * (y * (0.5 / a))) - ((z / (a / 9.0)) * (t / 2.0));
	} else {
		tmp = (0.5 / a) * fma(x, y, (z * (t * -9.0)));
	}
	return tmp;
}
function code(x, y, z, t, a)
	return Float64(Float64(Float64(x * y) - Float64(Float64(z * 9.0) * t)) / Float64(a * 2.0))
end
function code(x, y, z, t, a)
	t_1 = Float64(Float64(x * y) - Float64(Float64(z * 9.0) * t))
	tmp = 0.0
	if ((t_1 <= -4e+202) || !(t_1 <= 1e+217))
		tmp = Float64(Float64(x * Float64(y * Float64(0.5 / a))) - Float64(Float64(z / Float64(a / 9.0)) * Float64(t / 2.0)));
	else
		tmp = Float64(Float64(0.5 / a) * fma(x, y, Float64(z * Float64(t * -9.0))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x * y), $MachinePrecision] - N[(N[(z * 9.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x * y), $MachinePrecision] - N[(N[(z * 9.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -4e+202], N[Not[LessEqual[t$95$1, 1e+217]], $MachinePrecision]], N[(N[(x * N[(y * N[(0.5 / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z / N[(a / 9.0), $MachinePrecision]), $MachinePrecision] * N[(t / 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.5 / a), $MachinePrecision] * N[(x * y + N[(z * N[(t * -9.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2}
\begin{array}{l}
t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_1 \leq -4 \cdot 10^{+202} \lor \neg \left(t_1 \leq 10^{+217}\right):\\
\;\;\;\;x \cdot \left(y \cdot \frac{0.5}{a}\right) - \frac{z}{\frac{a}{9}} \cdot \frac{t}{2}\\

\mathbf{else}:\\
\;\;\;\;\frac{0.5}{a} \cdot \mathsf{fma}\left(x, y, z \cdot \left(t \cdot -9\right)\right)\\


\end{array}

Error?

Target

Original87.7%
Target91.0%
Herbie98.2%
\[\begin{array}{l} \mathbf{if}\;a < -2.090464557976709 \cdot 10^{+86}:\\ \;\;\;\;0.5 \cdot \frac{y \cdot x}{a} - 4.5 \cdot \frac{t}{\frac{a}{z}}\\ \mathbf{elif}\;a < 2.144030707833976 \cdot 10^{+99}:\\ \;\;\;\;\frac{x \cdot y - z \cdot \left(9 \cdot t\right)}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{a} \cdot \left(x \cdot 0.5\right) - \frac{t}{a} \cdot \left(z \cdot 4.5\right)\\ \end{array} \]

Derivation?

  1. Split input into 2 regimes
  2. if (-.f64 (*.f64 x y) (*.f64 (*.f64 z 9) t)) < -3.9999999999999996e202 or 9.9999999999999996e216 < (-.f64 (*.f64 x y) (*.f64 (*.f64 z 9) t))

    1. Initial program 53.3%

      \[\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2} \]
    2. Applied egg-rr72.9%

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

      [Start]53.3

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

      div-sub [=>]53.3

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

      sub-neg [=>]53.3

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

      div-inv [=>]53.3

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

      *-commutative [=>]53.3

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

      associate-/r* [=>]53.3

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

      metadata-eval [=>]53.3

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

      times-frac [=>]72.9

      \[ \left(x \cdot y\right) \cdot \frac{0.5}{a} + \left(-\color{blue}{\frac{z \cdot 9}{a} \cdot \frac{t}{2}}\right) \]
    3. Simplified97.6%

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

      [Start]72.9

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

      sub-neg [<=]72.9

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

      associate-*l* [=>]97.2

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

      associate-/l* [=>]97.6

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

    if -3.9999999999999996e202 < (-.f64 (*.f64 x y) (*.f64 (*.f64 z 9) t)) < 9.9999999999999996e216

    1. Initial program 98.6%

      \[\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2} \]
    2. Simplified98.4%

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

      [Start]98.6

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

      sub-neg [=>]98.6

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

      +-commutative [=>]98.6

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

      neg-sub0 [=>]98.6

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

      associate-+l- [=>]98.6

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

      sub0-neg [=>]98.6

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

      neg-mul-1 [=>]98.6

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

      associate-/l* [=>]98.2

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

      associate-/r/ [=>]98.5

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

      *-commutative [=>]98.5

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

      sub-neg [=>]98.5

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

      +-commutative [=>]98.5

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

      neg-sub0 [=>]98.5

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

      associate-+l- [=>]98.5

      \[ \color{blue}{\left(0 - \left(x \cdot y - \left(z \cdot 9\right) \cdot t\right)\right)} \cdot \frac{-1}{a \cdot 2} \]

      sub0-neg [=>]98.5

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

      distribute-lft-neg-out [=>]98.5

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

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

      \[ \color{blue}{\left(x \cdot y - \left(z \cdot 9\right) \cdot t\right) \cdot \left(-\frac{-1}{a \cdot 2}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot y - \left(z \cdot 9\right) \cdot t \leq -4 \cdot 10^{+202} \lor \neg \left(x \cdot y - \left(z \cdot 9\right) \cdot t \leq 10^{+217}\right):\\ \;\;\;\;x \cdot \left(y \cdot \frac{0.5}{a}\right) - \frac{z}{\frac{a}{9}} \cdot \frac{t}{2}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{a} \cdot \mathsf{fma}\left(x, y, z \cdot \left(t \cdot -9\right)\right)\\ \end{array} \]

Alternatives

Alternative 1
Accuracy98.2%
Cost2377
\[\begin{array}{l} t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_1 \leq -4 \cdot 10^{+202} \lor \neg \left(t_1 \leq 10^{+217}\right):\\ \;\;\;\;x \cdot \left(y \cdot \frac{0.5}{a}\right) - \frac{z}{\frac{a}{9}} \cdot \frac{t}{2}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.5}{a} \cdot \left(x \cdot y + z \cdot \left(t \cdot -9\right)\right)\\ \end{array} \]
Alternative 2
Accuracy93.2%
Cost2120
\[\begin{array}{l} t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;-4.5 \cdot \frac{t}{\frac{a}{z}}\\ \mathbf{elif}\;t_1 \leq 10^{+308}:\\ \;\;\;\;\frac{0.5}{a} \cdot \left(x \cdot y + z \cdot \left(t \cdot -9\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{\frac{a}{x}}\\ \end{array} \]
Alternative 3
Accuracy61.3%
Cost1506
\[\begin{array}{l} t_1 := 0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -5.5 \cdot 10^{+125}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{+71}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.95 \cdot 10^{+49}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -1250000000000 \lor \neg \left(x \leq -2.7 \cdot 10^{-68}\right) \land \left(x \leq -2.15 \cdot 10^{-104} \lor \neg \left(x \leq 2.95 \cdot 10^{-115}\right)\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \frac{z \cdot t}{a}\\ \end{array} \]
Alternative 4
Accuracy60.5%
Cost1504
\[\begin{array}{l} t_1 := 0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ t_2 := \left(x \cdot y\right) \cdot \frac{0.5}{a}\\ t_3 := -4.5 \cdot \frac{z \cdot t}{a}\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{+130}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{elif}\;x \leq -3.6 \cdot 10^{+71}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -9.6 \cdot 10^{+48}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -2900000000000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.56 \cdot 10^{-84}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{-105}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-114}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Accuracy59.6%
Cost1504
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ t_2 := 0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ t_3 := 0.5 \cdot \frac{x}{\frac{a}{y}}\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;\left(x \cdot y\right) \cdot \frac{0.5}{a}\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{+130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -2.9 \cdot 10^{+71}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.25 \cdot 10^{+49}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -1160000000000:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.85 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -2.15 \cdot 10^{-104}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq 3.5 \cdot 10^{-115}:\\ \;\;\;\;-4.5 \cdot \frac{z \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 6
Accuracy59.5%
Cost1504
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ t_2 := 0.5 \cdot \frac{x}{\frac{a}{y}}\\ \mathbf{if}\;x \leq -6 \cdot 10^{+172}:\\ \;\;\;\;\left(x \cdot y\right) \cdot \frac{0.5}{a}\\ \mathbf{elif}\;x \leq -5.5 \cdot 10^{+130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{+71}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -4.6 \cdot 10^{+48}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -2900000000000:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq -9 \cdot 10^{-51}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -9.6 \cdot 10^{-110}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.7 \cdot 10^{-114}:\\ \;\;\;\;-4.5 \cdot \frac{z \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{\frac{a}{x}}\\ \end{array} \]
Alternative 7
Accuracy59.5%
Cost1504
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ t_2 := 0.5 \cdot \frac{x}{\frac{a}{y}}\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;\frac{x \cdot y}{a \cdot 2}\\ \mathbf{elif}\;x \leq -6.4 \cdot 10^{+130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{+71}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -9.5 \cdot 10^{+48}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -3100000000000:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq -3.3 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.95 \cdot 10^{-104}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 8 \cdot 10^{-115}:\\ \;\;\;\;-4.5 \cdot \frac{z \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{\frac{a}{x}}\\ \end{array} \]
Alternative 8
Accuracy59.5%
Cost1504
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ t_2 := 0.5 \cdot \frac{x}{\frac{a}{y}}\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;\frac{x \cdot y}{a \cdot 2}\\ \mathbf{elif}\;x \leq -3.7 \cdot 10^{+130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.25 \cdot 10^{+74}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.35 \cdot 10^{+49}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq -1300000000000:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq -1.66 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1 \cdot 10^{-104}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-114}:\\ \;\;\;\;\frac{t \cdot \left(z \cdot -4.5\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{\frac{a}{x}}\\ \end{array} \]
Alternative 9
Accuracy59.5%
Cost1504
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ t_2 := 0.5 \cdot \frac{x}{\frac{a}{y}}\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+172}:\\ \;\;\;\;\frac{x \cdot y}{a \cdot 2}\\ \mathbf{elif}\;x \leq -2.8 \cdot 10^{+130}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.3 \cdot 10^{+72}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -8.5 \cdot 10^{+48}:\\ \;\;\;\;\frac{1}{\frac{a \cdot -0.2222222222222222}{z \cdot t}}\\ \mathbf{elif}\;x \leq -3450000000000:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-107}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.28 \cdot 10^{-114}:\\ \;\;\;\;\frac{t \cdot \left(z \cdot -4.5\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{y \cdot 0.5}{\frac{a}{x}}\\ \end{array} \]
Alternative 10
Accuracy50.9%
Cost713
\[\begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{-107} \lor \neg \left(t \leq 9.5 \cdot 10^{+157}\right):\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \frac{z \cdot t}{a}\\ \end{array} \]
Alternative 11
Accuracy48.9%
Cost448
\[-4.5 \cdot \left(t \cdot \frac{z}{a}\right) \]

Error

Reproduce?

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

  :herbie-target
  (if (< a -2.090464557976709e+86) (- (* 0.5 (/ (* y x) a)) (* 4.5 (/ t (/ a z)))) (if (< a 2.144030707833976e+99) (/ (- (* x y) (* z (* 9.0 t))) (* a 2.0)) (- (* (/ y a) (* x 0.5)) (* (/ t a) (* z 4.5)))))

  (/ (- (* x y) (* (* z 9.0) t)) (* a 2.0)))