?

Average Accuracy: 62.9% → 87.8%
Time: 30.4s
Precision: binary64
Cost: 1732

?

\[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
\[\begin{array}{l} t_1 := \frac{y - x}{t} \cdot \left(a - z\right)\\ \mathbf{if}\;t \leq -2.2 \cdot 10^{+164}:\\ \;\;\;\;\left(y + t_1\right) + \frac{a}{t} \cdot t_1\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+142}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \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 (* (/ (- y x) t) (- a z))))
   (if (<= t -2.2e+164)
     (+ (+ y t_1) (* (/ a t) t_1))
     (if (<= t 3.6e+142)
       (+ x (/ (- y x) (/ (- a t) (- z t))))
       (+ y (/ (- x y) (/ t (- z a))))))))
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 = ((y - x) / t) * (a - z);
	double tmp;
	if (t <= -2.2e+164) {
		tmp = (y + t_1) + ((a / t) * t_1);
	} else if (t <= 3.6e+142) {
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	} else {
		tmp = y + ((x - y) / (t / (z - a)));
	}
	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 - x) * (z - t)) / (a - t))
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) :: tmp
    t_1 = ((y - x) / t) * (a - z)
    if (t <= (-2.2d+164)) then
        tmp = (y + t_1) + ((a / t) * t_1)
    else if (t <= 3.6d+142) then
        tmp = x + ((y - x) / ((a - t) / (z - t)))
    else
        tmp = y + ((x - y) / (t / (z - a)))
    end if
    code = tmp
