?

Average Error: 16.6 → 4.7
Time: 17.1s
Precision: binary64
Cost: 3533

?

\[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
\[\begin{array}{l} t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;x + \left(z \cdot \frac{y}{t} - \frac{a}{\frac{t}{y}}\right)\\ \mathbf{elif}\;t_1 \leq -1 \cdot 10^{-243} \lor \neg \left(t_1 \leq 0\right):\\ \;\;\;\;x + \left(y - \frac{y}{\frac{a - t}{z - t}}\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\ \end{array} \]
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ (+ x y) (/ (* y (- t z)) (- a t)))))
   (if (<= t_1 (- INFINITY))
     (+ x (- (* z (/ y t)) (/ a (/ t y))))
     (if (or (<= t_1 -1e-243) (not (<= t_1 0.0)))
       (+ x (- y (/ y (/ (- a t) (- z t)))))
       (- x (/ y (/ t (- a z))))))))
double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) + ((y * (t - z)) / (a - t));
	double tmp;
	if (t_1 <= -((double) INFINITY)) {
		tmp = x + ((z * (y / t)) - (a / (t / y)));
	} else if ((t_1 <= -1e-243) || !(t_1 <= 0.0)) {
		tmp = x + (y - (y / ((a - t) / (z - t))));
	} else {
		tmp = x - (y / (t / (a - z)));
	}
	return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (x + y) + ((y * (t - z)) / (a - t));
	double tmp;
	if (t_1 <= -Double.POSITIVE_INFINITY) {
		tmp = x + ((z * (y / t)) - (a / (t / y)));
	} else if ((t_1 <= -1e-243) || !(t_1 <= 0.0)) {
		tmp = x + (y - (y / ((a - t) / (z - t))));
	} else {
		tmp = x - (y / (t / (a - z)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	return (x + y) - (((z - t) * y) / (a - t))
def code(x, y, z, t, a):
	t_1 = (x + y) + ((y * (t - z)) / (a - t))
	tmp = 0
	if t_1 <= -math.inf:
		tmp = x + ((z * (y / t)) - (a / (t / y)))
	elif (t_1 <= -1e-243) or not (t_1 <= 0.0):
		tmp = x + (y - (y / ((a - t) / (z - t))))
	else:
		tmp = x - (y / (t / (a - z)))
	return tmp
function code(x, y, z, t, a)
	return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
end
function code(x, y, z, t, a)
	t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(t - z)) / Float64(a - t)))
	tmp = 0.0
	if (t_1 <= Float64(-Inf))
		tmp = Float64(x + Float64(Float64(z * Float64(y / t)) - Float64(a / Float64(t / y))));
	elseif ((t_1 <= -1e-243) || !(t_1 <= 0.0))
		tmp = Float64(x + Float64(y - Float64(y / Float64(Float64(a - t) / Float64(z - t)))));
	else
		tmp = Float64(x - Float64(y / Float64(t / Float64(a - z))));
	end
	return tmp
