Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3

?

Percentage Accurate: 69.1% → 90.5%
Time: 28.1s
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{y - x}{a - t}\\ t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\ \mathbf{if}\;t_2 \leq -5 \cdot 10^{+307}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_2 \leq -2 \cdot 10^{-227}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{-305}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{+301}:\\ \;\;\;\;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) (/ (- y x) (- a t)))))
        (t_2 (- x (/ (* (- y x) (- t z)) (- a t)))))
   (if (<= t_2 -5e+307)
     t_1
     (if (<= t_2 -2e-227)
       t_2
       (if (<= t_2 5e-305)
         (+ y (/ (* (- y x) (- a z)) t))
         (if (<= t_2 5e+301) 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) * ((y - x) / (a - t)));
	double t_2 = x - (((y - x) * (t - z)) / (a - t));
	double tmp;
	if (t_2 <= -5e+307) {
		tmp = t_1;
	} else if (t_2 <= -2e-227) {
		tmp = t_2;
	} else if (t_2 <= 5e-305) {
		tmp = y + (((y - x) * (a - z)) / t);
	} else if (t_2 <= 5e+301) {
		tmp = t_2;
	} 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 - 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) :: t_2
    real(8) :: tmp
    t_1 = x + ((z - t) * ((y - x) / (a - t)))
    t_2 = x - (((y - x) * (t - z)) / (a - t))
    if (t_2 <= (-5d+307)) then
        tmp = t_1
    else if (t_2 <= (-2d-227)) then
        tmp = t_2
    else if (t_2 <= 5d-305) then
        tmp = y + (((y - x) * (a - z)) / t)
    else if (t_2 <= 5d+301) then
        tmp = t_2
    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 - 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) * ((y - x) / (a - t)));
	double t_2 = x - (((y - x) * (t - z)) / (a - t));
	double tmp;
	if (t_2 <= -5e+307) {
		tmp = t_1;
	} else if (t_2 <= -2e-227) {
		tmp = t_2;
	} else if (t_2 <= 5e-305) {
		tmp = y + (((y - x) * (a - z)) / t);
	} else if (t_2 <= 5e+301) {
		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) * ((y - x) / (a - t)))
	t_2 = x - (((y - x) * (t - z)) / (a - t))
	tmp = 0
	if t_2 <= -5e+307:
		tmp = t_1
	elif t_2 <= -2e-227:
		tmp = t_2
	elif t_2 <= 5e-305:
		tmp = y + (((y - x) * (a - z)) / t)
	elif t_2 <= 5e+301:
		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(y - x) / Float64(a - t))))
	t_2 = Float64(x - Float64(Float64(Float64(y - x) * Float64(t - z)) / Float64(a - t)))
	tmp = 0.0
	if (t_2 <= -5e+307)
		tmp = t_1;
	elseif (t_2 <= -2e-227)
		tmp = t_2;
	elseif (t_2 <= 5e-305)
		tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t));
	elseif (t_2 <= 5e+301)
		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) * ((y - x) / (a - t)));
	t_2 = x - (((y - x) * (t - z)) / (a - t));
	tmp = 0.0;
	if (t_2 <= -5e+307)
		tmp = t_1;
	elseif (t_2 <= -2e-227)
		tmp = t_2;
	elseif (t_2 <= 5e-305)
		tmp = y + (((y - x) * (a - z)) / t);
	elseif (t_2 <= 5e+301)
		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[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(y - x), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+307], t$95$1, If[LessEqual[t$95$2, -2e-227], t$95$2, If[LessEqual[t$95$2, 5e-305], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+301], 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{y - x}{a - t}\\
t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_2 \leq -5 \cdot 10^{+307}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t_2 \leq -2 \cdot 10^{-227}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;t_2 \leq 5 \cdot 10^{+301}:\\
\;\;\;\;t_2\\

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


\end{array}

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Herbie found 23 alternatives:

AlternativeAccuracySpeedup

Accuracy vs Speed

The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Bogosity?

Bogosity

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original69.1%
Target87.5%
Herbie90.5%
\[\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))) < -5e307 or 5.0000000000000004e301 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 46.3%

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

      \[\leadsto \color{blue}{x + \frac{y - x}{\frac{a - t}{z - t}}} \]
      Step-by-step derivation

      [Start]46.3%

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

      associate-/l* [=>]84.1%

      \[ x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
    3. Applied egg-rr84.1%

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

      [Start]84.1%

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

      associate-/r/ [=>]84.1%

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

    if -5e307 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.99999999999999989e-227 or 4.99999999999999985e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 5.0000000000000004e301

    1. Initial program 96.6%

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

    if -1.99999999999999989e-227 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.99999999999999985e-305

    1. Initial program 7.1%

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

      \[\leadsto \color{blue}{x + \frac{y - x}{\frac{a - t}{z - t}}} \]
      Step-by-step derivation

      [Start]7.1%

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

      associate-/l* [=>]7.1%

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

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

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

      [Start]99.9%

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

      mul-1-neg [=>]99.9%

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

      unsub-neg [=>]99.9%

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

      div-sub [=>]99.9%

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

      *-commutative [<=]99.9%

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

      div-sub [<=]99.9%

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

      distribute-rgt-out-- [=>]99.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t} \leq -5 \cdot 10^{+307}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t} \leq -2 \cdot 10^{-227}:\\ \;\;\;\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\ \mathbf{elif}\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t} \leq 5 \cdot 10^{-305}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t} \leq 5 \cdot 10^{+301}:\\ \;\;\;\;x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy90.5%
