?

Average Error: 7.6 → 0.8
Time: 17.1s
Precision: binary64
Cost: 2248

?

\[ \begin{array}{c}[x, y] = \mathsf{sort}([x, y])\\ \end{array} \]
\[\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2} \]
\[\begin{array}{l} t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\ t_2 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_2 \leq -5 \cdot 10^{+251}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_2 \leq 10^{+229}:\\ \;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \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 (+ (* -4.5 (* t (/ z a))) (* 0.5 (* x (/ y a)))))
        (t_2 (- (* x y) (* (* z 9.0) t))))
   (if (<= t_2 -5e+251)
     t_1
     (if (<= t_2 1e+229) (/ (- (* y x) (* (* t z) 9.0)) (* a 2.0)) t_1))))
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 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
	double t_2 = (x * y) - ((z * 9.0) * t);
	double tmp;
	if (t_2 <= -5e+251) {
		tmp = t_1;
	} else if (t_2 <= 1e+229) {
		tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a)
    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
    code = ((x * y) - ((z * 9.0d0) * t)) / (a * 2.0d0)
end function
real(8) function code(x, y, z, t, a)
    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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = ((-4.5d0) * (t * (z / a))) + (0.5d0 * (x * (y / a)))
    t_2 = (x * y) - ((z * 9.0d0) * t)
    if (t_2 <= (-5d+251)) then
        tmp = t_1
    else if (t_2 <= 1d+229) then
        tmp = ((y * x) - ((t * z) * 9.0d0)) / (a * 2.0d0)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	return ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
	double t_2 = (x * y) - ((z * 9.0) * t);
	double tmp;
	if (t_2 <= -5e+251) {
		tmp = t_1;
	} else if (t_2 <= 1e+229) {
		tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	return ((x * y) - ((z * 9.0) * t)) / (a * 2.0)
def code(x, y, z, t, a):
	t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)))
	t_2 = (x * y) - ((z * 9.0) * t)
	tmp = 0
	if t_2 <= -5e+251:
		tmp = t_1
	elif t_2 <= 1e+229:
		tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0)
	else:
		tmp = t_1
	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(-4.5 * Float64(t * Float64(z / a))) + Float64(0.5 * Float64(x * Float64(y / a))))
	t_2 = Float64(Float64(x * y) - Float64(Float64(z * 9.0) * t))
	tmp = 0.0
	if (t_2 <= -5e+251)
		tmp = t_1;
	elseif (t_2 <= 1e+229)
		tmp = Float64(Float64(Float64(y * x) - Float64(Float64(t * z) * 9.0)) / Float64(a * 2.0));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp = code(x, y, z, t, a)
	tmp = ((x * y) - ((z * 9.0) * t)) / (a * 2.0);
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (-4.5 * (t * (z / a))) + (0.5 * (x * (y / a)));
	t_2 = (x * y) - ((z * 9.0) * t);
	tmp = 0.0;
	if (t_2 <= -5e+251)
		tmp = t_1;
	elseif (t_2 <= 1e+229)
		tmp = ((y * x) - ((t * z) * 9.0)) / (a * 2.0);
	else
		tmp = t_1;
	end
	tmp_2 = 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[(-4.5 * N[(t * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(N[(z * 9.0), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+251], t$95$1, If[LessEqual[t$95$2, 1e+229], N[(N[(N[(y * x), $MachinePrecision] - N[(N[(t * z), $MachinePrecision] * 9.0), $MachinePrecision]), $MachinePrecision] / N[(a * 2.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\frac{x \cdot y - \left(z \cdot 9\right) \cdot t}{a \cdot 2}
\begin{array}{l}
t_1 := -4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\
t_2 := x \cdot y - \left(z \cdot 9\right) \cdot t\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+251}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t_2 \leq 10^{+229}:\\
\;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original7.6
Target5.3
Herbie0.8
\[\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)) < -5.0000000000000005e251 or 9.9999999999999999e228 < (-.f64 (*.f64 x y) (*.f64 (*.f64 z 9) t))

    1. Initial program 36.3

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

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

      [Start]36.3

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

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

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

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

      \[ \frac{x \cdot y - \color{blue}{z \cdot \left(9 \cdot t\right)}}{a \cdot 2} \]
    3. Taylor expanded in x around 0 36.0

      \[\leadsto \color{blue}{-4.5 \cdot \frac{t \cdot z}{a} + 0.5 \cdot \frac{y \cdot x}{a}} \]
    4. Simplified0.9

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

      [Start]36.0

      \[ -4.5 \cdot \frac{t \cdot z}{a} + 0.5 \cdot \frac{y \cdot x}{a} \]

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

      \[ -4.5 \cdot \frac{\color{blue}{z \cdot t}}{a} + 0.5 \cdot \frac{y \cdot x}{a} \]

      rational.json-simplify-49 [=>]18.5

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

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

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

    if -5.0000000000000005e251 < (-.f64 (*.f64 x y) (*.f64 (*.f64 z 9) t)) < 9.9999999999999999e228

    1. Initial program 0.8

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

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

      [Start]0.8

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

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

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

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

      \[ \frac{x \cdot y - \color{blue}{z \cdot \left(9 \cdot t\right)}}{a \cdot 2} \]
    3. Applied egg-rr0.8

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

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

      [Start]0.8

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \cdot y - \left(z \cdot 9\right) \cdot t \leq -5 \cdot 10^{+251}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\ \mathbf{elif}\;x \cdot y - \left(z \cdot 9\right) \cdot t \leq 10^{+229}:\\ \;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right) + 0.5 \cdot \left(x \cdot \frac{y}{a}\right)\\ \end{array} \]

Alternatives

Alternative 1
Error4.3
Cost2120
\[\begin{array}{l} t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{elif}\;t_1 \leq 2 \cdot 10^{+303}:\\ \;\;\;\;\frac{t_1}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{2}}{\frac{a}{y}}\\ \end{array} \]
Alternative 2
Error4.3
Cost2120
\[\begin{array}{l} t_1 := x \cdot y - \left(z \cdot 9\right) \cdot t\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{elif}\;t_1 \leq 2 \cdot 10^{+303}:\\ \;\;\;\;\frac{y \cdot x - \left(t \cdot z\right) \cdot 9}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;\frac{\frac{x}{2}}{\frac{a}{y}}\\ \end{array} \]
Alternative 3
Error25.8
Cost1636
\[\begin{array}{l} t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\ t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\ t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \mathbf{elif}\;x \leq -2 \cdot 10^{+39}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -6.6 \cdot 10^{-19}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -7 \cdot 10^{-86}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -5.1 \cdot 10^{-121}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -9 \cdot 10^{-158}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-291}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq 10^{-44}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 4
Error25.8
Cost1636
\[\begin{array}{l} t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\ t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\ t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \mathbf{elif}\;x \leq -2.6 \cdot 10^{+39}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-16}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.1 \cdot 10^{-85}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -5.5 \cdot 10^{-121}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -9 \cdot 10^{-158}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq 7.4 \cdot 10^{-289}:\\ \;\;\;\;z \cdot \left(-4.5 \cdot \frac{t}{a}\right)\\ \mathbf{elif}\;x \leq 1.05 \cdot 10^{-48}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 5
Error25.8
Cost1636
\[\begin{array}{l} t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\ t_2 := t \cdot \frac{-4.5}{\frac{a}{z}}\\ t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+72}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \mathbf{elif}\;x \leq -2.05 \cdot 10^{+39}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{-17}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -9.6 \cdot 10^{-86}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.35 \cdot 10^{-121}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.1 \cdot 10^{-157}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;x \leq 2.15 \cdot 10^{-287}:\\ \;\;\;\;\frac{z}{\frac{a}{t \cdot -4.5}}\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{-58}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 6
Error25.7
Cost1636
\[\begin{array}{l} t_1 := -4.5 \cdot \frac{t \cdot z}{a}\\ t_2 := \frac{y \cdot x}{a \cdot 2}\\ t_3 := x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ t_4 := t \cdot \frac{-4.5}{\frac{a}{z}}\\ \mathbf{if}\;x \leq -1.4 \cdot 10^{+72}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \mathbf{elif}\;x \leq -2.7 \cdot 10^{+38}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.55 \cdot 10^{-16}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{-86}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -6.8 \cdot 10^{-122}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.45 \cdot 10^{-157}:\\ \;\;\;\;t_4\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-169}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{-286}:\\ \;\;\;\;\frac{z}{\frac{a}{t \cdot -4.5}}\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{-51}:\\ \;\;\;\;t_4\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \]
Alternative 7
Error4.4
Cost1352
\[\begin{array}{l} \mathbf{if}\;x \cdot y \leq -5 \cdot 10^{+251}:\\ \;\;\;\;x \cdot \left(0.5 \cdot \frac{y}{a}\right)\\ \mathbf{elif}\;x \cdot y \leq 5 \cdot 10^{+209}:\\ \;\;\;\;\frac{x \cdot y - z \cdot \left(9 \cdot t\right)}{a \cdot 2}\\ \mathbf{else}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \end{array} \]
Alternative 8
Error26.4
Cost1240
\[\begin{array}{l} t_1 := 0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ t_2 := -4.5 \cdot \frac{t \cdot z}{a}\\ \mathbf{if}\;t \leq -1 \cdot 10^{-106}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{-57}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 7 \cdot 10^{-8}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+53}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{+87}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{+173}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \end{array} \]
Alternative 9
Error26.4
Cost1240
\[\begin{array}{l} t_1 := 0.5 \cdot \frac{y}{\frac{a}{x}}\\ t_2 := -4.5 \cdot \frac{t \cdot z}{a}\\ \mathbf{if}\;t \leq -1 \cdot 10^{-106}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{-57}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 3.65 \cdot 10^{-9}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 8.8 \cdot 10^{+54}:\\ \;\;\;\;0.5 \cdot \left(y \cdot \frac{x}{a}\right)\\ \mathbf{elif}\;t \leq 7.5 \cdot 10^{+86}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{+173}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \end{array} \]
Alternative 10
Error8.1
Cost964
\[\begin{array}{l} \mathbf{if}\;x \leq -5 \cdot 10^{+232}:\\ \;\;\;\;0.5 \cdot \frac{y}{\frac{a}{x}}\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x - t \cdot \left(z \cdot 9\right)\right) \cdot \frac{0.5}{a}\\ \end{array} \]
Alternative 11
Error31.4
Cost712
\[\begin{array}{l} \mathbf{if}\;z \leq -5 \cdot 10^{+117}:\\ \;\;\;\;-4.5 \cdot \left(t \cdot \frac{z}{a}\right)\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{+36}:\\ \;\;\;\;-4.5 \cdot \frac{t \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;-4.5 \cdot \left(z \cdot \frac{t}{a}\right)\\ \end{array} \]
Alternative 12
Error32.6
Cost448
\[-4.5 \cdot \left(t \cdot \frac{z}{a}\right) \]

Error

Reproduce?

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