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

?

Percentage Accurate: 73.8% → 93.8%
Time: 37.1s
Precision: binary64
Cost: 1352

?

\[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
\[\begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+16}:\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 10^{-15}:\\ \;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;\left(t - \frac{y}{\frac{z}{t - x}}\right) + \frac{\left(t - x\right) \cdot a}{z}\\ \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.45e+16)
   (+ t (* (/ y z) (- x t)))
   (if (<= z 1e-15)
     (+ x (* (- t x) (/ (- y z) (- a z))))
     (+ (- t (/ y (/ z (- t x)))) (/ (* (- t x) a) z)))))
double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.45e+16) {
		tmp = t + ((y / z) * (x - t));
	} else if (z <= 1e-15) {
		tmp = x + ((t - x) * ((y - z) / (a - z)));
	} else {
		tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z);
	}
	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 - z) * (t - x)) / (a - z))
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 (z <= (-1.45d+16)) then
        tmp = t + ((y / z) * (x - t))
    else if (z <= 1d-15) then
        tmp = x + ((t - x) * ((y - z) / (a - z)))
    else
        tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * (t - x)) / (a - z));
}
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.45e+16) {
		tmp = t + ((y / z) * (x - t));
	} else if (z <= 1e-15) {
		tmp = x + ((t - x) * ((y - z) / (a - z)));
	} else {
		tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z);
	}
	return tmp;
}
def code(x, y, z, t, a):
	return x + (((y - z) * (t - x)) / (a - z))
def code(x, y, z, t, a):
	tmp = 0
	if z <= -1.45e+16:
		tmp = t + ((y / z) * (x - t))
	elif z <= 1e-15:
		tmp = x + ((t - x) * ((y - z) / (a - z)))
	else:
		tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z)
	return tmp
function code(x, y, z, t, a)
	return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z)))
end
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.45e+16)
		tmp = Float64(t + Float64(Float64(y / z) * Float64(x - t)));
	elseif (z <= 1e-15)
		tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z))));
	else
		tmp = Float64(Float64(t - Float64(y / Float64(z / Float64(t - x)))) + Float64(Float64(Float64(t - x) * a) / z));
	end
	return tmp
