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

Percentage Accurate: 68.1% → 89.0%
Time: 10.1s
Alternatives: 20
Speedup: 0.8×

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 20 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.1% 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: 89.0% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-304}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_1 \leq 10^{-263}:\\
\;\;\;\;\mathsf{fma}\left(-x, \left(y - a\right) \cdot \frac{\frac{t}{x} - 1}{z}, t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0

    1. Initial program 46.9%

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
      10. difference-of-squaresN/A

        \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
      11. lift--.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
      12. times-fracN/A

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
      14. lower-/.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
      15. lower-+.f64N/A

        \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
      16. lower-/.f64N/A

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

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

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

    if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.99999999999999971e-305

    1. Initial program 95.3%

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

    if -9.99999999999999971e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 1e-263

    1. Initial program 7.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 1e-263 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

      1. Initial program 66.7%

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

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

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

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

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

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
        6. lower-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
        7. lower-/.f6488.4

          \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
      4. Applied rewrites88.4%

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
    8. Recombined 4 regimes into one program.
    9. Final simplification90.8%

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

    Alternative 2: 87.2% accurate, 0.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{t - x}{z} \cdot \left(y - a\right)\\ t_2 := x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\ \mathbf{if}\;t\_2 \leq -\infty:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-304}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq 0:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+306}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (- t (* (/ (- t x) z) (- y a))))
            (t_2 (- x (/ (* (- z y) (- x t)) (- z a)))))
       (if (<= t_2 (- INFINITY))
         t_1
         (if (<= t_2 -1e-304)
           t_2
           (if (<= t_2 0.0)
             (- t (* (/ (- a y) z) x))
             (if (<= t_2 2e+306) t_2 t_1))))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = t - (((t - x) / z) * (y - a));
    	double t_2 = x - (((z - y) * (x - t)) / (z - a));
    	double tmp;
    	if (t_2 <= -((double) INFINITY)) {
    		tmp = t_1;
    	} else if (t_2 <= -1e-304) {
    		tmp = t_2;
    	} else if (t_2 <= 0.0) {
    		tmp = t - (((a - y) / z) * x);
    	} else if (t_2 <= 2e+306) {
    		tmp = t_2;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    public static double code(double x, double y, double z, double t, double a) {
    	double t_1 = t - (((t - x) / z) * (y - a));
    	double t_2 = x - (((z - y) * (x - t)) / (z - a));
    	double tmp;
    	if (t_2 <= -Double.POSITIVE_INFINITY) {
    		tmp = t_1;
    	} else if (t_2 <= -1e-304) {
    		tmp = t_2;
    	} else if (t_2 <= 0.0) {
    		tmp = t - (((a - y) / z) * x);
    	} else if (t_2 <= 2e+306) {
    		tmp = t_2;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	t_1 = t - (((t - x) / z) * (y - a))
    	t_2 = x - (((z - y) * (x - t)) / (z - a))
    	tmp = 0
    	if t_2 <= -math.inf:
    		tmp = t_1
    	elif t_2 <= -1e-304:
    		tmp = t_2
    	elif t_2 <= 0.0:
    		tmp = t - (((a - y) / z) * x)
    	elif t_2 <= 2e+306:
    		tmp = t_2
    	else:
    		tmp = t_1
    	return tmp
    
    function code(x, y, z, t, a)
    	t_1 = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a)))
    	t_2 = Float64(x - Float64(Float64(Float64(z - y) * Float64(x - t)) / Float64(z - a)))
    	tmp = 0.0
    	if (t_2 <= Float64(-Inf))
    		tmp = t_1;
    	elseif (t_2 <= -1e-304)
    		tmp = t_2;
    	elseif (t_2 <= 0.0)
    		tmp = Float64(t - Float64(Float64(Float64(a - y) / z) * x));
    	elseif (t_2 <= 2e+306)
    		tmp = t_2;
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	t_1 = t - (((t - x) / z) * (y - a));
    	t_2 = x - (((z - y) * (x - t)) / (z - a));
    	tmp = 0.0;
    	if (t_2 <= -Inf)
    		tmp = t_1;
    	elseif (t_2 <= -1e-304)
    		tmp = t_2;
    	elseif (t_2 <= 0.0)
    		tmp = t - (((a - y) / z) * x);
    	elseif (t_2 <= 2e+306)
    		tmp = t_2;
    	else
    		tmp = t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(z - y), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-304], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+306], t$95$2, t$95$1]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := t - \frac{t - x}{z} \cdot \left(y - a\right)\\
    t_2 := x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\
    \mathbf{if}\;t\_2 \leq -\infty:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-304}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t\_2 \leq 0:\\
    \;\;\;\;t - \frac{a - y}{z} \cdot x\\
    
    \mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+306}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 2.00000000000000003e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

      1. Initial program 37.9%

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

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

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

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

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

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
        6. lower-/.f64N/A

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
        7. lower-/.f6483.8

          \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
      4. Applied rewrites83.8%

        \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
      5. 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}} \]
      6. Step-by-step derivation
        1. associate--l+N/A

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

          \[\leadsto t + \color{blue}{\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 \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
        6. lower--.f64N/A

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

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

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

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

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

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

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

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

          \[\leadsto t - \frac{t - x}{z} \cdot \color{blue}{\left(y - a\right)} \]
      7. Applied rewrites70.3%

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

      if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.99999999999999971e-305 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 2.00000000000000003e306

      1. Initial program 96.6%

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

      if -9.99999999999999971e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0

      1. Initial program 3.7%

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
        10. difference-of-squaresN/A

          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
        11. lift--.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
        12. times-fracN/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
        14. lower-/.f64N/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
        15. lower-+.f64N/A

          \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
        16. lower-/.f64N/A

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
      5. 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}} \]
      6. Step-by-step derivation
        1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t - -1 \cdot \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
      9. Step-by-step derivation
        1. Applied rewrites99.7%

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a} \leq -\infty:\\ \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \mathbf{elif}\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a} \leq -1 \cdot 10^{-304}:\\ \;\;\;\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\ \mathbf{elif}\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a} \leq 0:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \mathbf{elif}\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a} \leq 2 \cdot 10^{+306}:\\ \;\;\;\;x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\ \mathbf{else}:\\ \;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \end{array} \]
      12. Add Preprocessing

      Alternative 3: 78.5% accurate, 0.2× speedup?

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

        1. Initial program 38.5%

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

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

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

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

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

            \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
          6. lower-/.f64N/A

            \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
          7. lower-/.f6484.0

            \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
        4. Applied rewrites84.0%

          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
        5. 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}} \]
        6. Step-by-step derivation
          1. associate--l+N/A

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

            \[\leadsto t + \color{blue}{\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 \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
          6. lower--.f64N/A

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

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

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

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

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

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

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

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

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

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

        if -2.00000000000000003e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.99999999999999971e-305 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 2.00000000000000003e306

        1. Initial program 96.6%

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

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

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

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

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

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

        if -9.99999999999999971e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0

        1. Initial program 3.7%

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
          10. difference-of-squaresN/A

            \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
          11. lift--.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
          12. times-fracN/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
          14. lower-/.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
          15. lower-+.f64N/A

            \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
          16. lower-/.f64N/A

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
        5. 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}} \]
        6. Step-by-step derivation
          1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto t - -1 \cdot \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
        9. Step-by-step derivation
          1. Applied rewrites99.7%

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

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

        Alternative 4: 88.9% accurate, 0.2× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x - \frac{z - y}{\frac{z - a}{x - t}}\\ t_2 := x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\ \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+306}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-304}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_2 \leq 10^{-263}:\\ \;\;\;\;\mathsf{fma}\left(-x, \left(y - a\right) \cdot \frac{\frac{t}{x} - 1}{z}, t\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (let* ((t_1 (- x (/ (- z y) (/ (- z a) (- x t)))))
                (t_2 (- x (/ (* (- z y) (- x t)) (- z a)))))
           (if (<= t_2 -2e+306)
             t_1
             (if (<= t_2 -1e-304)
               t_2
               (if (<= t_2 1e-263)
                 (fma (- x) (* (- y a) (/ (- (/ t x) 1.0) z)) t)
                 t_1)))))
        double code(double x, double y, double z, double t, double a) {
        	double t_1 = x - ((z - y) / ((z - a) / (x - t)));
        	double t_2 = x - (((z - y) * (x - t)) / (z - a));
        	double tmp;
        	if (t_2 <= -2e+306) {
        		tmp = t_1;
        	} else if (t_2 <= -1e-304) {
        		tmp = t_2;
        	} else if (t_2 <= 1e-263) {
        		tmp = fma(-x, ((y - a) * (((t / x) - 1.0) / z)), t);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	t_1 = Float64(x - Float64(Float64(z - y) / Float64(Float64(z - a) / Float64(x - t))))
        	t_2 = Float64(x - Float64(Float64(Float64(z - y) * Float64(x - t)) / Float64(z - a)))
        	tmp = 0.0
        	if (t_2 <= -2e+306)
        		tmp = t_1;
        	elseif (t_2 <= -1e-304)
        		tmp = t_2;
        	elseif (t_2 <= 1e-263)
        		tmp = fma(Float64(-x), Float64(Float64(y - a) * Float64(Float64(Float64(t / x) - 1.0) / z)), t);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(z - y), $MachinePrecision] / N[(N[(z - a), $MachinePrecision] / N[(x - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(z - y), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+306], t$95$1, If[LessEqual[t$95$2, -1e-304], t$95$2, If[LessEqual[t$95$2, 1e-263], N[((-x) * N[(N[(y - a), $MachinePrecision] * N[(N[(N[(t / x), $MachinePrecision] - 1.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision], t$95$1]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := x - \frac{z - y}{\frac{z - a}{x - t}}\\
        t_2 := x - \frac{\left(z - y\right) \cdot \left(x - t\right)}{z - a}\\
        \mathbf{if}\;t\_2 \leq -2 \cdot 10^{+306}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-304}:\\
        \;\;\;\;t\_2\\
        
        \mathbf{elif}\;t\_2 \leq 10^{-263}:\\
        \;\;\;\;\mathsf{fma}\left(-x, \left(y - a\right) \cdot \frac{\frac{t}{x} - 1}{z}, t\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2.00000000000000003e306 or 1e-263 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z)))

          1. Initial program 61.7%

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

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

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

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

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

              \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
            6. lower-/.f64N/A

              \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
            7. lower-/.f6487.1

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

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

          if -2.00000000000000003e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.99999999999999971e-305

          1. Initial program 95.3%

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

          if -9.99999999999999971e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 1e-263

          1. Initial program 7.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(-x, \color{blue}{\frac{\frac{t}{x} - 1}{z} \cdot \left(y - a\right)}, t\right) \]
          8. Recombined 3 regimes into one program.
          9. Final simplification90.7%

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

          Alternative 5: 88.9% accurate, 0.2× speedup?

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

            1. Initial program 61.7%

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

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

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

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

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

                \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
              6. lower-/.f64N/A

                \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
              7. lower-/.f6487.1

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

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

            if -2.00000000000000003e306 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -9.99999999999999971e-305

            1. Initial program 95.3%

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

            if -9.99999999999999971e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 1e-263

            1. Initial program 7.7%

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
              10. difference-of-squaresN/A

                \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
              11. lift--.f64N/A

                \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
              12. times-fracN/A

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
              14. lower-/.f64N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
              15. lower-+.f64N/A

                \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
              16. lower-/.f64N/A

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

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
            5. 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}} \]
            6. Step-by-step derivation
              1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto t - -1 \cdot \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
            9. Step-by-step derivation
              1. Applied rewrites99.7%

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

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

            Alternative 6: 72.3% accurate, 0.7× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{a - y}{z} \cdot x\\ \mathbf{if}\;z \leq -1.3 \cdot 10^{+94}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -390000000000:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{elif}\;z \leq 240:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
            (FPCore (x y z t a)
             :precision binary64
             (let* ((t_1 (- t (* (/ (- a y) z) x))))
               (if (<= z -1.3e+94)
                 t_1
                 (if (<= z -390000000000.0)
                   (* (/ t (- z a)) (- z y))
                   (if (<= z 240.0) (fma (/ (- y z) a) (- t x) x) t_1)))))
            double code(double x, double y, double z, double t, double a) {
            	double t_1 = t - (((a - y) / z) * x);
            	double tmp;
            	if (z <= -1.3e+94) {
            		tmp = t_1;
            	} else if (z <= -390000000000.0) {
            		tmp = (t / (z - a)) * (z - y);
            	} else if (z <= 240.0) {
            		tmp = fma(((y - z) / a), (t - x), x);
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a)
            	t_1 = Float64(t - Float64(Float64(Float64(a - y) / z) * x))
            	tmp = 0.0
            	if (z <= -1.3e+94)
            		tmp = t_1;
            	elseif (z <= -390000000000.0)
            		tmp = Float64(Float64(t / Float64(z - a)) * Float64(z - y));
            	elseif (z <= 240.0)
            		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
            	else
            		tmp = t_1;
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.3e+94], t$95$1, If[LessEqual[z, -390000000000.0], N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 240.0], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := t - \frac{a - y}{z} \cdot x\\
            \mathbf{if}\;z \leq -1.3 \cdot 10^{+94}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;z \leq -390000000000:\\
            \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\
            
            \mathbf{elif}\;z \leq 240:\\
            \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if z < -1.3e94 or 240 < z

              1. Initial program 40.0%

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                10. difference-of-squaresN/A

                  \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                11. lift--.f64N/A

                  \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                12. times-fracN/A

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                14. lower-/.f64N/A

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                15. lower-+.f64N/A

                  \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                16. lower-/.f64N/A

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
              5. 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}} \]
              6. Step-by-step derivation
                1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto t - -1 \cdot \color{blue}{\frac{x \cdot \left(y - a\right)}{z}} \]
              9. Step-by-step derivation
                1. Applied rewrites76.1%

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

                if -1.3e94 < z < -3.9e11

                1. Initial program 67.0%

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

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

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

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

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

                    \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                  5. lower-*.f64N/A

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

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

                    \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                  8. lower--.f6474.2

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

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

                if -3.9e11 < z < 240

                1. Initial program 84.6%

                  \[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. +-commutativeN/A

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)} \]
              10. Recombined 3 regimes into one program.
              11. Final simplification77.1%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+94}:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \mathbf{elif}\;z \leq -390000000000:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{elif}\;z \leq 240:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \end{array} \]
              12. Add Preprocessing

              Alternative 7: 63.9% accurate, 0.7× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{if}\;z \leq -6.2 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{elif}\;z \leq -390000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-25}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (let* ((t_1 (* (/ t (- z a)) (- z y))))
                 (if (<= z -6.2e+95)
                   (fma a (/ (- t x) z) t)
                   (if (<= z -390000000000.0)
                     t_1
                     (if (<= z 2.8e-25) (fma (- t x) (/ y a) x) t_1)))))
              double code(double x, double y, double z, double t, double a) {
              	double t_1 = (t / (z - a)) * (z - y);
              	double tmp;
              	if (z <= -6.2e+95) {
              		tmp = fma(a, ((t - x) / z), t);
              	} else if (z <= -390000000000.0) {
              		tmp = t_1;
              	} else if (z <= 2.8e-25) {
              		tmp = fma((t - x), (y / a), x);
              	} else {
              		tmp = t_1;
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	t_1 = Float64(Float64(t / Float64(z - a)) * Float64(z - y))
              	tmp = 0.0
              	if (z <= -6.2e+95)
              		tmp = fma(a, Float64(Float64(t - x) / z), t);
              	elseif (z <= -390000000000.0)
              		tmp = t_1;
              	elseif (z <= 2.8e-25)
              		tmp = fma(Float64(t - x), Float64(y / a), x);
              	else
              		tmp = t_1;
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(z - y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.2e+95], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision], If[LessEqual[z, -390000000000.0], t$95$1, If[LessEqual[z, 2.8e-25], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              t_1 := \frac{t}{z - a} \cdot \left(z - y\right)\\
              \mathbf{if}\;z \leq -6.2 \cdot 10^{+95}:\\
              \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
              
              \mathbf{elif}\;z \leq -390000000000:\\
              \;\;\;\;t\_1\\
              
              \mathbf{elif}\;z \leq 2.8 \cdot 10^{-25}:\\
              \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;t\_1\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 3 regimes
              2. if z < -6.2000000000000006e95

                1. Initial program 32.0%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                  10. difference-of-squaresN/A

                    \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                  11. lift--.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                  12. times-fracN/A

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                  14. lower-/.f64N/A

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                  15. lower-+.f64N/A

                    \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                  16. lower-/.f64N/A

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

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                5. 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}} \]
                6. Step-by-step derivation
                  1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                9. Step-by-step derivation
                  1. Applied rewrites54.3%

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

                  if -6.2000000000000006e95 < z < -3.9e11 or 2.79999999999999988e-25 < z

                  1. Initial program 56.2%

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

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

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

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

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

                      \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                    5. lower-*.f64N/A

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

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

                      \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                    8. lower--.f6467.7

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

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

                  if -3.9e11 < z < 2.79999999999999988e-25

                  1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                    10. difference-of-squaresN/A

                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                    11. lift--.f64N/A

                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                    12. times-fracN/A

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                    14. lower-/.f64N/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                    15. lower-+.f64N/A

                      \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                    16. lower-/.f64N/A

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                  5. 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}} \]
                  6. Step-by-step derivation
                    1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(\color{blue}{t - x}, \frac{y}{a}, x\right) \]
                    6. lower-/.f6475.5

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)} \]
                10. Recombined 3 regimes into one program.
                11. Final simplification69.3%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.2 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{elif}\;z \leq -390000000000:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-25}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{t}{z - a} \cdot \left(z - y\right)\\ \end{array} \]
                12. Add Preprocessing

                Alternative 8: 36.2% accurate, 0.8× speedup?

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

                  1. Initial program 67.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto 1 \cdot x \]
                  7. Step-by-step derivation
                    1. Applied rewrites61.0%

                      \[\leadsto 1 \cdot x \]

                    if -2.9e88 < a < 1.44999999999999991e-270

                    1. Initial program 60.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \frac{t}{x} \cdot x \]
                    7. Step-by-step derivation
                      1. Applied rewrites42.3%

                        \[\leadsto \frac{t}{x} \cdot x \]

                      if 1.44999999999999991e-270 < a < 5.8000000000000001e128

                      1. Initial program 71.9%

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

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

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

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

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

                          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                        6. lower-/.f64N/A

                          \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                        7. lower-/.f6481.7

                          \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
                      4. Applied rewrites81.7%

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \frac{y \cdot \left(t - x\right)}{\color{blue}{a}} \]
                      9. Step-by-step derivation
                        1. Applied rewrites33.0%

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

                      Alternative 9: 36.4% accurate, 0.8× speedup?

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

                        1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto 1 \cdot x \]
                        7. Step-by-step derivation
                          1. Applied rewrites56.8%

                            \[\leadsto 1 \cdot x \]

                          if -2.9e88 < a < 2.94999999999999982e-77

                          1. Initial program 66.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \frac{t}{x} \cdot x \]
                          7. Step-by-step derivation
                            1. Applied rewrites37.9%

                              \[\leadsto \frac{t}{x} \cdot x \]

                            if 2.94999999999999982e-77 < a < 1.6500000000000001e39

                            1. Initial program 72.0%

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

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

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

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

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

                                \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                              6. lower-/.f64N/A

                                \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                              7. lower-/.f6483.7

                                \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
                            4. Applied rewrites83.7%

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
                            9. Step-by-step derivation
                              1. Applied rewrites43.2%

                                \[\leadsto t \cdot \color{blue}{\frac{y}{a - z}} \]
                            10. Recombined 3 regimes into one program.
                            11. Final simplification45.9%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.9 \cdot 10^{+88}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 2.95 \cdot 10^{-77}:\\ \;\;\;\;\frac{t}{x} \cdot x\\ \mathbf{elif}\;a \leq 1.65 \cdot 10^{+39}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                            12. Add Preprocessing

                            Alternative 10: 75.2% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{t - x}{z} \cdot \left(y - a\right)\\ \mathbf{if}\;z \leq -1.1 \cdot 10^{+54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 130:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (let* ((t_1 (- t (* (/ (- t x) z) (- y a)))))
                               (if (<= z -1.1e+54)
                                 t_1
                                 (if (<= z 130.0) (fma (/ (- y z) a) (- t x) x) t_1))))
                            double code(double x, double y, double z, double t, double a) {
                            	double t_1 = t - (((t - x) / z) * (y - a));
                            	double tmp;
                            	if (z <= -1.1e+54) {
                            		tmp = t_1;
                            	} else if (z <= 130.0) {
                            		tmp = fma(((y - z) / a), (t - x), x);
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a)
                            	t_1 = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a)))
                            	tmp = 0.0
                            	if (z <= -1.1e+54)
                            		tmp = t_1;
                            	elseif (z <= 130.0)
                            		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
                            	else
                            		tmp = t_1;
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+54], t$95$1, If[LessEqual[z, 130.0], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := t - \frac{t - x}{z} \cdot \left(y - a\right)\\
                            \mathbf{if}\;z \leq -1.1 \cdot 10^{+54}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;z \leq 130:\\
                            \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -1.09999999999999995e54 or 130 < z

                              1. Initial program 43.5%

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

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

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

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

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

                                  \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                6. lower-/.f64N/A

                                  \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                7. lower-/.f6464.2

                                  \[\leadsto x + \frac{y - z}{\color{blue}{\frac{a - z}{t - x}}} \]
                              4. Applied rewrites64.2%

                                \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                              5. 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}} \]
                              6. Step-by-step derivation
                                1. associate--l+N/A

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

                                  \[\leadsto t + \color{blue}{\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 \color{blue}{t - \frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                6. lower--.f64N/A

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

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

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

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

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

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

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

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

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

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

                              if -1.09999999999999995e54 < z < 130

                              1. Initial program 82.7%

                                \[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. +-commutativeN/A

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)} \]
                            3. Recombined 2 regimes into one program.
                            4. Add Preprocessing

                            Alternative 11: 68.4% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -390000000000:\\ \;\;\;\;\frac{z - y}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 190:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t - \frac{\left(t - x\right) \cdot y}{z}\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (if (<= z -390000000000.0)
                               (* (/ (- z y) (- z a)) t)
                               (if (<= z 190.0) (fma (/ (- y z) a) (- t x) x) (- t (/ (* (- t x) y) z)))))
                            double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if (z <= -390000000000.0) {
                            		tmp = ((z - y) / (z - a)) * t;
                            	} else if (z <= 190.0) {
                            		tmp = fma(((y - z) / a), (t - x), x);
                            	} else {
                            		tmp = t - (((t - x) * y) / z);
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a)
                            	tmp = 0.0
                            	if (z <= -390000000000.0)
                            		tmp = Float64(Float64(Float64(z - y) / Float64(z - a)) * t);
                            	elseif (z <= 190.0)
                            		tmp = fma(Float64(Float64(y - z) / a), Float64(t - x), x);
                            	else
                            		tmp = Float64(t - Float64(Float64(Float64(t - x) * y) / z));
                            	end
                            	return tmp
                            end
                            
                            code[x_, y_, z_, t_, a_] := If[LessEqual[z, -390000000000.0], N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 190.0], N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;z \leq -390000000000:\\
                            \;\;\;\;\frac{z - y}{z - a} \cdot t\\
                            
                            \mathbf{elif}\;z \leq 190:\\
                            \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t - \frac{\left(t - x\right) \cdot y}{z}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if z < -3.9e11

                              1. Initial program 43.9%

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

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

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

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

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

                                  \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                6. lower-/.f64N/A

                                  \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                7. lower-/.f6464.6

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

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

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

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

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

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

                                  \[\leadsto \color{blue}{\frac{y - z}{a - z}} \cdot t \]
                                5. lower--.f64N/A

                                  \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                                6. lower--.f6464.4

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

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

                              if -3.9e11 < z < 190

                              1. Initial program 84.6%

                                \[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. +-commutativeN/A

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

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

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

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

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

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

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

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

                              if 190 < z

                              1. Initial program 47.1%

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                10. difference-of-squaresN/A

                                  \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                11. lift--.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                12. times-fracN/A

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

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                14. lower-/.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                15. lower-+.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                16. lower-/.f64N/A

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

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

                                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                              5. 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}} \]
                              6. Step-by-step derivation
                                1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                              7. Applied rewrites69.3%

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

                                \[\leadsto t - \frac{y \cdot \left(t - x\right)}{z} \]
                              9. Step-by-step derivation
                                1. Applied rewrites69.6%

                                  \[\leadsto t - \frac{\left(t - x\right) \cdot y}{z} \]
                              10. Recombined 3 regimes into one program.
                              11. Final simplification72.9%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -390000000000:\\ \;\;\;\;\frac{z - y}{z - a} \cdot t\\ \mathbf{elif}\;z \leq 190:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;t - \frac{\left(t - x\right) \cdot y}{z}\\ \end{array} \]
                              12. Add Preprocessing

                              Alternative 12: 66.8% accurate, 0.8× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{z - y}{z - a} \cdot t\\ \mathbf{if}\;z \leq -390000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-25}:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (let* ((t_1 (* (/ (- z y) (- z a)) t)))
                                 (if (<= z -390000000000.0)
                                   t_1
                                   (if (<= z 2.8e-25) (fma (- t x) (/ y a) x) t_1))))
                              double code(double x, double y, double z, double t, double a) {
                              	double t_1 = ((z - y) / (z - a)) * t;
                              	double tmp;
                              	if (z <= -390000000000.0) {
                              		tmp = t_1;
                              	} else if (z <= 2.8e-25) {
                              		tmp = fma((t - x), (y / a), x);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	t_1 = Float64(Float64(Float64(z - y) / Float64(z - a)) * t)
                              	tmp = 0.0
                              	if (z <= -390000000000.0)
                              		tmp = t_1;
                              	elseif (z <= 2.8e-25)
                              		tmp = fma(Float64(t - x), Float64(y / a), x);
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -390000000000.0], t$95$1, If[LessEqual[z, 2.8e-25], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \frac{z - y}{z - a} \cdot t\\
                              \mathbf{if}\;z \leq -390000000000:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;z \leq 2.8 \cdot 10^{-25}:\\
                              \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if z < -3.9e11 or 2.79999999999999988e-25 < z

                                1. Initial program 47.5%

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

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

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

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

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

                                    \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                  6. lower-/.f64N/A

                                    \[\leadsto x + \color{blue}{\frac{y - z}{\frac{a - z}{t - x}}} \]
                                  7. lower-/.f6468.1

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\frac{y - z}{a - z}} \cdot t \]
                                  5. lower--.f64N/A

                                    \[\leadsto \frac{\color{blue}{y - z}}{a - z} \cdot t \]
                                  6. lower--.f6465.8

                                    \[\leadsto \frac{y - z}{\color{blue}{a - z}} \cdot t \]
                                7. Applied rewrites65.8%

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

                                if -3.9e11 < z < 2.79999999999999988e-25

                                1. Initial program 84.6%

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                  10. difference-of-squaresN/A

                                    \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                  11. lift--.f64N/A

                                    \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                  12. times-fracN/A

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

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                  14. lower-/.f64N/A

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                  15. lower-+.f64N/A

                                    \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                  16. lower-/.f64N/A

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

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                5. 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}} \]
                                6. Step-by-step derivation
                                  1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{t - x}, \frac{y}{a}, x\right) \]
                                  6. lower-/.f6475.5

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)} \]
                              3. Recombined 2 regimes into one program.
                              4. Final simplification70.8%

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

                              Alternative 13: 62.6% accurate, 0.9× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+54}:\\ \;\;\;\;\frac{z - y}{z} \cdot t\\ \mathbf{elif}\;z \leq 44000000:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (if (<= z -1.6e+54)
                                 (* (/ (- z y) z) t)
                                 (if (<= z 44000000.0) (fma (- t x) (/ y a) x) (fma a (/ (- t x) z) t))))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if (z <= -1.6e+54) {
                              		tmp = ((z - y) / z) * t;
                              	} else if (z <= 44000000.0) {
                              		tmp = fma((t - x), (y / a), x);
                              	} else {
                              		tmp = fma(a, ((t - x) / z), t);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if (z <= -1.6e+54)
                              		tmp = Float64(Float64(Float64(z - y) / z) * t);
                              	elseif (z <= 44000000.0)
                              		tmp = fma(Float64(t - x), Float64(y / a), x);
                              	else
                              		tmp = fma(a, Float64(Float64(t - x) / z), t);
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.6e+54], N[(N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 44000000.0], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;z \leq -1.6 \cdot 10^{+54}:\\
                              \;\;\;\;\frac{z - y}{z} \cdot t\\
                              
                              \mathbf{elif}\;z \leq 44000000:\\
                              \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if z < -1.6e54

                                1. Initial program 40.3%

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

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

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

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

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

                                    \[\leadsto \color{blue}{\left(y - z\right) \cdot \frac{t}{a - z}} \]
                                  5. lower-*.f64N/A

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

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

                                    \[\leadsto \left(y - z\right) \cdot \color{blue}{\frac{t}{a - z}} \]
                                  8. lower--.f6450.0

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

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

                                  \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot \left(y - z\right)}{z}} \]
                                7. Step-by-step derivation
                                  1. Applied rewrites58.5%

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

                                  if -1.6e54 < z < 4.4e7

                                  1. Initial program 82.7%

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                    10. difference-of-squaresN/A

                                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                    11. lift--.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                    12. times-fracN/A

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                    14. lower-/.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                    15. lower-+.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                    16. lower-/.f64N/A

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                  5. 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}} \]
                                  6. Step-by-step derivation
                                    1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  7. Applied rewrites32.3%

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{t - x}, \frac{y}{a}, x\right) \]
                                    6. lower-/.f6471.2

                                      \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                  10. Applied rewrites71.2%

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

                                  if 4.4e7 < z

                                  1. Initial program 47.1%

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                    10. difference-of-squaresN/A

                                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                    11. lift--.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                    12. times-fracN/A

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                    14. lower-/.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                    15. lower-+.f64N/A

                                      \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                    16. lower-/.f64N/A

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                  5. 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}} \]
                                  6. Step-by-step derivation
                                    1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                  7. Applied rewrites69.3%

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

                                    \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites67.3%

                                      \[\leadsto \mathsf{fma}\left(a, \color{blue}{\frac{t - x}{z}}, t\right) \]
                                  10. Recombined 3 regimes into one program.
                                  11. Final simplification67.6%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.6 \cdot 10^{+54}:\\ \;\;\;\;\frac{z - y}{z} \cdot t\\ \mathbf{elif}\;z \leq 44000000:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \end{array} \]
                                  12. Add Preprocessing

                                  Alternative 14: 62.8% accurate, 0.9× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -6.2 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 44000000:\\ \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (let* ((t_1 (fma a (/ (- t x) z) t)))
                                     (if (<= z -6.2e+57)
                                       t_1
                                       (if (<= z 44000000.0) (fma (- t x) (/ y a) x) t_1))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = fma(a, ((t - x) / z), t);
                                  	double tmp;
                                  	if (z <= -6.2e+57) {
                                  		tmp = t_1;
                                  	} else if (z <= 44000000.0) {
                                  		tmp = fma((t - x), (y / a), x);
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                  	tmp = 0.0
                                  	if (z <= -6.2e+57)
                                  		tmp = t_1;
                                  	elseif (z <= 44000000.0)
                                  		tmp = fma(Float64(t - x), Float64(y / a), x);
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -6.2e+57], t$95$1, If[LessEqual[z, 44000000.0], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                  \mathbf{if}\;z \leq -6.2 \cdot 10^{+57}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;z \leq 44000000:\\
                                  \;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if z < -6.20000000000000026e57 or 4.4e7 < z

                                    1. Initial program 43.5%

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                      10. difference-of-squaresN/A

                                        \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                      11. lift--.f64N/A

                                        \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                      12. times-fracN/A

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                      14. lower-/.f64N/A

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                      15. lower-+.f64N/A

                                        \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                      16. lower-/.f64N/A

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                    5. 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}} \]
                                    6. Step-by-step derivation
                                      1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                    9. Step-by-step derivation
                                      1. Applied rewrites59.5%

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

                                      if -6.20000000000000026e57 < z < 4.4e7

                                      1. Initial program 82.7%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                        10. difference-of-squaresN/A

                                          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                        11. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                        12. times-fracN/A

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                        14. lower-/.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                        15. lower-+.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                        16. lower-/.f64N/A

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

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

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                      5. 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}} \]
                                      6. Step-by-step derivation
                                        1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto t - \color{blue}{\frac{y \cdot \left(t - x\right) - a \cdot \left(t - x\right)}{z}} \]
                                      7. Applied rewrites32.3%

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{t - x}, \frac{y}{a}, x\right) \]
                                        6. lower-/.f6471.2

                                          \[\leadsto \mathsf{fma}\left(t - x, \color{blue}{\frac{y}{a}}, x\right) \]
                                      10. Applied rewrites71.2%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)} \]
                                    10. Recombined 2 regimes into one program.
                                    11. Add Preprocessing

                                    Alternative 15: 62.0% accurate, 0.9× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\ \mathbf{if}\;z \leq -6.2 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 44000000:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (let* ((t_1 (fma a (/ (- t x) z) t)))
                                       (if (<= z -6.2e+57)
                                         t_1
                                         (if (<= z 44000000.0) (fma (/ (- t x) a) y x) t_1))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double t_1 = fma(a, ((t - x) / z), t);
                                    	double tmp;
                                    	if (z <= -6.2e+57) {
                                    		tmp = t_1;
                                    	} else if (z <= 44000000.0) {
                                    		tmp = fma(((t - x) / a), y, x);
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	t_1 = fma(a, Float64(Float64(t - x) / z), t)
                                    	tmp = 0.0
                                    	if (z <= -6.2e+57)
                                    		tmp = t_1;
                                    	elseif (z <= 44000000.0)
                                    		tmp = fma(Float64(Float64(t - x) / a), y, x);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -6.2e+57], t$95$1, If[LessEqual[z, 44000000.0], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
                                    \mathbf{if}\;z \leq -6.2 \cdot 10^{+57}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;z \leq 44000000:\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if z < -6.20000000000000026e57 or 4.4e7 < z

                                      1. Initial program 43.5%

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(t - x\right) \cdot \left(y - z\right)}}{a \cdot a - z \cdot z}, a + z, x\right) \]
                                        10. difference-of-squaresN/A

                                          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\color{blue}{\left(a + z\right) \cdot \left(a - z\right)}}, a + z, x\right) \]
                                        11. lift--.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\frac{\left(t - x\right) \cdot \left(y - z\right)}{\left(a + z\right) \cdot \color{blue}{\left(a - z\right)}}, a + z, x\right) \]
                                        12. times-fracN/A

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}}, a + z, x\right) \]
                                        14. lower-/.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                        15. lower-+.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\frac{t - x}{\color{blue}{a + z}} \cdot \frac{y - z}{a - z}, a + z, x\right) \]
                                        16. lower-/.f64N/A

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

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

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a + z} \cdot \frac{y - z}{a - z}, a + z, x\right)} \]
                                      5. 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}} \]
                                      6. Step-by-step derivation
                                        1. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto t - \color{blue}{-1 \cdot \frac{a \cdot \left(t - x\right)}{z}} \]
                                      9. Step-by-step derivation
                                        1. Applied rewrites59.5%

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

                                        if -6.20000000000000026e57 < z < 4.4e7

                                        1. Initial program 82.7%

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

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

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

                                            \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                          3. *-commutativeN/A

                                            \[\leadsto \color{blue}{\frac{t - x}{a} \cdot y} + x \]
                                          4. lower-fma.f64N/A

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

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a}}, y, x\right) \]
                                          6. lower--.f6469.7

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                      10. Recombined 2 regimes into one program.
                                      11. Add Preprocessing

                                      Alternative 16: 56.8% accurate, 0.9× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{t}{x} \cdot x\\ \mathbf{if}\;z \leq -6.8 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.6 \cdot 10^{+107}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (let* ((t_1 (* (/ t x) x)))
                                         (if (<= z -6.8e+57) t_1 (if (<= z 1.6e+107) (fma (/ (- t x) a) y x) t_1))))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double t_1 = (t / x) * x;
                                      	double tmp;
                                      	if (z <= -6.8e+57) {
                                      		tmp = t_1;
                                      	} else if (z <= 1.6e+107) {
                                      		tmp = fma(((t - x) / a), y, x);
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a)
                                      	t_1 = Float64(Float64(t / x) * x)
                                      	tmp = 0.0
                                      	if (z <= -6.8e+57)
                                      		tmp = t_1;
                                      	elseif (z <= 1.6e+107)
                                      		tmp = fma(Float64(Float64(t - x) / a), y, x);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / x), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -6.8e+57], t$95$1, If[LessEqual[z, 1.6e+107], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \frac{t}{x} \cdot x\\
                                      \mathbf{if}\;z \leq -6.8 \cdot 10^{+57}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;z \leq 1.6 \cdot 10^{+107}:\\
                                      \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if z < -6.79999999999999984e57 or 1.60000000000000015e107 < z

                                        1. Initial program 38.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \frac{t}{x} \cdot x \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites49.7%

                                            \[\leadsto \frac{t}{x} \cdot x \]

                                          if -6.79999999999999984e57 < z < 1.60000000000000015e107

                                          1. Initial program 81.2%

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

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

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

                                              \[\leadsto \color{blue}{y \cdot \frac{t - x}{a}} + x \]
                                            3. *-commutativeN/A

                                              \[\leadsto \color{blue}{\frac{t - x}{a} \cdot y} + x \]
                                            4. lower-fma.f64N/A

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

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{t - x}{a}}, y, x\right) \]
                                            6. lower--.f6466.5

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

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)} \]
                                        8. Recombined 2 regimes into one program.
                                        9. Add Preprocessing

                                        Alternative 17: 47.2% accurate, 0.9× speedup?

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

                                          1. Initial program 41.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \frac{t}{x} \cdot x \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites45.4%

                                              \[\leadsto \frac{t}{x} \cdot x \]

                                            if -3.80000000000000011e-9 < z < 1.70000000000000011e95

                                            1. Initial program 83.6%

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

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

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

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

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

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

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

                                              \[\leadsto x + \frac{t \cdot y}{a} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites55.1%

                                                \[\leadsto x + \frac{t \cdot y}{a} \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification51.1%

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

                                            Alternative 18: 36.4% accurate, 1.0× speedup?

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

                                              1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto 1 \cdot x \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites54.6%

                                                  \[\leadsto 1 \cdot x \]

                                                if -2.9e88 < a < 9.5e10

                                                1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \frac{t}{x} \cdot x \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites36.3%

                                                    \[\leadsto \frac{t}{x} \cdot x \]
                                                8. Recombined 2 regimes into one program.
                                                9. Add Preprocessing

                                                Alternative 19: 32.0% accurate, 1.5× speedup?

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

                                                  1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto 1 \cdot x \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites61.1%

                                                      \[\leadsto 1 \cdot x \]

                                                    if -9.9999999999999996e81 < a < 2.70000000000000006e154

                                                    1. Initial program 66.6%

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

                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                    4. Step-by-step derivation
                                                      1. lower--.f6428.3

                                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                    5. Applied rewrites28.3%

                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                  8. Recombined 2 regimes into one program.
                                                  9. Final simplification39.6%

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1 \cdot 10^{+82}:\\ \;\;\;\;1 \cdot x\\ \mathbf{elif}\;a \leq 2.7 \cdot 10^{+154}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;1 \cdot x\\ \end{array} \]
                                                  10. Add Preprocessing

                                                  Alternative 20: 25.2% accurate, 4.8× speedup?

                                                  \[\begin{array}{l} \\ 1 \cdot x \end{array} \]
                                                  (FPCore (x y z t a) :precision binary64 (* 1.0 x))
                                                  double code(double x, double y, double z, double t, double a) {
                                                  	return 1.0 * x;
                                                  }
                                                  
                                                  real(8) function code(x, y, z, t, a)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      real(8), intent (in) :: z
                                                      real(8), intent (in) :: t
                                                      real(8), intent (in) :: a
                                                      code = 1.0d0 * x
                                                  end function
                                                  
                                                  public static double code(double x, double y, double z, double t, double a) {
                                                  	return 1.0 * x;
                                                  }
                                                  
                                                  def code(x, y, z, t, a):
                                                  	return 1.0 * x
                                                  
                                                  function code(x, y, z, t, a)
                                                  	return Float64(1.0 * x)
                                                  end
                                                  
                                                  function tmp = code(x, y, z, t, a)
                                                  	tmp = 1.0 * x;
                                                  end
                                                  
                                                  code[x_, y_, z_, t_, a_] := N[(1.0 * x), $MachinePrecision]
                                                  
                                                  \begin{array}{l}
                                                  
                                                  \\
                                                  1 \cdot x
                                                  \end{array}
                                                  
                                                  Derivation
                                                  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 x around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto 1 \cdot x \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites27.3%

                                                      \[\leadsto 1 \cdot x \]
                                                    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 2024276 
                                                    (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))))