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

Percentage Accurate: 68.2% → 87.8%
Time: 9.2s
Alternatives: 16
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 68.2% accurate, 1.0× speedup?

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

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

Alternative 1: 87.8% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -5.2000000000000001e191 or 8.99999999999999997e62 < z

    1. Initial program 28.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.2000000000000001e191 < z < 8.99999999999999997e62

    1. Initial program 83.2%

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

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

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

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

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

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

        \[\leadsto x + \frac{t - x}{a - z} \cdot \color{blue}{\frac{y \cdot y - z \cdot z}{y + z}} \]
      7. clear-numN/A

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

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

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

        \[\leadsto x + \frac{\color{blue}{\frac{t - x}{a - z}}}{\frac{y + z}{y \cdot y - z \cdot z}} \]
      11. clear-numN/A

        \[\leadsto x + \frac{\frac{t - x}{a - z}}{\color{blue}{\frac{1}{\frac{y \cdot y - z \cdot z}{y + z}}}} \]
      12. flip--N/A

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

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

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

      \[\leadsto x + \color{blue}{\frac{\frac{t - x}{a - z}}{\frac{1}{y - z}}} \]
    5. Step-by-step derivation
      1. lift-/.f64N/A

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

        \[\leadsto x + \frac{\color{blue}{\frac{t - x}{a - z}}}{\frac{1}{y - z}} \]
      3. associate-/l/N/A

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

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

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

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

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

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

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

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

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

      \[\leadsto x + \color{blue}{\frac{t - x}{\frac{a - z}{y - z}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification92.1%

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

Alternative 2: 73.4% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;z \leq -2.3 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 7.2 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -8.20000000000000008e133

    1. Initial program 31.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -8.20000000000000008e133 < z < -2.30000000000000009e-26 or 1.15000000000000004e-193 < z < 7.2e62

      1. Initial program 82.0%

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

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

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

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

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

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

      if -2.30000000000000009e-26 < z < 1.15000000000000004e-193

      1. Initial program 87.0%

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

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

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

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

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

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

          \[\leadsto x + \frac{t - x}{a - z} \cdot \color{blue}{\frac{y \cdot y - z \cdot z}{y + z}} \]
        7. clear-numN/A

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

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

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

          \[\leadsto x + \frac{\color{blue}{\frac{t - x}{a - z}}}{\frac{y + z}{y \cdot y - z \cdot z}} \]
        11. clear-numN/A

          \[\leadsto x + \frac{\frac{t - x}{a - z}}{\color{blue}{\frac{1}{\frac{y \cdot y - z \cdot z}{y + z}}}} \]
        12. flip--N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 7.2e62 < z

      1. Initial program 34.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 3: 74.0% accurate, 0.7× speedup?

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

          1. Initial program 14.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -3.4000000000000001e194 < z < -3.79999999999999996e56

            1. Initial program 63.8%

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

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

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

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

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

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

                \[\leadsto x + \frac{t - x}{a - z} \cdot \color{blue}{\frac{y \cdot y - z \cdot z}{y + z}} \]
              7. clear-numN/A

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

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

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

                \[\leadsto x + \frac{\color{blue}{\frac{t - x}{a - z}}}{\frac{y + z}{y \cdot y - z \cdot z}} \]
              11. clear-numN/A

                \[\leadsto x + \frac{\frac{t - x}{a - z}}{\color{blue}{\frac{1}{\frac{y \cdot y - z \cdot z}{y + z}}}} \]
              12. flip--N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -3.79999999999999996e56 < z < 9.1999999999999994e47

              1. Initial program 87.8%

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

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

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

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

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

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

              if 9.1999999999999994e47 < z

              1. Initial program 36.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 4: 83.1% accurate, 0.7× speedup?

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

                  1. Initial program 35.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.89999999999999994e110 < z < 3.5000000000000002e39

                  1. Initial program 87.4%

                    \[x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z} \]
                  2. Add Preprocessing
                3. Recombined 2 regimes into one program.
                4. Final simplification85.2%

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

                Alternative 5: 76.2% accurate, 0.7× speedup?

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

                  1. Initial program 35.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -3.2999999999999999e109 < z < 6.19999999999999991e44

                  1. Initial program 86.4%

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

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

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

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

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

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

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

                Alternative 6: 75.0% accurate, 0.8× speedup?

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

                  1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

                  if -6.2000000000000001e-24 < a < 0.00479999999999999958

                  1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 0.00479999999999999958 < a

                      1. Initial program 63.4%

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

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

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

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

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

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

                          \[\leadsto x + \frac{t - x}{a - z} \cdot \color{blue}{\frac{y \cdot y - z \cdot z}{y + z}} \]
                        7. clear-numN/A

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

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

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

                          \[\leadsto x + \frac{\color{blue}{\frac{t - x}{a - z}}}{\frac{y + z}{y \cdot y - z \cdot z}} \]
                        11. clear-numN/A

                          \[\leadsto x + \frac{\frac{t - x}{a - z}}{\color{blue}{\frac{1}{\frac{y \cdot y - z \cdot z}{y + z}}}} \]
                        12. flip--N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 7: 74.8% accurate, 0.8× speedup?

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

                      1. Initial program 66.8%

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

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

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

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

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

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

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

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

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

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

                      if -6.2000000000000001e-24 < a < 0.00479999999999999958

                      1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        Alternative 8: 70.0% accurate, 0.9× speedup?

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

                          1. Initial program 48.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -7e14 < z < 5.70000000000000005e-61

                              1. Initial program 89.8%

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

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

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

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

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

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

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

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

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

                            Alternative 9: 66.6% accurate, 0.9× speedup?

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

                              1. Initial program 66.8%

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto x + \frac{t \cdot y}{a} \]
                                3. Step-by-step derivation
                                  1. Applied rewrites63.5%

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

                                  if -8.20000000000000029e-24 < a < 0.26500000000000001

                                  1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 10: 55.1% accurate, 0.9× speedup?

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

                                      1. Initial program 31.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -1.9999999999999998e131 < z < 6.6e6

                                          1. Initial program 85.3%

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto x + \frac{t \cdot y}{a} \]
                                            3. Step-by-step derivation
                                              1. Applied rewrites62.4%

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

                                              if 6.6e6 < z

                                              1. Initial program 42.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                Alternative 11: 41.9% accurate, 0.9× speedup?

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

                                                  1. Initial program 67.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if -4.3000000000000002e40 < y < 0.00410000000000000035

                                                      1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        Alternative 12: 40.9% accurate, 0.9× speedup?

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

                                                          1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -8.3e-147 < t < 4.50000000000000016e-84

                                                              1. Initial program 68.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \frac{y - a}{z} \cdot \color{blue}{x} \]
                                                              8. Recombined 2 regimes into one program.
                                                              9. Add Preprocessing

                                                              Alternative 13: 38.2% accurate, 0.9× speedup?

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

                                                                1. Initial program 65.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -3.0000000000000002e-147 < t < 4.9e-121

                                                                    1. Initial program 68.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        Alternative 14: 26.8% accurate, 1.0× speedup?

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

                                                                          1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                if -5.6000000000000003e-24 < y < 6.30000000000000018e-19

                                                                                1. Initial program 65.4%

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

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

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

                                                                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]
                                                                              3. Recombined 2 regimes into one program.
                                                                              4. Final simplification31.2%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.6 \cdot 10^{-24}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \mathbf{elif}\;y \leq 6.3 \cdot 10^{-19}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{else}:\\ \;\;\;\;\frac{y}{z} \cdot x\\ \end{array} \]
                                                                              5. Add Preprocessing

                                                                              Alternative 15: 19.7% accurate, 4.1× speedup?

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

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

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

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

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

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

                                                                              Alternative 16: 2.8% accurate, 4.8× speedup?

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

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

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

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

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

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

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

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

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

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

                                                                                Reproduce

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