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

Percentage Accurate: 67.8% → 88.4%
Time: 14.1s
Alternatives: 21
Speedup: 0.9×

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 21 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 67.8% 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: 88.4% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.6 \cdot 10^{+117} \lor \neg \left(t \leq 2.5 \cdot 10^{+135}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (if (or (<= t -2.6e+117) (not (<= t 2.5e+135)))
   (fma (/ (fma -1.0 y x) t) (- z a) y)
   (fma (/ (- z t) (- a t)) (- y x) x)))
double code(double x, double y, double z, double t, double a) {
	double tmp;
	if ((t <= -2.6e+117) || !(t <= 2.5e+135)) {
		tmp = fma((fma(-1.0, y, x) / t), (z - a), y);
	} else {
		tmp = fma(((z - t) / (a - t)), (y - x), x);
	}
	return tmp;
}
function code(x, y, z, t, a)
	tmp = 0.0
	if ((t <= -2.6e+117) || !(t <= 2.5e+135))
		tmp = fma(Float64(fma(-1.0, y, x) / t), Float64(z - a), y);
	else
		tmp = fma(Float64(Float64(z - t) / Float64(a - t)), Float64(y - x), x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.6e+117], N[Not[LessEqual[t, 2.5e+135]], $MachinePrecision]], N[(N[(N[(-1.0 * y + x), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+117} \lor \neg \left(t \leq 2.5 \cdot 10^{+135}\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.5999999999999999e117 or 2.50000000000000015e135 < t

    1. Initial program 26.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}{\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 rewrites88.9%

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

    if -2.5999999999999999e117 < t < 2.50000000000000015e135

    1. Initial program 84.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-/.f6494.9

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.6 \cdot 10^{+117} \lor \neg \left(t \leq 2.5 \cdot 10^{+135}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{z - t}{a - t}, y - x, x\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 73.9% accurate, 0.6× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.50000000000000026e112 or 1.9500000000000001e87 < t

    1. Initial program 34.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 rewrites84.4%

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

    if -5.50000000000000026e112 < t < -2.80000000000000005e-48

    1. Initial program 83.9%

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

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

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

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

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

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

    if -2.80000000000000005e-48 < t < 1.9500000000000001e87

    1. Initial program 86.2%

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

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

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

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

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

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

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

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

Alternative 3: 71.8% accurate, 0.7× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -4.1999999999999998e113 or 1.9500000000000001e87 < t

    1. Initial program 34.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 rewrites84.4%

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

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

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

      if -4.1999999999999998e113 < t < -2.80000000000000005e-48

      1. Initial program 83.9%

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

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

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

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

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

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

      if -2.80000000000000005e-48 < t < 1.9500000000000001e87

      1. Initial program 86.2%

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

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

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

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

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

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

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

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

    Alternative 4: 70.8% accurate, 0.7× speedup?

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

      1. Initial program 29.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}{\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 rewrites82.0%

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

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

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

        if -6.0000000000000003e155 < t < -2.6e6

        1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

        if -2.6e6 < t < 1.9500000000000001e87

        1. Initial program 87.2%

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

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

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

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

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

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

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

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

      Alternative 5: 86.5% accurate, 0.7× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+130} \lor \neg \left(t \leq 9 \cdot 10^{+133}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a - t}, z - t, x\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (or (<= t -1.75e+130) (not (<= t 9e+133)))
         (fma (/ (fma -1.0 y x) t) (- z a) y)
         (fma (/ (- y x) (- a t)) (- z t) x)))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if ((t <= -1.75e+130) || !(t <= 9e+133)) {
      		tmp = fma((fma(-1.0, y, x) / t), (z - a), y);
      	} else {
      		tmp = fma(((y - x) / (a - t)), (z - t), x);
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if ((t <= -1.75e+130) || !(t <= 9e+133))
      		tmp = fma(Float64(fma(-1.0, y, x) / t), Float64(z - a), y);
      	else
      		tmp = fma(Float64(Float64(y - x) / Float64(a - t)), Float64(z - t), x);
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.75e+130], N[Not[LessEqual[t, 9e+133]], $MachinePrecision]], N[(N[(N[(-1.0 * y + x), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], N[(N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision] + x), $MachinePrecision]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -1.75 \cdot 10^{+130} \lor \neg \left(t \leq 9 \cdot 10^{+133}\right):\\
      \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a - t}, z - t, x\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if t < -1.75e130 or 8.9999999999999997e133 < t

        1. Initial program 24.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}{\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 rewrites88.1%

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

        if -1.75e130 < t < 8.9999999999999997e133

        1. Initial program 84.1%

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

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

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

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

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

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+130} \lor \neg \left(t \leq 9 \cdot 10^{+133}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(-1, y, x\right)}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a - t}, z - t, x\right)\\ \end{array} \]
      5. Add Preprocessing

      Alternative 6: 68.3% accurate, 0.7× speedup?

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

        1. Initial program 29.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}{\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 rewrites82.0%

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

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

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

          if -6.0000000000000003e155 < t < -1.95e6

          1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

          if -1.95e6 < t < 1.9500000000000001e87

          1. Initial program 87.2%

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

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

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

        Alternative 7: 61.4% accurate, 0.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\ \mathbf{if}\;a \leq -1.7 \cdot 10^{-65}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 5.5 \cdot 10^{-249}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a - z}{t}, y, y\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+82}:\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a)
         :precision binary64
         (let* ((t_1 (fma (- z t) (/ y a) x)))
           (if (<= a -1.7e-65)
             t_1
             (if (<= a 5.5e-249)
               (fma (/ (- a z) t) y y)
               (if (<= a 1.35e+82) (fma (/ x t) (- z a) y) t_1)))))
        double code(double x, double y, double z, double t, double a) {
        	double t_1 = fma((z - t), (y / a), x);
        	double tmp;
        	if (a <= -1.7e-65) {
        		tmp = t_1;
        	} else if (a <= 5.5e-249) {
        		tmp = fma(((a - z) / t), y, y);
        	} else if (a <= 1.35e+82) {
        		tmp = fma((x / t), (z - a), y);
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a)
        	t_1 = fma(Float64(z - t), Float64(y / a), x)
        	tmp = 0.0
        	if (a <= -1.7e-65)
        		tmp = t_1;
        	elseif (a <= 5.5e-249)
        		tmp = fma(Float64(Float64(a - z) / t), y, y);
        	elseif (a <= 1.35e+82)
        		tmp = fma(Float64(x / t), Float64(z - a), y);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -1.7e-65], t$95$1, If[LessEqual[a, 5.5e-249], N[(N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision] * y + y), $MachinePrecision], If[LessEqual[a, 1.35e+82], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(z - t, \frac{y}{a}, x\right)\\
        \mathbf{if}\;a \leq -1.7 \cdot 10^{-65}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;a \leq 5.5 \cdot 10^{-249}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{a - z}{t}, y, y\right)\\
        
        \mathbf{elif}\;a \leq 1.35 \cdot 10^{+82}:\\
        \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if a < -1.69999999999999993e-65 or 1.35e82 < 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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

            if -1.69999999999999993e-65 < a < 5.49999999999999999e-249

            1. Initial program 70.8%

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

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

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

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

              if 5.49999999999999999e-249 < a < 1.35e82

              1. Initial program 68.5%

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

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

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

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

              Alternative 8: 47.7% accurate, 0.8× speedup?

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

                1. Initial program 68.0%

                  \[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--.f6466.7

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

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

                  \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites60.8%

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

                  if -1.0499999999999999e-19 < a < -4.49999999999999964e-174

                  1. Initial program 84.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--.f6447.8

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

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

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

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

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

                      if -4.49999999999999964e-174 < a < 7.4999999999999996e-14

                      1. Initial program 71.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 rewrites78.2%

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

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

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

                      Alternative 9: 47.7% accurate, 0.8× speedup?

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

                        1. Initial program 68.0%

                          \[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--.f6466.7

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

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

                          \[\leadsto \mathsf{fma}\left(\frac{y}{a}, z, x\right) \]
                        7. Step-by-step derivation
                          1. Applied rewrites60.8%

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

                          if -1.0499999999999999e-19 < a < -4.49999999999999964e-174

                          1. Initial program 84.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--.f6447.8

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

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

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

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

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

                              if -4.49999999999999964e-174 < a < 7.4999999999999996e-14

                              1. Initial program 71.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 rewrites78.2%

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

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

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

                              Alternative 10: 68.7% accurate, 0.9× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 1.95 \cdot 10^{+87}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (if (or (<= t -2500000.0) (not (<= t 1.95e+87)))
                                 (fma (/ x t) (- z a) y)
                                 (fma (/ (- y x) a) z x)))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if ((t <= -2500000.0) || !(t <= 1.95e+87)) {
                              		tmp = fma((x / t), (z - a), y);
                              	} else {
                              		tmp = fma(((y - x) / a), z, x);
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if ((t <= -2500000.0) || !(t <= 1.95e+87))
                              		tmp = fma(Float64(x / t), Float64(z - a), y);
                              	else
                              		tmp = fma(Float64(Float64(y - x) / a), z, x);
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2500000.0], N[Not[LessEqual[t, 1.95e+87]], $MachinePrecision]], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 1.95 \cdot 10^{+87}\right):\\
                              \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < -2.5e6 or 1.9500000000000001e87 < t

                                1. Initial program 44.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}{\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 rewrites77.2%

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

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

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

                                  if -2.5e6 < t < 1.9500000000000001e87

                                  1. Initial program 87.2%

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 1.95 \cdot 10^{+87}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 11: 61.8% accurate, 0.9× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                                (FPCore (x y z t a)
                                 :precision binary64
                                 (if (or (<= t -2500000.0) (not (<= t 5.2e+76)))
                                   (fma (/ x t) (- z a) y)
                                   (fma (/ y a) z x)))
                                double code(double x, double y, double z, double t, double a) {
                                	double tmp;
                                	if ((t <= -2500000.0) || !(t <= 5.2e+76)) {
                                		tmp = fma((x / t), (z - a), y);
                                	} else {
                                		tmp = fma((y / a), z, x);
                                	}
                                	return tmp;
                                }
                                
                                function code(x, y, z, t, a)
                                	tmp = 0.0
                                	if ((t <= -2500000.0) || !(t <= 5.2e+76))
                                		tmp = fma(Float64(x / t), Float64(z - a), y);
                                	else
                                		tmp = fma(Float64(y / a), z, x);
                                	end
                                	return tmp
                                end
                                
                                code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2500000.0], N[Not[LessEqual[t, 5.2e+76]], $MachinePrecision]], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\
                                \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 2 regimes
                                2. if t < -2.5e6 or 5.1999999999999999e76 < t

                                  1. Initial program 45.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 rewrites75.5%

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

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

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

                                    if -2.5e6 < t < 5.1999999999999999e76

                                    1. Initial program 88.1%

                                      \[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--.f6473.4

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

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2500000 \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 12: 55.1% accurate, 0.9× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.4 \cdot 10^{-29} \lor \neg \left(a \leq 1.9 \cdot 10^{+72}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{a - z}{t}, y, y\right)\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (or (<= a -2.4e-29) (not (<= a 1.9e+72)))
                                       (fma (/ y a) z x)
                                       (fma (/ (- a z) t) y y)))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if ((a <= -2.4e-29) || !(a <= 1.9e+72)) {
                                    		tmp = fma((y / a), z, x);
                                    	} else {
                                    		tmp = fma(((a - z) / t), y, y);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if ((a <= -2.4e-29) || !(a <= 1.9e+72))
                                    		tmp = fma(Float64(y / a), z, x);
                                    	else
                                    		tmp = fma(Float64(Float64(a - z) / t), y, y);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.4e-29], N[Not[LessEqual[a, 1.9e+72]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision] * y + y), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;a \leq -2.4 \cdot 10^{-29} \lor \neg \left(a \leq 1.9 \cdot 10^{+72}\right):\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\mathsf{fma}\left(\frac{a - z}{t}, y, y\right)\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if a < -2.39999999999999992e-29 or 1.90000000000000003e72 < a

                                      1. Initial program 69.3%

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

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

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

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

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

                                        if -2.39999999999999992e-29 < a < 1.90000000000000003e72

                                        1. Initial program 72.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}{\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 rewrites71.4%

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

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

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

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

                                        Alternative 13: 48.2% accurate, 0.9× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.15 \cdot 10^{-41} \lor \neg \left(a \leq 7.5 \cdot 10^{-14}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (if (or (<= a -1.15e-41) (not (<= a 7.5e-14)))
                                           (fma (/ y a) z x)
                                           (/ (* (- x y) z) t)))
                                        double code(double x, double y, double z, double t, double a) {
                                        	double tmp;
                                        	if ((a <= -1.15e-41) || !(a <= 7.5e-14)) {
                                        		tmp = fma((y / a), z, x);
                                        	} else {
                                        		tmp = ((x - y) * z) / t;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a)
                                        	tmp = 0.0
                                        	if ((a <= -1.15e-41) || !(a <= 7.5e-14))
                                        		tmp = fma(Float64(y / a), z, x);
                                        	else
                                        		tmp = Float64(Float64(Float64(x - y) * z) / t);
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.15e-41], N[Not[LessEqual[a, 7.5e-14]], $MachinePrecision]], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;a \leq -1.15 \cdot 10^{-41} \lor \neg \left(a \leq 7.5 \cdot 10^{-14}\right):\\
                                        \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if a < -1.15000000000000005e-41 or 7.4999999999999996e-14 < a

                                          1. Initial program 68.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--.f6466.6

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

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

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

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

                                            if -1.15000000000000005e-41 < a < 7.4999999999999996e-14

                                            1. Initial program 73.8%

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

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

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

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

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.15 \cdot 10^{-41} \lor \neg \left(a \leq 7.5 \cdot 10^{-14}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 14: 47.7% accurate, 1.0× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -5.4 \cdot 10^{+129} \lor \neg \left(t \leq 2.05 \cdot 10^{+89}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a)
                                             :precision binary64
                                             (if (or (<= t -5.4e+129) (not (<= t 2.05e+89)))
                                               (fma 1.0 (- y x) x)
                                               (fma (/ y a) z x)))
                                            double code(double x, double y, double z, double t, double a) {
                                            	double tmp;
                                            	if ((t <= -5.4e+129) || !(t <= 2.05e+89)) {
                                            		tmp = fma(1.0, (y - x), x);
                                            	} else {
                                            		tmp = fma((y / a), z, x);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a)
                                            	tmp = 0.0
                                            	if ((t <= -5.4e+129) || !(t <= 2.05e+89))
                                            		tmp = fma(1.0, Float64(y - x), x);
                                            	else
                                            		tmp = fma(Float64(y / a), z, x);
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5.4e+129], N[Not[LessEqual[t, 2.05e+89]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * z + x), $MachinePrecision]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;t \leq -5.4 \cdot 10^{+129} \lor \neg \left(t \leq 2.05 \cdot 10^{+89}\right):\\
                                            \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 2 regimes
                                            2. if t < -5.4000000000000002e129 or 2.04999999999999993e89 < t

                                              1. Initial program 32.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-/.f6466.8

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

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

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

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

                                                if -5.4000000000000002e129 < t < 2.04999999999999993e89

                                                1. Initial program 85.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--.f6465.6

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

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

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

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

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.4 \cdot 10^{+129} \lor \neg \left(t \leq 2.05 \cdot 10^{+89}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, z, x\right)\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 15: 45.0% accurate, 1.0× speedup?

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

                                                  1. Initial program 14.0%

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

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

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

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

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

                                                      if -6.8000000000000002e155 < t < 2.04999999999999993e89

                                                      1. Initial program 84.6%

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

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

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

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

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

                                                        if 2.04999999999999993e89 < t

                                                        1. Initial program 38.0%

                                                          \[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-/.f6466.3

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

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

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

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

                                                        Alternative 16: 30.6% accurate, 1.0× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{-26} \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a)
                                                         :precision binary64
                                                         (if (or (<= t -2.1e-26) (not (<= t 5.2e+76)))
                                                           (fma 1.0 (- y x) x)
                                                           (* y (/ z a))))
                                                        double code(double x, double y, double z, double t, double a) {
                                                        	double tmp;
                                                        	if ((t <= -2.1e-26) || !(t <= 5.2e+76)) {
                                                        		tmp = fma(1.0, (y - x), x);
                                                        	} else {
                                                        		tmp = y * (z / a);
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        function code(x, y, z, t, a)
                                                        	tmp = 0.0
                                                        	if ((t <= -2.1e-26) || !(t <= 5.2e+76))
                                                        		tmp = fma(1.0, Float64(y - x), x);
                                                        	else
                                                        		tmp = Float64(y * Float64(z / a));
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.1e-26], N[Not[LessEqual[t, 5.2e+76]], $MachinePrecision]], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        \mathbf{if}\;t \leq -2.1 \cdot 10^{-26} \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\
                                                        \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;y \cdot \frac{z}{a}\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 2 regimes
                                                        2. if t < -2.10000000000000008e-26 or 5.1999999999999999e76 < t

                                                          1. Initial program 48.6%

                                                            \[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-/.f6476.5

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

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

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

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

                                                            if -2.10000000000000008e-26 < t < 5.1999999999999999e76

                                                            1. Initial program 87.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--.f6473.4

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

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

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

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

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

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

                                                                    \[\leadsto y \cdot \frac{z}{\color{blue}{a}} \]
                                                                4. Recombined 2 regimes into one program.
                                                                5. Final simplification28.5%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.1 \cdot 10^{-26} \lor \neg \left(t \leq 5.2 \cdot 10^{+76}\right):\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \frac{z}{a}\\ \end{array} \]
                                                                6. Add Preprocessing

                                                                Alternative 17: 26.9% accurate, 1.0× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{-6} \lor \neg \left(z \leq 2.4 \cdot 10^{+117}\right):\\ \;\;\;\;x \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a)
                                                                 :precision binary64
                                                                 (if (or (<= z -4.4e-6) (not (<= z 2.4e+117)))
                                                                   (* x (/ z t))
                                                                   (fma 1.0 (- y x) x)))
                                                                double code(double x, double y, double z, double t, double a) {
                                                                	double tmp;
                                                                	if ((z <= -4.4e-6) || !(z <= 2.4e+117)) {
                                                                		tmp = x * (z / t);
                                                                	} else {
                                                                		tmp = fma(1.0, (y - x), x);
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                function code(x, y, z, t, a)
                                                                	tmp = 0.0
                                                                	if ((z <= -4.4e-6) || !(z <= 2.4e+117))
                                                                		tmp = Float64(x * Float64(z / t));
                                                                	else
                                                                		tmp = fma(1.0, Float64(y - x), x);
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.4e-6], N[Not[LessEqual[z, 2.4e+117]], $MachinePrecision]], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(1.0 * N[(y - x), $MachinePrecision] + x), $MachinePrecision]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;z \leq -4.4 \cdot 10^{-6} \lor \neg \left(z \leq 2.4 \cdot 10^{+117}\right):\\
                                                                \;\;\;\;x \cdot \frac{z}{t}\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 2 regimes
                                                                2. if z < -4.4000000000000002e-6 or 2.3999999999999999e117 < z

                                                                  1. Initial program 68.8%

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

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

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

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

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

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

                                                                      if -4.4000000000000002e-6 < z < 2.3999999999999999e117

                                                                      1. Initial program 71.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-/.f6486.2

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

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

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

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                                      7. Recombined 2 regimes into one program.
                                                                      8. Final simplification27.2%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.4 \cdot 10^{-6} \lor \neg \left(z \leq 2.4 \cdot 10^{+117}\right):\\ \;\;\;\;x \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(1, y - x, x\right)\\ \end{array} \]
                                                                      9. Add Preprocessing

                                                                      Alternative 18: 25.9% accurate, 1.0× speedup?

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

                                                                        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 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 rewrites56.8%

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

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

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

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

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

                                                                            if -4.4000000000000002e-6 < z < 3.4000000000000001e117

                                                                            1. Initial program 71.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-/.f6486.2

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

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

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

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

                                                                              if 3.4000000000000001e117 < z

                                                                              1. Initial program 72.5%

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

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

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

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

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

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

                                                                                Alternative 19: 20.4% accurate, 1.3× speedup?

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

                                                                                  1. Initial program 48.5%

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      if -1.3500000000000001e195 < x

                                                                                      1. Initial program 73.0%

                                                                                        \[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-/.f6487.5

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

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

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

                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                                                      7. Recombined 2 regimes into one program.
                                                                                      8. Add Preprocessing

                                                                                      Alternative 20: 20.1% accurate, 2.9× speedup?

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

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

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

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

                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{1}, y - x, x\right) \]
                                                                                        2. Add Preprocessing

                                                                                        Alternative 21: 2.8% accurate, 3.2× speedup?

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

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

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

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

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

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

                                                                                              \[\leadsto \mathsf{fma}\left(1, \color{blue}{\mathsf{neg}\left(x\right)}, x\right) \]
                                                                                            2. lower-neg.f642.8

                                                                                              \[\leadsto \mathsf{fma}\left(1, \color{blue}{-x}, x\right) \]
                                                                                          4. Applied rewrites2.8%

                                                                                            \[\leadsto \mathsf{fma}\left(1, \color{blue}{-x}, x\right) \]
                                                                                          5. Add Preprocessing

                                                                                          Developer Target 1: 87.0% 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 2024339 
                                                                                          (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))))