end
function tmp = code(x, y, z, t, a)
	tmp = (x + y) - (((z - t) * y) / (a - t));
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (x + y) + ((y * (t - z)) / (a - t));
	tmp = 0.0;
	if (t_1 <= -Inf)
		tmp = x + ((z * (y / t)) - (a / (t / y)));
	elseif ((t_1 <= -1e-243) || ~((t_1 <= 0.0)))
		tmp = x + (y - (y / ((a - t) / (z - t))));
	else
		tmp = x - (y / (t / (a - z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision] - N[(a / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t$95$1, -1e-243], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(y - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + \left(z \cdot \frac{y}{t} - \frac{a}{\frac{t}{y}}\right)\\

\mathbf{elif}\;t_1 \leq -1 \cdot 10^{-243} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \left(y - \frac{y}{\frac{a - t}{z - t}}\right)\\

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


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original16.6
Target8.6
Herbie4.7
\[\begin{array}{l} \mathbf{if}\;\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} < -1.3664970889390727 \cdot 10^{-7}:\\ \;\;\;\;\left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\ \mathbf{elif}\;\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} < 1.4754293444577233 \cdot 10^{-239}:\\ \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;\left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\ \end{array} \]

Derivation?

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

    1. Initial program 64.0

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

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

      [Start]64.0

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

      associate--l+ [=>]64.0

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

      sub-neg [=>]64.0

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

      +-commutative [=>]64.0

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

      distribute-neg-frac [=>]64.0

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

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

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

      associate-*r/ [<=]20.9

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

      mul-1-neg [<=]20.9

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

      associate-*r/ [<=]20.9

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

      fma-def [=>]30.0

      \[ x + \color{blue}{\mathsf{fma}\left(z - t, -1 \cdot \frac{y}{a - t}, y\right)} \]
    3. Taylor expanded in t around inf 53.0

      \[\leadsto \color{blue}{-1 \cdot \frac{a \cdot y}{t} + \left(y + \left(\frac{y \cdot z}{t} + \left(-1 \cdot y + x\right)\right)\right)} \]
    4. Simplified17.6

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

      [Start]53.0

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

      associate-+r+ [=>]57.9

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

      associate-+r+ [=>]57.9

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

      associate-+r+ [=>]49.5

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

      associate-+r+ [<=]44.3

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

      +-commutative [=>]44.3

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

      mul-1-neg [=>]44.3

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

      unsub-neg [=>]44.3

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

      +-commutative [=>]44.3

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

      associate-+l+ [=>]38.8

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

      associate-/l* [=>]27.5

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

      associate-/r/ [=>]26.8

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

      distribute-lft1-in [=>]26.8

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

      metadata-eval [=>]26.8

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

      mul0-lft [=>]26.8

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

      associate-/l* [=>]17.6

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

    if -inf.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -9.99999999999999995e-244 or 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t)))

    1. Initial program 7.9

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

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

      [Start]7.9

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

      +-rgt-identity [<=]7.9

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

      associate-+l+ [=>]7.9

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

      associate-+r- [<=]7.8

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

      +-rgt-identity [=>]7.8

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

      *-commutative [=>]7.8

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

      associate-/l* [=>]3.8

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

    if -9.99999999999999995e-244 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0

    1. Initial program 59.1

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

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

      [Start]59.1

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

      +-rgt-identity [<=]59.1

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

      associate-+l+ [=>]59.1

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

      associate-+r- [<=]34.2

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

      +-rgt-identity [=>]34.2

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

      *-commutative [=>]34.2

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

      associate-/l* [=>]34.1

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

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

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

      [Start]0.9

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

      *-commutative [<=]0.9

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

      distribute-lft-out-- [=>]0.9

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

      distribute-lft-out-- [=>]0.9

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

      associate-*r* [=>]0.9

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

      neg-mul-1 [<=]0.9

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

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

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

      [Start]0.9

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

      +-commutative [=>]0.9

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

      metadata-eval [<=]0.9

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

      associate-*r/ [<=]1.1

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

      cancel-sign-sub-inv [<=]1.1

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

      *-lft-identity [=>]1.1

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

      associate-*r/ [=>]0.9

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

      associate-/l* [=>]1.1

      \[ x - \color{blue}{\frac{y}{\frac{t}{a - z}}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification4.7

    \[\leadsto \begin{array}{l} \mathbf{if}\;\left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t} \leq -\infty:\\ \;\;\;\;x + \left(z \cdot \frac{y}{t} - \frac{a}{\frac{t}{y}}\right)\\ \mathbf{elif}\;\left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t} \leq -1 \cdot 10^{-243} \lor \neg \left(\left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t} \leq 0\right):\\ \;\;\;\;x + \left(y - \frac{y}{\frac{a - t}{z - t}}\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\ \end{array} \]

Alternatives

