Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B

Percentage Accurate: 76.9% → 89.9%
Time: 12.4s
Alternatives: 17
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \end{array} \]
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
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) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a):
	return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a)
	return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
end
function tmp = code(x, y, z, t, a)
	tmp = (x + y) - (((z - t) * y) / (a - t));
end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

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.

Accuracy vs Speed?

Herbie found 17 alternatives:

AlternativeAccuracySpeedup
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.

Initial Program: 76.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \end{array} \]
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
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) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
	return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a):
	return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a)
	return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
end
function tmp = code(x, y, z, t, a)
	tmp = (x + y) - (((z - t) * y) / (a - t));
end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 89.9% accurate, 0.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \sqrt[3]{a - t}\\ t_2 := y \cdot \frac{z}{t}\\ \mathbf{if}\;t \leq -2.9 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_2\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{+93}:\\ \;\;\;\;\left(y + x\right) + \frac{y}{t\_1} \cdot \frac{t - z}{{t\_1}^{2}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t\_2 - a \cdot \frac{y}{t}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (cbrt (- a t))) (t_2 (* y (/ z t))))
   (if (<= t -2.9e+77)
     (+ (fma -1.0 (fma a (/ y t) (* (/ a t) (* y (/ (- a z) t)))) x) t_2)
     (if (<= t 5.5e+93)
       (+ (+ y x) (* (/ y t_1) (/ (- t z) (pow t_1 2.0))))
       (+ x (- t_2 (* a (/ y t))))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = cbrt((a - t));
	double t_2 = y * (z / t);
	double tmp;
	if (t <= -2.9e+77) {
		tmp = fma(-1.0, fma(a, (y / t), ((a / t) * (y * ((a - z) / t)))), x) + t_2;
	} else if (t <= 5.5e+93) {
		tmp = (y + x) + ((y / t_1) * ((t - z) / pow(t_1, 2.0)));
	} else {
		tmp = x + (t_2 - (a * (y / t)));
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = cbrt(Float64(a - t))
	t_2 = Float64(y * Float64(z / t))
	tmp = 0.0
	if (t <= -2.9e+77)
		tmp = Float64(fma(-1.0, fma(a, Float64(y / t), Float64(Float64(a / t) * Float64(y * Float64(Float64(a - z) / t)))), x) + t_2);
	elseif (t <= 5.5e+93)
		tmp = Float64(Float64(y + x) + Float64(Float64(y / t_1) * Float64(Float64(t - z) / (t_1 ^ 2.0))));
	else
		tmp = Float64(x + Float64(t_2 - Float64(a * Float64(y / t))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[Power[N[(a - t), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+77], N[(N[(-1.0 * N[(a * N[(y / t), $MachinePrecision] + N[(N[(a / t), $MachinePrecision] * N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[t, 5.5e+93], N[(N[(y + x), $MachinePrecision] + N[(N[(y / t$95$1), $MachinePrecision] * N[(N[(t - z), $MachinePrecision] / N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$2 - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \sqrt[3]{a - t}\\
t_2 := y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+77}:\\
\;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_2\\

\mathbf{elif}\;t \leq 5.5 \cdot 10^{+93}:\\
\;\;\;\;\left(y + x\right) + \frac{y}{t\_1} \cdot \frac{t - z}{{t\_1}^{2}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.9000000000000002e77

    1. Initial program 47.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt47.4%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
      3. pow262.2%

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr62.2%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity62.2%

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

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/62.2%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow262.2%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft61.9%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified61.9%

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

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

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

    if -2.9000000000000002e77 < t < 5.5000000000000003e93

    1. Initial program 93.3%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt93.0%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac94.6%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr94.6%

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

    if 5.5000000000000003e93 < t

    1. Initial program 63.1%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg63.1%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*67.2%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac267.5%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified67.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 80.3%

      \[\leadsto \color{blue}{\left(x + \left(y + \left(-1 \cdot y + \frac{y \cdot z}{t}\right)\right)\right) - \frac{a \cdot y}{t}} \]
    6. Step-by-step derivation
      1. associate--l+80.3%

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

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

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

        \[\leadsto x + \left(\left(\color{blue}{0} \cdot y + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      5. mul0-lft86.8%

        \[\leadsto x + \left(\left(\color{blue}{0} + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      6. associate-/l*88.6%

        \[\leadsto x + \left(\left(0 + \color{blue}{y \cdot \frac{z}{t}}\right) - \frac{a \cdot y}{t}\right) \]
      7. associate-/l*98.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.9 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + y \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 5.5 \cdot 10^{+93}:\\ \;\;\;\;\left(y + x\right) + \frac{y}{\sqrt[3]{a - t}} \cdot \frac{t - z}{{\left(\sqrt[3]{a - t}\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 89.9% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{z}{t}\\ \mathbf{if}\;t \leq -6.9 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_1\\ \mathbf{elif}\;t \leq 9 \cdot 10^{+89}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(t\_1 - a \cdot \frac{y}{t}\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (* y (/ z t))))
   (if (<= t -6.9e+77)
     (+ (fma -1.0 (fma a (/ y t) (* (/ a t) (* y (/ (- a z) t)))) x) t_1)
     (if (<= t 9e+89)
       (- (+ y x) (/ y (/ (- a t) (- z t))))
       (+ x (- t_1 (* a (/ y t))))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = y * (z / t);
	double tmp;
	if (t <= -6.9e+77) {
		tmp = fma(-1.0, fma(a, (y / t), ((a / t) * (y * ((a - z) / t)))), x) + t_1;
	} else if (t <= 9e+89) {
		tmp = (y + x) - (y / ((a - t) / (z - t)));
	} else {
		tmp = x + (t_1 - (a * (y / t)));
	}
	return tmp;
}
function code(x, y, z, t, a)
	t_1 = Float64(y * Float64(z / t))
	tmp = 0.0
	if (t <= -6.9e+77)
		tmp = Float64(fma(-1.0, fma(a, Float64(y / t), Float64(Float64(a / t) * Float64(y * Float64(Float64(a - z) / t)))), x) + t_1);
	elseif (t <= 9e+89)
		tmp = Float64(Float64(y + x) - Float64(y / Float64(Float64(a - t) / Float64(z - t))));
	else
		tmp = Float64(x + Float64(t_1 - Float64(a * Float64(y / t))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6.9e+77], N[(N[(-1.0 * N[(a * N[(y / t), $MachinePrecision] + N[(N[(a / t), $MachinePrecision] * N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[t, 9e+89], N[(N[(y + x), $MachinePrecision] - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t$95$1 - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{t}\\
\mathbf{if}\;t \leq -6.9 \cdot 10^{+77}:\\
\;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -6.89999999999999959e77

    1. Initial program 47.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt47.4%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
      3. pow262.2%

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr62.2%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times62.2%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity62.2%

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

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/62.2%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow262.2%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft61.9%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified61.9%

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

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

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

    if -6.89999999999999959e77 < t < 9e89

    1. Initial program 93.3%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt93.0%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac94.6%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr94.6%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num94.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times93.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity93.6%

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

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/93.6%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow293.6%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft93.9%

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

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

    if 9e89 < t

    1. Initial program 63.1%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg63.1%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*67.2%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac267.5%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg67.5%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified67.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 80.3%

      \[\leadsto \color{blue}{\left(x + \left(y + \left(-1 \cdot y + \frac{y \cdot z}{t}\right)\right)\right) - \frac{a \cdot y}{t}} \]
    6. Step-by-step derivation
      1. associate--l+80.3%

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

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

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

        \[\leadsto x + \left(\left(\color{blue}{0} \cdot y + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      5. mul0-lft86.8%

        \[\leadsto x + \left(\left(\color{blue}{0} + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      6. associate-/l*88.6%

        \[\leadsto x + \left(\left(0 + \color{blue}{y \cdot \frac{z}{t}}\right) - \frac{a \cdot y}{t}\right) \]
      7. associate-/l*98.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.9 \cdot 10^{+77}:\\ \;\;\;\;\mathsf{fma}\left(-1, \mathsf{fma}\left(a, \frac{y}{t}, \frac{a}{t} \cdot \left(y \cdot \frac{a - z}{t}\right)\right), x\right) + y \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 9 \cdot 10^{+89}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 63.3% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \frac{z}{t - a}\\ \mathbf{if}\;z \leq -3.4 \cdot 10^{+118}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -850000000:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq -3.55 \lor \neg \left(z \leq 3.2 \cdot 10^{+183} \lor \neg \left(z \leq 2 \cdot 10^{+231}\right) \land z \leq 1.3 \cdot 10^{+252}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (* y (/ z (- t a)))))
   (if (<= z -3.4e+118)
     t_1
     (if (<= z -850000000.0)
       x
       (if (or (<= z -3.55)
               (not
                (or (<= z 3.2e+183)
                    (and (not (<= z 2e+231)) (<= z 1.3e+252)))))
         t_1
         (+ y x))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = y * (z / (t - a));
	double tmp;
	if (z <= -3.4e+118) {
		tmp = t_1;
	} else if (z <= -850000000.0) {
		tmp = x;
	} else if ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252)))) {
		tmp = t_1;
	} else {
		tmp = y + 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
    real(8) :: t_1
    real(8) :: tmp
    t_1 = y * (z / (t - a))
    if (z <= (-3.4d+118)) then
        tmp = t_1
    else if (z <= (-850000000.0d0)) then
        tmp = x
    else if ((z <= (-3.55d0)) .or. (.not. (z <= 3.2d+183) .or. (.not. (z <= 2d+231)) .and. (z <= 1.3d+252))) then
        tmp = t_1
    else
        tmp = y + x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = y * (z / (t - a));
	double tmp;
	if (z <= -3.4e+118) {
		tmp = t_1;
	} else if (z <= -850000000.0) {
		tmp = x;
	} else if ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252)))) {
		tmp = t_1;
	} else {
		tmp = y + x;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = y * (z / (t - a))
	tmp = 0
	if z <= -3.4e+118:
		tmp = t_1
	elif z <= -850000000.0:
		tmp = x
	elif (z <= -3.55) or not ((z <= 3.2e+183) or (not (z <= 2e+231) and (z <= 1.3e+252))):
		tmp = t_1
	else:
		tmp = y + x
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(y * Float64(z / Float64(t - a)))
	tmp = 0.0
	if (z <= -3.4e+118)
		tmp = t_1;
	elseif (z <= -850000000.0)
		tmp = x;
	elseif ((z <= -3.55) || !((z <= 3.2e+183) || (!(z <= 2e+231) && (z <= 1.3e+252))))
		tmp = t_1;
	else
		tmp = Float64(y + x);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = y * (z / (t - a));
	tmp = 0.0;
	if (z <= -3.4e+118)
		tmp = t_1;
	elseif (z <= -850000000.0)
		tmp = x;
	elseif ((z <= -3.55) || ~(((z <= 3.2e+183) || (~((z <= 2e+231)) && (z <= 1.3e+252)))))
		tmp = t_1;
	else
		tmp = y + x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e+118], t$95$1, If[LessEqual[z, -850000000.0], x, If[Or[LessEqual[z, -3.55], N[Not[Or[LessEqual[z, 3.2e+183], And[N[Not[LessEqual[z, 2e+231]], $MachinePrecision], LessEqual[z, 1.3e+252]]]], $MachinePrecision]], t$95$1, N[(y + x), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{t - a}\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -850000000:\\
\;\;\;\;x\\

\mathbf{elif}\;z \leq -3.55 \lor \neg \left(z \leq 3.2 \cdot 10^{+183} \lor \neg \left(z \leq 2 \cdot 10^{+231}\right) \land z \leq 1.3 \cdot 10^{+252}\right):\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;y + x\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3.39999999999999986e118 or -8.5e8 < z < -3.5499999999999998 or 3.2000000000000002e183 < z < 2.0000000000000001e231 or 1.30000000000000009e252 < z

    1. Initial program 82.8%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg82.8%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*88.7%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac288.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg88.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified88.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in z around inf 70.6%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t - a}} \]
    6. Step-by-step derivation
      1. associate-/l*76.1%

        \[\leadsto \color{blue}{y \cdot \frac{z}{t - a}} \]
    7. Simplified76.1%

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

    if -3.39999999999999986e118 < z < -8.5e8

    1. Initial program 76.9%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 60.3%

      \[\leadsto \color{blue}{x} \]

    if -3.5499999999999998 < z < 3.2000000000000002e183 or 2.0000000000000001e231 < z < 1.30000000000000009e252

    1. Initial program 77.7%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 69.2%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative69.2%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified69.2%

      \[\leadsto \color{blue}{y + x} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification70.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.4 \cdot 10^{+118}:\\ \;\;\;\;y \cdot \frac{z}{t - a}\\ \mathbf{elif}\;z \leq -850000000:\\ \;\;\;\;x\\ \mathbf{elif}\;z \leq -3.55 \lor \neg \left(z \leq 3.2 \cdot 10^{+183} \lor \neg \left(z \leq 2 \cdot 10^{+231}\right) \land z \leq 1.3 \cdot 10^{+252}\right):\\ \;\;\;\;y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;y + x\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 75.0% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;a \leq -2.65 \cdot 10^{+70}:\\ \;\;\;\;y - y \cdot \frac{z}{a}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 2.2 \cdot 10^{+53}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -6.5e+130)
   (+ y x)
   (if (<= a -2.65e+70)
     (- y (* y (/ z a)))
     (if (or (<= a -8e-14) (not (<= a 2.2e+53)))
       (+ y x)
       (- x (/ (* y (- a z)) t))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.5e+130) {
		tmp = y + x;
	} else if (a <= -2.65e+70) {
		tmp = y - (y * (z / a));
	} else if ((a <= -8e-14) || !(a <= 2.2e+53)) {
		tmp = y + x;
	} else {
		tmp = x - ((y * (a - 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
    real(8) :: tmp
    if (a <= (-6.5d+130)) then
        tmp = y + x
    else if (a <= (-2.65d+70)) then
        tmp = y - (y * (z / a))
    else if ((a <= (-8d-14)) .or. (.not. (a <= 2.2d+53))) then
        tmp = y + x
    else
        tmp = x - ((y * (a - z)) / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.5e+130) {
		tmp = y + x;
	} else if (a <= -2.65e+70) {
		tmp = y - (y * (z / a));
	} else if ((a <= -8e-14) || !(a <= 2.2e+53)) {
		tmp = y + x;
	} else {
		tmp = x - ((y * (a - z)) / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -6.5e+130:
		tmp = y + x
	elif a <= -2.65e+70:
		tmp = y - (y * (z / a))
	elif (a <= -8e-14) or not (a <= 2.2e+53):
		tmp = y + x
	else:
		tmp = x - ((y * (a - z)) / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -6.5e+130)
		tmp = Float64(y + x);
	elseif (a <= -2.65e+70)
		tmp = Float64(y - Float64(y * Float64(z / a)));
	elseif ((a <= -8e-14) || !(a <= 2.2e+53))
		tmp = Float64(y + x);
	else
		tmp = Float64(x - Float64(Float64(y * Float64(a - z)) / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -6.5e+130)
		tmp = y + x;
	elseif (a <= -2.65e+70)
		tmp = y - (y * (z / a));
	elseif ((a <= -8e-14) || ~((a <= 2.2e+53)))
		tmp = y + x;
	else
		tmp = x - ((y * (a - z)) / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.5e+130], N[(y + x), $MachinePrecision], If[LessEqual[a, -2.65e+70], N[(y - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 2.2e+53]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x - N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\
\;\;\;\;y + x\\

\mathbf{elif}\;a \leq -2.65 \cdot 10^{+70}:\\
\;\;\;\;y - y \cdot \frac{z}{a}\\

\mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 2.2 \cdot 10^{+53}\right):\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -6.5e130 or -2.65e70 < a < -7.99999999999999999e-14 or 2.19999999999999999e53 < a

    1. Initial program 82.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 78.2%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative78.2%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified78.2%

      \[\leadsto \color{blue}{y + x} \]

    if -6.5e130 < a < -2.65e70

    1. Initial program 75.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt75.2%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac81.8%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr81.8%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num81.8%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times81.0%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity81.0%

        \[\leadsto \left(x + y\right) - \frac{\color{blue}{y}}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}} \]
    6. Applied egg-rr81.0%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/81.8%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow281.8%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft81.5%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified81.5%

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

      \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{a}{z}}} \]
    10. Taylor expanded in x around 0 58.4%

      \[\leadsto \color{blue}{y - \frac{y \cdot z}{a}} \]
    11. Step-by-step derivation
      1. associate-*r/64.3%

        \[\leadsto y - \color{blue}{y \cdot \frac{z}{a}} \]
    12. Simplified64.3%

      \[\leadsto \color{blue}{y - y \cdot \frac{z}{a}} \]

    if -7.99999999999999999e-14 < a < 2.19999999999999999e53

    1. Initial program 77.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 79.9%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+79.9%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--79.9%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg80.0%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative80.0%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--80.0%

        \[\leadsto x - \frac{\color{blue}{y \cdot \left(a - z\right)}}{t} \]
    5. Simplified80.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;a \leq -2.65 \cdot 10^{+70}:\\ \;\;\;\;y - y \cdot \frac{z}{a}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 2.2 \cdot 10^{+53}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 73.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;a \leq -2.7 \cdot 10^{+70}:\\ \;\;\;\;y - y \cdot \frac{z}{a}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 5.5 \cdot 10^{+52}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= a -6.5e+130)
   (+ y x)
   (if (<= a -2.7e+70)
     (- y (* y (/ z a)))
     (if (or (<= a -8e-14) (not (<= a 5.5e+52)))
       (+ y x)
       (+ x (/ (* y z) t))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.5e+130) {
		tmp = y + x;
	} else if (a <= -2.7e+70) {
		tmp = y - (y * (z / a));
	} else if ((a <= -8e-14) || !(a <= 5.5e+52)) {
		tmp = y + x;
	} else {
		tmp = x + ((y * 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
    real(8) :: tmp
    if (a <= (-6.5d+130)) then
        tmp = y + x
    else if (a <= (-2.7d+70)) then
        tmp = y - (y * (z / a))
    else if ((a <= (-8d-14)) .or. (.not. (a <= 5.5d+52))) then
        tmp = y + x
    else
        tmp = x + ((y * z) / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (a <= -6.5e+130) {
		tmp = y + x;
	} else if (a <= -2.7e+70) {
		tmp = y - (y * (z / a));
	} else if ((a <= -8e-14) || !(a <= 5.5e+52)) {
		tmp = y + x;
	} else {
		tmp = x + ((y * z) / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if a <= -6.5e+130:
		tmp = y + x
	elif a <= -2.7e+70:
		tmp = y - (y * (z / a))
	elif (a <= -8e-14) or not (a <= 5.5e+52):
		tmp = y + x
	else:
		tmp = x + ((y * z) / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (a <= -6.5e+130)
		tmp = Float64(y + x);
	elseif (a <= -2.7e+70)
		tmp = Float64(y - Float64(y * Float64(z / a)));
	elseif ((a <= -8e-14) || !(a <= 5.5e+52))
		tmp = Float64(y + x);
	else
		tmp = Float64(x + Float64(Float64(y * z) / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (a <= -6.5e+130)
		tmp = y + x;
	elseif (a <= -2.7e+70)
		tmp = y - (y * (z / a));
	elseif ((a <= -8e-14) || ~((a <= 5.5e+52)))
		tmp = y + x;
	else
		tmp = x + ((y * z) / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.5e+130], N[(y + x), $MachinePrecision], If[LessEqual[a, -2.7e+70], N[(y - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 5.5e+52]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\
\;\;\;\;y + x\\

\mathbf{elif}\;a \leq -2.7 \cdot 10^{+70}:\\
\;\;\;\;y - y \cdot \frac{z}{a}\\

\mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 5.5 \cdot 10^{+52}\right):\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -6.5e130 or -2.7e70 < a < -7.99999999999999999e-14 or 5.49999999999999996e52 < a

    1. Initial program 82.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 78.2%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative78.2%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified78.2%

      \[\leadsto \color{blue}{y + x} \]

    if -6.5e130 < a < -2.7e70

    1. Initial program 75.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt75.2%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac81.8%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr81.8%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num81.8%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times81.0%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity81.0%

        \[\leadsto \left(x + y\right) - \frac{\color{blue}{y}}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}} \]
    6. Applied egg-rr81.0%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/81.8%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow281.8%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft81.5%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified81.5%

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

      \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{a}{z}}} \]
    10. Taylor expanded in x around 0 58.4%

      \[\leadsto \color{blue}{y - \frac{y \cdot z}{a}} \]
    11. Step-by-step derivation
      1. associate-*r/64.3%

        \[\leadsto y - \color{blue}{y \cdot \frac{z}{a}} \]
    12. Simplified64.3%

      \[\leadsto \color{blue}{y - y \cdot \frac{z}{a}} \]

    if -7.99999999999999999e-14 < a < 5.49999999999999996e52

    1. Initial program 77.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg77.4%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*78.2%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac278.4%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified78.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 72.7%

      \[\leadsto \color{blue}{\left(x + \left(y + \left(-1 \cdot y + \frac{y \cdot z}{t}\right)\right)\right) - \frac{a \cdot y}{t}} \]
    6. Step-by-step derivation
      1. associate--l+72.7%

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

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

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

        \[\leadsto x + \left(\left(\color{blue}{0} \cdot y + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      5. mul0-lft79.9%

        \[\leadsto x + \left(\left(\color{blue}{0} + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      6. associate-/l*78.5%

        \[\leadsto x + \left(\left(0 + \color{blue}{y \cdot \frac{z}{t}}\right) - \frac{a \cdot y}{t}\right) \]
      7. associate-/l*77.2%

        \[\leadsto x + \left(\left(0 + y \cdot \frac{z}{t}\right) - \color{blue}{a \cdot \frac{y}{t}}\right) \]
    7. Simplified77.2%

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

      \[\leadsto \color{blue}{x + \frac{y \cdot z}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification76.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{+130}:\\ \;\;\;\;y + x\\ \mathbf{elif}\;a \leq -2.7 \cdot 10^{+70}:\\ \;\;\;\;y - y \cdot \frac{z}{a}\\ \mathbf{elif}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 5.5 \cdot 10^{+52}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 60.8% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+217}:\\ \;\;\;\;\frac{y \cdot z}{t}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{+185} \lor \neg \left(z \leq 6 \cdot 10^{+229}\right) \land z \leq 7.8 \cdot 10^{+251}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (<= z -1.9e+217)
   (/ (* y z) t)
   (if (or (<= z 3.5e+185) (and (not (<= z 6e+229)) (<= z 7.8e+251)))
     (+ y x)
     (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.9e+217) {
		tmp = (y * z) / t;
	} else if ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251))) {
		tmp = y + x;
	} else {
		tmp = y * (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
    real(8) :: tmp
    if (z <= (-1.9d+217)) then
        tmp = (y * z) / t
    else if ((z <= 3.5d+185) .or. (.not. (z <= 6d+229)) .and. (z <= 7.8d+251)) then
        tmp = y + x
    else
        tmp = y * (z / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if (z <= -1.9e+217) {
		tmp = (y * z) / t;
	} else if ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251))) {
		tmp = y + x;
	} else {
		tmp = y * (z / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if z <= -1.9e+217:
		tmp = (y * z) / t
	elif (z <= 3.5e+185) or (not (z <= 6e+229) and (z <= 7.8e+251)):
		tmp = y + x
	else:
		tmp = y * (z / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if (z <= -1.9e+217)
		tmp = Float64(Float64(y * z) / t);
	elseif ((z <= 3.5e+185) || (!(z <= 6e+229) && (z <= 7.8e+251)))
		tmp = Float64(y + x);
	else
		tmp = Float64(y * Float64(z / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if (z <= -1.9e+217)
		tmp = (y * z) / t;
	elseif ((z <= 3.5e+185) || (~((z <= 6e+229)) && (z <= 7.8e+251)))
		tmp = y + x;
	else
		tmp = y * (z / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+217], N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision], If[Or[LessEqual[z, 3.5e+185], And[N[Not[LessEqual[z, 6e+229]], $MachinePrecision], LessEqual[z, 7.8e+251]]], N[(y + x), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+217}:\\
\;\;\;\;\frac{y \cdot z}{t}\\

\mathbf{elif}\;z \leq 3.5 \cdot 10^{+185} \lor \neg \left(z \leq 6 \cdot 10^{+229}\right) \land z \leq 7.8 \cdot 10^{+251}:\\
\;\;\;\;y + x\\

\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.90000000000000001e217

    1. Initial program 95.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg95.0%

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

        \[\leadsto \color{blue}{\left(-\frac{\left(z - t\right) \cdot y}{a - t}\right) + \left(x + y\right)} \]
      3. distribute-frac-neg95.0%

        \[\leadsto \color{blue}{\frac{-\left(z - t\right) \cdot y}{a - t}} + \left(x + y\right) \]
      4. distribute-rgt-neg-out95.0%

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*90.3%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac290.3%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg90.3%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified90.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in z around inf 85.0%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t - a}} \]
    6. Taylor expanded in t around inf 69.4%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t}} \]

    if -1.90000000000000001e217 < z < 3.50000000000000023e185 or 5.99999999999999995e229 < z < 7.79999999999999951e251

    1. Initial program 77.3%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 63.7%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative63.7%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified63.7%

      \[\leadsto \color{blue}{y + x} \]

    if 3.50000000000000023e185 < z < 5.99999999999999995e229 or 7.79999999999999951e251 < z

    1. Initial program 80.8%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg80.8%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*89.6%

        \[\leadsto \color{blue}{\left(z - t\right) \cdot \frac{-y}{a - t}} + \left(x + y\right) \]
      6. fma-define89.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac289.6%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg89.6%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified89.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in z around inf 77.3%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t - a}} \]
    6. Taylor expanded in t around inf 49.7%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t}} \]
    7. Step-by-step derivation
      1. associate-*r/53.0%

        \[\leadsto \color{blue}{y \cdot \frac{z}{t}} \]
    8. Simplified53.0%

      \[\leadsto \color{blue}{y \cdot \frac{z}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification63.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+217}:\\ \;\;\;\;\frac{y \cdot z}{t}\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{+185} \lor \neg \left(z \leq 6 \cdot 10^{+229}\right) \land z \leq 7.8 \cdot 10^{+251}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 90.6% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{+78} \lor \neg \left(t \leq 2.5 \cdot 10^{+94}\right):\\ \;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= t -1.1e+78) (not (<= t 2.5e+94)))
   (+ x (- (* y (/ z t)) (* a (/ y t))))
   (- (+ y x) (/ y (/ (- a t) (- z t))))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((t <= -1.1e+78) || !(t <= 2.5e+94)) {
		tmp = x + ((y * (z / t)) - (a * (y / t)));
	} else {
		tmp = (y + 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
    real(8) :: tmp
    if ((t <= (-1.1d+78)) .or. (.not. (t <= 2.5d+94))) then
        tmp = x + ((y * (z / t)) - (a * (y / t)))
    else
        tmp = (y + 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) {
	double tmp;
	if ((t <= -1.1e+78) || !(t <= 2.5e+94)) {
		tmp = x + ((y * (z / t)) - (a * (y / t)));
	} else {
		tmp = (y + x) - (y / ((a - t) / (z - t)));
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (t <= -1.1e+78) or not (t <= 2.5e+94):
		tmp = x + ((y * (z / t)) - (a * (y / t)))
	else:
		tmp = (y + x) - (y / ((a - t) / (z - t)))
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((t <= -1.1e+78) || !(t <= 2.5e+94))
		tmp = Float64(x + Float64(Float64(y * Float64(z / t)) - Float64(a * Float64(y / t))));
	else
		tmp = Float64(Float64(y + x) - Float64(y / Float64(Float64(a - t) / Float64(z - t))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if ((t <= -1.1e+78) || ~((t <= 2.5e+94)))
		tmp = x + ((y * (z / t)) - (a * (y / t)));
	else
		tmp = (y + x) - (y / ((a - t) / (z - t)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.1e+78], N[Not[LessEqual[t, 2.5e+94]], $MachinePrecision]], N[(x + N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - N[(a * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y + x), $MachinePrecision] - N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+78} \lor \neg \left(t \leq 2.5 \cdot 10^{+94}\right):\\
\;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.10000000000000007e78 or 2.50000000000000005e94 < t

    1. Initial program 55.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg55.4%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*63.7%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac263.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg63.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified63.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 73.0%

      \[\leadsto \color{blue}{\left(x + \left(y + \left(-1 \cdot y + \frac{y \cdot z}{t}\right)\right)\right) - \frac{a \cdot y}{t}} \]
    6. Step-by-step derivation
      1. associate--l+73.0%

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

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

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

        \[\leadsto x + \left(\left(\color{blue}{0} \cdot y + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      5. mul0-lft80.3%

        \[\leadsto x + \left(\left(\color{blue}{0} + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      6. associate-/l*84.8%

        \[\leadsto x + \left(\left(0 + \color{blue}{y \cdot \frac{z}{t}}\right) - \frac{a \cdot y}{t}\right) \]
      7. associate-/l*92.9%

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

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

    if -1.10000000000000007e78 < t < 2.50000000000000005e94

    1. Initial program 93.3%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt93.0%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac94.6%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr94.6%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num94.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times93.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity93.6%

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

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/93.6%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow293.6%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft93.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.1 \cdot 10^{+78} \lor \neg \left(t \leq 2.5 \cdot 10^{+94}\right):\\ \;\;\;\;x + \left(y \cdot \frac{z}{t} - a \cdot \frac{y}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 85.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.2 \cdot 10^{+77}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -9.19999999999999979e77

    1. Initial program 47.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 73.4%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+73.4%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--73.4%

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--73.4%

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

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

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

    if -9.19999999999999979e77 < t < 3.2000000000000002e129

    1. Initial program 90.9%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. associate-/l*92.0%

        \[\leadsto \left(x + y\right) - \color{blue}{\left(z - t\right) \cdot \frac{y}{a - t}} \]
      2. *-commutative92.0%

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

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

    if 3.2000000000000002e129 < t

    1. Initial program 64.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 89.9%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+89.9%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--89.9%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg89.9%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative89.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--89.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot \left(a - z\right)}}{t} \]
    5. Simplified89.9%

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

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{t}} \]
    7. Step-by-step derivation
      1. associate-/l*94.1%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
    8. Simplified94.1%

      \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -9.2 \cdot 10^{+77}:\\ \;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{+129}:\\ \;\;\;\;\left(y + x\right) - \left(z - t\right) \cdot \frac{y}{a - t}\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 85.8% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{+223}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.3999999999999999e223

    1. Initial program 29.6%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 70.9%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+70.9%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--70.9%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg70.9%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative70.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--70.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot \left(a - z\right)}}{t} \]
    5. Simplified70.9%

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

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

    if -4.3999999999999999e223 < t < 4.19999999999999993e129

    1. Initial program 87.6%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt87.4%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac90.8%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr90.8%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num90.7%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times89.9%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity89.9%

        \[\leadsto \left(x + y\right) - \frac{\color{blue}{y}}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}} \]
    6. Applied egg-rr89.9%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/89.9%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow289.9%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft90.1%

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

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

    if 4.19999999999999993e129 < t

    1. Initial program 64.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 89.9%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+89.9%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--89.9%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg89.9%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative89.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--89.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot \left(a - z\right)}}{t} \]
    5. Simplified89.9%

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

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{t}} \]
    7. Step-by-step derivation
      1. associate-/l*94.1%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
    8. Simplified94.1%

      \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification90.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+223}:\\ \;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{+129}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a - t}{z - t}}\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 85.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{+78}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.00000000000000001e78

    1. Initial program 47.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 73.4%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+73.4%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--73.4%

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--73.4%

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

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

      \[\leadsto x - \color{blue}{-1 \cdot \frac{y \cdot z}{t}} \]
    7. Step-by-step derivation
      1. mul-1-neg65.1%

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

        \[\leadsto x - \color{blue}{\frac{y \cdot z}{-t}} \]
      3. associate-/l*75.3%

        \[\leadsto x - \color{blue}{y \cdot \frac{z}{-t}} \]
    8. Simplified75.3%

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

    if -1.00000000000000001e78 < t < 5.0999999999999998e125

    1. Initial program 91.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 91.2%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y \cdot z}{a - t}} \]
    4. Step-by-step derivation
      1. associate-/l*91.8%

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

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

    if 5.0999999999999998e125 < t

    1. Initial program 63.6%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 90.4%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+90.4%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--90.4%

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--90.4%

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

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

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{t}} \]
    7. Step-by-step derivation
      1. associate-/l*91.9%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
    8. Simplified91.9%

      \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification88.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1 \cdot 10^{+78}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \mathbf{elif}\;t \leq 5.1 \cdot 10^{+125}:\\ \;\;\;\;\left(y + x\right) + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 84.7% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.8 \cdot 10^{+222}:\\
\;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.8000000000000002e222

    1. Initial program 29.6%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 70.9%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+70.9%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--70.9%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg70.9%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative70.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--70.9%

        \[\leadsto x - \frac{\color{blue}{y \cdot \left(a - z\right)}}{t} \]
    5. Simplified70.9%

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

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

    if -4.8000000000000002e222 < t < 3.3500000000000002e125

    1. Initial program 88.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 87.8%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y \cdot z}{a - t}} \]
    4. Step-by-step derivation
      1. associate-/l*89.9%

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

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

    if 3.3500000000000002e125 < t

    1. Initial program 63.6%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 90.4%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+90.4%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--90.4%

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

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

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

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

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--90.4%

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

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

      \[\leadsto x - \color{blue}{\frac{a \cdot y}{t}} \]
    7. Step-by-step derivation
      1. associate-/l*91.9%

        \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
    8. Simplified91.9%

      \[\leadsto x - \color{blue}{a \cdot \frac{y}{t}} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification89.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.8 \cdot 10^{+222}:\\ \;\;\;\;y \cdot \left(\left(\frac{z}{t} + \frac{x}{y}\right) - \frac{a}{t}\right)\\ \mathbf{elif}\;t \leq 3.35 \cdot 10^{+125}:\\ \;\;\;\;\left(y + x\right) + y \cdot \frac{z}{t - a}\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot \frac{y}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 81.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -5.7 \cdot 10^{-33} \lor \neg \left(a \leq 1820000000\right):\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= a -5.7e-33) (not (<= a 1820000000.0)))
   (- (+ y x) (/ y (/ a z)))
   (- x (/ (* y (- a z)) t))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -5.7e-33) || !(a <= 1820000000.0)) {
		tmp = (y + x) - (y / (a / z));
	} else {
		tmp = x - ((y * (a - 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
    real(8) :: tmp
    if ((a <= (-5.7d-33)) .or. (.not. (a <= 1820000000.0d0))) then
        tmp = (y + x) - (y / (a / z))
    else
        tmp = x - ((y * (a - z)) / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -5.7e-33) || !(a <= 1820000000.0)) {
		tmp = (y + x) - (y / (a / z));
	} else {
		tmp = x - ((y * (a - z)) / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (a <= -5.7e-33) or not (a <= 1820000000.0):
		tmp = (y + x) - (y / (a / z))
	else:
		tmp = x - ((y * (a - z)) / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((a <= -5.7e-33) || !(a <= 1820000000.0))
		tmp = Float64(Float64(y + x) - Float64(y / Float64(a / z)));
	else
		tmp = Float64(x - Float64(Float64(y * Float64(a - z)) / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if ((a <= -5.7e-33) || ~((a <= 1820000000.0)))
		tmp = (y + x) - (y / (a / z));
	else
		tmp = x - ((y * (a - z)) / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.7e-33], N[Not[LessEqual[a, 1820000000.0]], $MachinePrecision]], N[(N[(y + x), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.7 \cdot 10^{-33} \lor \neg \left(a \leq 1820000000\right):\\
\;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -5.70000000000000025e-33 or 1.82e9 < a

    1. Initial program 80.2%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt80.1%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac88.6%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr88.6%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num88.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times88.6%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity88.6%

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

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/88.7%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow288.7%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft88.7%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified88.7%

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

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

    if -5.70000000000000025e-33 < a < 1.82e9

    1. Initial program 77.7%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 83.5%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+83.5%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--83.5%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg83.5%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative83.5%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--83.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.7 \cdot 10^{-33} \lor \neg \left(a \leq 1820000000\right):\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\ \mathbf{else}:\\ \;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 81.9% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.65 \cdot 10^{-29}:\\
\;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.65000000000000014e-29

    1. Initial program 80.7%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 80.7%

      \[\leadsto \color{blue}{\left(x + y\right) - \frac{y \cdot z}{a}} \]
    4. Step-by-step derivation
      1. +-commutative80.7%

        \[\leadsto \color{blue}{\left(y + x\right)} - \frac{y \cdot z}{a} \]
      2. associate-/l*83.4%

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

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

    if -1.65000000000000014e-29 < a < 1.55e9

    1. Initial program 77.7%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 83.5%

      \[\leadsto \color{blue}{\left(x + -1 \cdot \frac{a \cdot y}{t}\right) - -1 \cdot \frac{y \cdot z}{t}} \]
    4. Step-by-step derivation
      1. associate--l+83.5%

        \[\leadsto \color{blue}{x + \left(-1 \cdot \frac{a \cdot y}{t} - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      2. distribute-lft-out--83.5%

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

        \[\leadsto x + -1 \cdot \color{blue}{\frac{a \cdot y - y \cdot z}{t}} \]
      4. mul-1-neg83.5%

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

        \[\leadsto \color{blue}{x - \frac{a \cdot y - y \cdot z}{t}} \]
      6. *-commutative83.5%

        \[\leadsto x - \frac{\color{blue}{y \cdot a} - y \cdot z}{t} \]
      7. distribute-lft-out--83.5%

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

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

    if 1.55e9 < a

    1. Initial program 79.5%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-cube-cbrt79.5%

        \[\leadsto \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right) \cdot \sqrt[3]{a - t}}} \]
      2. times-frac90.1%

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

        \[\leadsto \left(x + y\right) - \frac{z - t}{\color{blue}{{\left(\sqrt[3]{a - t}\right)}^{2}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
    4. Applied egg-rr90.1%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{z - t}{{\left(\sqrt[3]{a - t}\right)}^{2}} \cdot \frac{y}{\sqrt[3]{a - t}}} \]
    5. Step-by-step derivation
      1. clear-num90.0%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t}}} \cdot \frac{y}{\sqrt[3]{a - t}} \]
      2. frac-times90.1%

        \[\leadsto \left(x + y\right) - \color{blue}{\frac{1 \cdot y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
      3. *-un-lft-identity90.1%

        \[\leadsto \left(x + y\right) - \frac{\color{blue}{y}}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}} \]
    6. Applied egg-rr90.1%

      \[\leadsto \left(x + y\right) - \color{blue}{\frac{y}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2}}{z - t} \cdot \sqrt[3]{a - t}}} \]
    7. Step-by-step derivation
      1. associate-*l/90.1%

        \[\leadsto \left(x + y\right) - \frac{y}{\color{blue}{\frac{{\left(\sqrt[3]{a - t}\right)}^{2} \cdot \sqrt[3]{a - t}}{z - t}}} \]
      2. unpow290.1%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{\left(\sqrt[3]{a - t} \cdot \sqrt[3]{a - t}\right)} \cdot \sqrt[3]{a - t}}{z - t}} \]
      3. rem-3cbrt-lft89.9%

        \[\leadsto \left(x + y\right) - \frac{y}{\frac{\color{blue}{a - t}}{z - t}} \]
    8. Simplified89.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.65 \cdot 10^{-29}:\\ \;\;\;\;\left(y + x\right) - y \cdot \frac{z}{a}\\ \mathbf{elif}\;a \leq 1550000000:\\ \;\;\;\;x - \frac{y \cdot \left(a - z\right)}{t}\\ \mathbf{else}:\\ \;\;\;\;\left(y + x\right) - \frac{y}{\frac{a}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 75.0% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 1.5 \cdot 10^{+53}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= a -8e-14) (not (<= a 1.5e+53))) (+ y x) (+ x (/ (* y z) t))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -8e-14) || !(a <= 1.5e+53)) {
		tmp = y + x;
	} else {
		tmp = x + ((y * 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
    real(8) :: tmp
    if ((a <= (-8d-14)) .or. (.not. (a <= 1.5d+53))) then
        tmp = y + x
    else
        tmp = x + ((y * z) / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -8e-14) || !(a <= 1.5e+53)) {
		tmp = y + x;
	} else {
		tmp = x + ((y * z) / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (a <= -8e-14) or not (a <= 1.5e+53):
		tmp = y + x
	else:
		tmp = x + ((y * z) / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((a <= -8e-14) || !(a <= 1.5e+53))
		tmp = Float64(y + x);
	else
		tmp = Float64(x + Float64(Float64(y * z) / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if ((a <= -8e-14) || ~((a <= 1.5e+53)))
		tmp = y + x;
	else
		tmp = x + ((y * z) / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -8e-14], N[Not[LessEqual[a, 1.5e+53]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 1.5 \cdot 10^{+53}\right):\\
\;\;\;\;y + x\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -7.99999999999999999e-14 or 1.49999999999999999e53 < a

    1. Initial program 81.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 71.8%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative71.8%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified71.8%

      \[\leadsto \color{blue}{y + x} \]

    if -7.99999999999999999e-14 < a < 1.49999999999999999e53

    1. Initial program 77.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg77.4%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*78.2%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac278.4%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg78.4%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified78.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in t around inf 72.7%

      \[\leadsto \color{blue}{\left(x + \left(y + \left(-1 \cdot y + \frac{y \cdot z}{t}\right)\right)\right) - \frac{a \cdot y}{t}} \]
    6. Step-by-step derivation
      1. associate--l+72.7%

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

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

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

        \[\leadsto x + \left(\left(\color{blue}{0} \cdot y + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      5. mul0-lft79.9%

        \[\leadsto x + \left(\left(\color{blue}{0} + \frac{y \cdot z}{t}\right) - \frac{a \cdot y}{t}\right) \]
      6. associate-/l*78.5%

        \[\leadsto x + \left(\left(0 + \color{blue}{y \cdot \frac{z}{t}}\right) - \frac{a \cdot y}{t}\right) \]
      7. associate-/l*77.2%

        \[\leadsto x + \left(\left(0 + y \cdot \frac{z}{t}\right) - \color{blue}{a \cdot \frac{y}{t}}\right) \]
    7. Simplified77.2%

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

      \[\leadsto \color{blue}{x + \frac{y \cdot z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8 \cdot 10^{-14} \lor \neg \left(a \leq 1.5 \cdot 10^{+53}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y \cdot z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 59.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.7 \cdot 10^{-259} \lor \neg \left(a \leq 9 \cdot 10^{-99}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= a -2.7e-259) (not (<= a 9e-99))) (+ y x) (* y (/ z t))))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -2.7e-259) || !(a <= 9e-99)) {
		tmp = y + x;
	} else {
		tmp = y * (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
    real(8) :: tmp
    if ((a <= (-2.7d-259)) .or. (.not. (a <= 9d-99))) then
        tmp = y + x
    else
        tmp = y * (z / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((a <= -2.7e-259) || !(a <= 9e-99)) {
		tmp = y + x;
	} else {
		tmp = y * (z / t);
	}
	return tmp;
}
def code(x, y, z, t, a):
	tmp = 0
	if (a <= -2.7e-259) or not (a <= 9e-99):
		tmp = y + x
	else:
		tmp = y * (z / t)
	return tmp
function code(x, y, z, t, a)
	tmp = 0.0
	if ((a <= -2.7e-259) || !(a <= 9e-99))
		tmp = Float64(y + x);
	else
		tmp = Float64(y * Float64(z / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	tmp = 0.0;
	if ((a <= -2.7e-259) || ~((a <= 9e-99)))
		tmp = y + x;
	else
		tmp = y * (z / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.7e-259], N[Not[LessEqual[a, 9e-99]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.7 \cdot 10^{-259} \lor \neg \left(a \leq 9 \cdot 10^{-99}\right):\\
\;\;\;\;y + x\\

\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.69999999999999984e-259 or 9.0000000000000006e-99 < a

    1. Initial program 80.4%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 62.1%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative62.1%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified62.1%

      \[\leadsto \color{blue}{y + x} \]

    if -2.69999999999999984e-259 < a < 9.0000000000000006e-99

    1. Initial program 73.9%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Step-by-step derivation
      1. sub-neg73.9%

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

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

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

        \[\leadsto \frac{\color{blue}{\left(z - t\right) \cdot \left(-y\right)}}{a - t} + \left(x + y\right) \]
      5. associate-/l*72.5%

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{-y}{a - t}, x + y\right)} \]
      7. distribute-frac-neg72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{-\frac{y}{a - t}}, x + y\right) \]
      8. distribute-neg-frac272.9%

        \[\leadsto \mathsf{fma}\left(z - t, \color{blue}{\frac{y}{-\left(a - t\right)}}, x + y\right) \]
      9. sub-neg72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{-\color{blue}{\left(a + \left(-t\right)\right)}}, x + y\right) \]
      10. distribute-neg-in72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{\left(-a\right) + \left(-\left(-t\right)\right)}}, x + y\right) \]
      11. remove-double-neg72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\left(-a\right) + \color{blue}{t}}, x + y\right) \]
      12. +-commutative72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t + \left(-a\right)}}, x + y\right) \]
      13. sub-neg72.9%

        \[\leadsto \mathsf{fma}\left(z - t, \frac{y}{\color{blue}{t - a}}, x + y\right) \]
    3. Simplified72.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(z - t, \frac{y}{t - a}, x + y\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in z around inf 59.3%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t - a}} \]
    6. Taylor expanded in t around inf 50.6%

      \[\leadsto \color{blue}{\frac{y \cdot z}{t}} \]
    7. Step-by-step derivation
      1. associate-*r/50.7%

        \[\leadsto \color{blue}{y \cdot \frac{z}{t}} \]
    8. Simplified50.7%

      \[\leadsto \color{blue}{y \cdot \frac{z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification59.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.7 \cdot 10^{-259} \lor \neg \left(a \leq 9 \cdot 10^{-99}\right):\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 59.0% accurate, 1.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.3 \cdot 10^{-9}:\\
\;\;\;\;y + x\\

\mathbf{else}:\\
\;\;\;\;x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 1.3000000000000001e-9

    1. Initial program 77.8%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf 52.4%

      \[\leadsto \color{blue}{x + y} \]
    4. Step-by-step derivation
      1. +-commutative52.4%

        \[\leadsto \color{blue}{y + x} \]
    5. Simplified52.4%

      \[\leadsto \color{blue}{y + x} \]

    if 1.3000000000000001e-9 < x

    1. Initial program 83.0%

      \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf 71.4%

      \[\leadsto \color{blue}{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification56.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 1.3 \cdot 10^{-9}:\\ \;\;\;\;y + x\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 49.4% accurate, 13.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
	return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
	return x;
}
def code(x, y, z, t, a):
	return x
function code(x, y, z, t, a)
	return x
end
function tmp = code(x, y, z, t, a)
	tmp = x;
end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 78.9%

    \[\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t} \]
  2. Add Preprocessing
  3. Taylor expanded in x around inf 48.1%

    \[\leadsto \color{blue}{x} \]
  4. Final simplification48.1%

    \[\leadsto x \]
  5. Add Preprocessing

Developer target: 88.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\ t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\ \mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\ \;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
        (t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
   (if (< t_2 -1.3664970889390727e-7)
     t_1
     (if (< t_2 1.4754293444577233e-239)
       (/ (- (* y (- a z)) (* x t)) (- a t))
       t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
	double t_2 = (x + y) - (((z - t) * y) / (a - t));
	double tmp;
	if (t_2 < -1.3664970889390727e-7) {
		tmp = t_1;
	} else if (t_2 < 1.4754293444577233e-239) {
		tmp = ((y * (a - z)) - (x * t)) / (a - t);
	} 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
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
    t_2 = (x + y) - (((z - t) * y) / (a - t))
    if (t_2 < (-1.3664970889390727d-7)) then
        tmp = t_1
    else if (t_2 < 1.4754293444577233d-239) then
        tmp = ((y * (a - z)) - (x * t)) / (a - t)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
	double t_2 = (x + y) - (((z - t) * y) / (a - t));
	double tmp;
	if (t_2 < -1.3664970889390727e-7) {
		tmp = t_1;
	} else if (t_2 < 1.4754293444577233e-239) {
		tmp = ((y * (a - z)) - (x * t)) / (a - t);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y)
	t_2 = (x + y) - (((z - t) * y) / (a - t))
	tmp = 0
	if t_2 < -1.3664970889390727e-7:
		tmp = t_1
	elif t_2 < 1.4754293444577233e-239:
		tmp = ((y * (a - z)) - (x * t)) / (a - t)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y))
	t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t)))
	tmp = 0.0
	if (t_2 < -1.3664970889390727e-7)
		tmp = t_1;
	elseif (t_2 < 1.4754293444577233e-239)
		tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
	t_2 = (x + y) - (((z - t) * y) / (a - t));
	tmp = 0.0;
	if (t_2 < -1.3664970889390727e-7)
		tmp = t_1;
	elseif (t_2 < 1.4754293444577233e-239)
		tmp = ((y * (a - z)) - (x * t)) / (a - t);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t\_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024095 
(FPCore (x y z t a)
  :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
  :precision binary64

  :alt
  (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))

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