Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A

Percentage Accurate: 86.0% → 98.2%
Time: 11.5s
Alternatives: 13
Speedup: 1.0×

Specification

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

\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\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 13 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: 86.0% accurate, 1.0× speedup?

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

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

Alternative 1: 98.2% accurate, 1.0× speedup?

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

\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
Derivation
  1. Initial program 83.7%

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

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

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

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

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

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

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

    \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
  7. Step-by-step derivation
    1. clear-num97.5%

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    2. add-cube-cbrt96.8%

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

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

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

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

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

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

      \[\leadsto x + \frac{\color{blue}{y}}{\frac{z - a}{z - t}} \]
  10. Simplified97.5%

    \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
  11. Add Preprocessing

Alternative 2: 75.0% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{t}{\frac{a}{y}}\\ \mathbf{if}\;z \leq -1.6 \cdot 10^{+117}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;z \leq -2.8 \cdot 10^{+56}:\\ \;\;\;\;\left(t - z\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;z \leq -6.2 \cdot 10^{-13}:\\ \;\;\;\;x - z \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-127}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.9 \cdot 10^{-127}:\\ \;\;\;\;t \cdot \frac{y}{-z}\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-55}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (/ t (/ a y)))))
   (if (<= z -1.6e+117)
     (+ x y)
     (if (<= z -2.8e+56)
       (* (- t z) (/ y (- a z)))
       (if (<= z -6.2e-13)
         (- x (* z (/ y a)))
         (if (<= z -3e-127)
           t_1
           (if (<= z -2.9e-127)
             (* t (/ y (- z)))
             (if (<= z 5e-55) t_1 (+ x y)))))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (t / (a / y));
	double tmp;
	if (z <= -1.6e+117) {
		tmp = x + y;
	} else if (z <= -2.8e+56) {
		tmp = (t - z) * (y / (a - z));
	} else if (z <= -6.2e-13) {
		tmp = x - (z * (y / a));
	} else if (z <= -3e-127) {
		tmp = t_1;
	} else if (z <= -2.9e-127) {
		tmp = t * (y / -z);
	} else if (z <= 5e-55) {
		tmp = t_1;
	} else {
		tmp = x + y;
	}
	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 = x + (t / (a / y))
    if (z <= (-1.6d+117)) then
        tmp = x + y
    else if (z <= (-2.8d+56)) then
        tmp = (t - z) * (y / (a - z))
    else if (z <= (-6.2d-13)) then
        tmp = x - (z * (y / a))
    else if (z <= (-3d-127)) then
        tmp = t_1
    else if (z <= (-2.9d-127)) then
        tmp = t * (y / -z)
    else if (z <= 5d-55) then
        tmp = t_1
    else
        tmp = x + y
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (t / (a / y));
	double tmp;
	if (z <= -1.6e+117) {
		tmp = x + y;
	} else if (z <= -2.8e+56) {
		tmp = (t - z) * (y / (a - z));
	} else if (z <= -6.2e-13) {
		tmp = x - (z * (y / a));
	} else if (z <= -3e-127) {
		tmp = t_1;
	} else if (z <= -2.9e-127) {
		tmp = t * (y / -z);
	} else if (z <= 5e-55) {
		tmp = t_1;
	} else {
		tmp = x + y;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (t / (a / y))
	tmp = 0
	if z <= -1.6e+117:
		tmp = x + y
	elif z <= -2.8e+56:
		tmp = (t - z) * (y / (a - z))
	elif z <= -6.2e-13:
		tmp = x - (z * (y / a))
	elif z <= -3e-127:
		tmp = t_1
	elif z <= -2.9e-127:
		tmp = t * (y / -z)
	elif z <= 5e-55:
		tmp = t_1
	else:
		tmp = x + y
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(t / Float64(a / y)))
	tmp = 0.0
	if (z <= -1.6e+117)
		tmp = Float64(x + y);
	elseif (z <= -2.8e+56)
		tmp = Float64(Float64(t - z) * Float64(y / Float64(a - z)));
	elseif (z <= -6.2e-13)
		tmp = Float64(x - Float64(z * Float64(y / a)));
	elseif (z <= -3e-127)
		tmp = t_1;
	elseif (z <= -2.9e-127)
		tmp = Float64(t * Float64(y / Float64(-z)));
	elseif (z <= 5e-55)
		tmp = t_1;
	else
		tmp = Float64(x + y);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (t / (a / y));
	tmp = 0.0;
	if (z <= -1.6e+117)
		tmp = x + y;
	elseif (z <= -2.8e+56)
		tmp = (t - z) * (y / (a - z));
	elseif (z <= -6.2e-13)
		tmp = x - (z * (y / a));
	elseif (z <= -3e-127)
		tmp = t_1;
	elseif (z <= -2.9e-127)
		tmp = t * (y / -z);
	elseif (z <= 5e-55)
		tmp = t_1;
	else
		tmp = x + y;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+117], N[(x + y), $MachinePrecision], If[LessEqual[z, -2.8e+56], N[(N[(t - z), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e-13], N[(x - N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-127], t$95$1, If[LessEqual[z, -2.9e-127], N[(t * N[(y / (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-55], t$95$1, N[(x + y), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + \frac{t}{\frac{a}{y}}\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+117}:\\
\;\;\;\;x + y\\

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

\mathbf{elif}\;z \leq -6.2 \cdot 10^{-13}:\\
\;\;\;\;x - z \cdot \frac{y}{a}\\

\mathbf{elif}\;z \leq -3 \cdot 10^{-127}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -2.9 \cdot 10^{-127}:\\
\;\;\;\;t \cdot \frac{y}{-z}\\

\mathbf{elif}\;z \leq 5 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if z < -1.60000000000000002e117 or 5.0000000000000002e-55 < z

    1. Initial program 71.7%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.9%

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified77.4%

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

    if -1.60000000000000002e117 < z < -2.80000000000000008e56

    1. Initial program 90.9%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.6%

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

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

      \[\leadsto \color{blue}{y \cdot \left(\frac{z}{z - a} - \frac{t}{z - a}\right)} \]
    6. Step-by-step derivation
      1. div-sub73.5%

        \[\leadsto y \cdot \color{blue}{\frac{z - t}{z - a}} \]
      2. associate-*r/64.8%

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

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

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

    if -2.80000000000000008e56 < z < -6.1999999999999998e-13

    1. Initial program 90.5%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    5. Simplified90.3%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    6. Taylor expanded in z around 0 71.0%

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

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

        \[\leadsto x + \frac{\color{blue}{-y \cdot z}}{a} \]
      3. *-commutative71.0%

        \[\leadsto x + \frac{-\color{blue}{z \cdot y}}{a} \]
      4. distribute-rgt-neg-in71.0%

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

      \[\leadsto x + \color{blue}{\frac{z \cdot \left(-y\right)}{a}} \]
    9. Step-by-step derivation
      1. div-inv71.0%

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

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

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

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

        \[\leadsto x + \left(z \cdot \left(-\color{blue}{\sqrt{-y} \cdot \sqrt{-y}}\right)\right) \cdot \frac{1}{a} \]
      6. add-sqr-sqrt50.9%

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

        \[\leadsto x + \color{blue}{\left(-z \cdot \left(-y\right)\right)} \cdot \frac{1}{a} \]
      8. cancel-sign-sub-inv50.9%

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

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

        \[\leadsto x - \color{blue}{z \cdot \frac{-y}{a}} \]
      11. add-sqr-sqrt20.3%

        \[\leadsto x - z \cdot \frac{\color{blue}{\sqrt{-y} \cdot \sqrt{-y}}}{a} \]
      12. sqrt-unprod52.0%

        \[\leadsto x - z \cdot \frac{\color{blue}{\sqrt{\left(-y\right) \cdot \left(-y\right)}}}{a} \]
      13. sqr-neg52.0%

        \[\leadsto x - z \cdot \frac{\sqrt{\color{blue}{y \cdot y}}}{a} \]
      14. sqrt-unprod60.3%

        \[\leadsto x - z \cdot \frac{\color{blue}{\sqrt{y} \cdot \sqrt{y}}}{a} \]
      15. add-sqr-sqrt80.3%

        \[\leadsto x - z \cdot \frac{\color{blue}{y}}{a} \]
    10. Applied egg-rr80.3%

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

    if -6.1999999999999998e-13 < z < -3.00000000000000009e-127 or -2.9e-127 < z < 5.0000000000000002e-55

    1. Initial program 93.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define93.6%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative76.7%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*82.1%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified82.1%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num82.1%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv82.9%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr82.9%

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

    if -3.00000000000000009e-127 < z < -2.9e-127

    1. Initial program 100.0%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define100.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot y}{z}} \]
    9. Step-by-step derivation
      1. mul-1-neg100.0%

        \[\leadsto \color{blue}{-\frac{t \cdot y}{z}} \]
      2. associate-*r/100.0%

        \[\leadsto -\color{blue}{t \cdot \frac{y}{z}} \]
      3. distribute-rgt-neg-in100.0%

        \[\leadsto \color{blue}{t \cdot \left(-\frac{y}{z}\right)} \]
      4. mul-1-neg100.0%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \frac{y}{z}\right)} \]
      5. associate-*r/100.0%

        \[\leadsto t \cdot \color{blue}{\frac{-1 \cdot y}{z}} \]
      6. neg-mul-1100.0%

        \[\leadsto t \cdot \frac{\color{blue}{-y}}{z} \]
    10. Simplified100.0%

      \[\leadsto \color{blue}{t \cdot \frac{-y}{z}} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification80.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+117}:\\ \;\;\;\;x + y\\ \mathbf{elif}\;z \leq -2.8 \cdot 10^{+56}:\\ \;\;\;\;\left(t - z\right) \cdot \frac{y}{a - z}\\ \mathbf{elif}\;z \leq -6.2 \cdot 10^{-13}:\\ \;\;\;\;x - z \cdot \frac{y}{a}\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-127}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;z \leq -2.9 \cdot 10^{-127}:\\ \;\;\;\;t \cdot \frac{y}{-z}\\ \mathbf{elif}\;z \leq 5 \cdot 10^{-55}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 81.2% accurate, 0.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{if}\;z \leq -1.45 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-32}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;z \leq 5.8 \cdot 10^{+94} \lor \neg \left(z \leq 6.2 \cdot 10^{+94}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x - y \cdot \frac{z}{a}\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (+ x (* y (- 1.0 (/ t z))))))
   (if (<= z -1.45e+57)
     t_1
     (if (<= z 1.6e-32)
       (+ x (/ t (/ a y)))
       (if (or (<= z 5.8e+94) (not (<= z 6.2e+94)))
         t_1
         (- x (* y (/ z a))))))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (1.0 - (t / z)));
	double tmp;
	if (z <= -1.45e+57) {
		tmp = t_1;
	} else if (z <= 1.6e-32) {
		tmp = x + (t / (a / y));
	} else if ((z <= 5.8e+94) || !(z <= 6.2e+94)) {
		tmp = t_1;
	} else {
		tmp = x - (y * (z / a));
	}
	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 = x + (y * (1.0d0 - (t / z)))
    if (z <= (-1.45d+57)) then
        tmp = t_1
    else if (z <= 1.6d-32) then
        tmp = x + (t / (a / y))
    else if ((z <= 5.8d+94) .or. (.not. (z <= 6.2d+94))) then
        tmp = t_1
    else
        tmp = x - (y * (z / a))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = x + (y * (1.0 - (t / z)));
	double tmp;
	if (z <= -1.45e+57) {
		tmp = t_1;
	} else if (z <= 1.6e-32) {
		tmp = x + (t / (a / y));
	} else if ((z <= 5.8e+94) || !(z <= 6.2e+94)) {
		tmp = t_1;
	} else {
		tmp = x - (y * (z / a));
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = x + (y * (1.0 - (t / z)))
	tmp = 0
	if z <= -1.45e+57:
		tmp = t_1
	elif z <= 1.6e-32:
		tmp = x + (t / (a / y))
	elif (z <= 5.8e+94) or not (z <= 6.2e+94):
		tmp = t_1
	else:
		tmp = x - (y * (z / a))
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(x + Float64(y * Float64(1.0 - Float64(t / z))))
	tmp = 0.0
	if (z <= -1.45e+57)
		tmp = t_1;
	elseif (z <= 1.6e-32)
		tmp = Float64(x + Float64(t / Float64(a / y)));
	elseif ((z <= 5.8e+94) || !(z <= 6.2e+94))
		tmp = t_1;
	else
		tmp = Float64(x - Float64(y * Float64(z / a)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = x + (y * (1.0 - (t / z)));
	tmp = 0.0;
	if (z <= -1.45e+57)
		tmp = t_1;
	elseif (z <= 1.6e-32)
		tmp = x + (t / (a / y));
	elseif ((z <= 5.8e+94) || ~((z <= 6.2e+94)))
		tmp = t_1;
	else
		tmp = x - (y * (z / a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+57], t$95$1, If[LessEqual[z, 1.6e-32], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, 5.8e+94], N[Not[LessEqual[z, 6.2e+94]], $MachinePrecision]], t$95$1, N[(x - N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x + y \cdot \left(1 - \frac{t}{z}\right)\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 5.8 \cdot 10^{+94} \lor \neg \left(z \leq 6.2 \cdot 10^{+94}\right):\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.4500000000000001e57 or 1.6000000000000001e-32 < z < 5.7999999999999997e94 or 6.19999999999999983e94 < z

    1. Initial program 72.4%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z - t}{z}} \]
      2. div-sub86.9%

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

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

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

    if -1.4500000000000001e57 < z < 1.6000000000000001e-32

    1. Initial program 92.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define94.5%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative74.0%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*79.9%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified79.9%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num79.9%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv80.5%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr80.5%

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

    if 5.7999999999999997e94 < z < 6.19999999999999983e94

    1. Initial program 100.0%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    5. Simplified100.0%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    6. Taylor expanded in z around 0 100.0%

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

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

        \[\leadsto x + \frac{\color{blue}{-y \cdot z}}{a} \]
      3. *-commutative100.0%

        \[\leadsto x + \frac{-\color{blue}{z \cdot y}}{a} \]
      4. distribute-rgt-neg-in100.0%

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

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

      \[\leadsto \color{blue}{x + -1 \cdot \frac{y \cdot z}{a}} \]
    10. Step-by-step derivation
      1. mul-1-neg100.0%

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

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

        \[\leadsto x + \color{blue}{\left(-y\right) \cdot \frac{z}{a}} \]
      4. cancel-sign-sub-inv100.0%

        \[\leadsto \color{blue}{x - y \cdot \frac{z}{a}} \]
    11. Simplified100.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.45 \cdot 10^{+57}:\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{-32}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{elif}\;z \leq 5.8 \cdot 10^{+94} \lor \neg \left(z \leq 6.2 \cdot 10^{+94}\right):\\ \;\;\;\;x + y \cdot \left(1 - \frac{t}{z}\right)\\ \mathbf{else}:\\ \;\;\;\;x - y \cdot \frac{z}{a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 79.3% accurate, 0.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.3499999999999999e123

    1. Initial program 63.5%

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

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

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

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

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

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

        \[\leadsto x + \frac{1}{\color{blue}{\frac{\frac{z - a}{z - t}}{y}}} \]
    6. Simplified99.9%

      \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
    7. Step-by-step derivation
      1. clear-num100.0%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
      2. add-cube-cbrt98.9%

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

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

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

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

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

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

        \[\leadsto x + \frac{\color{blue}{y}}{\frac{z - a}{z - t}} \]
    10. Simplified100.0%

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    11. Taylor expanded in a around 0 94.2%

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

    if -2.3499999999999999e123 < z < -3.20000000000000002e-49

    1. Initial program 86.9%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.7%

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{a}} \]
    7. Simplified79.4%

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

    if -3.20000000000000002e-49 < z < 5.40000000000000008e-55

    1. Initial program 94.2%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define93.4%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative76.8%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*81.6%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified81.6%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num81.5%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv82.3%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr82.3%

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

    if 5.40000000000000008e-55 < z

    1. Initial program 77.2%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    5. Simplified83.9%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    6. Step-by-step derivation
      1. clear-num84.0%

        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z}}} \]
      2. inv-pow84.0%

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

      \[\leadsto x + y \cdot \color{blue}{{\left(\frac{z - a}{z}\right)}^{-1}} \]
    8. Step-by-step derivation
      1. unpow-184.0%

        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{z - a}{z}}} \]
    9. Simplified84.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.35 \cdot 10^{+123}:\\ \;\;\;\;x - \frac{y}{\frac{z}{t - z}}\\ \mathbf{elif}\;z \leq -3.2 \cdot 10^{-49}:\\ \;\;\;\;x + y \cdot \frac{t - z}{a}\\ \mathbf{elif}\;z \leq 5.4 \cdot 10^{-55}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{-1}{\frac{a - z}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 79.3% accurate, 0.5× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.65000000000000001e123

    1. Initial program 63.5%

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

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

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

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

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

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

        \[\leadsto x + \frac{1}{\color{blue}{\frac{\frac{z - a}{z - t}}{y}}} \]
    6. Simplified99.9%

      \[\leadsto x + \color{blue}{\frac{1}{\frac{\frac{z - a}{z - t}}{y}}} \]
    7. Step-by-step derivation
      1. clear-num100.0%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
      2. add-cube-cbrt98.9%

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

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

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

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

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

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

        \[\leadsto x + \frac{\color{blue}{y}}{\frac{z - a}{z - t}} \]
    10. Simplified100.0%

      \[\leadsto x + \color{blue}{\frac{y}{\frac{z - a}{z - t}}} \]
    11. Taylor expanded in a around 0 94.2%

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

    if -1.65000000000000001e123 < z < -1.9999999999999999e-47

    1. Initial program 86.9%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.7%

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

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

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

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

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

        \[\leadsto x - \color{blue}{y \cdot \frac{z - t}{a}} \]
    7. Simplified79.4%

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

    if -1.9999999999999999e-47 < z < 5.4999999999999999e-55

    1. Initial program 94.2%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define93.4%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative76.8%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*81.6%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified81.6%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num81.5%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv82.3%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr82.3%

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

    if 5.4999999999999999e-55 < z

    1. Initial program 77.2%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    5. Simplified83.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.65 \cdot 10^{+123}:\\ \;\;\;\;x - \frac{y}{\frac{z}{t - z}}\\ \mathbf{elif}\;z \leq -2 \cdot 10^{-47}:\\ \;\;\;\;x + y \cdot \frac{t - z}{a}\\ \mathbf{elif}\;z \leq 5.5 \cdot 10^{-55}:\\ \;\;\;\;x + \frac{t}{\frac{a}{y}}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z}{z - a}\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 80.7% accurate, 0.6× speedup?

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

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

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

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


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

    1. Initial program 71.1%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z - t}{z}} \]
      2. div-sub86.3%

        \[\leadsto x + y \cdot \color{blue}{\left(\frac{z}{z} - \frac{t}{z}\right)} \]
      3. *-inverses86.3%

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

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

    if -4.1999999999999999e45 < z < 5.1999999999999998e-55

    1. Initial program 92.7%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define94.1%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative74.9%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*80.6%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified80.6%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num80.6%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv81.3%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr81.3%

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

    if 5.1999999999999998e-55 < z

    1. Initial program 77.2%

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{z - a}} \]
    5. Simplified83.9%

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

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

