Numeric.Signal:interpolate from hsignal-0.2.7.1

Percentage Accurate: 79.9% → 91.1%
Time: 11.6s
Alternatives: 21
Speedup: 0.7×

Specification

?
\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

\[\begin{array}{l} \\ x + \left(y - z\right) \cdot \frac{t - x}{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(y - z) * Float64(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[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 91.1% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 4 \cdot 10^{-291}:\\
\;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, y - z, x\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.00000000000000002e-287

    1. Initial program 89.7%

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

    if -1.00000000000000002e-287 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 3.99999999999999985e-291

    1. Initial program 4.3%

      \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6414.9

        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
    5. Applied rewrites14.9%

      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
    6. 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}} \]
    7. 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}} \]
    8. Applied rewrites82.7%

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

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

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

      1. Initial program 96.2%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        11. sub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + t\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        13. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - \left(\mathsf{neg}\left(x\right)\right)\right) - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        14. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right)} - t}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        15. remove-double-negN/A

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a - z\right)}}, y - z, x\right) \]
        19. sub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + a\right)}}, y - z, x\right) \]
        21. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - a}}, y - z, x\right) \]
        22. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} - a}, y - z, x\right) \]
        23. remove-double-negN/A

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

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

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

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

    Alternative 2: 91.1% accurate, 0.3× speedup?

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

      1. Initial program 92.9%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        11. sub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + t\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        13. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - \left(\mathsf{neg}\left(x\right)\right)\right) - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        14. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right)} - t}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
        15. remove-double-negN/A

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a - z\right)}}, y - z, x\right) \]
        19. sub-negN/A

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

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + a\right)}}, y - z, x\right) \]
        21. associate--r+N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - a}}, y - z, x\right) \]
        22. neg-sub0N/A

          \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} - a}, y - z, x\right) \]
        23. remove-double-negN/A

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

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

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

      if -1.00000000000000002e-287 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 3.99999999999999985e-291

      1. Initial program 4.3%

        \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6414.9

          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
      5. Applied rewrites14.9%

        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
      6. 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}} \]
      7. 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}} \]
      8. Applied rewrites82.7%

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

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

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

      Alternative 3: 69.6% accurate, 0.6× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{a - y}{z} \cdot x\\ t_2 := \mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{if}\;a \leq -1.65 \cdot 10^{+15}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -1.15 \cdot 10^{-206}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.75 \cdot 10^{-181}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - z}{z}, x\right)\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{-32}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (- t (* (/ (- a y) z) x))) (t_2 (fma (/ (- y z) a) (- t x) x)))
         (if (<= a -1.65e+15)
           t_2
           (if (<= a -1.15e-206)
             t_1
             (if (<= a 4.75e-181)
               (fma (- x t) (/ (- y z) z) x)
               (if (<= a 1.08e-32) t_1 t_2))))))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = t - (((a - y) / z) * x);
      	double t_2 = fma(((y - z) / a), (t - x), x);
      	double tmp;
      	if (a <= -1.65e+15) {
      		tmp = t_2;
      	} else if (a <= -1.15e-206) {
      		tmp = t_1;
      	} else if (a <= 4.75e-181) {
      		tmp = fma((x - t), ((y - z) / z), x);
      	} else if (a <= 1.08e-32) {
      		tmp = t_1;
      	} else {
      		tmp = t_2;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	t_1 = Float64(t - Float64(Float64(Float64(a - y) / z) * x))
      	t_2 = fma(Float64(Float64(y - z) / a), Float64(t - x), x)
      	tmp = 0.0
      	if (a <= -1.65e+15)
      		tmp = t_2;
      	elseif (a <= -1.15e-206)
      		tmp = t_1;
      	elseif (a <= 4.75e-181)
      		tmp = fma(Float64(x - t), Float64(Float64(y - z) / z), x);
      	elseif (a <= 1.08e-32)
      		tmp = t_1;
      	else
      		tmp = t_2;
      	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]}, Block[{t$95$2 = N[(N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -1.65e+15], t$95$2, If[LessEqual[a, -1.15e-206], t$95$1, If[LessEqual[a, 4.75e-181], N[(N[(x - t), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / z), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 1.08e-32], t$95$1, t$95$2]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := t - \frac{a - y}{z} \cdot x\\
      t_2 := \mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\
      \mathbf{if}\;a \leq -1.65 \cdot 10^{+15}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;a \leq -1.15 \cdot 10^{-206}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;a \leq 4.75 \cdot 10^{-181}:\\
      \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - z}{z}, x\right)\\
      
      \mathbf{elif}\;a \leq 1.08 \cdot 10^{-32}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if a < -1.65e15 or 1.08e-32 < a

        1. Initial program 90.6%

          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6481.5

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

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

        if -1.65e15 < a < -1.15e-206 or 4.74999999999999999e-181 < a < 1.08e-32

        1. Initial program 69.3%

          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6430.0

            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
        5. Applied rewrites30.0%

          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
        6. 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}} \]
        7. 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}} \]
        8. Applied rewrites72.7%

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

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

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

          if -1.15e-206 < a < 4.74999999999999999e-181

          1. Initial program 73.8%

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
            11. sub-negN/A

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

              \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + t\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
            13. associate--r+N/A

              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - \left(\mathsf{neg}\left(x\right)\right)\right) - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
            14. neg-sub0N/A

              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right)} - t}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
            15. remove-double-negN/A

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

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

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

              \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a - z\right)}}, y - z, x\right) \]
            19. sub-negN/A

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

              \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + a\right)}}, y - z, x\right) \]
            21. associate--r+N/A

              \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - a}}, y - z, x\right) \]
            22. neg-sub0N/A

              \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} - a}, y - z, x\right) \]
            23. remove-double-negN/A

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.65 \cdot 10^{+15}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \mathbf{elif}\;a \leq -1.15 \cdot 10^{-206}:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \mathbf{elif}\;a \leq 4.75 \cdot 10^{-181}:\\ \;\;\;\;\mathsf{fma}\left(x - t, \frac{y - z}{z}, x\right)\\ \mathbf{elif}\;a \leq 1.08 \cdot 10^{-32}:\\ \;\;\;\;t - \frac{a - y}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - z}{a}, t - x, x\right)\\ \end{array} \]
        13. Add Preprocessing

        Alternative 4: 41.3% accurate, 0.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.1 \cdot 10^{+127}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-63}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 3100000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (if (<= z -4.1e+127)
           (* -1.0 (- t))
           (if (<= z -8e-63)
             (* (/ y (- a z)) t)
             (if (<= z 1.32e-86)
               (/ (* (- t x) y) a)
               (if (<= z 3100000.0) (* (/ (- y a) z) x) (fma a (/ t z) t))))))
        double code(double x, double y, double z, double t, double a) {
        	double tmp;
        	if (z <= -4.1e+127) {
        		tmp = -1.0 * -t;
        	} else if (z <= -8e-63) {
        		tmp = (y / (a - z)) * t;
        	} else if (z <= 1.32e-86) {
        		tmp = ((t - x) * y) / a;
        	} else if (z <= 3100000.0) {
        		tmp = ((y - a) / z) * x;
        	} else {
        		tmp = fma(a, (t / z), t);
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	tmp = 0.0
        	if (z <= -4.1e+127)
        		tmp = Float64(-1.0 * Float64(-t));
        	elseif (z <= -8e-63)
        		tmp = Float64(Float64(y / Float64(a - z)) * t);
        	elseif (z <= 1.32e-86)
        		tmp = Float64(Float64(Float64(t - x) * y) / a);
        	elseif (z <= 3100000.0)
        		tmp = Float64(Float64(Float64(y - a) / z) * x);
        	else
        		tmp = fma(a, Float64(t / z), t);
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.1e+127], N[(-1.0 * (-t)), $MachinePrecision], If[LessEqual[z, -8e-63], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 1.32e-86], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 3100000.0], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], N[(a * N[(t / z), $MachinePrecision] + t), $MachinePrecision]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;z \leq -4.1 \cdot 10^{+127}:\\
        \;\;\;\;-1 \cdot \left(-t\right)\\
        
        \mathbf{elif}\;z \leq -8 \cdot 10^{-63}:\\
        \;\;\;\;\frac{y}{a - z} \cdot t\\
        
        \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\
        \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\
        
        \mathbf{elif}\;z \leq 3100000:\\
        \;\;\;\;\frac{y - a}{z} \cdot x\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 5 regimes
        2. if z < -4.09999999999999983e127

          1. Initial program 68.3%

            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6456.1

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

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

            \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
          7. Step-by-step derivation
            1. Applied rewrites61.8%

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

              \[\leadsto \left(-t\right) \cdot -1 \]
            3. Step-by-step derivation
              1. Applied rewrites62.4%

                \[\leadsto \left(-t\right) \cdot -1 \]

              if -4.09999999999999983e127 < z < -8.00000000000000053e-63

              1. Initial program 84.6%

                \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6459.4

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

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

                \[\leadsto \frac{t \cdot y}{\color{blue}{a - z}} \]
              7. Step-by-step derivation
                1. Applied rewrites42.4%

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

                if -8.00000000000000053e-63 < z < 1.32e-86

                1. Initial program 93.0%

                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6487.1

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

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

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

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

                  if 1.32e-86 < z < 3.1e6

                  1. Initial program 70.8%

                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f642.9

                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                  5. Applied rewrites2.9%

                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                  6. 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}} \]
                  7. 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}} \]
                  8. Applied rewrites57.0%

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

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

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

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

                      if 3.1e6 < z

                      1. Initial program 73.3%

                        \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6445.5

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

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

                        \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                      7. Step-by-step derivation
                        1. Applied rewrites42.7%

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

                          \[\leadsto t + \frac{a \cdot t}{\color{blue}{z}} \]
                        3. Step-by-step derivation
                          1. Applied rewrites38.7%

                            \[\leadsto \mathsf{fma}\left(a, \frac{t}{\color{blue}{z}}, t\right) \]
                        4. Recombined 5 regimes into one program.
                        5. Final simplification44.5%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.1 \cdot 10^{+127}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-63}:\\ \;\;\;\;\frac{y}{a - z} \cdot t\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 3100000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\ \end{array} \]
                        6. Add Preprocessing

                        Alternative 5: 66.4% accurate, 0.7× speedup?

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

                          1. Initial program 90.6%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6481.5

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

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

                          if -1.6e15 < a < 6.60000000000000047e-203

                          1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(t - x\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
                            11. sub-negN/A

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

                              \[\leadsto \mathsf{fma}\left(\frac{0 - \color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + t\right)}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
                            13. associate--r+N/A

                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(0 - \left(\mathsf{neg}\left(x\right)\right)\right) - t}}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
                            14. neg-sub0N/A

                              \[\leadsto \mathsf{fma}\left(\frac{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(x\right)\right)\right)\right)} - t}{\mathsf{neg}\left(\left(a - z\right)\right)}, y - z, x\right) \]
                            15. remove-double-negN/A

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

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

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

                              \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(a - z\right)}}, y - z, x\right) \]
                            19. sub-negN/A

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

                              \[\leadsto \mathsf{fma}\left(\frac{x - t}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(z\right)\right) + a\right)}}, y - z, x\right) \]
                            21. associate--r+N/A

                              \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(z\right)\right)\right) - a}}, y - z, x\right) \]
                            22. neg-sub0N/A

                              \[\leadsto \mathsf{fma}\left(\frac{x - t}{\color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(z\right)\right)\right)\right)} - a}, y - z, x\right) \]
                            23. remove-double-negN/A

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

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

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

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

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

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

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

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

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

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

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

                          if 6.60000000000000047e-203 < a < 4.8e-33

                          1. Initial program 70.1%

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

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

                              \[\leadsto y \cdot \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. *-commutativeN/A

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

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

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

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

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

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

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

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

                        Alternative 6: 64.7% accurate, 0.7× speedup?

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

                          1. Initial program 90.6%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6481.5

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

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

                          if -2.5e15 < a < -7.3999999999999998e-125

                          1. Initial program 74.7%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6470.0

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

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

                          if -7.3999999999999998e-125 < a < 4.8e-33

                          1. Initial program 70.2%

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

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

                              \[\leadsto y \cdot \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. *-commutativeN/A

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

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

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

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

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

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

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

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

                        Alternative 7: 60.5% accurate, 0.7× speedup?

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

                          1. Initial program 91.3%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6474.7

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

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

                          if -2.5e15 < a < -7.3999999999999998e-125

                          1. Initial program 74.7%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6470.0

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

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

                          if -7.3999999999999998e-125 < a < 4.8e-33

                          1. Initial program 70.2%

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

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

                              \[\leadsto y \cdot \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. *-commutativeN/A

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

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

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

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

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

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

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

                          if 4.8e-33 < a

                          1. Initial program 89.9%

                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6483.5

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

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

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

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

                            \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.5 \cdot 10^{+15}:\\ \;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\ \mathbf{elif}\;a \leq -7.4 \cdot 10^{-125}:\\ \;\;\;\;\left(z - y\right) \cdot \frac{t}{z - a}\\ \mathbf{elif}\;a \leq 4.8 \cdot 10^{-33}:\\ \;\;\;\;\frac{y}{z - a} \cdot \left(x - t\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 8: 59.6% accurate, 0.7× speedup?

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

                            1. Initial program 91.3%

                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6474.7

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

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

                            if -1.6e15 < a < -3.0500000000000001e-77

                            1. Initial program 79.1%

                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6450.8

                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                            5. Applied rewrites50.8%

                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                            6. 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}} \]
                            7. 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}} \]
                            8. Applied rewrites93.1%

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

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

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

                                \[\leadsto t - \frac{t \cdot y}{z} \]
                              3. Step-by-step derivation
                                1. Applied rewrites66.2%

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

                                if -3.0500000000000001e-77 < a < 4.8e-33

                                1. Initial program 70.2%

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

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

                                    \[\leadsto y \cdot \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. *-commutativeN/A

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

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

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

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

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

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

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

                                if 4.8e-33 < a

                                1. Initial program 89.9%

                                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6483.5

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

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

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

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

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

                                Alternative 9: 80.7% accurate, 0.7× speedup?

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

                                  1. Initial program 73.5%

                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6438.3

                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                  5. Applied rewrites38.3%

                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                  6. 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}} \]
                                  7. 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}} \]
                                  8. Applied rewrites66.9%

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

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

                                    if -2.09999999999999994e-8 < z < 8.4999999999999996e71

                                    1. Initial program 89.1%

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

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

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

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

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

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

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

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

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

                                    if 8.4999999999999996e71 < z

                                    1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 10: 46.1% accurate, 0.8× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot t\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 1120000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (let* ((t_1 (- t (* (/ y z) t))))
                                     (if (<= z -2.4e-62)
                                       t_1
                                       (if (<= z 1.32e-86)
                                         (/ (* (- t x) y) a)
                                         (if (<= z 1120000.0) (* (/ (- y a) z) x) t_1)))))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = t - ((y / z) * t);
                                  	double tmp;
                                  	if (z <= -2.4e-62) {
                                  		tmp = t_1;
                                  	} else if (z <= 1.32e-86) {
                                  		tmp = ((t - x) * y) / a;
                                  	} else if (z <= 1120000.0) {
                                  		tmp = ((y - a) / z) * x;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  real(8) function code(x, y, z, t, a)
                                      real(8), intent (in) :: x
                                      real(8), intent (in) :: y
                                      real(8), intent (in) :: z
                                      real(8), intent (in) :: t
                                      real(8), intent (in) :: a
                                      real(8) :: t_1
                                      real(8) :: tmp
                                      t_1 = t - ((y / z) * t)
                                      if (z <= (-2.4d-62)) then
                                          tmp = t_1
                                      else if (z <= 1.32d-86) then
                                          tmp = ((t - x) * y) / a
                                      else if (z <= 1120000.0d0) then
                                          tmp = ((y - a) / z) * x
                                      else
                                          tmp = t_1
                                      end if
                                      code = tmp
                                  end function
                                  
                                  public static double code(double x, double y, double z, double t, double a) {
                                  	double t_1 = t - ((y / z) * t);
                                  	double tmp;
                                  	if (z <= -2.4e-62) {
                                  		tmp = t_1;
                                  	} else if (z <= 1.32e-86) {
                                  		tmp = ((t - x) * y) / a;
                                  	} else if (z <= 1120000.0) {
                                  		tmp = ((y - a) / z) * x;
                                  	} else {
                                  		tmp = t_1;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a):
                                  	t_1 = t - ((y / z) * t)
                                  	tmp = 0
                                  	if z <= -2.4e-62:
                                  		tmp = t_1
                                  	elif z <= 1.32e-86:
                                  		tmp = ((t - x) * y) / a
                                  	elif z <= 1120000.0:
                                  		tmp = ((y - a) / z) * x
                                  	else:
                                  		tmp = t_1
                                  	return tmp
                                  
                                  function code(x, y, z, t, a)
                                  	t_1 = Float64(t - Float64(Float64(y / z) * t))
                                  	tmp = 0.0
                                  	if (z <= -2.4e-62)
                                  		tmp = t_1;
                                  	elseif (z <= 1.32e-86)
                                  		tmp = Float64(Float64(Float64(t - x) * y) / a);
                                  	elseif (z <= 1120000.0)
                                  		tmp = Float64(Float64(Float64(y - a) / z) * x);
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	return tmp
                                  end
                                  
                                  function tmp_2 = code(x, y, z, t, a)
                                  	t_1 = t - ((y / z) * t);
                                  	tmp = 0.0;
                                  	if (z <= -2.4e-62)
                                  		tmp = t_1;
                                  	elseif (z <= 1.32e-86)
                                  		tmp = ((t - x) * y) / a;
                                  	elseif (z <= 1120000.0)
                                  		tmp = ((y - a) / z) * x;
                                  	else
                                  		tmp = t_1;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e-62], t$95$1, If[LessEqual[z, 1.32e-86], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 1120000.0], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  t_1 := t - \frac{y}{z} \cdot t\\
                                  \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\
                                  \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\
                                  
                                  \mathbf{elif}\;z \leq 1120000:\\
                                  \;\;\;\;\frac{y - a}{z} \cdot x\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;t\_1\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 3 regimes
                                  2. if z < -2.39999999999999984e-62 or 1.12e6 < z

                                    1. Initial program 74.6%

                                      \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6432.5

                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                    5. Applied rewrites32.5%

                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                    6. 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}} \]
                                    7. 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}} \]
                                    8. Applied rewrites62.5%

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

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

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

                                        \[\leadsto t - \frac{y}{z} \cdot t \]
                                      3. Step-by-step derivation
                                        1. Applied rewrites51.9%

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

                                        if -2.39999999999999984e-62 < z < 1.32e-86

                                        1. Initial program 93.0%

                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6487.1

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

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

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

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

                                          if 1.32e-86 < z < 1.12e6

                                          1. Initial program 70.8%

                                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f642.9

                                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                          5. Applied rewrites2.9%

                                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                          6. 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}} \]
                                          7. 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}} \]
                                          8. Applied rewrites57.0%

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\ \;\;\;\;t - \frac{y}{z} \cdot t\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 1120000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t - \frac{y}{z} \cdot t\\ \end{array} \]
                                            5. Add Preprocessing

                                            Alternative 11: 43.6% accurate, 0.8× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{t \cdot y}{z}\\ \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 1120000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (let* ((t_1 (- t (/ (* t y) z))))
                                               (if (<= z -2.4e-62)
                                                 t_1
                                                 (if (<= z 1.32e-86)
                                                   (/ (* (- t x) y) a)
                                                   (if (<= z 1120000.0) (* (/ (- y a) z) x) t_1)))))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = t - ((t * y) / z);
                                            	double tmp;
                                            	if (z <= -2.4e-62) {
                                            		tmp = t_1;
                                            	} else if (z <= 1.32e-86) {
                                            		tmp = ((t - x) * y) / a;
                                            	} else if (z <= 1120000.0) {
                                            		tmp = ((y - a) / z) * x;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8) :: t_1
                                                real(8) :: tmp
                                                t_1 = t - ((t * y) / z)
                                                if (z <= (-2.4d-62)) then
                                                    tmp = t_1
                                                else if (z <= 1.32d-86) then
                                                    tmp = ((t - x) * y) / a
                                                else if (z <= 1120000.0d0) then
                                                    tmp = ((y - a) / z) * x
                                                else
                                                    tmp = t_1
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	double t_1 = t - ((t * y) / z);
                                            	double tmp;
                                            	if (z <= -2.4e-62) {
                                            		tmp = t_1;
                                            	} else if (z <= 1.32e-86) {
                                            		tmp = ((t - x) * y) / a;
                                            	} else if (z <= 1120000.0) {
                                            		tmp = ((y - a) / z) * x;
                                            	} else {
                                            		tmp = t_1;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	t_1 = t - ((t * y) / z)
                                            	tmp = 0
                                            	if z <= -2.4e-62:
                                            		tmp = t_1
                                            	elif z <= 1.32e-86:
                                            		tmp = ((t - x) * y) / a
                                            	elif z <= 1120000.0:
                                            		tmp = ((y - a) / z) * x
                                            	else:
                                            		tmp = t_1
                                            	return tmp
                                            
                                            function code(x, y, z, t, a)
                                            	t_1 = Float64(t - Float64(Float64(t * y) / z))
                                            	tmp = 0.0
                                            	if (z <= -2.4e-62)
                                            		tmp = t_1;
                                            	elseif (z <= 1.32e-86)
                                            		tmp = Float64(Float64(Float64(t - x) * y) / a);
                                            	elseif (z <= 1120000.0)
                                            		tmp = Float64(Float64(Float64(y - a) / z) * x);
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a)
                                            	t_1 = t - ((t * y) / z);
                                            	tmp = 0.0;
                                            	if (z <= -2.4e-62)
                                            		tmp = t_1;
                                            	elseif (z <= 1.32e-86)
                                            		tmp = ((t - x) * y) / a;
                                            	elseif (z <= 1120000.0)
                                            		tmp = ((y - a) / z) * x;
                                            	else
                                            		tmp = t_1;
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.4e-62], t$95$1, If[LessEqual[z, 1.32e-86], N[(N[(N[(t - x), $MachinePrecision] * y), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 1120000.0], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            t_1 := t - \frac{t \cdot y}{z}\\
                                            \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\
                                            \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\
                                            
                                            \mathbf{elif}\;z \leq 1120000:\\
                                            \;\;\;\;\frac{y - a}{z} \cdot x\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;t\_1\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 3 regimes
                                            2. if z < -2.39999999999999984e-62 or 1.12e6 < z

                                              1. Initial program 74.6%

                                                \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6432.5

                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                              5. Applied rewrites32.5%

                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                              6. 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}} \]
                                              7. 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}} \]
                                              8. Applied rewrites62.5%

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

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

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

                                                  \[\leadsto t - \frac{t \cdot y}{z} \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites49.0%

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

                                                  if -2.39999999999999984e-62 < z < 1.32e-86

                                                  1. Initial program 93.0%

                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6487.1

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

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

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

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

                                                    if 1.32e-86 < z < 1.12e6

                                                    1. Initial program 70.8%

                                                      \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f642.9

                                                        \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                    5. Applied rewrites2.9%

                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                    6. 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}} \]
                                                    7. 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}} \]
                                                    8. Applied rewrites57.0%

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

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

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

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{-62}:\\ \;\;\;\;t - \frac{t \cdot y}{z}\\ \mathbf{elif}\;z \leq 1.32 \cdot 10^{-86}:\\ \;\;\;\;\frac{\left(t - x\right) \cdot y}{a}\\ \mathbf{elif}\;z \leq 1120000:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{else}:\\ \;\;\;\;t - \frac{t \cdot y}{z}\\ \end{array} \]
                                                      5. Add Preprocessing

                                                      Alternative 12: 75.6% accurate, 0.8× speedup?

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

                                                        1. Initial program 90.6%

                                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6481.5

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

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

                                                        if -2.7e15 < a < 1.5e-32

                                                        1. Initial program 71.2%

                                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6427.6

                                                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                        5. Applied rewrites27.6%

                                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                        6. 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}} \]
                                                        7. 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}} \]
                                                        8. Applied rewrites77.9%

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

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

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

                                                        Alternative 13: 36.8% accurate, 0.8× speedup?

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

                                                          1. Initial program 74.2%

                                                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6457.6

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

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

                                                            \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites45.5%

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

                                                              \[\leadsto \left(-t\right) \cdot -1 \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites44.4%

                                                                \[\leadsto \left(-t\right) \cdot -1 \]

                                                              if -2.12e-4 < z < 2.4000000000000001e-93

                                                              1. Initial program 92.5%

                                                                \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6438.5

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

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

                                                                \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites31.1%

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

                                                                if 2.4000000000000001e-93 < z < 2.7e6

                                                                1. Initial program 72.0%

                                                                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f642.9

                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                5. Applied rewrites2.9%

                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                6. 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}} \]
                                                                7. 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}} \]
                                                                8. Applied rewrites54.6%

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

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

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

                                                                    \[\leadsto \frac{x \cdot y}{z} \]
                                                                  3. Step-by-step derivation
                                                                    1. Applied rewrites32.2%

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

                                                                    if 2.7e6 < z

                                                                    1. Initial program 73.3%

                                                                      \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6445.5

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

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

                                                                      \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                    7. Step-by-step derivation
                                                                      1. Applied rewrites42.7%

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

                                                                        \[\leadsto t + \frac{a \cdot t}{\color{blue}{z}} \]
                                                                      3. Step-by-step derivation
                                                                        1. Applied rewrites38.7%

                                                                          \[\leadsto \mathsf{fma}\left(a, \frac{t}{\color{blue}{z}}, t\right) \]
                                                                      4. Recombined 4 regimes into one program.
                                                                      5. Final simplification36.4%

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

                                                                      Alternative 14: 36.7% accurate, 0.8× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := -1 \cdot \left(-t\right)\\ \mathbf{if}\;z \leq -0.000212:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-93}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;z \leq 2500000:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                      (FPCore (x y z t a)
                                                                       :precision binary64
                                                                       (let* ((t_1 (* -1.0 (- t))))
                                                                         (if (<= z -0.000212)
                                                                           t_1
                                                                           (if (<= z 2.4e-93)
                                                                             (* (/ y a) t)
                                                                             (if (<= z 2500000.0) (/ (* y x) z) t_1)))))
                                                                      double code(double x, double y, double z, double t, double a) {
                                                                      	double t_1 = -1.0 * -t;
                                                                      	double tmp;
                                                                      	if (z <= -0.000212) {
                                                                      		tmp = t_1;
                                                                      	} else if (z <= 2.4e-93) {
                                                                      		tmp = (y / a) * t;
                                                                      	} else if (z <= 2500000.0) {
                                                                      		tmp = (y * x) / z;
                                                                      	} else {
                                                                      		tmp = t_1;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      real(8) function code(x, y, z, t, a)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          real(8), intent (in) :: z
                                                                          real(8), intent (in) :: t
                                                                          real(8), intent (in) :: a
                                                                          real(8) :: t_1
                                                                          real(8) :: tmp
                                                                          t_1 = (-1.0d0) * -t
                                                                          if (z <= (-0.000212d0)) then
                                                                              tmp = t_1
                                                                          else if (z <= 2.4d-93) then
                                                                              tmp = (y / a) * t
                                                                          else if (z <= 2500000.0d0) then
                                                                              tmp = (y * x) / z
                                                                          else
                                                                              tmp = t_1
                                                                          end if
                                                                          code = tmp
                                                                      end function
                                                                      
                                                                      public static double code(double x, double y, double z, double t, double a) {
                                                                      	double t_1 = -1.0 * -t;
                                                                      	double tmp;
                                                                      	if (z <= -0.000212) {
                                                                      		tmp = t_1;
                                                                      	} else if (z <= 2.4e-93) {
                                                                      		tmp = (y / a) * t;
                                                                      	} else if (z <= 2500000.0) {
                                                                      		tmp = (y * x) / z;
                                                                      	} else {
                                                                      		tmp = t_1;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      def code(x, y, z, t, a):
                                                                      	t_1 = -1.0 * -t
                                                                      	tmp = 0
                                                                      	if z <= -0.000212:
                                                                      		tmp = t_1
                                                                      	elif z <= 2.4e-93:
                                                                      		tmp = (y / a) * t
                                                                      	elif z <= 2500000.0:
                                                                      		tmp = (y * x) / z
                                                                      	else:
                                                                      		tmp = t_1
                                                                      	return tmp
                                                                      
                                                                      function code(x, y, z, t, a)
                                                                      	t_1 = Float64(-1.0 * Float64(-t))
                                                                      	tmp = 0.0
                                                                      	if (z <= -0.000212)
                                                                      		tmp = t_1;
                                                                      	elseif (z <= 2.4e-93)
                                                                      		tmp = Float64(Float64(y / a) * t);
                                                                      	elseif (z <= 2500000.0)
                                                                      		tmp = Float64(Float64(y * x) / z);
                                                                      	else
                                                                      		tmp = t_1;
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      function tmp_2 = code(x, y, z, t, a)
                                                                      	t_1 = -1.0 * -t;
                                                                      	tmp = 0.0;
                                                                      	if (z <= -0.000212)
                                                                      		tmp = t_1;
                                                                      	elseif (z <= 2.4e-93)
                                                                      		tmp = (y / a) * t;
                                                                      	elseif (z <= 2500000.0)
                                                                      		tmp = (y * x) / z;
                                                                      	else
                                                                      		tmp = t_1;
                                                                      	end
                                                                      	tmp_2 = tmp;
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-1.0 * (-t)), $MachinePrecision]}, If[LessEqual[z, -0.000212], t$95$1, If[LessEqual[z, 2.4e-93], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 2500000.0], N[(N[(y * x), $MachinePrecision] / z), $MachinePrecision], t$95$1]]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      t_1 := -1 \cdot \left(-t\right)\\
                                                                      \mathbf{if}\;z \leq -0.000212:\\
                                                                      \;\;\;\;t\_1\\
                                                                      
                                                                      \mathbf{elif}\;z \leq 2.4 \cdot 10^{-93}:\\
                                                                      \;\;\;\;\frac{y}{a} \cdot t\\
                                                                      
                                                                      \mathbf{elif}\;z \leq 2500000:\\
                                                                      \;\;\;\;\frac{y \cdot x}{z}\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;t\_1\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 3 regimes
                                                                      2. if z < -2.12e-4 or 2.5e6 < z

                                                                        1. Initial program 73.7%

                                                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6451.3

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

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

                                                                          \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites44.0%

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

                                                                            \[\leadsto \left(-t\right) \cdot -1 \]
                                                                          3. Step-by-step derivation
                                                                            1. Applied rewrites41.4%

                                                                              \[\leadsto \left(-t\right) \cdot -1 \]

                                                                            if -2.12e-4 < z < 2.4000000000000001e-93

                                                                            1. Initial program 92.5%

                                                                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6438.5

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

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

                                                                              \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites31.1%

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

                                                                              if 2.4000000000000001e-93 < z < 2.5e6

                                                                              1. Initial program 72.0%

                                                                                \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f642.9

                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                              5. Applied rewrites2.9%

                                                                                \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                              6. 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}} \]
                                                                              7. 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}} \]
                                                                              8. Applied rewrites54.6%

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

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

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

                                                                                  \[\leadsto \frac{x \cdot y}{z} \]
                                                                                3. Step-by-step derivation
                                                                                  1. Applied rewrites32.2%

                                                                                    \[\leadsto \frac{y \cdot x}{z} \]
                                                                                4. Recombined 3 regimes into one program.
                                                                                5. Final simplification36.4%

                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -0.000212:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-93}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;z \leq 2500000:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{else}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \end{array} \]
                                                                                6. Add Preprocessing

                                                                                Alternative 15: 60.2% accurate, 0.9× speedup?

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

                                                                                  1. Initial program 91.3%

                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6474.7

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

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

                                                                                  if -1.6e15 < a < 8.49999999999999945e-33

                                                                                  1. Initial program 71.2%

                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6427.6

                                                                                      \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                  5. Applied rewrites27.6%

                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                  6. 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}} \]
                                                                                  7. 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}} \]
                                                                                  8. Applied rewrites77.9%

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

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

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

                                                                                      \[\leadsto t - \frac{y}{z} \cdot t \]
                                                                                    3. Step-by-step derivation
                                                                                      1. Applied rewrites54.5%

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

                                                                                      if 8.49999999999999945e-33 < a

                                                                                      1. Initial program 89.9%

                                                                                        \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6483.5

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

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

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

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

                                                                                      Alternative 16: 60.5% accurate, 0.9× speedup?

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

                                                                                        1. Initial program 90.6%

                                                                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6481.5

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

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

                                                                                          \[\leadsto \mathsf{fma}\left(\frac{y}{a}, \color{blue}{t} - x, x\right) \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites75.4%

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

                                                                                          if -1.6e15 < a < 8.49999999999999945e-33

                                                                                          1. Initial program 71.2%

                                                                                            \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6427.6

                                                                                              \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                          5. Applied rewrites27.6%

                                                                                            \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                          6. 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}} \]
                                                                                          7. 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}} \]
                                                                                          8. Applied rewrites77.9%

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

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

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

                                                                                              \[\leadsto t - \frac{y}{z} \cdot t \]
                                                                                            3. Step-by-step derivation
                                                                                              1. Applied rewrites54.5%

                                                                                                \[\leadsto t - \frac{y}{z} \cdot t \]
                                                                                            4. Recombined 2 regimes into one program.
                                                                                            5. Add Preprocessing

                                                                                            Alternative 17: 38.2% accurate, 0.9× speedup?

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

                                                                                              1. Initial program 68.3%

                                                                                                \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6456.1

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

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

                                                                                                \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites61.8%

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

                                                                                                  \[\leadsto \left(-t\right) \cdot -1 \]
                                                                                                3. Step-by-step derivation
                                                                                                  1. Applied rewrites62.4%

                                                                                                    \[\leadsto \left(-t\right) \cdot -1 \]

                                                                                                  if -4.09999999999999983e127 < z < 3.69999999999999968e63

                                                                                                  1. Initial program 87.7%

                                                                                                    \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6441.6

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

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

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

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

                                                                                                    if 3.69999999999999968e63 < z

                                                                                                    1. Initial program 69.3%

                                                                                                      \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6442.8

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

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

                                                                                                      \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites46.5%

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

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

                                                                                                          \[\leadsto \mathsf{fma}\left(a, \frac{t}{\color{blue}{z}}, t\right) \]
                                                                                                      4. Recombined 3 regimes into one program.
                                                                                                      5. Final simplification40.5%

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

                                                                                                      Alternative 18: 36.6% accurate, 1.0× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := -1 \cdot \left(-t\right)\\ \mathbf{if}\;z \leq -0.000212:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-26}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                      (FPCore (x y z t a)
                                                                                                       :precision binary64
                                                                                                       (let* ((t_1 (* -1.0 (- t))))
                                                                                                         (if (<= z -0.000212) t_1 (if (<= z 4.2e-26) (* (/ y a) t) t_1))))
                                                                                                      double code(double x, double y, double z, double t, double a) {
                                                                                                      	double t_1 = -1.0 * -t;
                                                                                                      	double tmp;
                                                                                                      	if (z <= -0.000212) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (z <= 4.2e-26) {
                                                                                                      		tmp = (y / a) * t;
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      real(8) function code(x, y, z, t, a)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          real(8), intent (in) :: z
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: a
                                                                                                          real(8) :: t_1
                                                                                                          real(8) :: tmp
                                                                                                          t_1 = (-1.0d0) * -t
                                                                                                          if (z <= (-0.000212d0)) then
                                                                                                              tmp = t_1
                                                                                                          else if (z <= 4.2d-26) then
                                                                                                              tmp = (y / a) * t
                                                                                                          else
                                                                                                              tmp = t_1
                                                                                                          end if
                                                                                                          code = tmp
                                                                                                      end function
                                                                                                      
                                                                                                      public static double code(double x, double y, double z, double t, double a) {
                                                                                                      	double t_1 = -1.0 * -t;
                                                                                                      	double tmp;
                                                                                                      	if (z <= -0.000212) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (z <= 4.2e-26) {
                                                                                                      		tmp = (y / a) * t;
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(x, y, z, t, a):
                                                                                                      	t_1 = -1.0 * -t
                                                                                                      	tmp = 0
                                                                                                      	if z <= -0.000212:
                                                                                                      		tmp = t_1
                                                                                                      	elif z <= 4.2e-26:
                                                                                                      		tmp = (y / a) * t
                                                                                                      	else:
                                                                                                      		tmp = t_1
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(x, y, z, t, a)
                                                                                                      	t_1 = Float64(-1.0 * Float64(-t))
                                                                                                      	tmp = 0.0
                                                                                                      	if (z <= -0.000212)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (z <= 4.2e-26)
                                                                                                      		tmp = Float64(Float64(y / a) * t);
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(x, y, z, t, a)
                                                                                                      	t_1 = -1.0 * -t;
                                                                                                      	tmp = 0.0;
                                                                                                      	if (z <= -0.000212)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (z <= 4.2e-26)
                                                                                                      		tmp = (y / a) * t;
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-1.0 * (-t)), $MachinePrecision]}, If[LessEqual[z, -0.000212], t$95$1, If[LessEqual[z, 4.2e-26], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      t_1 := -1 \cdot \left(-t\right)\\
                                                                                                      \mathbf{if}\;z \leq -0.000212:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      \mathbf{elif}\;z \leq 4.2 \cdot 10^{-26}:\\
                                                                                                      \;\;\;\;\frac{y}{a} \cdot t\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      
                                                                                                      Derivation
                                                                                                      1. Split input into 2 regimes
                                                                                                      2. if z < -2.12e-4 or 4.20000000000000016e-26 < z

                                                                                                        1. Initial program 73.4%

                                                                                                          \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6449.0

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

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

                                                                                                          \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites42.1%

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

                                                                                                            \[\leadsto \left(-t\right) \cdot -1 \]
                                                                                                          3. Step-by-step derivation
                                                                                                            1. Applied rewrites39.7%

                                                                                                              \[\leadsto \left(-t\right) \cdot -1 \]

                                                                                                            if -2.12e-4 < z < 4.20000000000000016e-26

                                                                                                            1. Initial program 90.2%

                                                                                                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6438.1

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

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

                                                                                                              \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites29.0%

                                                                                                                \[\leadsto t \cdot \color{blue}{\frac{y}{a}} \]
                                                                                                            8. Recombined 2 regimes into one program.
                                                                                                            9. Final simplification34.8%

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

                                                                                                            Alternative 19: 25.7% accurate, 3.6× speedup?

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

                                                                                                              \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6444.0

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

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

                                                                                                              \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                                                            7. Step-by-step derivation
                                                                                                              1. Applied rewrites25.7%

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

                                                                                                                \[\leadsto \left(-t\right) \cdot -1 \]
                                                                                                              3. Step-by-step derivation
                                                                                                                1. Applied rewrites23.2%

                                                                                                                  \[\leadsto \left(-t\right) \cdot -1 \]
                                                                                                                2. Final simplification23.2%

                                                                                                                  \[\leadsto -1 \cdot \left(-t\right) \]
                                                                                                                3. Add Preprocessing

                                                                                                                Alternative 20: 20.0% accurate, 4.1× speedup?

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

                                                                                                                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6419.0

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                5. Applied rewrites19.0%

                                                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                6. Final simplification19.0%

                                                                                                                  \[\leadsto \left(t - x\right) + x \]
                                                                                                                7. Add Preprocessing

                                                                                                                Alternative 21: 2.8% accurate, 4.8× speedup?

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

                                                                                                                  \[x + \left(y - z\right) \cdot \frac{t - x}{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--.f6419.0

                                                                                                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                                                5. Applied rewrites19.0%

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

                                                                                                                  \[\leadsto x + -1 \cdot \color{blue}{x} \]
                                                                                                                7. Step-by-step derivation
                                                                                                                  1. Applied rewrites2.8%

                                                                                                                    \[\leadsto x + \left(-x\right) \]
                                                                                                                  2. Final simplification2.8%

                                                                                                                    \[\leadsto \left(-x\right) + x \]
                                                                                                                  3. Add Preprocessing

                                                                                                                  Reproduce

                                                                                                                  ?
                                                                                                                  herbie shell --seed 2024243 
                                                                                                                  (FPCore (x y z t a)
                                                                                                                    :name "Numeric.Signal:interpolate   from hsignal-0.2.7.1"
                                                                                                                    :precision binary64
                                                                                                                    (+ x (* (- y z) (/ (- t x) (- a z)))))