end
function tmp = code(x, y, z, t, a)
	tmp = x + (((y - z) * (t - x)) / (a - z));
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -1.45e+16)
		tmp = t + ((y / z) * (x - t));
	elseif (z <= 1e-15)
		tmp = x + ((t - x) * ((y - z) / (a - z)));
	else
		tmp = (t - (y / (z / (t - x)))) + (((t - x) * a) / z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.45e+16], N[(t + N[(N[(y / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-15], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t - x), $MachinePrecision] * a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+16}:\\
\;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\

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

\mathbf{else}:\\
\;\;\;\;\left(t - \frac{y}{\frac{z}{t - x}}\right) + \frac{\left(t - x\right) \cdot a}{z}\\


\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 17 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

Original73.8%
Target89.7%
Herbie93.8%
\[\begin{array}{l} \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t - \frac{y}{z} \cdot \left(t - x\right)\\ \end{array} \]

Derivation?

  1. Split input into 3 regimes
  2. if z < -1.45e16

    1. Initial program 48.6%

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

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

      [Start]48.6%

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

      associate-*l/ [<=]63.3%

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

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

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

      [Start]91.6%

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

      sub-neg [=>]91.6%

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

      +-commutative [=>]91.6%

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

      mul-1-neg [=>]91.6%

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

      unsub-neg [=>]91.6%

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

      associate-/l* [=>]95.8%

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

      mul-1-neg [=>]95.8%

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

      remove-double-neg [=>]95.8%

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

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

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

      [Start]88.7%

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

      associate-*l/ [<=]97.1%

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

      *-commutative [=>]97.1%

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

    if -1.45e16 < z < 1.0000000000000001e-15

    1. Initial program 90.0%

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

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

      [Start]90.0%

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

      associate-*l/ [<=]92.0%

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

    if 1.0000000000000001e-15 < z

    1. Initial program 40.8%

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

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

      [Start]40.8%

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

      associate-*l/ [<=]53.5%

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

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

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

      [Start]88.8%

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

      sub-neg [=>]88.8%

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

      +-commutative [=>]88.8%

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

      mul-1-neg [=>]88.8%

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

      unsub-neg [=>]88.8%

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

      associate-/l* [=>]95.1%

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

      mul-1-neg [=>]95.1%

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

      remove-double-neg [=>]95.1%

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

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

Alternatives

Alternative 1
Accuracy93.8%
Cost1352
\[\begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+16}:\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 10^{-15}:\\ \;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;\left(t - \frac{y}{\frac{z}{t - x}}\right) + \frac{\left(t - x\right) \cdot a}{z}\\ \end{array} \]
Alternative 2
Accuracy53.5%
Cost1572
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a}\\ t_2 := x \cdot \left(1 - \frac{y}{a}\right)\\ \mathbf{if}\;z \leq -2.1 \cdot 10^{+21}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-199}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{-237}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-280}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{-246}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-44}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{+40}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+97}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 4.1 \cdot 10^{+114}:\\ \;\;\;\;\frac{t \cdot \left(-y\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 3
Accuracy54.0%
Cost1436
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a}\\ t_2 := x \cdot \left(1 - \frac{y}{a}\right)\\ \mathbf{if}\;z \leq -1.7 \cdot 10^{+20}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -2.65 \cdot 10^{-198}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{-237}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -4.4 \cdot 10^{-280}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 1.56 \cdot 10^{-239}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 8.8 \cdot 10^{-45}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{+34}:\\ \;\;\;\;\frac{-y}{\frac{a - z}{x}}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 4
Accuracy53.8%
Cost1240
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a}\\ t_2 := x \cdot \left(1 - \frac{y}{a}\right)\\ \mathbf{if}\;z \leq -1.65 \cdot 10^{+20}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -2.7 \cdot 10^{-199}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.52 \cdot 10^{-237}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.5 \cdot 10^{-280}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-295}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 10^{-15}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 5
Accuracy93.3%
Cost1097
\[\begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+15} \lor \neg \left(z \leq 1.9 \cdot 10^{-15}\right):\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\ \end{array} \]
Alternative 6
Accuracy64.0%
Cost972
\[\begin{array}{l} \mathbf{if}\;a \leq -4.8 \cdot 10^{+122}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-56}:\\ \;\;\;\;y \cdot \frac{t - x}{a - z}\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+15}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\ \end{array} \]
Alternative 7
Accuracy88.1%
Cost969
\[\begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+15} \lor \neg \left(z \leq 1.9 \cdot 10^{-15}\right):\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a - z}\\ \end{array} \]
Alternative 8
Accuracy59.8%
Cost908
\[\begin{array}{l} t_1 := x + \frac{y}{\frac{a}{t}}\\ \mathbf{if}\;a \leq -4.8 \cdot 10^{+122}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -6.7 \cdot 10^{-56}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;a \leq 1350000000:\\ \;\;\;\;\frac{-t}{\frac{z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Accuracy71.5%
Cost841
\[\begin{array}{l} \mathbf{if}\;z \leq -3.05 \cdot 10^{-18} \lor \neg \left(z \leq 2.7 \cdot 10^{-24}\right):\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\ \end{array} \]
Alternative 10
Accuracy79.4%
Cost841
\[\begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{+15} \lor \neg \left(z \leq 7 \cdot 10^{-45}\right):\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\ \end{array} \]
Alternative 11
Accuracy65.9%
Cost840
\[\begin{array}{l} \mathbf{if}\;a \leq -1.04 \cdot 10^{+16}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t}}\\ \mathbf{elif}\;a \leq 6 \cdot 10^{+15}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\ \end{array} \]
Alternative 12
Accuracy40.9%
Cost712
\[\begin{array}{l} \mathbf{if}\;a \leq -4.7 \cdot 10^{+159}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -4.8 \cdot 10^{-64}:\\ \;\;\;\;t \cdot \frac{y}{a - z}\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+15}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 13
Accuracy54.1%
Cost712
\[\begin{array}{l} \mathbf{if}\;z \leq -1.65 \cdot 10^{+20}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-20}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 14
Accuracy40.3%
Cost584
\[\begin{array}{l} \mathbf{if}\;a \leq -4.7 \cdot 10^{+159}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -5.6 \cdot 10^{-58}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+15}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 15
Accuracy40.4%
Cost584
\[\begin{array}{l} \mathbf{if}\;a \leq -4.7 \cdot 10^{+159}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -4.2 \cdot 10^{-60}:\\ \;\;\;\;\frac{y}{\frac{a}{t}}\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+15}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 16
Accuracy42.0%
Cost328
\[\begin{array}{l} \mathbf{if}\;a \leq -4 \cdot 10^{+15}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+15}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 17
Accuracy24.4%
Cost64
\[t \]

Reproduce?

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

  :herbie-target
  (if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))

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