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

?

Percentage Accurate: 68.6% → 87.8%
Time: 31.4s
Precision: binary64
Cost: 1096

?

\[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
\[\begin{array}{l} \mathbf{if}\;z \leq -7.2 \cdot 10^{+168}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+88}:\\ \;\;\;\;x - \frac{x - t}{\frac{a - z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \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 -7.2e+168)
   (+ t (/ (- a y) (/ (- z) x)))
   (if (<= z 9e+88)
     (- x (/ (- x t) (/ (- a z) (- y z))))
     (+ t (/ (- a y) (/ z (- t x)))))))
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 <= -7.2e+168) {
		tmp = t + ((a - y) / (-z / x));
	} else if (z <= 9e+88) {
		tmp = x - ((x - t) / ((a - z) / (y - z)));
	} else {
		tmp = t + ((a - y) / (z / (t - x)));
	}
	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 <= (-7.2d+168)) then
        tmp = t + ((a - y) / (-z / x))
    else if (z <= 9d+88) then
        tmp = x - ((x - t) / ((a - z) / (y - z)))
    else
        tmp = t + ((a - y) / (z / (t - x)))
    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 <= -7.2e+168) {
		tmp = t + ((a - y) / (-z / x));
	} else if (z <= 9e+88) {
		tmp = x - ((x - t) / ((a - z) / (y - z)));
	} else {
		tmp = t + ((a - y) / (z / (t - x)));
	}
	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 <= -7.2e+168:
		tmp = t + ((a - y) / (-z / x))
	elif z <= 9e+88:
		tmp = x - ((x - t) / ((a - z) / (y - z)))
	else:
		tmp = t + ((a - y) / (z / (t - x)))
	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 <= -7.2e+168)
		tmp = Float64(t + Float64(Float64(a - y) / Float64(Float64(-z) / x)));
	elseif (z <= 9e+88)
		tmp = Float64(x - Float64(Float64(x - t) / Float64(Float64(a - z) / Float64(y - z))));
	else
		tmp = Float64(t + Float64(Float64(a - y) / Float64(z / Float64(t - x))));
	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 <= -7.2e+168)
		tmp = t + ((a - y) / (-z / x));
	elseif (z <= 9e+88)
		tmp = x - ((x - t) / ((a - z) / (y - z)));
	else
		tmp = t + ((a - y) / (z / (t - x)));
	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, -7.2e+168], N[(t + N[(N[(a - y), $MachinePrecision] / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+88], N[(x - N[(N[(x - t), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(a - y), $MachinePrecision] / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\begin{array}{l}
\mathbf{if}\;z \leq -7.2 \cdot 10^{+168}:\\
\;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\

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

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


\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 26 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.6%
Target83.8%
Herbie87.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 < -7.1999999999999999e168

    1. Initial program 17.5%

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

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

      [Start]17.5%

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

      +-commutative [=>]17.5%

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

      associate-*l/ [<=]51.7%

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

      fma-def [=>]51.7%

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

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

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

      [Start]66.7%

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

      +-commutative [=>]66.7%

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

      associate-/l* [=>]93.4%

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

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

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

      mul-1-neg [=>]93.4%

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

      distribute-neg-frac [<=]93.4%

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

      associate-/l* [<=]66.7%

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

      *-commutative [=>]66.7%

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

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

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

      unsub-neg [=>]66.7%

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

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

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

      *-commutative [<=]66.7%

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

      associate-/l* [=>]93.4%

      \[ t - \color{blue}{\frac{y - a}{\frac{z}{t - x}}} \]
    5. Taylor expanded in t around 0 93.4%

      \[\leadsto t - \frac{y - a}{\color{blue}{-1 \cdot \frac{z}{x}}} \]
    6. Simplified93.4%

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

      [Start]93.4%

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

      associate-*r/ [=>]93.4%

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

      neg-mul-1 [<=]93.4%

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

    if -7.1999999999999999e168 < z < 9e88

    1. Initial program 84.8%

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

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

      [Start]84.8%

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

      associate-*l/ [<=]93.2%

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

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

      [Start]93.2%

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

      *-commutative [=>]93.2%

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

      clear-num [=>]93.1%

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

      un-div-inv [=>]93.6%

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

    if 9e88 < z

    1. Initial program 39.1%

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

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

      [Start]39.1%

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

      +-commutative [=>]39.1%

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

      associate-*l/ [<=]65.6%

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

      fma-def [=>]65.7%

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

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

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

      [Start]72.0%

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

      +-commutative [=>]72.0%

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

      associate-/l* [=>]86.9%

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

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

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

      mul-1-neg [=>]86.9%

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

      distribute-neg-frac [<=]86.9%

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

      associate-/l* [<=]72.0%

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

      *-commutative [=>]72.0%

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

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

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

      unsub-neg [=>]71.9%

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

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

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

      *-commutative [<=]72.0%

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

      associate-/l* [=>]86.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.2 \cdot 10^{+168}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+88}:\\ \;\;\;\;x - \frac{x - t}{\frac{a - z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy87.8%
Cost1096
\[\begin{array}{l} \mathbf{if}\;z \leq -7.2 \cdot 10^{+168}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+88}:\\ \;\;\;\;x - \frac{x - t}{\frac{a - z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \end{array} \]
Alternative 2
Accuracy46.5%
Cost1833
\[\begin{array}{l} t_1 := \frac{y}{z} \cdot \left(x - t\right)\\ t_2 := x - \frac{y \cdot x}{a}\\ t_3 := \frac{-t}{\frac{z}{y - z}}\\ \mathbf{if}\;a \leq -3.2 \cdot 10^{+225}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -2.2 \cdot 10^{+171}:\\ \;\;\;\;\frac{t \cdot \left(y - z\right)}{a}\\ \mathbf{elif}\;a \leq -9 \cdot 10^{+35}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -1.42 \cdot 10^{-71}:\\ \;\;\;\;\frac{-t}{\frac{a - z}{z}}\\ \mathbf{elif}\;a \leq -2.2 \cdot 10^{-101}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -4.1 \cdot 10^{-210}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;a \leq -3.8 \cdot 10^{-263}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 2.9 \cdot 10^{+88} \lor \neg \left(a \leq 7.5 \cdot 10^{+161}\right) \land a \leq 2.8 \cdot 10^{+201}:\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 3
Accuracy46.4%
Cost1701
\[\begin{array}{l} t_1 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;a \leq -3.2 \cdot 10^{+225}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -1.16 \cdot 10^{+166}:\\ \;\;\;\;\frac{t \cdot \left(y - z\right)}{a}\\ \mathbf{elif}\;a \leq -2.7 \cdot 10^{+35}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq -1.3 \cdot 10^{+14}:\\ \;\;\;\;\frac{-t}{\frac{a - z}{z}}\\ \mathbf{elif}\;a \leq -1.35 \cdot 10^{-36}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \mathbf{elif}\;a \leq -2.5 \cdot 10^{-100}:\\ \;\;\;\;\frac{y}{\frac{a}{t - x}}\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+88} \lor \neg \left(a \leq 1.02 \cdot 10^{+163}\right) \land a \leq 2.8 \cdot 10^{+201}:\\ \;\;\;\;\frac{-t}{\frac{z}{y - z}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 4
Accuracy57.5%
Cost1368
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a - z}\\ t_2 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;x \leq -2.2 \cdot 10^{+209}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.6 \cdot 10^{+108}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -0.08:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 6.4 \cdot 10^{+113}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{elif}\;x \leq 1.18 \cdot 10^{+165}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 4.9 \cdot 10^{+166}:\\ \;\;\;\;t\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 5
Accuracy55.8%
Cost1368
\[\begin{array}{l} t_1 := y \cdot \frac{t - x}{a - z}\\ t_2 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;x \leq -4.2 \cdot 10^{+209}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -5.2 \cdot 10^{+110}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -0.00275:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.05 \cdot 10^{+40}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{+164}:\\ \;\;\;\;x + x \cdot \frac{z}{a - z}\\ \mathbf{elif}\;x \leq 1.18 \cdot 10^{+203}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(y - a\right) \cdot x}{z}\\ \end{array} \]
Alternative 6
Accuracy48.0%
Cost1306
\[\begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+225}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq -1.5 \cdot 10^{+171}:\\ \;\;\;\;\frac{t \cdot \left(y - z\right)}{a}\\ \mathbf{elif}\;a \leq -6.2 \cdot 10^{+27} \lor \neg \left(a \leq 2.9 \cdot 10^{+88}\right) \land \left(a \leq 1.05 \cdot 10^{+163} \lor \neg \left(a \leq 2.8 \cdot 10^{+201}\right)\right):\\ \;\;\;\;x - \frac{y \cdot x}{a}\\ \mathbf{else}:\\ \;\;\;\;\frac{-t}{\frac{z}{y - z}}\\ \end{array} \]
Alternative 7
Accuracy37.3%
Cost1240
\[\begin{array}{l} t_1 := y \cdot \frac{t}{a - z}\\ \mathbf{if}\;z \leq -1.25 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -1.95 \cdot 10^{+39}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -1 \cdot 10^{-272}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 3.2 \cdot 10^{-245}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 7.5 \cdot 10^{-95}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{+76}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 8
Accuracy45.5%
Cost1240
\[\begin{array}{l} t_1 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;z \leq -1.25 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -2.75 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{-236}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 4 \cdot 10^{-199}:\\ \;\;\;\;\frac{t}{\frac{a}{y - z}}\\ \mathbf{elif}\;z \leq 1.1 \cdot 10^{+76}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 9
Accuracy45.7%
Cost1240
\[\begin{array}{l} t_1 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;z \leq -1.45 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -9 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 8.4 \cdot 10^{-249}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{-168}:\\ \;\;\;\;\frac{y}{\frac{a}{t - x}}\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{+75}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 10
Accuracy74.5%
Cost1232
\[\begin{array}{l} t_1 := x + \frac{y - z}{\frac{a - z}{t}}\\ t_2 := t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{if}\;z \leq -6 \cdot 10^{+168}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -9 \cdot 10^{-201}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-169}:\\ \;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\ \mathbf{elif}\;z \leq 9 \cdot 10^{+87}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 11
Accuracy55.5%
Cost1104
\[\begin{array}{l} t_1 := t \cdot \frac{y - z}{a - z}\\ t_2 := x - \frac{y \cdot x}{a}\\ \mathbf{if}\;x \leq -8 \cdot 10^{+200}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -5.5 \cdot 10^{+116}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -4.9 \cdot 10^{-7}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 5.5 \cdot 10^{+90}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;\frac{y - a}{\frac{z}{x}}\\ \end{array} \]
Alternative 12
Accuracy63.8%
Cost1104
\[\begin{array}{l} t_1 := t \cdot \frac{y - z}{a - z}\\ t_2 := x + \frac{y}{\frac{a}{t - x}}\\ \mathbf{if}\;a \leq -2.05 \cdot 10^{+37}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 2.5 \cdot 10^{-177}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{-85}:\\ \;\;\;\;y \cdot \frac{t - x}{a - z}\\ \mathbf{elif}\;a \leq 1.25 \cdot 10^{+89}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 13
Accuracy71.2%
Cost1100
\[\begin{array}{l} t_1 := t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{if}\;z \leq -6.8 \cdot 10^{+168}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{+26}:\\ \;\;\;\;x + \frac{\left(t - x\right) \cdot \left(y - z\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 14
Accuracy72.9%
Cost1100
\[\begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+169}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-222}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{+25}:\\ \;\;\;\;x + \frac{\left(t - x\right) \cdot \left(y - z\right)}{a}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \end{array} \]
Alternative 15
Accuracy87.7%
Cost1096
\[\begin{array}{l} \mathbf{if}\;z \leq -2.5 \cdot 10^{+169}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{elif}\;z \leq 8.8 \cdot 10^{+88}:\\ \;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t + \frac{a - y}{\frac{z}{t - x}}\\ \end{array} \]
Alternative 16
Accuracy37.3%
Cost1044
\[\begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{-79}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{-172}:\\ \;\;\;\;-\frac{y}{\frac{z}{t}}\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+76}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 17
Accuracy68.9%
Cost1036
\[\begin{array}{l} t_1 := x + \frac{t - x}{\frac{a}{y}}\\ \mathbf{if}\;a \leq -1.05 \cdot 10^{+24}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{-214}:\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;a \leq 2.85 \cdot 10^{+88}:\\ \;\;\;\;t + \frac{a - y}{\frac{-z}{x}}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 18
Accuracy38.3%
Cost980
\[\begin{array}{l} \mathbf{if}\;z \leq -1.25 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.1 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 3.3 \cdot 10^{-167}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq 2 \cdot 10^{+76}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 19
Accuracy38.3%
Cost980
\[\begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -4.8 \cdot 10^{+23}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -2.9 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{-166}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq 2.55 \cdot 10^{+76}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 20
Accuracy46.4%
Cost976
\[\begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+193}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -3.4 \cdot 10^{+180}:\\ \;\;\;\;\frac{y}{\frac{z}{x}}\\ \mathbf{elif}\;z \leq -9.5 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 2 \cdot 10^{+78}:\\ \;\;\;\;x - \frac{y \cdot x}{a}\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 21
Accuracy71.2%
Cost972
\[\begin{array}{l} t_1 := x + \frac{t - x}{\frac{a}{y}}\\ \mathbf{if}\;a \leq -9 \cdot 10^{+24}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 3.9 \cdot 10^{-79}:\\ \;\;\;\;t + \frac{y}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+88}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 22
Accuracy62.6%
Cost841
\[\begin{array}{l} \mathbf{if}\;x \leq -0.0003 \lor \neg \left(x \leq 1.12 \cdot 10^{+39}\right):\\ \;\;\;\;x + \frac{t - x}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \]
Alternative 23
Accuracy38.5%
Cost716
\[\begin{array}{l} \mathbf{if}\;z \leq -3.2 \cdot 10^{+24}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-245}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 1.15 \cdot 10^{-168}:\\ \;\;\;\;y \cdot \frac{t}{a}\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+77}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 24
Accuracy38.7%
Cost716
\[\begin{array}{l} \mathbf{if}\;z \leq -1.8 \cdot 10^{+22}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq -1.4 \cdot 10^{-307}:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-168}:\\ \;\;\;\;t \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{+75}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 25
Accuracy39.2%
Cost328
\[\begin{array}{l} \mathbf{if}\;z \leq -8 \cdot 10^{+25}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+78}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
Alternative 26
Accuracy25.2%
Cost64
\[t \]

Reproduce?

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