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

Percentage Accurate: 68.4% → 87.9%
Time: 13.8s
Alternatives: 15
Speedup: 0.6×

Specification

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

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

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

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

Alternative 1: 87.9% accurate, 0.6× speedup?

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

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

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

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


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

    1. Initial program 38.7%

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

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

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

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

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

        \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
      5. unsub-negN/A

        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      8. distribute-rgt-out--N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
      11. --lowering--.f6474.3%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
    5. Simplified74.3%

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

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
      2. *-commutativeN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\frac{y - a}{z} \cdot \color{blue}{\left(t - x\right)}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(\frac{y - a}{z}\right), \color{blue}{\left(t - x\right)}\right)\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - a\right), z\right), \left(\color{blue}{t} - x\right)\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right), \left(t - x\right)\right)\right) \]
      6. --lowering--.f6490.5%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right) \]
    7. Applied egg-rr90.5%

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

    if -2.70000000000000004e78 < z < 2.19999999999999995e71

    1. Initial program 90.0%

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{a} - z}\right)\right) \]
      2. associate-/l*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - z}{a - z}}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - z}{a - z}\right)}\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - z}}{a - z}\right)\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - z\right), \color{blue}{\left(a - z\right)}\right)\right)\right) \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{a} - z\right)\right)\right)\right) \]
      7. --lowering--.f6496.7%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right)\right) \]
    4. Applied egg-rr96.7%

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

    if 2.19999999999999995e71 < z

    1. Initial program 33.1%

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

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

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

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

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

        \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
      5. unsub-negN/A

        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      8. distribute-rgt-out--N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
      11. --lowering--.f6468.5%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
    5. Simplified68.5%

      \[\leadsto \color{blue}{t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}} \]
    6. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\frac{\left(y - a\right) \cdot \left(t - x\right)}{z}\right)\right) \]
      2. associate-/l*N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(y - a\right) \cdot \color{blue}{\frac{t - x}{z}}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(y - a\right), \color{blue}{\left(\frac{t - x}{z}\right)}\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \left(\frac{\color{blue}{t - x}}{z}\right)\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{z}\right)\right)\right) \]
      6. --lowering--.f6489.3%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), z\right)\right)\right) \]
    7. Applied egg-rr89.3%

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

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

Alternative 2: 65.7% accurate, 0.5× speedup?

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

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

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

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

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


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

    1. Initial program 49.0%

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

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

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

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

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

        \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
      5. unsub-negN/A

        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      8. distribute-rgt-out--N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
      11. --lowering--.f6473.7%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
    5. Simplified73.7%

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

      \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right)}{z}} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z}\right)}\right) \]
      2. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(t - x\right)\right), z\right)\right) \]
      4. --lowering--.f6473.7%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, x\right)\right), z\right)\right) \]
    8. Simplified73.7%

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

    if -4e14 < z < 1.39999999999999993e-53

    1. Initial program 91.2%

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

      \[\leadsto \color{blue}{x + \frac{\left(t - x\right) \cdot \left(y - z\right)}{a}} \]
    4. Step-by-step derivation
      1. +-lowering-+.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \color{blue}{\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{a}\right)}\right) \]
      2. *-commutativeN/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a}\right)\right) \]
      3. associate-/l*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(y - z\right) \cdot \color{blue}{\frac{t - x}{a}}\right)\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(y - z\right), \color{blue}{\left(\frac{t - x}{a}\right)}\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{\color{blue}{t - x}}{a}\right)\right)\right) \]
      6. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{a}\right)\right)\right) \]
      7. --lowering--.f6481.3%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), a\right)\right)\right) \]
    5. Simplified81.3%

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

    if 1.39999999999999993e-53 < z < 1.7999999999999999e59

    1. Initial program 83.1%

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

      \[\leadsto \color{blue}{y \cdot \left(\frac{t}{a - z} - \frac{x}{a - z}\right)} \]
    4. Step-by-step derivation
      1. div-subN/A

        \[\leadsto y \cdot \frac{t - x}{\color{blue}{a - z}} \]
      2. associate-/l*N/A

        \[\leadsto \frac{y \cdot \left(t - x\right)}{\color{blue}{a - z}} \]
      3. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right)\right), \color{blue}{\left(a - z\right)}\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(t - x\right)\right), \left(\color{blue}{a} - z\right)\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, x\right)\right), \left(a - z\right)\right) \]
      6. --lowering--.f6469.8%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, x\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
    5. Simplified69.8%

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

    if 1.7999999999999999e59 < z

    1. Initial program 35.0%

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

      \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
      2. *-lowering-*.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
      3. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
      4. --lowering--.f6441.8%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
    5. Simplified41.8%

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

        \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
      2. *-commutativeN/A

        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{t} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\left(\frac{y - z}{a - z}\right), \color{blue}{t}\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(a - z\right)\right), t\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(a - z\right)\right), t\right) \]
      6. --lowering--.f6467.2%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, z\right)\right), t\right) \]
    7. Applied egg-rr67.2%

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

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

Alternative 3: 65.2% accurate, 0.5× speedup?

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

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

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

\mathbf{elif}\;z \leq 6 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -3.3e14 or 1.05000000000000006e-64 < z < 5.99999999999999964e186

    1. Initial program 60.3%

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

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

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

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

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

        \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
      5. unsub-negN/A

        \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      8. distribute-rgt-out--N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
      10. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
      11. --lowering--.f6470.6%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
    5. Simplified70.6%

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

      \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right)}{z}} \]
    7. Step-by-step derivation
      1. --lowering--.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z}\right)}\right) \]
      2. /-lowering-/.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(t - x\right)\right), z\right)\right) \]
      4. --lowering--.f6468.1%

        \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, x\right)\right), z\right)\right) \]
    8. Simplified68.1%

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

    if -3.3e14 < z < 1.05000000000000006e-64

    1. Initial program 91.0%

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

        \[\leadsto \mathsf{+.f64}\left(x, \left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{a} - z}\right)\right) \]
      2. associate-/l*N/A

        \[\leadsto \mathsf{+.f64}\left(x, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - z}{a - z}}\right)\right) \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\left(t - x\right), \color{blue}{\left(\frac{y - z}{a - z}\right)}\right)\right) \]
      4. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(\frac{\color{blue}{y - z}}{a - z}\right)\right)\right) \]
      5. /-lowering-/.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\left(y - z\right), \color{blue}{\left(a - z\right)}\right)\right)\right) \]
      6. --lowering--.f64N/A

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\color{blue}{a} - z\right)\right)\right)\right) \]
      7. --lowering--.f6496.6%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right)\right) \]
    4. Applied egg-rr96.6%

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

      \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \color{blue}{\left(\frac{y}{a}\right)}\right)\right) \]
    6. Step-by-step derivation
      1. /-lowering-/.f6477.4%

        \[\leadsto \mathsf{+.f64}\left(x, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{/.f64}\left(y, \color{blue}{a}\right)\right)\right) \]
    7. Simplified77.4%

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

    if 5.99999999999999964e186 < z

    1. Initial program 11.2%

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

      \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
    4. Step-by-step derivation
      1. /-lowering-/.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
      2. *-lowering-*.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
      3. --lowering--.f64N/A

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
      4. --lowering--.f6430.5%

        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
    5. Simplified30.5%

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

        \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
      2. *-commutativeN/A

        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{t} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\left(\frac{y - z}{a - z}\right), \color{blue}{t}\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(a - z\right)\right), t\right) \]
      5. --lowering--.f64N/A

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(a - z\right)\right), t\right) \]
      6. --lowering--.f6474.9%

        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, z\right)\right), t\right) \]
    7. Applied egg-rr74.9%

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

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

