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

Percentage Accurate: 67.9% → 86.1%
Time: 10.0s
Alternatives: 16
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 16 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: 67.9% accurate, 1.0× speedup?

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

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

Alternative 1: 86.1% accurate, 0.4× speedup?

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

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

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

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


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

    1. Initial program 23.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
      11. mul-1-negN/A

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

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

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

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

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

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

    if -3.9999999999999996e202 < z < 8.1999999999999999e117

    1. Initial program 82.6%

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

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

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

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

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

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

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

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

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

    if 8.1999999999999999e117 < z

    1. Initial program 32.9%

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 86.3% accurate, 0.6× speedup?

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

      1. Initial program 23.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
        11. mul-1-negN/A

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

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

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

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

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

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

      if -3.9999999999999996e202 < z < 6.99999999999999965e117

      1. Initial program 82.6%

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

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

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

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

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

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

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

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

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

      if 6.99999999999999965e117 < z

      1. Initial program 32.9%

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

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

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

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

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

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

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

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

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

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

      Alternative 3: 36.6% accurate, 0.7× speedup?

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

        1. Initial program 35.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
        9. Step-by-step derivation
          1. Applied rewrites58.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 rewrites55.3%

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

            if -3.6e182 < z < -1.49999999999999998e-131 or 6.39999999999999989e-198 < z < 2.9e31

            1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
              11. mul-1-negN/A

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

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

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

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

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

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

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

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

              if -1.49999999999999998e-131 < z < 6.39999999999999989e-198

              1. Initial program 95.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.6 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-131}:\\ \;\;\;\;\frac{\left(x - t\right) \cdot y}{z}\\ \mathbf{elif}\;z \leq 6.4 \cdot 10^{-198}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{elif}\;z \leq 2.9 \cdot 10^{+31}:\\ \;\;\;\;\frac{\left(x - t\right) \cdot y}{z}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\ \end{array} \]
                5. Add Preprocessing

                Alternative 4: 83.1% accurate, 0.7× speedup?

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

                  1. Initial program 34.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
                    11. mul-1-negN/A

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

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

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

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

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

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

                  if -3.9999999999999999e82 < z < 1.2000000000000001e59

                  1. Initial program 89.4%

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

                  if 1.2000000000000001e59 < z

                  1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

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

                  Alternative 5: 37.7% accurate, 0.8× speedup?

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

                    1. Initial program 35.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                    9. Step-by-step derivation
                      1. Applied rewrites58.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 rewrites55.3%

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

                        if -3.6e182 < z < -1.5500000000000001e-131

                        1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
                          11. mul-1-negN/A

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

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

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

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

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

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

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

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

                          if -1.5500000000000001e-131 < z < 2.2000000000000001e31

                          1. Initial program 93.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 6: 72.0% accurate, 0.8× speedup?

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

                            1. Initial program 46.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
                              11. mul-1-negN/A

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

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

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

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

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

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

                            if -5.50000000000000026e-81 < z < 1.89999999999999998e56

                            1. Initial program 93.7%

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

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

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

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

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

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

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

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

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

                            if 1.89999999999999998e56 < z

                            1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

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

                            Alternative 7: 71.6% accurate, 0.8× speedup?

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

                              1. Initial program 42.8%

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

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

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

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

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

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

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

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

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

                                if -7.39999999999999971e-81 < z < 1.89999999999999998e56

                                1. Initial program 93.7%

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

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

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

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

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

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

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

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

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

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

                              Alternative 8: 34.2% accurate, 0.8× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{+231}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq -1.6 \cdot 10^{-51}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{+25}:\\ \;\;\;\;\frac{y}{a} \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 -2.15e+231)
                                 (* -1.0 (- t))
                                 (if (<= z -1.6e-51)
                                   (* (/ (- y a) z) x)
                                   (if (<= z 1.2e+25) (* (/ y a) t) (fma a (/ t z) t)))))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if (z <= -2.15e+231) {
                              		tmp = -1.0 * -t;
                              	} else if (z <= -1.6e-51) {
                              		tmp = ((y - a) / z) * x;
                              	} else if (z <= 1.2e+25) {
                              		tmp = (y / a) * t;
                              	} else {
                              		tmp = fma(a, (t / z), t);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if (z <= -2.15e+231)
                              		tmp = Float64(-1.0 * Float64(-t));
                              	elseif (z <= -1.6e-51)
                              		tmp = Float64(Float64(Float64(y - a) / z) * x);
                              	elseif (z <= 1.2e+25)
                              		tmp = Float64(Float64(y / a) * t);
                              	else
                              		tmp = fma(a, Float64(t / z), t);
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.15e+231], N[(-1.0 * (-t)), $MachinePrecision], If[LessEqual[z, -1.6e-51], N[(N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 1.2e+25], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], N[(a * N[(t / z), $MachinePrecision] + t), $MachinePrecision]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;z \leq -2.15 \cdot 10^{+231}:\\
                              \;\;\;\;-1 \cdot \left(-t\right)\\
                              
                              \mathbf{elif}\;z \leq -1.6 \cdot 10^{-51}:\\
                              \;\;\;\;\frac{y - a}{z} \cdot x\\
                              
                              \mathbf{elif}\;z \leq 1.2 \cdot 10^{+25}:\\
                              \;\;\;\;\frac{y}{a} \cdot t\\
                              
                              \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.14999999999999988e231

                                1. Initial program 26.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\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 rewrites66.2%

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

                                    if -2.14999999999999988e231 < z < -1.6e-51

                                    1. Initial program 52.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
                                      11. mul-1-negN/A

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

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

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

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

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

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

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

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

                                      if -1.6e-51 < z < 1.19999999999999998e25

                                      1. Initial program 93.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if 1.19999999999999998e25 < z

                                          1. Initial program 42.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\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 rewrites54.1%

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.15 \cdot 10^{+231}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq -1.6 \cdot 10^{-51}:\\ \;\;\;\;\frac{y - a}{z} \cdot x\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{+25}:\\ \;\;\;\;\frac{y}{a} \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(a, \frac{t}{z}, t\right)\\ \end{array} \]
                                            6. Add Preprocessing

                                            Alternative 9: 68.1% accurate, 0.9× speedup?

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

                                              1. Initial program 42.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\frac{\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)} \]
                                                11. mul-1-negN/A

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

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

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

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

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

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

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

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

                                                if -7.10000000000000019e-81 < z < 1.89999999999999998e56

                                                1. Initial program 93.7%

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

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

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

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

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

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

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

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

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

                                              Alternative 10: 60.1% accurate, 0.9× speedup?

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

                                                1. Initial program 30.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\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 rewrites46.8%

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

                                                    if -1.25e97 < z < 1.7e60

                                                    1. Initial program 88.5%

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

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

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

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

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

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

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

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

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

                                                    if 1.7e60 < z

                                                    1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\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 rewrites57.5%

                                                          \[\leadsto \left(-t\right) \cdot -1 \]
                                                      4. Recombined 3 regimes into one program.
                                                      5. Final simplification65.5%

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

                                                      Alternative 11: 51.5% accurate, 0.9× speedup?

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

                                                        1. Initial program 30.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\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 rewrites46.8%

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

                                                            if -4.0000000000000002e96 < z < 6.99999999999999999e56

                                                            1. Initial program 88.5%

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

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

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

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

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

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

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

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

                                                              if 6.99999999999999999e56 < z

                                                              1. Initial program 38.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  \[\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 rewrites57.5%

                                                                    \[\leadsto \left(-t\right) \cdot -1 \]
                                                                4. Recombined 3 regimes into one program.
                                                                5. Final simplification54.4%

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

                                                                Alternative 12: 35.5% accurate, 1.0× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{-81}:\\ \;\;\;\;-1 \cdot \left(-t\right)\\ \mathbf{elif}\;z \leq 1.2 \cdot 10^{+25}:\\ \;\;\;\;\frac{y}{a} \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 -1.5e-81)
                                                                   (* -1.0 (- t))
                                                                   (if (<= z 1.2e+25) (* (/ y a) t) (fma a (/ t z) t))))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	double tmp;
                                                                	if (z <= -1.5e-81) {
                                                                		tmp = -1.0 * -t;
                                                                	} else if (z <= 1.2e+25) {
                                                                		tmp = (y / a) * t;
                                                                	} else {
                                                                		tmp = fma(a, (t / z), t);
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                function code(x, y, z, t, a)
                                                                	tmp = 0.0
                                                                	if (z <= -1.5e-81)
                                                                		tmp = Float64(-1.0 * Float64(-t));
                                                                	elseif (z <= 1.2e+25)
                                                                		tmp = Float64(Float64(y / a) * t);
                                                                	else
                                                                		tmp = fma(a, Float64(t / z), t);
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e-81], N[(-1.0 * (-t)), $MachinePrecision], If[LessEqual[z, 1.2e+25], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], N[(a * N[(t / z), $MachinePrecision] + t), $MachinePrecision]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;z \leq -1.5 \cdot 10^{-81}:\\
                                                                \;\;\;\;-1 \cdot \left(-t\right)\\
                                                                
                                                                \mathbf{elif}\;z \leq 1.2 \cdot 10^{+25}:\\
                                                                \;\;\;\;\frac{y}{a} \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 < -1.4999999999999999e-81

                                                                  1. Initial program 47.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      \[\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 rewrites35.1%

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

                                                                      if -1.4999999999999999e-81 < z < 1.19999999999999998e25

                                                                      1. Initial program 94.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 1.19999999999999998e25 < z

                                                                          1. Initial program 42.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              \[\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 rewrites54.1%

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

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

                                                                            Alternative 13: 35.5% accurate, 1.0× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := -1 \cdot \left(-t\right)\\ \mathbf{if}\;z \leq -1.5 \cdot 10^{-81}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.6 \cdot 10^{+31}:\\ \;\;\;\;\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 -1.5e-81) t_1 (if (<= z 2.6e+31) (* (/ 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 <= -1.5e-81) {
                                                                            		tmp = t_1;
                                                                            	} else if (z <= 2.6e+31) {
                                                                            		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 <= (-1.5d-81)) then
                                                                                    tmp = t_1
                                                                                else if (z <= 2.6d+31) 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 <= -1.5e-81) {
                                                                            		tmp = t_1;
                                                                            	} else if (z <= 2.6e+31) {
                                                                            		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 <= -1.5e-81:
                                                                            		tmp = t_1
                                                                            	elif z <= 2.6e+31:
                                                                            		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 <= -1.5e-81)
                                                                            		tmp = t_1;
                                                                            	elseif (z <= 2.6e+31)
                                                                            		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 <= -1.5e-81)
                                                                            		tmp = t_1;
                                                                            	elseif (z <= 2.6e+31)
                                                                            		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, -1.5e-81], t$95$1, If[LessEqual[z, 2.6e+31], 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 -1.5 \cdot 10^{-81}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            \mathbf{elif}\;z \leq 2.6 \cdot 10^{+31}:\\
                                                                            \;\;\;\;\frac{y}{a} \cdot t\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 2 regimes
                                                                            2. if z < -1.4999999999999999e-81 or 2.6e31 < z

                                                                              1. Initial program 44.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto -1 \cdot \color{blue}{\frac{t \cdot z}{a - z}} \]
                                                                              9. Step-by-step derivation
                                                                                1. Applied rewrites49.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 rewrites45.2%

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

                                                                                  if -1.4999999999999999e-81 < z < 2.6e31

                                                                                  1. Initial program 94.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    Alternative 14: 25.1% 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 68.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\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 rewrites25.9%

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

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

                                                                                        Alternative 15: 19.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 68.5%

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

                                                                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                        4. Step-by-step derivation
                                                                                          1. lower--.f6418.7

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

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

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

                                                                                        Alternative 16: 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 68.5%

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

                                                                                          \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                                        4. Step-by-step derivation
                                                                                          1. lower--.f6418.7

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

                                                                                          \[\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.9%

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

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

                                                                                          Developer Target 1: 83.8% accurate, 0.6× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\ \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\ \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a)
                                                                                           :precision binary64
                                                                                           (let* ((t_1 (- t (* (/ y z) (- t x)))))
                                                                                             (if (< z -1.2536131056095036e+188)
                                                                                               t_1
                                                                                               (if (< z 4.446702369113811e+64)
                                                                                                 (+ x (/ (- y z) (/ (- a z) (- t x))))
                                                                                                 t_1))))
                                                                                          double code(double x, double y, double z, double t, double a) {
                                                                                          	double t_1 = t - ((y / z) * (t - x));
                                                                                          	double tmp;
                                                                                          	if (z < -1.2536131056095036e+188) {
                                                                                          		tmp = t_1;
                                                                                          	} else if (z < 4.446702369113811e+64) {
                                                                                          		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                                          	} else {
                                                                                          		tmp = t_1;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          real(8) function code(x, y, z, t, a)
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              real(8), intent (in) :: z
                                                                                              real(8), intent (in) :: t
                                                                                              real(8), intent (in) :: a
                                                                                              real(8) :: t_1
                                                                                              real(8) :: tmp
                                                                                              t_1 = t - ((y / z) * (t - x))
                                                                                              if (z < (-1.2536131056095036d+188)) then
                                                                                                  tmp = t_1
                                                                                              else if (z < 4.446702369113811d+64) then
                                                                                                  tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                                                              else
                                                                                                  tmp = t_1
                                                                                              end if
                                                                                              code = tmp
                                                                                          end function
                                                                                          
                                                                                          public static double code(double x, double y, double z, double t, double a) {
                                                                                          	double t_1 = t - ((y / z) * (t - x));
                                                                                          	double tmp;
                                                                                          	if (z < -1.2536131056095036e+188) {
                                                                                          		tmp = t_1;
                                                                                          	} else if (z < 4.446702369113811e+64) {
                                                                                          		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                                          	} else {
                                                                                          		tmp = t_1;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          def code(x, y, z, t, a):
                                                                                          	t_1 = t - ((y / z) * (t - x))
                                                                                          	tmp = 0
                                                                                          	if z < -1.2536131056095036e+188:
                                                                                          		tmp = t_1
                                                                                          	elif z < 4.446702369113811e+64:
                                                                                          		tmp = x + ((y - z) / ((a - z) / (t - x)))
                                                                                          	else:
                                                                                          		tmp = t_1
                                                                                          	return tmp
                                                                                          
                                                                                          function code(x, y, z, t, a)
                                                                                          	t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x)))
                                                                                          	tmp = 0.0
                                                                                          	if (z < -1.2536131056095036e+188)
                                                                                          		tmp = t_1;
                                                                                          	elseif (z < 4.446702369113811e+64)
                                                                                          		tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x))));
                                                                                          	else
                                                                                          		tmp = t_1;
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          function tmp_2 = code(x, y, z, t, a)
                                                                                          	t_1 = t - ((y / z) * (t - x));
                                                                                          	tmp = 0.0;
                                                                                          	if (z < -1.2536131056095036e+188)
                                                                                          		tmp = t_1;
                                                                                          	elseif (z < 4.446702369113811e+64)
                                                                                          		tmp = x + ((y - z) / ((a - z) / (t - x)));
                                                                                          	else
                                                                                          		tmp = t_1;
                                                                                          	end
                                                                                          	tmp_2 = tmp;
                                                                                          end
                                                                                          
                                                                                          code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
                                                                                          \mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
                                                                                          \;\;\;\;t\_1\\
                                                                                          
                                                                                          \mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
                                                                                          \;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;t\_1\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          

                                                                                          Reproduce

                                                                                          ?
                                                                                          herbie shell --seed 2024270 
                                                                                          (FPCore (x y z t a)
                                                                                            :name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
                                                                                            :precision binary64
                                                                                          
                                                                                            :alt
                                                                                            (! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
                                                                                          
                                                                                            (+ x (/ (* (- y z) (- t x)) (- a z))))