?

Average Error: 24.1 → 6.4
Time: 26.9s
Precision: binary64
Cost: 4432

?

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

\mathbf{elif}\;t_2 \leq -1 \cdot 10^{-272}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t_2 \leq 0:\\
\;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\

\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_2\\

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


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original24.1
Target9.3
Herbie6.4
\[\begin{array}{l} \mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\ \;\;\;\;x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\ \;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\ \end{array} \]

Derivation?

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

    1. Initial program 63.2

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

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

      [Start]63.2

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

      associate-*l/ [<=]17.4

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

    if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999993e-273 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 2.0000000000000001e299

    1. Initial program 1.9

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

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

    1. Initial program 58.0

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

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

      [Start]58.0

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

      associate-/l* [=>]58.0

      \[ x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
    3. Taylor expanded in t around inf 2.9

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

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

      [Start]2.9

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

      +-commutative [=>]2.9

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

      associate--l+ [=>]2.9

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

      *-commutative [=>]2.9

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

      associate-*r/ [=>]2.9

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

      associate-*r/ [=>]2.9

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

      div-sub [<=]2.9

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

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

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

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

Alternatives

Alternative 1
Error6.8
Cost8004
\[\begin{array}{l} t_1 := x - \frac{\left(z - t\right) \cdot \left(x - y\right)}{a - t}\\ \mathbf{if}\;t_1 \leq -1 \cdot 10^{-272}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \mathbf{elif}\;t_1 \leq 0:\\ \;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \end{array} \]
Alternative 2
Error6.8
Cost2633
\[\begin{array}{l} t_1 := x - \frac{\left(z - t\right) \cdot \left(x - y\right)}{a - t}\\ \mathbf{if}\;t_1 \leq -1 \cdot 10^{-272} \lor \neg \left(t_1 \leq 0\right):\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\ \end{array} \]
Alternative 3
Error38.6
Cost1504
\[\begin{array}{l} t_1 := z \cdot \frac{y - x}{a}\\ \mathbf{if}\;a \leq -1.7 \cdot 10^{+90}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -6.6 \cdot 10^{+70}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.9 \cdot 10^{+47}:\\ \;\;\;\;y\\ \mathbf{elif}\;a \leq -3.8 \cdot 10^{-60}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+145}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 9.6 \cdot 10^{+204}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.2 \cdot 10^{+253}:\\ \;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 4
Error19.6
Cost1497
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - \left(z - t\right) \cdot \frac{x - y}{a}\\ \mathbf{if}\;a \leq -5.3 \cdot 10^{+73}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-9}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.5 \cdot 10^{-77}:\\ \;\;\;\;x - \frac{z \cdot \left(x - y\right)}{a}\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112} \lor \neg \left(a \leq 2.3 \cdot 10^{+145}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error20.4
Cost1497
\[\begin{array}{l} t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a}\\ \mathbf{if}\;a \leq -1.2 \cdot 10^{+71}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.05 \cdot 10^{+48}:\\ \;\;\;\;y + a \cdot \frac{y - x}{t}\\ \mathbf{elif}\;a \leq -1.9 \cdot 10^{-28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+112} \lor \neg \left(a \leq 2.35 \cdot 10^{+145}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \end{array} \]
Alternative 6
Error21.6
Cost1497
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - \left(z - t\right) \cdot \frac{x - y}{a}\\ \mathbf{if}\;a \leq -2.1 \cdot 10^{+80}:\\ \;\;\;\;x + \frac{t}{a - t} \cdot \left(x - y\right)\\ \mathbf{elif}\;a \leq -8.5 \cdot 10^{+30}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -3.1 \cdot 10^{-28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y - \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112} \lor \neg \left(a \leq 2.8 \cdot 10^{+145}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Error20.8
Cost1497
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - \left(z - t\right) \cdot \frac{x - y}{a}\\ \mathbf{if}\;a \leq -6.4 \cdot 10^{+75}:\\ \;\;\;\;x + \frac{t}{a - t} \cdot \left(x - y\right)\\ \mathbf{elif}\;a \leq -5.4 \cdot 10^{+39}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.05 \cdot 10^{-27}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112} \lor \neg \left(a \leq 2.3 \cdot 10^{+145}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Error20.0
Cost1497
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - \left(z - t\right) \cdot \frac{x - y}{a}\\ \mathbf{if}\;a \leq -1.45 \cdot 10^{+80}:\\ \;\;\;\;x + \frac{t}{a - t} \cdot \left(x - y\right)\\ \mathbf{elif}\;a \leq -1.02 \cdot 10^{+33}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -7.2 \cdot 10^{-28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112} \lor \neg \left(a \leq 2.3 \cdot 10^{+145}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error21.9
Cost1369
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x + \frac{y - x}{\frac{a}{z}}\\ \mathbf{if}\;a \leq -1.6 \cdot 10^{+81}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -7 \cdot 10^{-9}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.5 \cdot 10^{-77}:\\ \;\;\;\;x - \frac{z \cdot \left(x - y\right)}{a}\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-102}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z}}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+112} \lor \neg \left(a \leq 3.4 \cdot 10^{+145}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 10
Error29.3
Cost1368
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - x \cdot \frac{z}{a}\\ \mathbf{if}\;x \leq -4.2 \cdot 10^{+128}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -7.2 \cdot 10^{+69}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.5 \cdot 10^{-67}:\\ \;\;\;\;x - \frac{x \cdot z}{a}\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{-35}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 9.2 \cdot 10^{+199}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 3.2 \cdot 10^{+258}:\\ \;\;\;\;x \cdot \frac{z - a}{t}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(\frac{t}{a - t} + 1\right)\\ \end{array} \]
Alternative 11
Error11.4
Cost1361
\[\begin{array}{l} t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\ \mathbf{if}\;a \leq -1.2 \cdot 10^{+71}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.2 \cdot 10^{+48}:\\ \;\;\;\;y + a \cdot \frac{y - x}{t}\\ \mathbf{elif}\;a \leq -5.9 \cdot 10^{-154} \lor \neg \left(a \leq 1.3 \cdot 10^{-108}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \end{array} \]
Alternative 12
Error29.2
Cost1240
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x - x \cdot \frac{z}{a}\\ \mathbf{if}\;x \leq -7.2 \cdot 10^{+126}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -5.7 \cdot 10^{+69}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -2 \cdot 10^{-67}:\\ \;\;\;\;x - \frac{x \cdot z}{a}\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{-32}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{+197}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{+257}:\\ \;\;\;\;x \cdot \frac{z - a}{t}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 13
Error29.6
Cost1042
\[\begin{array}{l} \mathbf{if}\;t \leq -0.00046 \lor \neg \left(t \leq 0.0045\right) \land \left(t \leq 4.4 \cdot 10^{+41} \lor \neg \left(t \leq 2.75 \cdot 10^{+66}\right)\right):\\ \;\;\;\;\frac{y}{\frac{a - t}{-t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \end{array} \]
Alternative 14
Error36.3
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -7.5 \cdot 10^{+71}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 6 \cdot 10^{-46}:\\ \;\;\;\;y\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+145}:\\ \;\;\;\;z \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 15
Error36.3
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -1.55 \cdot 10^{+71}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 6 \cdot 10^{-46}:\\ \;\;\;\;y\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+145}:\\ \;\;\;\;\frac{z}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 16
Error36.3
Cost848
\[\begin{array}{l} \mathbf{if}\;a \leq -2.3 \cdot 10^{+71}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 6 \cdot 10^{-46}:\\ \;\;\;\;y\\ \mathbf{elif}\;a \leq 4.5 \cdot 10^{+112}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+145}:\\ \;\;\;\;\frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 17
Error36.4
Cost844
\[\begin{array}{l} \mathbf{if}\;t \leq -1.06 \cdot 10^{+68}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{-242}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-178}:\\ \;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\ \mathbf{elif}\;t \leq 1420000:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 18
Error21.6
Cost841
\[\begin{array}{l} \mathbf{if}\;t \leq -0.00055 \lor \neg \left(t \leq 0.036\right):\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\ \end{array} \]
Alternative 19
Error19.9
Cost841
\[\begin{array}{l} \mathbf{if}\;t \leq -3.55 \cdot 10^{+68} \lor \neg \left(t \leq 0.00145\right):\\ \;\;\;\;y - \frac{a - z}{\frac{t}{x}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\ \end{array} \]
Alternative 20
Error30.9
Cost712
\[\begin{array}{l} \mathbf{if}\;t \leq -3.95 \cdot 10^{+68}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 7.5 \cdot 10^{+66}:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 21
Error35.7
Cost328
\[\begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{+68}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 290000:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 22
Error45.7
Cost64
\[x \]

Error

Reproduce?

herbie shell --seed 2023039 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
  :precision binary64

  :herbie-target
  (if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))

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