Cost4432
\[\begin{array}{l} t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\ t_2 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\ \mathbf{if}\;t_2 \leq -5 \cdot 10^{+307}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t_2 \leq -2 \cdot 10^{-227}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{-305}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t_2 \leq 5 \cdot 10^{+301}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Accuracy88.2%
Cost8648
\[\begin{array}{l} t_1 := \frac{t}{y - x}\\ \mathbf{if}\;t \leq -3.4 \cdot 10^{+122}:\\ \;\;\;\;y + \left(\frac{a}{t} \cdot \left(y - x\right) + \frac{z}{t} \cdot \left(x - y\right)\right)\\ \mathbf{elif}\;t \leq 1.85 \cdot 10^{+118}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;\left(\left(y + \frac{a}{t} \cdot \frac{\mathsf{fma}\left(z, -1, a\right)}{t_1}\right) - \frac{z}{t_1}\right) + \frac{a}{t_1}\\ \end{array} \]
Alternative 3
Accuracy90.0%
Cost2633
\[\begin{array}{l} t_1 := x - \frac{\left(y - x\right) \cdot \left(t - z\right)}{a - t}\\ \mathbf{if}\;t_1 \leq -2 \cdot 10^{-227} \lor \neg \left(t_1 \leq 5 \cdot 10^{-305}\right):\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \end{array} \]
Alternative 4
Accuracy62.1%
Cost1496
\[\begin{array}{l} t_1 := \frac{y}{\frac{a - t}{z - t}}\\ t_2 := x \cdot \left(\frac{t - z}{a - t} + 1\right)\\ \mathbf{if}\;x \leq -2.6 \cdot 10^{+207}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.4 \cdot 10^{+186}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.18 \cdot 10^{+86}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x \leq 1.25 \cdot 10^{-65}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{-21}:\\ \;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\ \mathbf{elif}\;x \leq 10500:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 5
Accuracy66.1%
Cost1496
\[\begin{array}{l} t_1 := x + \frac{y - x}{\frac{a}{z - t}}\\ t_2 := \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{if}\;t \leq -3.3 \cdot 10^{+19}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq -1.85 \cdot 10^{-188}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -4.4 \cdot 10^{-250}:\\ \;\;\;\;\frac{z}{\frac{a - t}{y - x}}\\ \mathbf{elif}\;t \leq 1.25 \cdot 10^{-101}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 7.5 \cdot 10^{-49}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a - t}\\ \mathbf{elif}\;t \leq 3.7 \cdot 10^{-9}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 6
Accuracy60.4%
Cost1369
\[\begin{array}{l} t_1 := x + \frac{y - x}{\frac{a}{z}}\\ \mathbf{if}\;x \leq -1.65 \cdot 10^{+209}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -3.2 \cdot 10^{+116}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x \leq -5.2 \cdot 10^{+90}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-67} \lor \neg \left(x \leq 9.5 \cdot 10^{-20}\right) \land x \leq 2.7 \cdot 10^{+38}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 7
Accuracy60.4%
Cost1369
\[\begin{array}{l} t_1 := x + \frac{y - x}{\frac{a}{z}}\\ \mathbf{if}\;x \leq -3 \cdot 10^{+209}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -6 \cdot 10^{+117}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x \leq -8 \cdot 10^{+88}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-65}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \mathbf{elif}\;x \leq 6 \cdot 10^{-18} \lor \neg \left(x \leq 1.55 \cdot 10^{+39}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \end{array} \]
Alternative 8
Accuracy88.8%
Cost1353
\[\begin{array}{l} \mathbf{if}\;t \leq -5.6 \cdot 10^{+122} \lor \neg \left(t \leq 4.3 \cdot 10^{+118}\right):\\ \;\;\;\;y + \left(\frac{a}{t} \cdot \left(y - x\right) + \frac{z}{t} \cdot \left(x - y\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z - t}}\\ \end{array} \]
Alternative 9
Accuracy66.8%
Cost1232
\[\begin{array}{l} t_1 := x + \left(z - t\right) \cdot \frac{y - x}{a}\\ t_2 := \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{if}\;t \leq -2.75 \cdot 10^{+19}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{-103}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 5.4 \cdot 10^{-49}:\\ \;\;\;\;\frac{\left(y - x\right) \cdot z}{a - t}\\ \mathbf{elif}\;t \leq 8 \cdot 10^{-6}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 10
Accuracy51.6%
Cost1108
\[\begin{array}{l} t_1 := x + \frac{z}{\frac{a}{y}}\\ \mathbf{if}\;t \leq -4.4 \cdot 10^{+24}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -4.8 \cdot 10^{-206}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -1.25 \cdot 10^{-278}:\\ \;\;\;\;x - \frac{z}{\frac{a}{x}}\\ \mathbf{elif}\;t \leq 4 \cdot 10^{-8}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+127}:\\ \;\;\;\;\frac{t - z}{\frac{t}{y}}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 11
Accuracy59.9%
Cost1105
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;x \leq -1.55 \cdot 10^{+209}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -5.8 \cdot 10^{+118}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x \leq -2.15 \cdot 10^{+77} \lor \neg \left(x \leq 5 \cdot 10^{+38}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \end{array} \]
Alternative 12
Accuracy59.7%
Cost1105
\[\begin{array}{l} \mathbf{if}\;x \leq -1.9 \cdot 10^{+209}:\\ \;\;\;\;x + \frac{z}{\frac{a}{y - x}}\\ \mathbf{elif}\;x \leq -2.5 \cdot 10^{+119}:\\ \;\;\;\;z \cdot \frac{y - x}{a - t}\\ \mathbf{elif}\;x \leq -3.5 \cdot 10^{+88} \lor \neg \left(x \leq 1.05 \cdot 10^{+40}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \end{array} \]
Alternative 13
Accuracy82.2%
Cost1096
\[\begin{array}{l} \mathbf{if}\;t \leq -1.42 \cdot 10^{+246}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{+120}:\\ \;\;\;\;x + \left(z - t\right) \cdot \frac{y - x}{a - t}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
Alternative 14
Accuracy46.5%
Cost976
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -18000000:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-242}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 4.6 \cdot 10^{-131}:\\ \;\;\;\;\frac{y}{\frac{a}{z}}\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{+113}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 15
Accuracy44.9%
Cost976
\[\begin{array}{l} t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{if}\;t \leq -3.2:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-242}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.1 \cdot 10^{-42}:\\ \;\;\;\;z \cdot \frac{y}{a - t}\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{+117}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 16
Accuracy50.4%
Cost976
\[\begin{array}{l} t_1 := x + \frac{z}{\frac{a}{y}}\\ \mathbf{if}\;t \leq -1.95 \cdot 10^{+22}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -8.5 \cdot 10^{-207}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -4.9 \cdot 10^{-282}:\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 17
Accuracy50.3%
Cost976
\[\begin{array}{l} t_1 := x + \frac{z}{\frac{a}{y}}\\ \mathbf{if}\;t \leq -3.1 \cdot 10^{+24}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq -1.75 \cdot 10^{-206}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq -2.05 \cdot 10^{-277}:\\ \;\;\;\;x - \frac{z}{\frac{a}{x}}\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{-5}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 18
Accuracy73.8%
Cost969
\[\begin{array}{l} \mathbf{if}\;t \leq -6.8 \cdot 10^{+23} \lor \neg \left(t \leq 2.7 \cdot 10^{+110}\right):\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\ \end{array} \]
Alternative 19
Accuracy74.0%
Cost968
\[\begin{array}{l} \mathbf{if}\;t \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\ \mathbf{elif}\;t \leq 9.2 \cdot 10^{+111}:\\ \;\;\;\;x + \frac{y - x}{\frac{a - t}{z}}\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
Alternative 20
Accuracy58.3%
Cost841
\[\begin{array}{l} \mathbf{if}\;x \leq -3.4 \cdot 10^{+210} \lor \neg \left(x \leq 6.2 \cdot 10^{+39}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \end{array} \]
Alternative 21
Accuracy34.7%
Cost584
\[\begin{array}{l} \mathbf{if}\;t \leq -2.4 \cdot 10^{+20}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 1.56 \cdot 10^{-12}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 22
Accuracy38.5%
Cost328
\[\begin{array}{l} \mathbf{if}\;t \leq -8 \cdot 10^{-21}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 0.032:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \]
Alternative 23
Accuracy26.2%
Cost64
\[x \]

Reproduce?

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