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

?

Percentage Accurate: 68.9% → 88.9%
Time: 27.5s
Precision: binary64
Cost: 1097

?

\[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
\[\begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{+129} \lor \neg \left(z \leq 3.7 \cdot 10^{+127}\right):\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y - 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 (or (<= z -3.3e+129) (not (<= z 3.7e+127)))
   (+ t (/ (- a y) (/ z (- t x))))
   (+ x (/ (- t x) (/ (- a z) (- y 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 <= -3.3e+129) || !(z <= 3.7e+127)) {
		tmp = t + ((a - y) / (z / (t - x)));
	} else {
		tmp = x + ((t - x) / ((a - z) / (y - 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 <= (-3.3d+129)) .or. (.not. (z <= 3.7d+127))) then
        tmp = t + ((a - y) / (z / (t - x)))
    else
        tmp = x + ((t - x) / ((a - z) / (y - 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 <= -3.3e+129) || !(z <= 3.7e+127)) {
		tmp = t + ((a - y) / (z / (t - x)));
	} else {
		tmp = x + ((t - x) / ((a - z) / (y - 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 <= -3.3e+129) or not (z <= 3.7e+127):
		tmp = t + ((a - y) / (z / (t - x)))
	else:
		tmp = x + ((t - x) / ((a - z) / (y - 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 <= -3.3e+129) || !(z <= 3.7e+127))
		tmp = Float64(t + Float64(Float64(a - y) / Float64(z / Float64(t - x))));
	else
		tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - 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 <= -3.3e+129) || ~((z <= 3.7e+127)))
		tmp = t + ((a - y) / (z / (t - x)));
	else
		tmp = x + ((t - x) / ((a - z) / (y - 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[Or[LessEqual[z, -3.3e+129], N[Not[LessEqual[z, 3.7e+127]], $MachinePrecision]], N[(t + N[(N[(a - y), $MachinePrecision] / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+129} \lor \neg \left(z \leq 3.7 \cdot 10^{+127}\right):\\
\;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - 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 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

Original68.9%
Target83.7%
Herbie88.9%
\[\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 2 regimes
  2. if z < -3.2999999999999999e129 or 3.6999999999999998e127 < z

    1. Initial program 23.9%

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

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

      [Start]23.9%

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

      +-commutative [=>]23.9%

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

      associate-*l/ [<=]57.5%

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

      fma-def [=>]57.5%

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

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

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

      [Start]67.2%

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

      +-commutative [=>]67.2%

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

      associate-/l* [=>]88.5%

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

      distribute-lft-out-- [=>]88.5%

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

      mul-1-neg [=>]88.5%

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

      distribute-neg-frac [<=]88.5%

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

      associate-/l* [<=]67.2%

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

      *-commutative [=>]67.2%

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

      distribute-rgt-out-- [<=]67.1%

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

      unsub-neg [=>]67.1%

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

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

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

      *-commutative [<=]67.2%

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

      associate-/l* [=>]88.5%

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

    if -3.2999999999999999e129 < z < 3.6999999999999998e127

    1. Initial program 83.0%

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

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

      [Start]83.0%

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

      associate-*l/ [<=]92.8%

      \[ x + \color{blue}{\frac{y - z}{a - z} \cdot \left(t - x\right)} \]
    3. Applied egg-rr92.8%

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

      [Start]92.8%

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

      *-commutative [=>]92.8%

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

      clear-num [=>]92.7%

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

      un-div-inv [=>]92.8%

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

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

Alternatives

Alternative 1
Accuracy88.9%
Cost1097
\[\begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{+129} \lor \neg \left(z \leq 3.7 \cdot 10^{+127}\right):\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\ \end{array} \]
Alternative 2
Accuracy49.3%
Cost1768
\[\begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ t_2 := \frac{-t}{\frac{z}{y - z}}\\ \mathbf{if}\;z \leq -7 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-49}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-58}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -6.8 \cdot 10^{-124}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-269}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-230}:\\ \;\;\;\;\frac{x}{a - z} \cdot \left(-y\right)\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-113}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-37}:\\ \;\;\;\;\frac{y - z}{\frac{a}{t}}\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+27}:\\ \;\;\;\;x - \frac{z \cdot t}{a}\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{+106}:\\ \;\;\;\;\frac{t}{\frac{a}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{z}{z - a}\\ \end{array} \]
Alternative 3
Accuracy50.4%
Cost1372
\[\begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ t_2 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -6.6 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 1.55 \cdot 10^{-272}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 4.8 \cdot 10^{-230}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{-113}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-37}:\\ \;\;\;\;\frac{y - z}{\frac{a}{t}}\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{+27}:\\ \;\;\;\;x - \frac{z \cdot t}{a}\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{+109}:\\ \;\;\;\;\frac{t}{\frac{a}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 4
Accuracy49.8%
Cost1372
\[\begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ t_2 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -1.18 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-269}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{-229}:\\ \;\;\;\;\frac{x}{a - z} \cdot \left(-y\right)\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{-113}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 2.5 \cdot 10^{-36}:\\ \;\;\;\;\frac{y - z}{\frac{a}{t}}\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+27}:\\ \;\;\;\;x - \frac{z \cdot t}{a}\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{+106}:\\ \;\;\;\;\frac{t}{\frac{a}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 5
Accuracy40.0%
Cost1240
\[\begin{array}{l} t_1 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -5.8 \cdot 10^{+28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{-278}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-230}:\\ \;\;\;\;\frac{y \cdot \left(-x\right)}{a}\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-187}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-114}:\\ \;\;\;\;y \cdot \frac{t}{a - z}\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-49}:\\ \;\;\;\;y \cdot \frac{t}{a}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 6
Accuracy52.8%
Cost1240
\[\begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ t_2 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -3.7 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-269}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.02 \cdot 10^{-228}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;z \leq 1.22 \cdot 10^{-48}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.1 \cdot 10^{+33}:\\ \;\;\;\;x - \frac{z \cdot t}{a}\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{+50}:\\ \;\;\;\;y \cdot \frac{t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 7
Accuracy61.2%
Cost1236
\[\begin{array}{l} t_1 := x + t \cdot \frac{y - z}{a}\\ t_2 := t \cdot \frac{y - z}{a - z}\\ t_3 := y \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;z \leq -1.66 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{-274}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-228}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{-117}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.75 \cdot 10^{-50}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 8
Accuracy72.8%
Cost1232
\[\begin{array}{l} t_1 := x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{if}\;a \leq -4.1 \cdot 10^{+136}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -33:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{elif}\;a \leq -1.45 \cdot 10^{-54}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-17}:\\ \;\;\;\;t + \frac{\left(y - a\right) \cdot \left(x - t\right)}{z}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Accuracy55.9%
Cost1105
\[\begin{array}{l} t_1 := x \cdot \frac{-y}{a - z}\\ \mathbf{if}\;x \leq -4 \cdot 10^{+129}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{+60}:\\ \;\;\;\;x + \frac{t \cdot y}{a}\\ \mathbf{elif}\;x \leq -3.8 \cdot 10^{+45} \lor \neg \left(x \leq 1.06 \cdot 10^{+150}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \]
Alternative 10
Accuracy56.9%
Cost1105
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a - z}\\ \mathbf{if}\;x \leq -2.3 \cdot 10^{+128}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -4 \cdot 10^{+63}:\\ \;\;\;\;x + \frac{t \cdot y}{a}\\ \mathbf{elif}\;x \leq -4.8 \cdot 10^{+44} \lor \neg \left(x \leq 92000000000\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \]
Alternative 11
Accuracy64.6%
Cost1104
\[\begin{array}{l} t_1 := t \cdot \frac{y - z}{a - z}\\ \mathbf{if}\;z \leq -4.8 \cdot 10^{+28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{-117}:\\ \;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-50}:\\ \;\;\;\;y \cdot \frac{t - x}{a - z}\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;x + t \cdot \frac{y - z}{a}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 12
Accuracy65.7%
Cost1104
\[\begin{array}{l} t_1 := t \cdot \frac{y - z}{a - z}\\ \mathbf{if}\;z \leq -1.05 \cdot 10^{+29}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{-117}:\\ \;\;\;\;x - \frac{x - t}{\frac{a}{y}}\\ \mathbf{elif}\;z \leq 2.05 \cdot 10^{-48}:\\ \;\;\;\;y \cdot \frac{t - x}{a - z}\\ \mathbf{elif}\;z \leq 2.85 \cdot 10^{+23}:\\ \;\;\;\;x - \frac{z \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 13
Accuracy74.9%
Cost1100
\[\begin{array}{l} t_1 := t \cdot \frac{y - z}{a - z}\\ \mathbf{if}\;z \leq -2.2 \cdot 10^{+47}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-50}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{+132}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 14
Accuracy80.4%
Cost1100
\[\begin{array}{l} t_1 := t + \frac{a - y}{\frac{z}{t - x}}\\ \mathbf{if}\;z \leq -3.15 \cdot 10^{+28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.65 \cdot 10^{-50}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\ \mathbf{elif}\;z \leq 1.52 \cdot 10^{+125}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 15
Accuracy88.8%
Cost1097
\[\begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+119} \lor \neg \left(z \leq 9.8 \cdot 10^{+132}\right):\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y - z}{a - z} \cdot \left(x - t\right)\\ \end{array} \]
Alternative 16
Accuracy36.1%
Cost980
\[\begin{array}{l} t_1 := y \cdot \frac{t}{a}\\ \mathbf{if}\;z \leq -1.7 \cdot 10^{+29}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -4.9 \cdot 10^{-244}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+35}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 17
Accuracy36.6%
Cost980
\[\begin{array}{l} \mathbf{if}\;z \leq -5.4 \cdot 10^{+28}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.8 \cdot 10^{-244}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-50}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{+35}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;y \cdot \frac{t}{a}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 18
Accuracy43.5%
Cost976
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a}\\ t_2 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -1.05 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{-127}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.9 \cdot 10^{-244}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 3.6 \cdot 10^{-48}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 19
Accuracy51.7%
Cost976
\[\begin{array}{l} t_1 := x + \frac{t \cdot y}{a}\\ t_2 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -1.95 \cdot 10^{+28}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{-275}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{-230}:\\ \;\;\;\;y \cdot \frac{t - x}{a}\\ \mathbf{elif}\;z \leq 3 \cdot 10^{-48}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 20
Accuracy72.3%
Cost969
\[\begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+47} \lor \neg \left(z \leq 5.2 \cdot 10^{-50}\right):\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\ \end{array} \]
Alternative 21
Accuracy39.7%
Cost844
\[\begin{array}{l} t_1 := t \cdot \frac{z}{z - a}\\ \mathbf{if}\;z \leq -3.85 \cdot 10^{+28}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3.2 \cdot 10^{-244}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 1.35 \cdot 10^{-49}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 22
Accuracy38.1%
Cost328
\[\begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+137}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 82:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
Alternative 23
Accuracy24.9%
Cost64
\[t \]

Reproduce?

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