Alternative 1
Error4.7
Cost3533
\[\begin{array}{l} t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\ \mathbf{if}\;t_1 \leq -\infty:\\ \;\;\;\;x + \frac{y}{t} \cdot \left(z - a\right)\\ \mathbf{elif}\;t_1 \leq -1 \cdot 10^{-243} \lor \neg \left(t_1 \leq 0\right):\\ \;\;\;\;x + \left(y - \frac{y}{\frac{a - t}{z - t}}\right)\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\ \end{array} \]
Alternative 2
Error14.9
Cost1240
\[\begin{array}{l} t_1 := x - \frac{y}{\frac{t}{a}}\\ \mathbf{if}\;a \leq -1.16 \cdot 10^{+54}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq -3.5 \cdot 10^{-7}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 3.5 \cdot 10^{-24}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 0.75:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 4.1 \cdot 10^{+124}:\\ \;\;\;\;x - \frac{y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 3
Error14.9
Cost1240
\[\begin{array}{l} \mathbf{if}\;a \leq -1.1 \cdot 10^{+54}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq -2.8 \cdot 10^{-6}:\\ \;\;\;\;x - \frac{y \cdot a}{t}\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{-23}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{elif}\;a \leq 0.4:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.3 \cdot 10^{+29}:\\ \;\;\;\;x - \frac{y}{\frac{t}{a}}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+124}:\\ \;\;\;\;x - \frac{y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 4
Error14.9
Cost1108
\[\begin{array}{l} t_1 := x + z \cdot \frac{y}{t}\\ \mathbf{if}\;a \leq -6.8 \cdot 10^{+53}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 5.6 \cdot 10^{-25}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 0.9:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 8200000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 6 \cdot 10^{+124}:\\ \;\;\;\;x - \frac{y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 5
Error11.4
Cost968
\[\begin{array}{l} t_1 := \frac{t}{a - z}\\ \mathbf{if}\;t \leq -1080000000000:\\ \;\;\;\;x - \frac{y}{t_1}\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{-57}:\\ \;\;\;\;\left(x + y\right) - \frac{z}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-1}{t_1}\\ \end{array} \]
Alternative 6
Error7.3
Cost968
\[\begin{array}{l} t_1 := \frac{t}{a - z}\\ \mathbf{if}\;t \leq -1.12 \cdot 10^{+15}:\\ \;\;\;\;x - \frac{y}{t_1}\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{+80}:\\ \;\;\;\;\left(x + y\right) - \frac{z}{\frac{a - t}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-1}{t_1}\\ \end{array} \]
Alternative 7
Error11.4
Cost841
\[\begin{array}{l} \mathbf{if}\;t \leq -2700000000000 \lor \neg \left(t \leq 4.5 \cdot 10^{-55}\right):\\ \;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\ \mathbf{else}:\\ \;\;\;\;\left(x + y\right) - \frac{z}{\frac{a}{y}}\\ \end{array} \]
Alternative 8
Error10.8
Cost840
\[\begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+54}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 3.9 \cdot 10^{+124}:\\ \;\;\;\;x + \frac{y}{\frac{t - a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 9
Error22.7
Cost716
\[\begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{+52}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.56 \cdot 10^{-212}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{-63}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 10
Error22.7
Cost716
\[\begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{+52}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.56 \cdot 10^{-212}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{-63}:\\ \;\;\;\;z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 11
Error14.5
Cost712
\[\begin{array}{l} \mathbf{if}\;a \leq -4.2 \cdot 10^{+53}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-23}:\\ \;\;\;\;x + z \cdot \frac{y}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 12
Error27.1
Cost460
\[\begin{array}{l} \mathbf{if}\;y \leq -4.2 \cdot 10^{+192}:\\ \;\;\;\;y\\ \mathbf{elif}\;y \leq 2.25 \cdot 10^{+164}:\\ \;\;\;\;x\\ \mathbf{elif}\;y \leq 10^{+291}:\\ \;\;\;\;y\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 13
Error20.1
Cost456
\[\begin{array}{l} \mathbf{if}\;a \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;a \leq 1.45 \cdot 10^{-147}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
Alternative 14
Error28.9
Cost64
\[x \]

Error

Reproduce?

herbie shell --seed 2023060 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
  :precision binary64

  :herbie-target
  (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))

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