Alternative 7: 74.6% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+153} \lor \neg \left(z \leq 5 \cdot 10^{-55}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.89999999999999983e153 or 5.0000000000000002e-55 < z

    1. Initial program 69.2%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.9%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative77.3%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified77.3%

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

    if -1.89999999999999983e153 < z < 5.0000000000000002e-55

    1. Initial program 93.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define94.9%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative73.1%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*78.1%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified78.1%

      \[\leadsto \color{blue}{t \cdot \frac{y}{a} + x} \]
    8. Step-by-step derivation
      1. clear-num78.1%

        \[\leadsto t \cdot \color{blue}{\frac{1}{\frac{a}{y}}} + x \]
      2. un-div-inv78.7%

        \[\leadsto \color{blue}{\frac{t}{\frac{a}{y}}} + x \]
    9. Applied egg-rr78.7%

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

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

Alternative 8: 74.5% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+153} \lor \neg \left(z \leq 5 \cdot 10^{-55}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.5999999999999999e153 or 5.0000000000000002e-55 < z

    1. Initial program 69.2%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.9%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative77.3%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified77.3%

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

    if -2.5999999999999999e153 < z < 5.0000000000000002e-55

    1. Initial program 93.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define94.9%

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

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

      \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
    6. Step-by-step derivation
      1. +-commutative73.1%

        \[\leadsto \color{blue}{\frac{t \cdot y}{a} + x} \]
      2. associate-/l*78.1%

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} + x \]
    7. Simplified78.1%

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

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