Alternative 4: 53.7% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+164}:\\
\;\;\;\;t\\

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

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

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


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

    1. Initial program 37.1%

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

      \[\leadsto \color{blue}{t} \]
    4. Step-by-step derivation
      1. Simplified61.3%

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

      if -1.5500000000000001e164 < z < -0.00139999999999999999

      1. Initial program 66.5%

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

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

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

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

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

          \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
        5. unsub-negN/A

          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
        6. --lowering--.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
        7. /-lowering-/.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
        8. distribute-rgt-out--N/A

          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
        9. *-lowering-*.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
        10. --lowering--.f64N/A

          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
        11. --lowering--.f6464.9%

          \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
      5. Simplified64.9%

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

        \[\leadsto \color{blue}{y \cdot \left(\frac{x}{z} - \frac{t}{z}\right)} \]
      7. Step-by-step derivation
        1. *-lowering-*.f64N/A

          \[\leadsto \mathsf{*.f64}\left(y, \color{blue}{\left(\frac{x}{z} - \frac{t}{z}\right)}\right) \]
        2. --lowering--.f64N/A

          \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\left(\frac{x}{z}\right), \color{blue}{\left(\frac{t}{z}\right)}\right)\right) \]
        3. /-lowering-/.f64N/A

          \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(x, z\right), \left(\frac{\color{blue}{t}}{z}\right)\right)\right) \]
        4. /-lowering-/.f6461.0%

          \[\leadsto \mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(\mathsf{/.f64}\left(x, z\right), \mathsf{/.f64}\left(t, \color{blue}{z}\right)\right)\right) \]
      8. Simplified61.0%

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

      if -0.00139999999999999999 < z < 2.90000000000000017e72

      1. Initial program 89.7%

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

          \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
        2. +-lowering-+.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
        3. associate-/l*N/A

          \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
        4. clear-numN/A

          \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
        5. un-div-invN/A

          \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
        6. /-lowering-/.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
        7. --lowering--.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
        8. /-lowering-/.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
        9. --lowering--.f64N/A

          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
        10. --lowering--.f6495.0%

          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
      4. Applied egg-rr95.0%

        \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
      5. Taylor expanded in y around inf

        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
      6. Step-by-step derivation
        1. Simplified85.1%

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

          \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{a - z}} \]
        3. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto x + \left(\mathsf{neg}\left(\frac{x \cdot y}{a - z}\right)\right) \]
          2. *-rgt-identityN/A

            \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(\color{blue}{\frac{x \cdot y}{a - z}}\right)\right) \]
          3. associate-/l*N/A

            \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(x \cdot \frac{y}{a - z}\right)\right) \]
          4. distribute-rgt-neg-inN/A

            \[\leadsto x \cdot 1 + x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)} \]
          5. mul-1-negN/A

            \[\leadsto x \cdot 1 + x \cdot \left(-1 \cdot \color{blue}{\frac{y}{a - z}}\right) \]
          6. distribute-lft-inN/A

            \[\leadsto x \cdot \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)} \]
          7. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)}\right) \]
          8. mul-1-negN/A

            \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)\right)\right) \]
          9. unsub-negN/A

            \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a - z}}\right)\right) \]
          10. --lowering--.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a - z}\right)}\right)\right) \]
          11. /-lowering-/.f64N/A

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{\left(a - z\right)}\right)\right)\right) \]
          12. --lowering--.f6461.7%

            \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right)\right) \]
        4. Simplified61.7%

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

        if 2.90000000000000017e72 < z

        1. Initial program 33.1%

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

          \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
        4. Step-by-step derivation
          1. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
          2. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
          3. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
          4. --lowering--.f6441.5%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
        5. Simplified41.5%

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

            \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
          2. clear-numN/A

            \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a - z}{y - z}}} \]
          3. un-div-invN/A

            \[\leadsto \frac{t}{\color{blue}{\frac{a - z}{y - z}}} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a - z}{y - z}\right)}\right) \]
          5. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right) \]
          6. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right) \]
          7. --lowering--.f6467.7%

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
        7. Applied egg-rr67.7%

          \[\leadsto \color{blue}{\frac{t}{\frac{a - z}{y - z}}} \]
        8. Taylor expanded in a around 0

          \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
        9. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto \mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right) \]
          2. associate-/l*N/A

            \[\leadsto \mathsf{neg}\left(t \cdot \frac{y - z}{z}\right) \]
          3. distribute-rgt-neg-inN/A

            \[\leadsto t \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right)} \]
          4. div-subN/A

            \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - \frac{z}{z}\right)\right)\right) \]
          5. *-inversesN/A

            \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - 1\right)\right)\right) \]
          6. mul-1-negN/A

            \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(\frac{y}{z} - 1\right)}\right) \]
          7. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(t, \color{blue}{\left(-1 \cdot \left(\frac{y}{z} - 1\right)\right)}\right) \]
          8. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \]
          9. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + -1\right)\right)\right) \]
          10. distribute-lft-inN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + \color{blue}{-1 \cdot -1}\right)\right) \]
          11. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + 1\right)\right) \]
          12. +-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
          13. mul-1-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
          14. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 - \color{blue}{\frac{y}{z}}\right)\right) \]
          15. --lowering--.f64N/A

            \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
          16. /-lowering-/.f6462.5%

            \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
        10. Simplified62.5%

          \[\leadsto \color{blue}{t \cdot \left(1 - \frac{y}{z}\right)} \]
      7. Recombined 4 regimes into one program.
      8. Add Preprocessing

      Alternative 5: 41.8% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\ \mathbf{if}\;t \leq -2 \cdot 10^{-61}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{-237}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;t \leq 1.06 \cdot 10^{-98}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (* t (- 1.0 (/ y z)))))
         (if (<= t -2e-61)
           t_1
           (if (<= t -2.45e-237)
             (+ t x)
             (if (<= t 1.06e-98) (* (/ (- y a) z) x) t_1)))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = t * (1.0 - (y / z));
      	double tmp;
      	if (t <= -2e-61) {
      		tmp = t_1;
      	} else if (t <= -2.45e-237) {
      		tmp = t + x;
      	} else if (t <= 1.06e-98) {
      		tmp = ((y - a) / z) * x;
      	} 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) :: tmp
          t_1 = t * (1.0d0 - (y / z))
          if (t <= (-2d-61)) then
              tmp = t_1
          else if (t <= (-2.45d-237)) then
              tmp = t + x
          else if (t <= 1.06d-98) then
              tmp = ((y - a) / z) * x
          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 = t * (1.0 - (y / z));
      	double tmp;
      	if (t <= -2e-61) {
      		tmp = t_1;
      	} else if (t <= -2.45e-237) {
      		tmp = t + x;
      	} else if (t <= 1.06e-98) {
      		tmp = ((y - a) / z) * x;
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	t_1 = t * (1.0 - (y / z))
      	tmp = 0
      	if t <= -2e-61:
      		tmp = t_1
      	elif t <= -2.45e-237:
      		tmp = t + x
      	elif t <= 1.06e-98:
      		tmp = ((y - a) / z) * x
      	else:
      		tmp = t_1
      	return tmp
      
      function code(x, y, z, t, a)
      	t_1 = Float64(t * Float64(1.0 - Float64(y / z)))
      	tmp = 0.0
      	if (t <= -2e-61)
      		tmp = t_1;
      	elseif (t <= -2.45e-237)
      		tmp = Float64(t + x);
      	elseif (t <= 1.06e-98)
      		tmp = Float64(Float64(Float64(y - a) / z) * x);
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	t_1 = t * (1.0 - (y / z));
      	tmp = 0.0;
      	if (t <= -2e-61)
      		tmp = t_1;
      	elseif (t <= -2.45e-237)
      		tmp = t + x;
      	elseif (t <= 1.06e-98)
      		tmp = ((y - a) / z) * x;
      	else
      		tmp = t_1;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2e-61], t$95$1, If[LessEqual[t, -2.45e-237], N[(t + x), $MachinePrecision], If[LessEqual[t, 1.06e-98], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
      \mathbf{if}\;t \leq -2 \cdot 10^{-61}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq -2.45 \cdot 10^{-237}:\\
      \;\;\;\;t + x\\
      
      \mathbf{elif}\;t \leq 1.06 \cdot 10^{-98}:\\
      \;\;\;\;\frac{y - a}{z} \cdot x\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t < -2.0000000000000001e-61 or 1.0600000000000001e-98 < t

        1. Initial program 70.4%

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

          \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
        4. Step-by-step derivation
          1. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
          2. *-lowering-*.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
          3. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
          4. --lowering--.f6454.4%

            \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
        5. Simplified54.4%

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

            \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
          2. clear-numN/A

            \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a - z}{y - z}}} \]
          3. un-div-invN/A

            \[\leadsto \frac{t}{\color{blue}{\frac{a - z}{y - z}}} \]
          4. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a - z}{y - z}\right)}\right) \]
          5. /-lowering-/.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right) \]
          6. --lowering--.f64N/A

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right) \]
          7. --lowering--.f6470.3%

            \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
        7. Applied egg-rr70.3%

          \[\leadsto \color{blue}{\frac{t}{\frac{a - z}{y - z}}} \]
        8. Taylor expanded in a around 0

          \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
        9. Step-by-step derivation
          1. mul-1-negN/A

            \[\leadsto \mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right) \]
          2. associate-/l*N/A

            \[\leadsto \mathsf{neg}\left(t \cdot \frac{y - z}{z}\right) \]
          3. distribute-rgt-neg-inN/A

            \[\leadsto t \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right)} \]
          4. div-subN/A

            \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - \frac{z}{z}\right)\right)\right) \]
          5. *-inversesN/A

            \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - 1\right)\right)\right) \]
          6. mul-1-negN/A

            \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(\frac{y}{z} - 1\right)}\right) \]
          7. *-lowering-*.f64N/A

            \[\leadsto \mathsf{*.f64}\left(t, \color{blue}{\left(-1 \cdot \left(\frac{y}{z} - 1\right)\right)}\right) \]
          8. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \]
          9. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + -1\right)\right)\right) \]
          10. distribute-lft-inN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + \color{blue}{-1 \cdot -1}\right)\right) \]
          11. metadata-evalN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + 1\right)\right) \]
          12. +-commutativeN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
          13. mul-1-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
          14. sub-negN/A

            \[\leadsto \mathsf{*.f64}\left(t, \left(1 - \color{blue}{\frac{y}{z}}\right)\right) \]
          15. --lowering--.f64N/A

            \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
          16. /-lowering-/.f6448.5%

            \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
        10. Simplified48.5%

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

        if -2.0000000000000001e-61 < t < -2.45e-237

        1. Initial program 78.8%

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

            \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
          2. +-lowering-+.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
          3. associate-/l*N/A

            \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
          4. clear-numN/A

            \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
          5. un-div-invN/A

            \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
          6. /-lowering-/.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
          7. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
          8. /-lowering-/.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
          9. --lowering--.f64N/A

            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
          10. --lowering--.f6478.2%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
        4. Applied egg-rr78.2%

          \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
        5. Taylor expanded in z around inf

          \[\leadsto \mathsf{+.f64}\left(\color{blue}{\left(t - x\right)}, x\right) \]
        6. Step-by-step derivation
          1. --lowering--.f6411.8%

            \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(t, x\right), x\right) \]
        7. Simplified11.8%

          \[\leadsto \color{blue}{\left(t - x\right)} + x \]
        8. Taylor expanded in t around inf

          \[\leadsto \mathsf{+.f64}\left(\color{blue}{t}, x\right) \]
        9. Step-by-step derivation
          1. Simplified41.9%

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

          if -2.45e-237 < t < 1.0600000000000001e-98

          1. Initial program 52.1%

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

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

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

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

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

              \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
            5. unsub-negN/A

              \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
            6. --lowering--.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
            7. /-lowering-/.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
            8. distribute-rgt-out--N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
            9. *-lowering-*.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
            10. --lowering--.f64N/A

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
            11. --lowering--.f6463.0%

              \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
          5. Simplified63.0%

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

            \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
          7. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\left(x \cdot \left(y - a\right)\right), \color{blue}{z}\right) \]
            2. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \left(y - a\right)\right), z\right) \]
            3. --lowering--.f6456.5%

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(y, a\right)\right), z\right) \]
          8. Simplified56.5%

            \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
          9. Step-by-step derivation
            1. associate-/l*N/A

              \[\leadsto x \cdot \color{blue}{\frac{y - a}{z}} \]
            2. *-commutativeN/A

              \[\leadsto \frac{y - a}{z} \cdot \color{blue}{x} \]
            3. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\left(\frac{y - a}{z}\right), \color{blue}{x}\right) \]
            4. /-lowering-/.f64N/A

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - a\right), z\right), x\right) \]
            5. --lowering--.f6463.1%

              \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right), x\right) \]
          10. Applied egg-rr63.1%

            \[\leadsto \color{blue}{\frac{y - a}{z} \cdot x} \]
        10. Recombined 3 regimes into one program.
        11. Add Preprocessing

        Alternative 6: 41.7% accurate, 0.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\ \mathbf{if}\;t \leq -1.85 \cdot 10^{-59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.8 \cdot 10^{-237}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-98}:\\ \;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (let* ((t_1 (* t (- 1.0 (/ y z)))))
           (if (<= t -1.85e-59)
             t_1
             (if (<= t -2.8e-237)
               (+ t x)
               (if (<= t 1.8e-98) (* (- y a) (/ x z)) t_1)))))
        double code(double x, double y, double z, double t, double a) {
        	double t_1 = t * (1.0 - (y / z));
        	double tmp;
        	if (t <= -1.85e-59) {
        		tmp = t_1;
        	} else if (t <= -2.8e-237) {
        		tmp = t + x;
        	} else if (t <= 1.8e-98) {
        		tmp = (y - a) * (x / z);
        	} 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) :: tmp
            t_1 = t * (1.0d0 - (y / z))
            if (t <= (-1.85d-59)) then
                tmp = t_1
            else if (t <= (-2.8d-237)) then
                tmp = t + x
            else if (t <= 1.8d-98) then
                tmp = (y - a) * (x / z)
            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 = t * (1.0 - (y / z));
        	double tmp;
        	if (t <= -1.85e-59) {
        		tmp = t_1;
        	} else if (t <= -2.8e-237) {
        		tmp = t + x;
        	} else if (t <= 1.8e-98) {
        		tmp = (y - a) * (x / z);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a):
        	t_1 = t * (1.0 - (y / z))
        	tmp = 0
        	if t <= -1.85e-59:
        		tmp = t_1
        	elif t <= -2.8e-237:
        		tmp = t + x
        	elif t <= 1.8e-98:
        		tmp = (y - a) * (x / z)
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a)
        	t_1 = Float64(t * Float64(1.0 - Float64(y / z)))
        	tmp = 0.0
        	if (t <= -1.85e-59)
        		tmp = t_1;
        	elseif (t <= -2.8e-237)
        		tmp = Float64(t + x);
        	elseif (t <= 1.8e-98)
        		tmp = Float64(Float64(y - a) * Float64(x / z));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a)
        	t_1 = t * (1.0 - (y / z));
        	tmp = 0.0;
        	if (t <= -1.85e-59)
        		tmp = t_1;
        	elseif (t <= -2.8e-237)
        		tmp = t + x;
        	elseif (t <= 1.8e-98)
        		tmp = (y - a) * (x / z);
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.85e-59], t$95$1, If[LessEqual[t, -2.8e-237], N[(t + x), $MachinePrecision], If[LessEqual[t, 1.8e-98], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
        \mathbf{if}\;t \leq -1.85 \cdot 10^{-59}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq -2.8 \cdot 10^{-237}:\\
        \;\;\;\;t + x\\
        
        \mathbf{elif}\;t \leq 1.8 \cdot 10^{-98}:\\
        \;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if t < -1.85e-59 or 1.8000000000000001e-98 < t

          1. Initial program 70.4%

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

            \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
          4. Step-by-step derivation
            1. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
            2. *-lowering-*.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
            3. --lowering--.f64N/A

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
            4. --lowering--.f6454.4%

              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
          5. Simplified54.4%

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

              \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
            2. clear-numN/A

              \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a - z}{y - z}}} \]
            3. un-div-invN/A

              \[\leadsto \frac{t}{\color{blue}{\frac{a - z}{y - z}}} \]
            4. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a - z}{y - z}\right)}\right) \]
            5. /-lowering-/.f64N/A

              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right) \]
            6. --lowering--.f64N/A

              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right) \]
            7. --lowering--.f6470.3%

              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
          7. Applied egg-rr70.3%

            \[\leadsto \color{blue}{\frac{t}{\frac{a - z}{y - z}}} \]
          8. Taylor expanded in a around 0

            \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
          9. Step-by-step derivation
            1. mul-1-negN/A

              \[\leadsto \mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right) \]
            2. associate-/l*N/A

              \[\leadsto \mathsf{neg}\left(t \cdot \frac{y - z}{z}\right) \]
            3. distribute-rgt-neg-inN/A

              \[\leadsto t \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right)} \]
            4. div-subN/A

              \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - \frac{z}{z}\right)\right)\right) \]
            5. *-inversesN/A

              \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - 1\right)\right)\right) \]
            6. mul-1-negN/A

              \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(\frac{y}{z} - 1\right)}\right) \]
            7. *-lowering-*.f64N/A

              \[\leadsto \mathsf{*.f64}\left(t, \color{blue}{\left(-1 \cdot \left(\frac{y}{z} - 1\right)\right)}\right) \]
            8. sub-negN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \]
            9. metadata-evalN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + -1\right)\right)\right) \]
            10. distribute-lft-inN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + \color{blue}{-1 \cdot -1}\right)\right) \]
            11. metadata-evalN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + 1\right)\right) \]
            12. +-commutativeN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
            13. mul-1-negN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
            14. sub-negN/A

              \[\leadsto \mathsf{*.f64}\left(t, \left(1 - \color{blue}{\frac{y}{z}}\right)\right) \]
            15. --lowering--.f64N/A

              \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
            16. /-lowering-/.f6448.5%

              \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
          10. Simplified48.5%

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

          if -1.85e-59 < t < -2.79999999999999997e-237

          1. Initial program 78.8%

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

              \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
            2. +-lowering-+.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
            3. associate-/l*N/A

              \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
            4. clear-numN/A

              \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
            5. un-div-invN/A

              \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
            6. /-lowering-/.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
            7. --lowering--.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
            8. /-lowering-/.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
            9. --lowering--.f64N/A

              \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
            10. --lowering--.f6478.2%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
          4. Applied egg-rr78.2%

            \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
          5. Taylor expanded in z around inf

            \[\leadsto \mathsf{+.f64}\left(\color{blue}{\left(t - x\right)}, x\right) \]
          6. Step-by-step derivation
            1. --lowering--.f6411.8%

              \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(t, x\right), x\right) \]
          7. Simplified11.8%

            \[\leadsto \color{blue}{\left(t - x\right)} + x \]
          8. Taylor expanded in t around inf

            \[\leadsto \mathsf{+.f64}\left(\color{blue}{t}, x\right) \]
          9. Step-by-step derivation
            1. Simplified41.9%

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

            if -2.79999999999999997e-237 < t < 1.8000000000000001e-98

            1. Initial program 52.1%

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

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

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

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

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

                \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
              5. unsub-negN/A

                \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
              6. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
              7. /-lowering-/.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
              8. distribute-rgt-out--N/A

                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
              9. *-lowering-*.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
              10. --lowering--.f64N/A

                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
              11. --lowering--.f6463.0%

                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
            5. Simplified63.0%

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

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
            7. Step-by-step derivation
              1. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\left(x \cdot \left(y - a\right)\right), \color{blue}{z}\right) \]
              2. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \left(y - a\right)\right), z\right) \]
              3. --lowering--.f6456.5%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(y, a\right)\right), z\right) \]
            8. Simplified56.5%

              \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
            9. Step-by-step derivation
              1. *-commutativeN/A

                \[\leadsto \frac{\left(y - a\right) \cdot x}{z} \]
              2. associate-/l*N/A

                \[\leadsto \left(y - a\right) \cdot \color{blue}{\frac{x}{z}} \]
              3. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\left(y - a\right), \color{blue}{\left(\frac{x}{z}\right)}\right) \]
              4. --lowering--.f64N/A

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \left(\frac{\color{blue}{x}}{z}\right)\right) \]
              5. /-lowering-/.f6458.4%

                \[\leadsto \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(x, \color{blue}{z}\right)\right) \]
            10. Applied egg-rr58.4%

              \[\leadsto \color{blue}{\left(y - a\right) \cdot \frac{x}{z}} \]
          10. Recombined 3 regimes into one program.
          11. Add Preprocessing

          Alternative 7: 39.6% accurate, 0.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\ \mathbf{if}\;t \leq -1.7 \cdot 10^{-58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{-244}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{-100}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (let* ((t_1 (* t (- 1.0 (/ y z)))))
             (if (<= t -1.7e-58)
               t_1
               (if (<= t -2.2e-244) (+ t x) (if (<= t 6.4e-100) (/ (* y x) z) t_1)))))
          double code(double x, double y, double z, double t, double a) {
          	double t_1 = t * (1.0 - (y / z));
          	double tmp;
          	if (t <= -1.7e-58) {
          		tmp = t_1;
          	} else if (t <= -2.2e-244) {
          		tmp = t + x;
          	} else if (t <= 6.4e-100) {
          		tmp = (y * x) / z;
          	} 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) :: tmp
              t_1 = t * (1.0d0 - (y / z))
              if (t <= (-1.7d-58)) then
                  tmp = t_1
              else if (t <= (-2.2d-244)) then
                  tmp = t + x
              else if (t <= 6.4d-100) then
                  tmp = (y * x) / z
              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 = t * (1.0 - (y / z));
          	double tmp;
          	if (t <= -1.7e-58) {
          		tmp = t_1;
          	} else if (t <= -2.2e-244) {
          		tmp = t + x;
          	} else if (t <= 6.4e-100) {
          		tmp = (y * x) / z;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a):
          	t_1 = t * (1.0 - (y / z))
          	tmp = 0
          	if t <= -1.7e-58:
          		tmp = t_1
          	elif t <= -2.2e-244:
          		tmp = t + x
          	elif t <= 6.4e-100:
          		tmp = (y * x) / z
          	else:
          		tmp = t_1
          	return tmp
          
          function code(x, y, z, t, a)
          	t_1 = Float64(t * Float64(1.0 - Float64(y / z)))
          	tmp = 0.0
          	if (t <= -1.7e-58)
          		tmp = t_1;
          	elseif (t <= -2.2e-244)
          		tmp = Float64(t + x);
          	elseif (t <= 6.4e-100)
          		tmp = Float64(Float64(y * x) / z);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          function tmp_2 = code(x, y, z, t, a)
          	t_1 = t * (1.0 - (y / z));
          	tmp = 0.0;
          	if (t <= -1.7e-58)
          		tmp = t_1;
          	elseif (t <= -2.2e-244)
          		tmp = t + x;
          	elseif (t <= 6.4e-100)
          		tmp = (y * x) / z;
          	else
          		tmp = t_1;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e-58], t$95$1, If[LessEqual[t, -2.2e-244], N[(t + x), $MachinePrecision], If[LessEqual[t, 6.4e-100], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
          \mathbf{if}\;t \leq -1.7 \cdot 10^{-58}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \leq -2.2 \cdot 10^{-244}:\\
          \;\;\;\;t + x\\
          
          \mathbf{elif}\;t \leq 6.4 \cdot 10^{-100}:\\
          \;\;\;\;\frac{y \cdot x}{z}\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -1.69999999999999987e-58 or 6.40000000000000033e-100 < t

            1. Initial program 70.5%

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

              \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
            4. Step-by-step derivation
              1. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
              2. *-lowering-*.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
              3. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
              4. --lowering--.f6454.1%

                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
            5. Simplified54.1%

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

                \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
              2. clear-numN/A

                \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a - z}{y - z}}} \]
              3. un-div-invN/A

                \[\leadsto \frac{t}{\color{blue}{\frac{a - z}{y - z}}} \]
              4. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a - z}{y - z}\right)}\right) \]
              5. /-lowering-/.f64N/A

                \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right) \]
              6. --lowering--.f64N/A

                \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right) \]
              7. --lowering--.f6469.9%

                \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
            7. Applied egg-rr69.9%

              \[\leadsto \color{blue}{\frac{t}{\frac{a - z}{y - z}}} \]
            8. Taylor expanded in a around 0

              \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
            9. Step-by-step derivation
              1. mul-1-negN/A

                \[\leadsto \mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right) \]
              2. associate-/l*N/A

                \[\leadsto \mathsf{neg}\left(t \cdot \frac{y - z}{z}\right) \]
              3. distribute-rgt-neg-inN/A

                \[\leadsto t \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right)} \]
              4. div-subN/A

                \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - \frac{z}{z}\right)\right)\right) \]
              5. *-inversesN/A

                \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - 1\right)\right)\right) \]
              6. mul-1-negN/A

                \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(\frac{y}{z} - 1\right)}\right) \]
              7. *-lowering-*.f64N/A

                \[\leadsto \mathsf{*.f64}\left(t, \color{blue}{\left(-1 \cdot \left(\frac{y}{z} - 1\right)\right)}\right) \]
              8. sub-negN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \]
              9. metadata-evalN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + -1\right)\right)\right) \]
              10. distribute-lft-inN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + \color{blue}{-1 \cdot -1}\right)\right) \]
              11. metadata-evalN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + 1\right)\right) \]
              12. +-commutativeN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
              13. mul-1-negN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
              14. sub-negN/A

                \[\leadsto \mathsf{*.f64}\left(t, \left(1 - \color{blue}{\frac{y}{z}}\right)\right) \]
              15. --lowering--.f64N/A

                \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
              16. /-lowering-/.f6448.2%

                \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
            10. Simplified48.2%

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

            if -1.69999999999999987e-58 < t < -2.19999999999999985e-244

            1. Initial program 78.8%

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

                \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
              2. +-lowering-+.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
              3. associate-/l*N/A

                \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
              4. clear-numN/A

                \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
              5. un-div-invN/A

                \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
              6. /-lowering-/.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
              7. --lowering--.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
              8. /-lowering-/.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
              9. --lowering--.f64N/A

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
              10. --lowering--.f6478.2%

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
            4. Applied egg-rr78.2%

              \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
            5. Taylor expanded in z around inf

              \[\leadsto \mathsf{+.f64}\left(\color{blue}{\left(t - x\right)}, x\right) \]
            6. Step-by-step derivation
              1. --lowering--.f6411.8%

                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(t, x\right), x\right) \]
            7. Simplified11.8%

              \[\leadsto \color{blue}{\left(t - x\right)} + x \]
            8. Taylor expanded in t around inf

              \[\leadsto \mathsf{+.f64}\left(\color{blue}{t}, x\right) \]
            9. Step-by-step derivation
              1. Simplified41.9%

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

              if -2.19999999999999985e-244 < t < 6.40000000000000033e-100

              1. Initial program 51.2%

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

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

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

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

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

                  \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                5. unsub-negN/A

                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                6. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                7. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                8. distribute-rgt-out--N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                10. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                11. --lowering--.f6464.1%

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
              5. Simplified64.1%

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

                \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
              7. Step-by-step derivation
                1. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{/.f64}\left(\left(x \cdot \left(y - a\right)\right), \color{blue}{z}\right) \]
                2. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \left(y - a\right)\right), z\right) \]
                3. --lowering--.f6457.4%

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(y, a\right)\right), z\right) \]
              8. Simplified57.4%

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

                \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
              10. Step-by-step derivation
                1. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{/.f64}\left(\left(x \cdot y\right), \color{blue}{z}\right) \]
                2. *-lowering-*.f6449.9%

                  \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, y\right), z\right) \]
              11. Simplified49.9%

                \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
            10. Recombined 3 regimes into one program.
            11. Final simplification47.8%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.7 \cdot 10^{-58}:\\ \;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\ \mathbf{elif}\;t \leq -2.2 \cdot 10^{-244}:\\ \;\;\;\;t + x\\ \mathbf{elif}\;t \leq 6.4 \cdot 10^{-100}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\ \end{array} \]
            12. Add Preprocessing

            Alternative 8: 79.2% accurate, 0.6× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.15 \cdot 10^{+37}:\\ \;\;\;\;t + \frac{y - a}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{+70}:\\ \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (if (<= z -1.15e+37)
               (+ t (* (/ (- y a) z) (- x t)))
               (if (<= z 8.6e+70)
                 (+ x (/ y (/ (- a z) (- t x))))
                 (+ t (* (- y a) (/ (- x t) z))))))
            double code(double x, double y, double z, double t, double a) {
            	double tmp;
            	if (z <= -1.15e+37) {
            		tmp = t + (((y - a) / z) * (x - t));
            	} else if (z <= 8.6e+70) {
            		tmp = x + (y / ((a - z) / (t - x)));
            	} else {
            		tmp = t + ((y - a) * ((x - 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 (z <= (-1.15d+37)) then
                    tmp = t + (((y - a) / z) * (x - t))
                else if (z <= 8.6d+70) then
                    tmp = x + (y / ((a - z) / (t - x)))
                else
                    tmp = t + ((y - a) * ((x - 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 (z <= -1.15e+37) {
            		tmp = t + (((y - a) / z) * (x - t));
            	} else if (z <= 8.6e+70) {
            		tmp = x + (y / ((a - z) / (t - x)));
            	} else {
            		tmp = t + ((y - a) * ((x - t) / z));
            	}
            	return tmp;
            }
            
            def code(x, y, z, t, a):
            	tmp = 0
            	if z <= -1.15e+37:
            		tmp = t + (((y - a) / z) * (x - t))
            	elif z <= 8.6e+70:
            		tmp = x + (y / ((a - z) / (t - x)))
            	else:
            		tmp = t + ((y - a) * ((x - t) / z))
            	return tmp
            
            function code(x, y, z, t, a)
            	tmp = 0.0
            	if (z <= -1.15e+37)
            		tmp = Float64(t + Float64(Float64(Float64(y - a) / z) * Float64(x - t)));
            	elseif (z <= 8.6e+70)
            		tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x))));
            	else
            		tmp = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z)));
            	end
            	return tmp
            end
            
            function tmp_2 = code(x, y, z, t, a)
            	tmp = 0.0;
            	if (z <= -1.15e+37)
            		tmp = t + (((y - a) / z) * (x - t));
            	elseif (z <= 8.6e+70)
            		tmp = x + (y / ((a - z) / (t - x)));
            	else
            		tmp = t + ((y - a) * ((x - t) / z));
            	end
            	tmp_2 = tmp;
            end
            
            code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+37], N[(t + N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+70], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;z \leq -1.15 \cdot 10^{+37}:\\
            \;\;\;\;t + \frac{y - a}{z} \cdot \left(x - t\right)\\
            
            \mathbf{elif}\;z \leq 8.6 \cdot 10^{+70}:\\
            \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
            
            \mathbf{else}:\\
            \;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -1.15000000000000001e37

              1. Initial program 47.7%

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

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

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

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

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

                  \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                5. unsub-negN/A

                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                6. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                7. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                8. distribute-rgt-out--N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                9. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                10. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                11. --lowering--.f6474.1%

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
              5. Simplified74.1%

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

                  \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(t - x\right) \cdot \color{blue}{\frac{y - a}{z}}\right)\right) \]
                2. *-commutativeN/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \left(\frac{y - a}{z} \cdot \color{blue}{\left(t - x\right)}\right)\right) \]
                3. *-lowering-*.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(\frac{y - a}{z}\right), \color{blue}{\left(t - x\right)}\right)\right) \]
                4. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - a\right), z\right), \left(\color{blue}{t} - x\right)\right)\right) \]
                5. --lowering--.f64N/A

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right), \left(t - x\right)\right)\right) \]
                6. --lowering--.f6488.0%

                  \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, a\right), z\right), \mathsf{\_.f64}\left(t, \color{blue}{x}\right)\right)\right) \]
              7. Applied egg-rr88.0%

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

              if -1.15000000000000001e37 < z < 8.6000000000000002e70

              1. Initial program 89.5%

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

                  \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                2. +-lowering-+.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                3. associate-/l*N/A

                  \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                4. clear-numN/A

                  \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                5. un-div-invN/A

                  \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                6. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                7. --lowering--.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                8. /-lowering-/.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                9. --lowering--.f64N/A

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                10. --lowering--.f6495.2%

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
              4. Applied egg-rr95.2%

                \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
              5. Taylor expanded in y around inf

                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
              6. Step-by-step derivation
                1. Simplified84.9%

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

                if 8.6000000000000002e70 < z

                1. Initial program 33.1%

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

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

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

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

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

                    \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                  5. unsub-negN/A

                    \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                  6. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                  7. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                  8. distribute-rgt-out--N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                  9. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                  10. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                  11. --lowering--.f6468.5%

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
                5. Simplified68.5%

                  \[\leadsto \color{blue}{t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}} \]
                6. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \left(\frac{\left(y - a\right) \cdot \left(t - x\right)}{z}\right)\right) \]
                  2. associate-/l*N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(y - a\right) \cdot \color{blue}{\frac{t - x}{z}}\right)\right) \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(y - a\right), \color{blue}{\left(\frac{t - x}{z}\right)}\right)\right) \]
                  4. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \left(\frac{\color{blue}{t - x}}{z}\right)\right)\right) \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{z}\right)\right)\right) \]
                  6. --lowering--.f6489.3%

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), z\right)\right)\right) \]
                7. Applied egg-rr89.3%

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

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.15 \cdot 10^{+37}:\\ \;\;\;\;t + \frac{y - a}{z} \cdot \left(x - t\right)\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{+70}:\\ \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\ \end{array} \]
              9. Add Preprocessing

              Alternative 9: 79.0% accurate, 0.6× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := t + \left(y - a\right) \cdot \frac{x - t}{z}\\ \mathbf{if}\;z \leq -2 \cdot 10^{+36}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{+71}:\\ \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (+ t (* (- y a) (/ (- x t) z)))))
                 (if (<= z -2e+36)
                   t_1
                   (if (<= z 2.6e+71) (+ x (/ y (/ (- a z) (- t x)))) t_1))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = t + ((y - a) * ((x - t) / z));
              	double tmp;
              	if (z <= -2e+36) {
              		tmp = t_1;
              	} else if (z <= 2.6e+71) {
              		tmp = x + (y / ((a - z) / (t - x)));
              	} 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) :: tmp
                  t_1 = t + ((y - a) * ((x - t) / z))
                  if (z <= (-2d+36)) then
                      tmp = t_1
                  else if (z <= 2.6d+71) then
                      tmp = x + (y / ((a - z) / (t - x)))
                  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 = t + ((y - a) * ((x - t) / z));
              	double tmp;
              	if (z <= -2e+36) {
              		tmp = t_1;
              	} else if (z <= 2.6e+71) {
              		tmp = x + (y / ((a - z) / (t - x)));
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              def code(x, y, z, t, a):
              	t_1 = t + ((y - a) * ((x - t) / z))
              	tmp = 0
              	if z <= -2e+36:
              		tmp = t_1
              	elif z <= 2.6e+71:
              		tmp = x + (y / ((a - z) / (t - x)))
              	else:
              		tmp = t_1
              	return tmp
              
              function code(x, y, z, t, a)
              	t_1 = Float64(t + Float64(Float64(y - a) * Float64(Float64(x - t) / z)))
              	tmp = 0.0
              	if (z <= -2e+36)
              		tmp = t_1;
              	elseif (z <= 2.6e+71)
              		tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x))));
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              function tmp_2 = code(x, y, z, t, a)
              	t_1 = t + ((y - a) * ((x - t) / z));
              	tmp = 0.0;
              	if (z <= -2e+36)
              		tmp = t_1;
              	elseif (z <= 2.6e+71)
              		tmp = x + (y / ((a - z) / (t - x)));
              	else
              		tmp = t_1;
              	end
              	tmp_2 = tmp;
              end
              
              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[(y - a), $MachinePrecision] * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+36], t$95$1, If[LessEqual[z, 2.6e+71], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := t + \left(y - a\right) \cdot \frac{x - t}{z}\\
              \mathbf{if}\;z \leq -2 \cdot 10^{+36}:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 2.6 \cdot 10^{+71}:\\
              \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -2.00000000000000008e36 or 2.59999999999999991e71 < z

                1. Initial program 39.3%

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

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

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

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

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

                    \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                  5. unsub-negN/A

                    \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                  6. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                  7. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                  8. distribute-rgt-out--N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                  9. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                  10. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                  11. --lowering--.f6470.9%

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
                5. Simplified70.9%

                  \[\leadsto \color{blue}{t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}} \]
                6. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \left(\frac{\left(y - a\right) \cdot \left(t - x\right)}{z}\right)\right) \]
                  2. associate-/l*N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \left(\left(y - a\right) \cdot \color{blue}{\frac{t - x}{z}}\right)\right) \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\left(y - a\right), \color{blue}{\left(\frac{t - x}{z}\right)}\right)\right) \]
                  4. --lowering--.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \left(\frac{\color{blue}{t - x}}{z}\right)\right)\right) \]
                  5. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\left(t - x\right), \color{blue}{z}\right)\right)\right) \]
                  6. --lowering--.f6486.3%

                    \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{*.f64}\left(\mathsf{\_.f64}\left(y, a\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(t, x\right), z\right)\right)\right) \]
                7. Applied egg-rr86.3%

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

                if -2.00000000000000008e36 < z < 2.59999999999999991e71

                1. Initial program 89.5%

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

                    \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                  2. +-lowering-+.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                  3. associate-/l*N/A

                    \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                  4. clear-numN/A

                    \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                  5. un-div-invN/A

                    \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                  6. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                  7. --lowering--.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                  8. /-lowering-/.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                  9. --lowering--.f64N/A

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                  10. --lowering--.f6495.2%

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                4. Applied egg-rr95.2%

                  \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
                5. Taylor expanded in y around inf

                  \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                6. Step-by-step derivation
                  1. Simplified84.9%

                    \[\leadsto \frac{\color{blue}{y}}{\frac{a - z}{t - x}} + x \]
                7. Recombined 2 regimes into one program.
                8. Final simplification85.5%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2 \cdot 10^{+36}:\\ \;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{+71}:\\ \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t + \left(y - a\right) \cdot \frac{x - t}{z}\\ \end{array} \]
                9. Add Preprocessing

                Alternative 10: 71.7% accurate, 0.6× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.9 \cdot 10^{+37}:\\ \;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\ \mathbf{elif}\;z \leq 10^{+68}:\\ \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (<= z -3.9e+37)
                   (+ t (/ (* y (- x t)) z))
                   (if (<= z 1e+68)
                     (+ x (/ y (/ (- a z) (- t x))))
                     (* t (/ (- y z) (- a z))))))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if (z <= -3.9e+37) {
                		tmp = t + ((y * (x - t)) / z);
                	} else if (z <= 1e+68) {
                		tmp = x + (y / ((a - z) / (t - x)));
                	} else {
                		tmp = t * ((y - z) / (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 (z <= (-3.9d+37)) then
                        tmp = t + ((y * (x - t)) / z)
                    else if (z <= 1d+68) then
                        tmp = x + (y / ((a - z) / (t - x)))
                    else
                        tmp = t * ((y - z) / (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 (z <= -3.9e+37) {
                		tmp = t + ((y * (x - t)) / z);
                	} else if (z <= 1e+68) {
                		tmp = x + (y / ((a - z) / (t - x)));
                	} else {
                		tmp = t * ((y - z) / (a - z));
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a):
                	tmp = 0
                	if z <= -3.9e+37:
                		tmp = t + ((y * (x - t)) / z)
                	elif z <= 1e+68:
                		tmp = x + (y / ((a - z) / (t - x)))
                	else:
                		tmp = t * ((y - z) / (a - z))
                	return tmp
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if (z <= -3.9e+37)
                		tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z));
                	elseif (z <= 1e+68)
                		tmp = Float64(x + Float64(y / Float64(Float64(a - z) / Float64(t - x))));
                	else
                		tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z)));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a)
                	tmp = 0.0;
                	if (z <= -3.9e+37)
                		tmp = t + ((y * (x - t)) / z);
                	elseif (z <= 1e+68)
                		tmp = x + (y / ((a - z) / (t - x)));
                	else
                		tmp = t * ((y - z) / (a - z));
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.9e+37], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e+68], N[(x + N[(y / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -3.9 \cdot 10^{+37}:\\
                \;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
                
                \mathbf{elif}\;z \leq 10^{+68}:\\
                \;\;\;\;x + \frac{y}{\frac{a - z}{t - x}}\\
                
                \mathbf{else}:\\
                \;\;\;\;t \cdot \frac{y - z}{a - z}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -3.8999999999999999e37

                  1. Initial program 47.7%

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

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

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

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

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

                      \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                    5. unsub-negN/A

                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                    6. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                    7. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                    8. distribute-rgt-out--N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                    9. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                    10. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                    11. --lowering--.f6474.1%

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
                  5. Simplified74.1%

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

                    \[\leadsto \color{blue}{t - \frac{y \cdot \left(t - x\right)}{z}} \]
                  7. Step-by-step derivation
                    1. --lowering--.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right)}{z}\right)}\right) \]
                    2. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                    3. *-lowering-*.f64N/A

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \left(t - x\right)\right), z\right)\right) \]
                    4. --lowering--.f6474.0%

                      \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(y, \mathsf{\_.f64}\left(t, x\right)\right), z\right)\right) \]
                  8. Simplified74.0%

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

                  if -3.8999999999999999e37 < z < 9.99999999999999953e67

                  1. Initial program 89.5%

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

                      \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                    2. +-lowering-+.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                    3. associate-/l*N/A

                      \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                    4. clear-numN/A

                      \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                    5. un-div-invN/A

                      \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                    6. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                    7. --lowering--.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                    8. /-lowering-/.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                    9. --lowering--.f64N/A

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                    10. --lowering--.f6495.2%

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                  4. Applied egg-rr95.2%

                    \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
                  5. Taylor expanded in y around inf

                    \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                  6. Step-by-step derivation
                    1. Simplified85.4%

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

                    if 9.99999999999999953e67 < z

                    1. Initial program 34.0%

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

                      \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
                    4. Step-by-step derivation
                      1. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
                      2. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                      3. --lowering--.f64N/A

                        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                      4. --lowering--.f6442.4%

                        \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                    5. Simplified42.4%

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

                        \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                      2. *-commutativeN/A

                        \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{t} \]
                      3. *-lowering-*.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\left(\frac{y - z}{a - z}\right), \color{blue}{t}\right) \]
                      4. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(a - z\right)\right), t\right) \]
                      5. --lowering--.f64N/A

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(a - z\right)\right), t\right) \]
                      6. --lowering--.f6468.2%

                        \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, z\right)\right), t\right) \]
                    7. Applied egg-rr68.2%

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

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

                  Alternative 11: 63.6% accurate, 0.7× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(1 - \frac{y}{a - z}\right)\\ \mathbf{if}\;x \leq -3.3 \cdot 10^{+36}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{-9}:\\ \;\;\;\;t \cdot \frac{y - z}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (let* ((t_1 (* x (- 1.0 (/ y (- a z))))))
                     (if (<= x -3.3e+36) t_1 (if (<= x 2.8e-9) (* t (/ (- y z) (- a z))) t_1))))
                  double code(double x, double y, double z, double t, double a) {
                  	double t_1 = x * (1.0 - (y / (a - z)));
                  	double tmp;
                  	if (x <= -3.3e+36) {
                  		tmp = t_1;
                  	} else if (x <= 2.8e-9) {
                  		tmp = t * ((y - z) / (a - z));
                  	} 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) :: tmp
                      t_1 = x * (1.0d0 - (y / (a - z)))
                      if (x <= (-3.3d+36)) then
                          tmp = t_1
                      else if (x <= 2.8d-9) then
                          tmp = t * ((y - z) / (a - z))
                      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 = x * (1.0 - (y / (a - z)));
                  	double tmp;
                  	if (x <= -3.3e+36) {
                  		tmp = t_1;
                  	} else if (x <= 2.8e-9) {
                  		tmp = t * ((y - z) / (a - z));
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a):
                  	t_1 = x * (1.0 - (y / (a - z)))
                  	tmp = 0
                  	if x <= -3.3e+36:
                  		tmp = t_1
                  	elif x <= 2.8e-9:
                  		tmp = t * ((y - z) / (a - z))
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a)
                  	t_1 = Float64(x * Float64(1.0 - Float64(y / Float64(a - z))))
                  	tmp = 0.0
                  	if (x <= -3.3e+36)
                  		tmp = t_1;
                  	elseif (x <= 2.8e-9)
                  		tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z)));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a)
                  	t_1 = x * (1.0 - (y / (a - z)));
                  	tmp = 0.0;
                  	if (x <= -3.3e+36)
                  		tmp = t_1;
                  	elseif (x <= 2.8e-9)
                  		tmp = t * ((y - z) / (a - z));
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+36], t$95$1, If[LessEqual[x, 2.8e-9], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := x \cdot \left(1 - \frac{y}{a - z}\right)\\
                  \mathbf{if}\;x \leq -3.3 \cdot 10^{+36}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;x \leq 2.8 \cdot 10^{-9}:\\
                  \;\;\;\;t \cdot \frac{y - z}{a - z}\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if x < -3.2999999999999999e36 or 2.79999999999999984e-9 < x

                    1. Initial program 61.5%

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

                        \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                      2. +-lowering-+.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                      3. associate-/l*N/A

                        \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                      4. clear-numN/A

                        \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                      5. un-div-invN/A

                        \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                      6. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                      7. --lowering--.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                      8. /-lowering-/.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                      9. --lowering--.f64N/A

                        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                      10. --lowering--.f6474.7%

                        \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                    4. Applied egg-rr74.7%

                      \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
                    5. Taylor expanded in y around inf

                      \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                    6. Step-by-step derivation
                      1. Simplified67.3%

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

                        \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{a - z}} \]
                      3. Step-by-step derivation
                        1. mul-1-negN/A

                          \[\leadsto x + \left(\mathsf{neg}\left(\frac{x \cdot y}{a - z}\right)\right) \]
                        2. *-rgt-identityN/A

                          \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(\color{blue}{\frac{x \cdot y}{a - z}}\right)\right) \]
                        3. associate-/l*N/A

                          \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(x \cdot \frac{y}{a - z}\right)\right) \]
                        4. distribute-rgt-neg-inN/A

                          \[\leadsto x \cdot 1 + x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)} \]
                        5. mul-1-negN/A

                          \[\leadsto x \cdot 1 + x \cdot \left(-1 \cdot \color{blue}{\frac{y}{a - z}}\right) \]
                        6. distribute-lft-inN/A

                          \[\leadsto x \cdot \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)} \]
                        7. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)}\right) \]
                        8. mul-1-negN/A

                          \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)\right)\right) \]
                        9. unsub-negN/A

                          \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a - z}}\right)\right) \]
                        10. --lowering--.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a - z}\right)}\right)\right) \]
                        11. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{\left(a - z\right)}\right)\right)\right) \]
                        12. --lowering--.f6463.1%

                          \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right)\right) \]
                      4. Simplified63.1%

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

                      if -3.2999999999999999e36 < x < 2.79999999999999984e-9

                      1. Initial program 72.4%

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

                        \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
                      4. Step-by-step derivation
                        1. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
                        2. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                        3. --lowering--.f64N/A

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                        4. --lowering--.f6457.7%

                          \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                      5. Simplified57.7%

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

                          \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                        2. *-commutativeN/A

                          \[\leadsto \frac{y - z}{a - z} \cdot \color{blue}{t} \]
                        3. *-lowering-*.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\left(\frac{y - z}{a - z}\right), \color{blue}{t}\right) \]
                        4. /-lowering-/.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(a - z\right)\right), t\right) \]
                        5. --lowering--.f64N/A

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(a - z\right)\right), t\right) \]
                        6. --lowering--.f6471.9%

                          \[\leadsto \mathsf{*.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{\_.f64}\left(a, z\right)\right), t\right) \]
                      7. Applied egg-rr71.9%

                        \[\leadsto \color{blue}{\frac{y - z}{a - z} \cdot t} \]
                    7. Recombined 2 regimes into one program.
                    8. Final simplification67.8%

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

                    Alternative 12: 54.1% accurate, 0.7× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.2 \cdot 10^{+164}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 2 \cdot 10^{+71}:\\ \;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\ \end{array} \end{array} \]
                    (FPCore (x y z t a)
                     :precision binary64
                     (if (<= z -2.2e+164)
                       t
                       (if (<= z 2e+71) (* x (- 1.0 (/ y (- a z)))) (* t (- 1.0 (/ y z))))))
                    double code(double x, double y, double z, double t, double a) {
                    	double tmp;
                    	if (z <= -2.2e+164) {
                    		tmp = t;
                    	} else if (z <= 2e+71) {
                    		tmp = x * (1.0 - (y / (a - z)));
                    	} else {
                    		tmp = t * (1.0 - (y / z));
                    	}
                    	return tmp;
                    }
                    
                    real(8) function code(x, y, z, t, a)
                        real(8), intent (in) :: x
                        real(8), intent (in) :: y
                        real(8), intent (in) :: z
                        real(8), intent (in) :: t
                        real(8), intent (in) :: a
                        real(8) :: tmp
                        if (z <= (-2.2d+164)) then
                            tmp = t
                        else if (z <= 2d+71) then
                            tmp = x * (1.0d0 - (y / (a - z)))
                        else
                            tmp = t * (1.0d0 - (y / 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.2e+164) {
                    		tmp = t;
                    	} else if (z <= 2e+71) {
                    		tmp = x * (1.0 - (y / (a - z)));
                    	} else {
                    		tmp = t * (1.0 - (y / z));
                    	}
                    	return tmp;
                    }
                    
                    def code(x, y, z, t, a):
                    	tmp = 0
                    	if z <= -2.2e+164:
                    		tmp = t
                    	elif z <= 2e+71:
                    		tmp = x * (1.0 - (y / (a - z)))
                    	else:
                    		tmp = t * (1.0 - (y / z))
                    	return tmp
                    
                    function code(x, y, z, t, a)
                    	tmp = 0.0
                    	if (z <= -2.2e+164)
                    		tmp = t;
                    	elseif (z <= 2e+71)
                    		tmp = Float64(x * Float64(1.0 - Float64(y / Float64(a - z))));
                    	else
                    		tmp = Float64(t * Float64(1.0 - Float64(y / z)));
                    	end
                    	return tmp
                    end
                    
                    function tmp_2 = code(x, y, z, t, a)
                    	tmp = 0.0;
                    	if (z <= -2.2e+164)
                    		tmp = t;
                    	elseif (z <= 2e+71)
                    		tmp = x * (1.0 - (y / (a - z)));
                    	else
                    		tmp = t * (1.0 - (y / z));
                    	end
                    	tmp_2 = tmp;
                    end
                    
                    code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.2e+164], t, If[LessEqual[z, 2e+71], N[(x * N[(1.0 - N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    \mathbf{if}\;z \leq -2.2 \cdot 10^{+164}:\\
                    \;\;\;\;t\\
                    
                    \mathbf{elif}\;z \leq 2 \cdot 10^{+71}:\\
                    \;\;\;\;x \cdot \left(1 - \frac{y}{a - z}\right)\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t \cdot \left(1 - \frac{y}{z}\right)\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if z < -2.20000000000000006e164

                      1. Initial program 37.1%

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

                        \[\leadsto \color{blue}{t} \]
                      4. Step-by-step derivation
                        1. Simplified61.3%

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

                        if -2.20000000000000006e164 < z < 2.0000000000000001e71

                        1. Initial program 85.9%

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

                            \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                          2. +-lowering-+.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                          3. associate-/l*N/A

                            \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                          4. clear-numN/A

                            \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                          5. un-div-invN/A

                            \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                          6. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                          7. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                          8. /-lowering-/.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                          9. --lowering--.f64N/A

                            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                          10. --lowering--.f6492.5%

                            \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                        4. Applied egg-rr92.5%

                          \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
                        5. Taylor expanded in y around inf

                          \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\color{blue}{y}, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                        6. Step-by-step derivation
                          1. Simplified80.8%

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

                            \[\leadsto \color{blue}{x + -1 \cdot \frac{x \cdot y}{a - z}} \]
                          3. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto x + \left(\mathsf{neg}\left(\frac{x \cdot y}{a - z}\right)\right) \]
                            2. *-rgt-identityN/A

                              \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(\color{blue}{\frac{x \cdot y}{a - z}}\right)\right) \]
                            3. associate-/l*N/A

                              \[\leadsto x \cdot 1 + \left(\mathsf{neg}\left(x \cdot \frac{y}{a - z}\right)\right) \]
                            4. distribute-rgt-neg-inN/A

                              \[\leadsto x \cdot 1 + x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)} \]
                            5. mul-1-negN/A

                              \[\leadsto x \cdot 1 + x \cdot \left(-1 \cdot \color{blue}{\frac{y}{a - z}}\right) \]
                            6. distribute-lft-inN/A

                              \[\leadsto x \cdot \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)} \]
                            7. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(x, \color{blue}{\left(1 + -1 \cdot \frac{y}{a - z}\right)}\right) \]
                            8. mul-1-negN/A

                              \[\leadsto \mathsf{*.f64}\left(x, \left(1 + \left(\mathsf{neg}\left(\frac{y}{a - z}\right)\right)\right)\right) \]
                            9. unsub-negN/A

                              \[\leadsto \mathsf{*.f64}\left(x, \left(1 - \color{blue}{\frac{y}{a - z}}\right)\right) \]
                            10. --lowering--.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{a - z}\right)}\right)\right) \]
                            11. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{\left(a - z\right)}\right)\right)\right) \]
                            12. --lowering--.f6457.5%

                              \[\leadsto \mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right)\right)\right) \]
                          4. Simplified57.5%

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

                          if 2.0000000000000001e71 < z

                          1. Initial program 33.1%

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

                            \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
                          4. Step-by-step derivation
                            1. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\left(t \cdot \left(y - z\right)\right), \color{blue}{\left(a - z\right)}\right) \]
                            2. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \left(y - z\right)\right), \left(\color{blue}{a} - z\right)\right) \]
                            3. --lowering--.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \left(a - z\right)\right) \]
                            4. --lowering--.f6441.5%

                              \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(y, z\right)\right), \mathsf{\_.f64}\left(a, \color{blue}{z}\right)\right) \]
                          5. Simplified41.5%

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

                              \[\leadsto t \cdot \color{blue}{\frac{y - z}{a - z}} \]
                            2. clear-numN/A

                              \[\leadsto t \cdot \frac{1}{\color{blue}{\frac{a - z}{y - z}}} \]
                            3. un-div-invN/A

                              \[\leadsto \frac{t}{\color{blue}{\frac{a - z}{y - z}}} \]
                            4. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(t, \color{blue}{\left(\frac{a - z}{y - z}\right)}\right) \]
                            5. /-lowering-/.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\left(a - z\right), \color{blue}{\left(y - z\right)}\right)\right) \]
                            6. --lowering--.f64N/A

                              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(\color{blue}{y} - z\right)\right)\right) \]
                            7. --lowering--.f6467.7%

                              \[\leadsto \mathsf{/.f64}\left(t, \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                          7. Applied egg-rr67.7%

                            \[\leadsto \color{blue}{\frac{t}{\frac{a - z}{y - z}}} \]
                          8. Taylor expanded in a around 0

                            \[\leadsto \color{blue}{-1 \cdot \frac{t \cdot \left(y - z\right)}{z}} \]
                          9. Step-by-step derivation
                            1. mul-1-negN/A

                              \[\leadsto \mathsf{neg}\left(\frac{t \cdot \left(y - z\right)}{z}\right) \]
                            2. associate-/l*N/A

                              \[\leadsto \mathsf{neg}\left(t \cdot \frac{y - z}{z}\right) \]
                            3. distribute-rgt-neg-inN/A

                              \[\leadsto t \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{y - z}{z}\right)\right)} \]
                            4. div-subN/A

                              \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - \frac{z}{z}\right)\right)\right) \]
                            5. *-inversesN/A

                              \[\leadsto t \cdot \left(\mathsf{neg}\left(\left(\frac{y}{z} - 1\right)\right)\right) \]
                            6. mul-1-negN/A

                              \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(\frac{y}{z} - 1\right)}\right) \]
                            7. *-lowering-*.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(t, \color{blue}{\left(-1 \cdot \left(\frac{y}{z} - 1\right)\right)}\right) \]
                            8. sub-negN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + \color{blue}{\left(\mathsf{neg}\left(1\right)\right)}\right)\right)\right) \]
                            9. metadata-evalN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \left(\frac{y}{z} + -1\right)\right)\right) \]
                            10. distribute-lft-inN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + \color{blue}{-1 \cdot -1}\right)\right) \]
                            11. metadata-evalN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(-1 \cdot \frac{y}{z} + 1\right)\right) \]
                            12. +-commutativeN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \color{blue}{-1 \cdot \frac{y}{z}}\right)\right) \]
                            13. mul-1-negN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(1 + \left(\mathsf{neg}\left(\frac{y}{z}\right)\right)\right)\right) \]
                            14. sub-negN/A

                              \[\leadsto \mathsf{*.f64}\left(t, \left(1 - \color{blue}{\frac{y}{z}}\right)\right) \]
                            15. --lowering--.f64N/A

                              \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \color{blue}{\left(\frac{y}{z}\right)}\right)\right) \]
                            16. /-lowering-/.f6462.5%

                              \[\leadsto \mathsf{*.f64}\left(t, \mathsf{\_.f64}\left(1, \mathsf{/.f64}\left(y, \color{blue}{z}\right)\right)\right) \]
                          10. Simplified62.5%

                            \[\leadsto \color{blue}{t \cdot \left(1 - \frac{y}{z}\right)} \]
                        7. Recombined 3 regimes into one program.
                        8. Add Preprocessing

                        Alternative 13: 35.9% accurate, 0.7× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2 \cdot 10^{+15}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{-184}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+184}:\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= a -2e+15)
                           x
                           (if (<= a 1.7e-184) (/ (* y x) z) (if (<= a 4e+184) (+ t x) x))))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (a <= -2e+15) {
                        		tmp = x;
                        	} else if (a <= 1.7e-184) {
                        		tmp = (y * x) / z;
                        	} else if (a <= 4e+184) {
                        		tmp = t + 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 (a <= (-2d+15)) then
                                tmp = x
                            else if (a <= 1.7d-184) then
                                tmp = (y * x) / z
                            else if (a <= 4d+184) then
                                tmp = t + 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 (a <= -2e+15) {
                        		tmp = x;
                        	} else if (a <= 1.7e-184) {
                        		tmp = (y * x) / z;
                        	} else if (a <= 4e+184) {
                        		tmp = t + x;
                        	} else {
                        		tmp = x;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	tmp = 0
                        	if a <= -2e+15:
                        		tmp = x
                        	elif a <= 1.7e-184:
                        		tmp = (y * x) / z
                        	elif a <= 4e+184:
                        		tmp = t + x
                        	else:
                        		tmp = x
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (a <= -2e+15)
                        		tmp = x;
                        	elseif (a <= 1.7e-184)
                        		tmp = Float64(Float64(y * x) / z);
                        	elseif (a <= 4e+184)
                        		tmp = Float64(t + x);
                        	else
                        		tmp = x;
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	tmp = 0.0;
                        	if (a <= -2e+15)
                        		tmp = x;
                        	elseif (a <= 1.7e-184)
                        		tmp = (y * x) / z;
                        	elseif (a <= 4e+184)
                        		tmp = t + x;
                        	else
                        		tmp = x;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2e+15], x, If[LessEqual[a, 1.7e-184], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 4e+184], N[(t + x), $MachinePrecision], x]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;a \leq -2 \cdot 10^{+15}:\\
                        \;\;\;\;x\\
                        
                        \mathbf{elif}\;a \leq 1.7 \cdot 10^{-184}:\\
                        \;\;\;\;\frac{y \cdot x}{z}\\
                        
                        \mathbf{elif}\;a \leq 4 \cdot 10^{+184}:\\
                        \;\;\;\;t + x\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;x\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if a < -2e15 or 4.00000000000000007e184 < a

                          1. Initial program 66.8%

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

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

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

                            if -2e15 < a < 1.70000000000000002e-184

                            1. Initial program 66.9%

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

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

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

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

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

                                \[\leadsto t + \left(\mathsf{neg}\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)\right) \]
                              5. unsub-negN/A

                                \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                              6. --lowering--.f64N/A

                                \[\leadsto \mathsf{\_.f64}\left(t, \color{blue}{\left(\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}\right)}\right) \]
                              7. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(y \cdot \left(t - x\right) - a \cdot \left(t - x\right)\right), \color{blue}{z}\right)\right) \]
                              8. distribute-rgt-out--N/A

                                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\left(\left(t - x\right) \cdot \left(y - a\right)\right), z\right)\right) \]
                              9. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\left(t - x\right), \left(y - a\right)\right), z\right)\right) \]
                              10. --lowering--.f64N/A

                                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \left(y - a\right)\right), z\right)\right) \]
                              11. --lowering--.f6474.8%

                                \[\leadsto \mathsf{\_.f64}\left(t, \mathsf{/.f64}\left(\mathsf{*.f64}\left(\mathsf{\_.f64}\left(t, x\right), \mathsf{\_.f64}\left(y, a\right)\right), z\right)\right) \]
                            5. Simplified74.8%

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

                              \[\leadsto \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
                            7. Step-by-step derivation
                              1. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\left(x \cdot \left(y - a\right)\right), \color{blue}{z}\right) \]
                              2. *-lowering-*.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \left(y - a\right)\right), z\right) \]
                              3. --lowering--.f6440.3%

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, \mathsf{\_.f64}\left(y, a\right)\right), z\right) \]
                            8. Simplified40.3%

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

                              \[\leadsto \color{blue}{\frac{x \cdot y}{z}} \]
                            10. Step-by-step derivation
                              1. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{/.f64}\left(\left(x \cdot y\right), \color{blue}{z}\right) \]
                              2. *-lowering-*.f6438.7%

                                \[\leadsto \mathsf{/.f64}\left(\mathsf{*.f64}\left(x, y\right), z\right) \]
                            11. Simplified38.7%

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

                            if 1.70000000000000002e-184 < a < 4.00000000000000007e184

                            1. Initial program 68.4%

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

                                \[\leadsto \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} + \color{blue}{x} \]
                              2. +-lowering-+.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(\left(\frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\right), \color{blue}{x}\right) \]
                              3. associate-/l*N/A

                                \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{t - x}{a - z}\right), x\right) \]
                              4. clear-numN/A

                                \[\leadsto \mathsf{+.f64}\left(\left(\left(y - z\right) \cdot \frac{1}{\frac{a - z}{t - x}}\right), x\right) \]
                              5. un-div-invN/A

                                \[\leadsto \mathsf{+.f64}\left(\left(\frac{y - z}{\frac{a - z}{t - x}}\right), x\right) \]
                              6. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\left(y - z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                              7. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \left(\frac{a - z}{t - x}\right)\right), x\right) \]
                              8. /-lowering-/.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\left(a - z\right), \left(t - x\right)\right)\right), x\right) \]
                              9. --lowering--.f64N/A

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \left(t - x\right)\right)\right), x\right) \]
                              10. --lowering--.f6482.3%

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{/.f64}\left(\mathsf{\_.f64}\left(y, z\right), \mathsf{/.f64}\left(\mathsf{\_.f64}\left(a, z\right), \mathsf{\_.f64}\left(t, x\right)\right)\right), x\right) \]
                            4. Applied egg-rr82.3%

                              \[\leadsto \color{blue}{\frac{y - z}{\frac{a - z}{t - x}} + x} \]
                            5. Taylor expanded in z around inf

                              \[\leadsto \mathsf{+.f64}\left(\color{blue}{\left(t - x\right)}, x\right) \]
                            6. Step-by-step derivation
                              1. --lowering--.f6423.5%

                                \[\leadsto \mathsf{+.f64}\left(\mathsf{\_.f64}\left(t, x\right), x\right) \]
                            7. Simplified23.5%

                              \[\leadsto \color{blue}{\left(t - x\right)} + x \]
                            8. Taylor expanded in t around inf

                              \[\leadsto \mathsf{+.f64}\left(\color{blue}{t}, x\right) \]
                            9. Step-by-step derivation
                              1. Simplified38.4%

                                \[\leadsto \color{blue}{t} + x \]
                            10. Recombined 3 regimes into one program.
                            11. Final simplification40.3%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2 \cdot 10^{+15}:\\ \;\;\;\;x\\ \mathbf{elif}\;a \leq 1.7 \cdot 10^{-184}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;a \leq 4 \cdot 10^{+184}:\\ \;\;\;\;t + x\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \]
                            12. Add Preprocessing

                            Alternative 14: 38.4% accurate, 1.2× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.7 \cdot 10^{+38}:\\ \;\;\;\;t\\ \mathbf{elif}\;z \leq 4.5 \cdot 10^{+71}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (if (<= z -3.7e+38) t (if (<= z 4.5e+71) x t)))
                            double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if (z <= -3.7e+38) {
                            		tmp = t;
                            	} else if (z <= 4.5e+71) {
                            		tmp = x;
                            	} else {
                            		tmp = 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 <= (-3.7d+38)) then
                                    tmp = t
                                else if (z <= 4.5d+71) then
                                    tmp = x
                                else
                                    tmp = 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 <= -3.7e+38) {
                            		tmp = t;
                            	} else if (z <= 4.5e+71) {
                            		tmp = x;
                            	} else {
                            		tmp = t;
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a):
                            	tmp = 0
                            	if z <= -3.7e+38:
                            		tmp = t
                            	elif z <= 4.5e+71:
                            		tmp = x
                            	else:
                            		tmp = t
                            	return tmp
                            
                            function code(x, y, z, t, a)
                            	tmp = 0.0
                            	if (z <= -3.7e+38)
                            		tmp = t;
                            	elseif (z <= 4.5e+71)
                            		tmp = x;
                            	else
                            		tmp = t;
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a)
                            	tmp = 0.0;
                            	if (z <= -3.7e+38)
                            		tmp = t;
                            	elseif (z <= 4.5e+71)
                            		tmp = x;
                            	else
                            		tmp = t;
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.7e+38], t, If[LessEqual[z, 4.5e+71], x, t]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;z \leq -3.7 \cdot 10^{+38}:\\
                            \;\;\;\;t\\
                            
                            \mathbf{elif}\;z \leq 4.5 \cdot 10^{+71}:\\
                            \;\;\;\;x\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -3.7000000000000001e38 or 4.50000000000000043e71 < z

                              1. Initial program 39.3%

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

                                \[\leadsto \color{blue}{t} \]
                              4. Step-by-step derivation
                                1. Simplified46.4%

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

                                if -3.7000000000000001e38 < z < 4.50000000000000043e71

                                1. Initial program 89.5%

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

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

                                    \[\leadsto \color{blue}{x} \]
                                5. Recombined 2 regimes into one program.
                                6. Add Preprocessing

                                Alternative 15: 25.0% accurate, 13.0× speedup?

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

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

                                  \[\leadsto \color{blue}{t} \]
                                4. Step-by-step derivation
                                  1. Simplified25.5%

                                    \[\leadsto \color{blue}{t} \]
                                  2. Add Preprocessing

                                  Developer Target 1: 84.2% accurate, 0.6× speedup?

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

                                  Reproduce

                                  ?
                                  herbie shell --seed 2024160 
                                  (FPCore (x y z t a)
                                    :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                    :precision binary64
                                  
                                    :alt
                                    (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                  
                                    (+ x (/ (* (- y z) (- t x)) (- a z))))