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

Percentage Accurate: 67.7% → 90.4%
Time: 10.5s
Alternatives: 19
Speedup: 0.8×

Specification

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

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

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

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

Alternative 1: 90.4% accurate, 0.3× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;t\_1\\


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

    1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 3.9%

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 36.2% accurate, 0.2× speedup?

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

      1. Initial program 83.3%

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
        11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]
        3. Step-by-step derivation
          1. Applied rewrites39.5%

            \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]

          if -3.9999999999999999e-47 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 3.99999999999999982e-57

          1. Initial program 63.1%

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
            11. distribute-neg-inN/A

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

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

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

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

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

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

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

            \[\leadsto x + \color{blue}{-1 \cdot \left(x - y\right)} \]
          7. Step-by-step derivation
            1. Applied rewrites32.1%

              \[\leadsto y \]

            if 1.00000000000000005e301 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

            1. Initial program 39.8%

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
              11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\frac{y}{t}, a, y\right) \]
              3. Step-by-step derivation
                1. Applied rewrites33.4%

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

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

              Alternative 3: 90.4% accurate, 0.3× speedup?

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

                1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

                1. Initial program 3.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 4: 76.9% accurate, 0.8× speedup?

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

                1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -6.4000000000000003e48 < t < 1.10000000000000007e62

                1. Initial program 90.8%

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

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

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

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

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

                if 1.10000000000000007e62 < t

                1. Initial program 40.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 5: 75.1% accurate, 0.8× speedup?

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

                1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -5.9999999999999999e48 < t < 1.03999999999999989e62

                1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

                if 1.03999999999999989e62 < t

                1. Initial program 40.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 74.8% accurate, 0.8× speedup?

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

                1. Initial program 35.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -5.9999999999999999e48 < t < 1.03999999999999989e62

                1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

              Alternative 7: 72.6% accurate, 0.8× speedup?

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

                1. Initial program 35.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -6.9000000000000004e47 < t < 1.03999999999999989e62

                1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                6. Step-by-step derivation
                  1. lower-/.f6474.1

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

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

              Alternative 8: 69.2% accurate, 0.8× speedup?

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

                1. Initial program 32.1%

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

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

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

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

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

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

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

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

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

                  if -1.05e41 < t < 3.7e66

                  1. Initial program 90.7%

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                  6. Step-by-step derivation
                    1. lower-/.f6474.4

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

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

                  if 3.7e66 < t

                  1. Initial program 40.7%

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 9: 69.3% accurate, 0.8× speedup?

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

                      1. Initial program 36.6%

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

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

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

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

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

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

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

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

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

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

                          if -1.05e41 < t < 3.7e66

                          1. Initial program 90.7%

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                          6. Step-by-step derivation
                            1. lower-/.f6474.4

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

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

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

                        Alternative 10: 64.7% accurate, 0.9× speedup?

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

                          1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

                              if -6.9999999999999995e48 < t < 4.20000000000000011e66

                              1. Initial program 90.8%

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                              6. Step-by-step derivation
                                1. lower-/.f6474.1

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

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

                              if 4.20000000000000011e66 < t

                              1. Initial program 40.7%

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 11: 63.6% accurate, 0.9× speedup?

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

                                  1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

                                      if -6.9999999999999995e48 < t < 1.35e90

                                      1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                                      6. Step-by-step derivation
                                        1. lower-/.f6472.9

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

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

                                      if 1.35e90 < t

                                      1. Initial program 36.6%

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                        11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

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

                                      Alternative 12: 62.7% accurate, 0.9× speedup?

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

                                        1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

                                            if -6.9999999999999995e48 < t < 1.35e90

                                            1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

                                            if 1.35e90 < t

                                            1. Initial program 36.6%

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                              11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

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

                                            Alternative 13: 52.9% accurate, 0.9× speedup?

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

                                              1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

                                                  if -1.3599999999999999e48 < t < 1.35e90

                                                  1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                                                  6. Step-by-step derivation
                                                    1. lower-/.f6472.9

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

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

                                                    \[\leadsto \mathsf{fma}\left(\frac{z}{a}, \color{blue}{-1 \cdot x}, x\right) \]
                                                  9. Step-by-step derivation
                                                    1. mul-1-negN/A

                                                      \[\leadsto \mathsf{fma}\left(\frac{z}{a}, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                                                    2. lower-neg.f6449.0

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

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

                                                  if 1.35e90 < t

                                                  1. Initial program 36.6%

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                    11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

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

                                                  Alternative 14: 52.9% accurate, 0.9× speedup?

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

                                                    1. Initial program 29.2%

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

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

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

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

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

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

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

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

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

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

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

                                                        if -1.3599999999999999e48 < t < 1.35e90

                                                        1. Initial program 90.5%

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\frac{z}{a}}, y - x, x\right) \]
                                                        6. Step-by-step derivation
                                                          1. lower-/.f6472.9

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

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

                                                          \[\leadsto \mathsf{fma}\left(\frac{z}{a}, \color{blue}{-1 \cdot x}, x\right) \]
                                                        9. Step-by-step derivation
                                                          1. mul-1-negN/A

                                                            \[\leadsto \mathsf{fma}\left(\frac{z}{a}, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                                                          2. lower-neg.f6449.0

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

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

                                                        if 1.35e90 < t

                                                        1. Initial program 36.6%

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                          11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(-1 \cdot \frac{x}{t}, a, y\right) \]
                                                          3. Step-by-step derivation
                                                            1. Applied rewrites55.1%

                                                              \[\leadsto \mathsf{fma}\left(\frac{-x}{t}, a, y\right) \]
                                                          4. Recombined 3 regimes into one program.
                                                          5. Final simplification51.7%

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

                                                          Alternative 15: 52.3% accurate, 0.9× speedup?

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

                                                            1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                              11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                if -1.79999999999999993e139 < a < 1.69999999999999998e77

                                                                1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  Alternative 16: 47.4% accurate, 0.9× speedup?

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

                                                                    1. Initial program 69.0%

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

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

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                      11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]
                                                                      3. Step-by-step derivation
                                                                        1. Applied rewrites37.7%

                                                                          \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]

                                                                        if -1.59999999999999995e91 < a < 2.4e60

                                                                        1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          Alternative 17: 40.8% accurate, 0.9× speedup?

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

                                                                            1. Initial program 70.9%

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                              11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites38.6%

                                                                                  \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]

                                                                                if -1.8999999999999999e-25 < a < 9.99999999999999977e101

                                                                                1. Initial program 68.1%

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                                  11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \frac{x}{t}, a, y\right) \]
                                                                                  3. Step-by-step derivation
                                                                                    1. Applied rewrites42.0%

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

                                                                                  Alternative 18: 37.3% accurate, 1.4× speedup?

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

                                                                                    1. Initial program 72.0%

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

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

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                                      11. distribute-neg-inN/A

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

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

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

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

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

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

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

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

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

                                                                                        \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]
                                                                                      3. Step-by-step derivation
                                                                                        1. Applied rewrites36.2%

                                                                                          \[\leadsto \mathsf{fma}\left(-y, -1, x\right) \]

                                                                                        if -2.9e-73 < a < 1.55000000000000009e71

                                                                                        1. Initial program 66.6%

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

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

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

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

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

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

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

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

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

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

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

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                                          11. distribute-neg-inN/A

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

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

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

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

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

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

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

                                                                                          \[\leadsto x + \color{blue}{-1 \cdot \left(x - y\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites32.6%

                                                                                            \[\leadsto y \]
                                                                                        8. Recombined 2 regimes into one program.
                                                                                        9. Add Preprocessing

                                                                                        Alternative 19: 25.9% accurate, 29.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(\left(\mathsf{neg}\left(x\right)\right) + y\right)}\right), \frac{t}{a - t}, x\right) \]
                                                                                          11. distribute-neg-inN/A

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

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

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

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

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

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

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

                                                                                          \[\leadsto x + \color{blue}{-1 \cdot \left(x - y\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites22.0%

                                                                                            \[\leadsto y \]
                                                                                          2. Add Preprocessing

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

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

                                                                                          Reproduce

                                                                                          ?
                                                                                          herbie shell --seed 2024278 
                                                                                          (FPCore (x y z t a)
                                                                                            :name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
                                                                                            :precision binary64
                                                                                          
                                                                                            :alt
                                                                                            (! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
                                                                                          
                                                                                            (+ x (/ (* (- y x) (- z t)) (- a t))))