?

Average Error: 23.8 → 8.0
Time: 26.9s
Precision: binary64
Cost: 1097

?

\[x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t} \]
\[\begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+116} \lor \neg \left(t \leq 2.85 \cdot 10^{+146}\right):\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\ \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
 (if (or (<= t -5e+116) (not (<= t 2.85e+146)))
   (+ y (/ (- x y) (/ t (- z a))))
   (- x (/ (- x y) (/ (- a t) (- z t))))))
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 tmp;
	if ((t <= -5e+116) || !(t <= 2.85e+146)) {
		tmp = y + ((x - y) / (t / (z - a)));
	} else {
		tmp = x - ((x - y) / ((a - t) / (z - t)));
	}
	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) :: tmp
    if ((t <= (-5d+116)) .or. (.not. (t <= 2.85d+146))) then
        tmp = y + ((x - y) / (t / (z - a)))
    else
        tmp = x - ((x - y) / ((a - t) / (z - t)))
    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 tmp;
	if ((t <= -5e+116) || !(t <= 2.85e+146)) {
		tmp = y + ((x - y) / (t / (z - a)));
	} else {
		tmp = x - ((x - y) / ((a - t) / (z - t)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	return x + (((y - x) * (z - t)) / (a - t))
def code(x, y, z, t, a):
	tmp = 0
	if (t <= -5e+116) or not (t <= 2.85e+146):
		tmp = y + ((x - y) / (t / (z - a)))
	else:
		tmp = x - ((x - y) / ((a - t) / (z - t)))
	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)
	tmp = 0.0
	if ((t <= -5e+116) || !(t <= 2.85e+146))
		tmp = Float64(y + Float64(Float64(x - y) / Float64(t / Float64(z - a))));
	else
		tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(z - t))));
	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)
	tmp = 0.0;
	if ((t <= -5e+116) || ~((t <= 2.85e+146)))
		tmp = y + ((x - y) / (t / (z - a)));
	else
		tmp = x - ((x - y) / ((a - t) / (z - t)));
	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_] := If[Or[LessEqual[t, -5e+116], N[Not[LessEqual[t, 2.85e+146]], $MachinePrecision]], N[(y + N[(N[(x - y), $MachinePrecision] / N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+116} \lor \neg \left(t \leq 2.85 \cdot 10^{+146}\right):\\
\;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\

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


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original23.8
Target9.3
Herbie8.0
\[\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 2 regimes
  2. if t < -5.00000000000000025e116 or 2.85e146 < t

    1. Initial program 45.1

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

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

      [Start]45.1

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

      associate-/l* [=>]21.4

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

      \[\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. Simplified10.5

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

      [Start]23.3

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

      +-commutative [=>]23.3

      \[ \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+ [=>]23.3

      \[ \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)} \]

      associate-*r/ [=>]23.3

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

      associate-*r/ [=>]23.3

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

      div-sub [<=]23.3

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

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

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

      *-commutative [=>]23.3

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

      associate-*r/ [<=]23.3

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

      mul-1-neg [=>]23.3

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

      unsub-neg [=>]23.3

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

      *-commutative [<=]23.3

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

      distribute-rgt-out-- [=>]23.3

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

    if -5.00000000000000025e116 < t < 2.85e146

    1. Initial program 13.6

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

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

      [Start]13.6

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

      associate-/l* [=>]6.8

      \[ x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification8.0

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5 \cdot 10^{+116} \lor \neg \left(t \leq 2.85 \cdot 10^{+146}\right):\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{x - y}{\frac{a - t}{z - t}}\\ \end{array} \]

Alternatives

Alternative 1
Error6.6
Cost5332
\[\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^{-189}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq -1 \cdot 10^{-290}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_2 \leq 0:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{elif}\;t_2 \leq 10^{+306}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Error30.6
Cost1632
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\ \;\;\;\;\frac{z - a}{\frac{t}{x}}\\ \mathbf{elif}\;t \leq -2.4 \cdot 10^{-16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.9 \cdot 10^{-44}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.15 \cdot 10^{-290}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.28 \cdot 10^{-280}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 0.47:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 3
Error32.4
Cost1504
\[\begin{array}{l} t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\ t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\ \;\;\;\;\frac{x \cdot \left(z - a\right)}{t}\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-252}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-290}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.16 \cdot 10^{-280}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 3.6:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 4
Error32.3
Cost1504
\[\begin{array}{l} t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\ t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{+122}:\\ \;\;\;\;\frac{z - a}{\frac{t}{x}}\\ \mathbf{elif}\;t \leq -8.2 \cdot 10^{-16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-252}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-290}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 1.75:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Error32.5
Cost1504
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\ \;\;\;\;\frac{z - a}{\frac{t}{x}}\\ \mathbf{elif}\;t \leq -9.6 \cdot 10^{-17}:\\ \;\;\;\;\frac{-y}{\frac{a - t}{t}}\\ \mathbf{elif}\;t \leq -9.4 \cdot 10^{-253}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.15 \cdot 10^{-290}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-280}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 19:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 6
Error21.8
Cost1500
\[\begin{array}{l} t_1 := y + z \cdot \frac{x - y}{t}\\ t_2 := x + z \cdot \frac{y - x}{a}\\ \mathbf{if}\;a \leq -1.6 \cdot 10^{+183}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{+134}:\\ \;\;\;\;x + \frac{y}{1 + \frac{z - a}{t}}\\ \mathbf{elif}\;a \leq -8.8 \cdot 10^{-8}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -2.3 \cdot 10^{-46}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-93}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{-162}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 4.3 \cdot 10^{+44}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 7
Error34.2
Cost1372
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -8.5 \cdot 10^{-16}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.9 \cdot 10^{-65}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -9.5 \cdot 10^{-90}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.7 \cdot 10^{-114}:\\ \;\;\;\;x \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{-298}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-280}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq 960000:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 8
Error23.9
Cost1369
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;t \leq -1.6 \cdot 10^{+134}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.28 \cdot 10^{+123}:\\ \;\;\;\;\frac{z - a}{\frac{t}{x}}\\ \mathbf{elif}\;t \leq -8 \cdot 10^{-17}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-47}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq -4.7 \cdot 10^{-110} \lor \neg \left(t \leq 6200\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \end{array} \]
Alternative 9
Error10.7
Cost1361
\[\begin{array}{l} t_1 := x - \left(z - t\right) \cdot \frac{x - y}{a - t}\\ \mathbf{if}\;a \leq -1.95 \cdot 10^{-19}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.06 \cdot 10^{-44}:\\ \;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-99} \lor \neg \left(a \leq 1.15 \cdot 10^{-60}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \end{array} \]
Alternative 10
Error32.0
Cost1240
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -8 \cdot 10^{-16}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -9.4 \cdot 10^{-253}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{-291}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-298}:\\ \;\;\;\;x - \frac{z}{\frac{a}{x}}\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq 0.48:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 11
Error32.2
Cost1240
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -1.35 \cdot 10^{-16}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-240}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-291}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\ \;\;\;\;\frac{z}{\frac{a}{y - x}}\\ \mathbf{elif}\;t \leq 1160:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 12
Error32.3
Cost1240
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -1.95 \cdot 10^{-16}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.02 \cdot 10^{-241}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -7.8 \cdot 10^{-291}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z}}\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a}\\ \mathbf{elif}\;t \leq 4:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 13
Error23.4
Cost1237
\[\begin{array}{l} t_1 := y \cdot \frac{z - t}{a - t}\\ \mathbf{if}\;t \leq -9.2 \cdot 10^{+234}:\\ \;\;\;\;y - a \cdot \frac{x - y}{t}\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-16}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-41}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq -3.6 \cdot 10^{-109} \lor \neg \left(t \leq 7100\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \end{array} \]
Alternative 14
Error21.8
Cost1236
\[\begin{array}{l} t_1 := y + z \cdot \frac{x - y}{t}\\ t_2 := x + z \cdot \frac{y - x}{a}\\ \mathbf{if}\;a \leq -5 \cdot 10^{-8}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -8.5 \cdot 10^{-47}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -2.6 \cdot 10^{-93}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{-174}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.45 \cdot 10^{+45}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 15
Error18.9
Cost1234
\[\begin{array}{l} \mathbf{if}\;t \leq -5.8 \cdot 10^{-17} \lor \neg \left(t \leq -4.5 \cdot 10^{-51}\right) \land \left(t \leq -3.8 \cdot 10^{-109} \lor \neg \left(t \leq 0.0235\right)\right):\\ \;\;\;\;y + \frac{x - y}{\frac{t}{z - a}}\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \end{array} \]
Alternative 16
Error31.3
Cost976
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ t_2 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -7 \cdot 10^{-16}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-298}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{-280}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq 1.1:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 17
Error31.5
Cost976
\[\begin{array}{l} t_1 := y \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{if}\;t \leq -7.5 \cdot 10^{-17}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 5 \cdot 10^{-298}:\\ \;\;\;\;x - \frac{z}{\frac{a}{x}}\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-280}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{elif}\;t \leq 1020000:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 18
Error18.3
Cost969
\[\begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{-19} \lor \neg \left(t \leq 0.0008\right):\\ \;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\ \mathbf{else}:\\ \;\;\;\;x + z \cdot \frac{y - x}{a}\\ \end{array} \]
Alternative 19
Error35.9
Cost328
\[\begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{+14}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 240000:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 20
Error45.9
Cost64
\[x \]

Error

Reproduce?

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