end function
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 = ((y - x) / t) * (a - z);
	double tmp;
	if (t <= -2.2e+164) {
		tmp = (y + t_1) + ((a / t) * t_1);
	} else if (t <= 3.6e+142) {
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	} else {
		tmp = y + ((x - y) / (t / (z - a)));
	}
	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 = ((y - x) / t) * (a - z)
	tmp = 0
	if t <= -2.2e+164:
		tmp = (y + t_1) + ((a / t) * t_1)
	elif t <= 3.6e+142:
		tmp = x + ((y - x) / ((a - t) / (z - t)))
	else:
		tmp = y + ((x - y) / (t / (z - a)))
	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(Float64(Float64(y - x) / t) * Float64(a - z))
	tmp = 0.0
	if (t <= -2.2e+164)
		tmp = Float64(Float64(y + t_1) + Float64(Float64(a / t) * t_1));
	elseif (t <= 3.6e+142)
		tmp = Float64(x + Float64(Float64(y - x) / Float64(Float64(a - t) / Float64(z - t))));
	else
		tmp = Float64(y + Float64(Float64(x - y) / Float64(t / Float64(z - a))));
	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 = ((y - x) / t) * (a - z);
	tmp = 0.0;
	if (t <= -2.2e+164)
		tmp = (y + t_1) + ((a / t) * t_1);
	elseif (t <= 3.6e+142)
		tmp = x + ((y - x) / ((a - t) / (z - t)));
	else
		tmp = y + ((x - y) / (t / (z - a)));
	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[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.2e+164], N[(N[(y + t$95$1), $MachinePrecision] + N[(N[(a / t), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+142], N[(x + N[(N[(y - x), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\begin{array}{l}
t_1 := \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+164}:\\
\;\;\;\;\left(y + t_1\right) + \frac{a}{t} \cdot t_1\\

\mathbf{elif}\;t \leq 3.6 \cdot 10^{+142}:\\
\;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\

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


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original62.9%
Target85.4%
Herbie87.8%
\[\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 t < -2.20000000000000006e164

    1. Initial program 25.4%

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

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

      [Start]25.4

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

      +-commutative [=>]25.4

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

      associate-*r/ [<=]62.0

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

      *-commutative [<=]62.0

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

      fma-def [=>]62.0

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

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

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

      [Start]54.7

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

      +-commutative [=>]54.7

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

      *-commutative [<=]54.7

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

      *-commutative [=>]54.7

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

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

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

      associate-*r* [<=]54.7

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

      *-commutative [<=]54.7

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

      associate-*r* [<=]54.7

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

      *-commutative [<=]54.7

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

      associate-*r/ [<=]54.7

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

      associate-+r+ [<=]54.7

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

    if -2.20000000000000006e164 < t < 3.6000000000000001e142

    1. Initial program 76.9%

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

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

      [Start]76.9

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

      associate-/l* [=>]88.8

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

    if 3.6000000000000001e142 < t

    1. Initial program 28.6%

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

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

      [Start]28.6

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

      +-commutative [=>]28.6

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

      associate-*l/ [<=]58.8

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

      fma-def [=>]58.8

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

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

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

      [Start]62.0

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

      mul-1-neg [=>]62.0

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

      unsub-neg [=>]62.0

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

      +-commutative [=>]62.0

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

      associate-*r* [=>]62.0

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

      distribute-rgt-out [=>]62.0

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

      associate-/l* [=>]84.9

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

      mul-1-neg [=>]84.9

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.2 \cdot 10^{+164}:\\ \;\;\;\;\left(y + \frac{y - x}{t} \cdot \left(a - z\right)\right) + \frac{a}{t} \cdot \left(\frac{y - x}{t} \cdot \left(a - z\right)\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+142}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy88.5%
Cost4432
\[\begin{array}{l} t_1 := y + \frac{y - x}{t} \cdot \left(a - z\right)\\ 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 -5 \cdot 10^{-280}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq 0:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{+286}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Accuracy87.8%
Cost1348
\[\begin{array}{l} \mathbf{if}\;t \leq -3.4 \cdot 10^{+165}:\\ \;\;\;\;y + \frac{y - x}{t} \cdot \left(\left(a - z\right) + \frac{a}{t} \cdot \left(a - z\right)\right)\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{+139}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \end{array} \]
Alternative 3
Accuracy50.3%
Cost1240
\[\begin{array}{l} t_1 := x + y \cdot \frac{z}{a}\\ \mathbf{if}\;t \leq -1.06 \cdot 10^{+25}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -8.2 \cdot 10^{-16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -4.6 \cdot 10^{-52}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -3 \cdot 10^{-244}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq 3.1 \cdot 10^{-72}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-50}:\\ \;\;\;\;z \cdot \frac{x}{t - a}\\ \mathbf{elif}\;t \leq 3.2:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 4
Accuracy48.1%
Cost1240
\[\begin{array}{l} t_1 := \frac{z - t}{\frac{-t}{y}}\\ \mathbf{if}\;t \leq -1.4 \cdot 10^{+30}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.3 \cdot 10^{-15}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-52}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 0.0195:\\ \;\;\;\;x - \frac{x}{\frac{a}{z}}\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{+21}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{+57}:\\ \;\;\;\;x \cdot \frac{z - a}{t}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 5
Accuracy70.3%
Cost1233
\[\begin{array}{l} t_1 := y - \frac{y - x}{\frac{t}{z}}\\ \mathbf{if}\;t \leq -9 \cdot 10^{+24}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.05 \cdot 10^{-15}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{-52} \lor \neg \left(t \leq 170\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\ \end{array} \]
Alternative 6
Accuracy70.5%
Cost1232
\[\begin{array}{l} t_1 := y - \frac{y - x}{\frac{t}{z}}\\ \mathbf{if}\;t \leq -3.6 \cdot 10^{+24}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -145:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -7.5 \cdot 10^{-52}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t \leq 6.7:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Accuracy73.8%
Cost1232
\[\begin{array}{l} t_1 := y + \frac{y - x}{t} \cdot \left(a - z\right)\\ \mathbf{if}\;t \leq -4.1 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2300:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-55}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t \leq 26:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 8
Accuracy74.5%
Cost1232
\[\begin{array}{l} t_1 := y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{if}\;t \leq -1.35 \cdot 10^{+28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -580:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -1.35 \cdot 10^{-53}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t \leq 27:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Accuracy68.3%
Cost1105
\[\begin{array}{l} t_1 := y - \frac{y - x}{\frac{t}{z}}\\ \mathbf{if}\;t \leq -5.8 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2 \cdot 10^{-15}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -7 \cdot 10^{-59} \lor \neg \left(t \leq 0.039\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\ \end{array} \]
Alternative 10
Accuracy53.9%
Cost1104
\[\begin{array}{l} t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{if}\;t \leq -1.05 \cdot 10^{+165}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -9.5 \cdot 10^{-87}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 0.00028:\\ \;\;\;\;x - \frac{x}{\frac{a}{z}}\\ \mathbf{elif}\;t \leq 1.26 \cdot 10^{+194}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 11
Accuracy63.1%
Cost1104
\[\begin{array}{l} t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{if}\;t \leq -7.2 \cdot 10^{+164}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{+23}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 21:\\ \;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\ \mathbf{elif}\;t \leq 1.3 \cdot 10^{+194}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 12
Accuracy65.2%
Cost1104
\[\begin{array}{l} t_1 := \left(z - t\right) \cdot \frac{y}{a - t}\\ t_2 := y + \frac{y - x}{t} \cdot a\\ \mathbf{if}\;t \leq -3.3 \cdot 10^{+165}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{+23}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 0.112:\\ \;\;\;\;x - \frac{x - y}{\frac{a}{z}}\\ \mathbf{elif}\;t \leq 9.5 \cdot 10^{+167}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 13
Accuracy85.1%
Cost1097
\[\begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{+165} \lor \neg \left(t \leq 1.8 \cdot 10^{+141}\right):\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\ \end{array} \]
Alternative 14
Accuracy88.1%
Cost1097
\[\begin{array}{l} \mathbf{if}\;t \leq -7.8 \cdot 10^{+164} \lor \neg \left(t \leq 3.6 \cdot 10^{+142}\right):\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \end{array} \]
Alternative 15
Accuracy48.0%
Cost976
\[\begin{array}{l} \mathbf{if}\;t \leq -2 \cdot 10^{+30}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -3.3 \cdot 10^{-16}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-52}:\\ \;\;\;\;z \cdot \frac{x - y}{t}\\ \mathbf{elif}\;t \leq 3.7:\\ \;\;\;\;x - \frac{x}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 16
Accuracy47.9%
Cost976
\[\begin{array}{l} \mathbf{if}\;t \leq -5.7 \cdot 10^{+25}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.35 \cdot 10^{-16}:\\ \;\;\;\;x + y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq -7.6 \cdot 10^{-52}:\\ \;\;\;\;\frac{-z}{\frac{t}{y - x}}\\ \mathbf{elif}\;t \leq 0.125:\\ \;\;\;\;x - \frac{x}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 17
Accuracy48.2%
Cost712
\[\begin{array}{l} \mathbf{if}\;t \leq -3.8 \cdot 10^{+29}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 3.35:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 18
Accuracy43.8%
Cost328
\[\begin{array}{l} \mathbf{if}\;t \leq -1.24 \cdot 10^{+30}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 0.048:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 19
Accuracy3.0%
Cost64
\[0 \]
Alternative 20
Accuracy28.5%
Cost64
\[x \]

Error

Reproduce?

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