Alternative 9: 73.3% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+153} \lor \neg \left(z \leq 1.05 \cdot 10^{-67}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.89999999999999983e153 or 1.0500000000000001e-67 < z

    1. Initial program 69.8%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.9%

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified76.1%

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

    if -1.89999999999999983e153 < z < 1.0500000000000001e-67

    1. Initial program 93.6%

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

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

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

Alternative 10: 61.5% accurate, 0.6× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.9 \cdot 10^{-171} \lor \neg \left(x \leq 1.12 \cdot 10^{-219}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -6.89999999999999979e-171 or 1.12e-219 < x

    1. Initial program 84.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define96.6%

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

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

      \[\leadsto \color{blue}{x + y} \]
    6. Step-by-step derivation
      1. +-commutative64.9%

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified64.9%

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

    if -6.89999999999999979e-171 < x < 1.12e-219

    1. Initial program 80.8%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define98.1%

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

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

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

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

        \[\leadsto x + \color{blue}{y \cdot \frac{z - t}{z}} \]
      2. div-sub57.9%

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

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

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

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

Alternative 11: 58.8% accurate, 0.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.4 \cdot 10^{-202} \lor \neg \left(x \leq 4.6 \cdot 10^{-285}\right):\\
\;\;\;\;x + y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -6.4000000000000002e-202 or 4.59999999999999993e-285 < x

    1. Initial program 84.8%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define96.4%

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

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

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

        \[\leadsto \color{blue}{y + x} \]
    7. Simplified62.2%

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

    if -6.4000000000000002e-202 < x < 4.59999999999999993e-285

    1. Initial program 77.6%

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

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

        \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
      3. fma-define99.7%

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

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

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

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

        \[\leadsto \color{blue}{t \cdot \frac{y}{a}} \]
    8. Simplified41.6%

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

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

Alternative 12: 59.9% accurate, 3.7× speedup?

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

\\
x + y
\end{array}
Derivation
  1. Initial program 83.7%

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

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

      \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
    3. fma-define96.9%

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

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

    \[\leadsto \color{blue}{x + y} \]
  6. Step-by-step derivation
    1. +-commutative57.5%

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

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

    \[\leadsto x + y \]
  9. Add Preprocessing

Alternative 13: 50.4% accurate, 11.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 83.7%

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

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

      \[\leadsto \color{blue}{y \cdot \frac{z - t}{z - a}} + x \]
    3. fma-define96.9%

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

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

    \[\leadsto \color{blue}{x} \]
  6. Add Preprocessing

Developer target: 98.2% accurate, 1.0× speedup?

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

\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}

Reproduce

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

  :alt
  (+ x (/ y (/ (- z a) (- z t))))

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