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

Percentage Accurate: 68.4% → 88.9%
Time: 14.4s
Alternatives: 20
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 20 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.4% accurate, 1.0× speedup?

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

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

Alternative 1: 88.9% accurate, 0.5× speedup?

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

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

\mathbf{elif}\;t \leq 1.02 \cdot 10^{+183}:\\
\;\;\;\;x + \frac{\frac{z - t}{a - t}}{\frac{1}{y - x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.7999999999999999e178 or 1.02000000000000002e183 < t

    1. Initial program 32.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.7999999999999999e178 < t < 1.02000000000000002e183

    1. Initial program 82.3%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \frac{\frac{z - t}{a - t}}{\color{blue}{\frac{1}{y - x}}} \]
      13. --lowering--.f6492.6

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

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

Alternative 2: 71.8% accurate, 0.6× speedup?

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

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

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

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

\mathbf{elif}\;t \leq 2.6 \cdot 10^{+111}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -8.00000000000000019e144 or 2.5999999999999999e111 < t

    1. Initial program 32.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.00000000000000019e144 < t < -4.20000000000000036e-40

    1. Initial program 82.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.20000000000000036e-40 < t < 6.99999999999999983e-57

    1. Initial program 91.4%

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

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

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

        \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
      3. --lowering--.f6476.9

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

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

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

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

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

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

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

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

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

    if 6.99999999999999983e-57 < t < 2.5999999999999999e111

    1. Initial program 75.3%

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

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

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

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

        \[\leadsto \frac{y \cdot \color{blue}{\left(z - t\right)}}{a - t} \]
      4. --lowering--.f6463.3

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      4. /-lowering-/.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t}} \cdot y \]
      5. --lowering--.f64N/A

        \[\leadsto \frac{\color{blue}{z - t}}{a - t} \cdot y \]
      6. --lowering--.f6472.7

        \[\leadsto \frac{z - t}{\color{blue}{a - t}} \cdot y \]
    7. Applied egg-rr72.7%

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

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

Alternative 3: 68.7% accurate, 0.6× speedup?

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

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

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

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

\mathbf{elif}\;t \leq 2.5 \cdot 10^{+130}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -6.1999999999999996e159

    1. Initial program 23.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{z \cdot \frac{x - y}{t}} + y \]
      3. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.1999999999999996e159 < t < -3.00000000000000003e-43

    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.00000000000000003e-43 < t < 2.0999999999999999e-52

    1. Initial program 91.4%

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

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

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

        \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
      3. --lowering--.f6476.9

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

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

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

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

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

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

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

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

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

    if 2.0999999999999999e-52 < t < 2.4999999999999998e130

    1. Initial program 70.9%

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

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

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

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

        \[\leadsto \frac{y \cdot \color{blue}{\left(z - t\right)}}{a - t} \]
      4. --lowering--.f6462.1

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      4. /-lowering-/.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t}} \cdot y \]
      5. --lowering--.f64N/A

        \[\leadsto \frac{\color{blue}{z - t}}{a - t} \cdot y \]
      6. --lowering--.f6470.6

        \[\leadsto \frac{z - t}{\color{blue}{a - t}} \cdot y \]
    7. Applied egg-rr70.6%

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

    if 2.4999999999999998e130 < t

    1. Initial program 43.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -6.2 \cdot 10^{+159}:\\ \;\;\;\;\mathsf{fma}\left(z, \frac{x - y}{t}, y\right)\\ \mathbf{elif}\;t \leq -3 \cdot 10^{-43}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{t}{a - t}, x\right)\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{-52}:\\ \;\;\;\;\mathsf{fma}\left(y - x, \frac{z}{a}, x\right)\\ \mathbf{elif}\;t \leq 2.5 \cdot 10^{+130}:\\ \;\;\;\;y \cdot \frac{z - t}{a - t}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x - y, \frac{z}{t}, y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 69.3% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;t \leq -9.2 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;t \leq 2.2 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -6.2000000000000003e165

    1. Initial program 24.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{z \cdot \frac{x - y}{t}} + y \]
      3. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.2000000000000003e165 < t < -9.2000000000000004e-18 or 2.10000000000000006e-56 < t < 2.19999999999999993e130

    1. Initial program 72.2%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t} \cdot y} \]
      4. /-lowering-/.f64N/A

        \[\leadsto \color{blue}{\frac{z - t}{a - t}} \cdot y \]
      5. --lowering--.f64N/A

        \[\leadsto \frac{\color{blue}{z - t}}{a - t} \cdot y \]
      6. --lowering--.f6466.0

        \[\leadsto \frac{z - t}{\color{blue}{a - t}} \cdot y \]
    7. Applied egg-rr66.0%

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

    if -9.2000000000000004e-18 < t < 2.10000000000000006e-56

    1. Initial program 91.7%

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

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

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

        \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
      3. --lowering--.f6476.0

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

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

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

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

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

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

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

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

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

    if 2.19999999999999993e130 < t

    1. Initial program 43.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 88.8% accurate, 0.6× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -1.5e177 or 6.1999999999999999e130 < t

    1. Initial program 36.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.5e177 < t < 6.1999999999999999e130

    1. Initial program 82.7%

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

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

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

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

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

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

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

        \[\leadsto x + \frac{y - x}{\frac{\color{blue}{a - t}}{z - t}} \]
      8. --lowering--.f6492.9

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

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

Alternative 6: 88.8% accurate, 0.7× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -4.0000000000000002e178 or 5.9999999999999999e130 < t

    1. Initial program 36.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.0000000000000002e178 < t < 5.9999999999999999e130

    1. Initial program 82.7%

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

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

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

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

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

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

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

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

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

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

Alternative 7: 76.4% accurate, 0.8× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3.29999999999999977e-8 or 1.65000000000000009e-9 < a

    1. Initial program 73.7%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto x + \frac{\frac{z - t}{a - t}}{\color{blue}{\frac{1}{y - x}}} \]
      13. --lowering--.f6493.2

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

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

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

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

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

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

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

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

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

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

    if -3.29999999999999977e-8 < a < 1.65000000000000009e-9

    1. Initial program 70.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 8: 70.6% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -5.40000000000000032e-37 or 3.80000000000000011e-9 < a

    1. Initial program 73.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\color{blue}{y - x}, \frac{z}{a}, x\right) \]
      6. /-lowering-/.f6468.4

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

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

    if -5.40000000000000032e-37 < a < 3.80000000000000011e-9

    1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 70.0% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.5000000000000001e-44 or 1.4000000000000001e-13 < a

    1. Initial program 73.8%

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

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

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

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

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

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

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

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

    if -1.5000000000000001e-44 < a < 1.4000000000000001e-13

    1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 10: 68.1% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.6e17 or 7.99999999999999986e67 < t

    1. Initial program 46.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{z \cdot \frac{x - y}{t}} + y \]
      3. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.6e17 < t < 7.99999999999999986e67

    1. Initial program 89.7%

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

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

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

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

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

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

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

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

Alternative 11: 63.2% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := x + \frac{y \cdot z}{a}\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3.1999999999999999e-37 or 5.09999999999999984e-11 < a

    1. Initial program 73.8%

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

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

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

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

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

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

      \[\leadsto x + \frac{z \cdot \color{blue}{y}}{a} \]
    7. Step-by-step derivation
      1. Simplified57.5%

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

      if -3.1999999999999999e-37 < a < 5.09999999999999984e-11

      1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{z \cdot \frac{x - y}{t}} + y \]
        3. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 12: 54.2% accurate, 0.9× speedup?

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

      1. Initial program 41.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.2999999999999998e131 < t < 820

      1. Initial program 90.7%

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

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

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

          \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
        3. --lowering--.f6466.7

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

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

        \[\leadsto x + \frac{z \cdot \color{blue}{y}}{a} \]
      7. Step-by-step derivation
        1. Simplified57.5%

          \[\leadsto x + \frac{z \cdot \color{blue}{y}}{a} \]
      8. Recombined 2 regimes into one program.
      9. Final simplification56.8%

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

      Alternative 13: 50.0% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.6 \cdot 10^{+129}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 0.00022:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (if (<= t -2.6e+129) y (if (<= t 0.00022) (+ x (/ (* y z) a)) (+ x y))))
      double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (t <= -2.6e+129) {
      		tmp = y;
      	} else if (t <= 0.00022) {
      		tmp = x + ((y * z) / a);
      	} else {
      		tmp = x + y;
      	}
      	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) :: tmp
          if (t <= (-2.6d+129)) then
              tmp = y
          else if (t <= 0.00022d0) then
              tmp = x + ((y * z) / a)
          else
              tmp = x + y
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a) {
      	double tmp;
      	if (t <= -2.6e+129) {
      		tmp = y;
      	} else if (t <= 0.00022) {
      		tmp = x + ((y * z) / a);
      	} else {
      		tmp = x + y;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	tmp = 0
      	if t <= -2.6e+129:
      		tmp = y
      	elif t <= 0.00022:
      		tmp = x + ((y * z) / a)
      	else:
      		tmp = x + y
      	return tmp
      
      function code(x, y, z, t, a)
      	tmp = 0.0
      	if (t <= -2.6e+129)
      		tmp = y;
      	elseif (t <= 0.00022)
      		tmp = Float64(x + Float64(Float64(y * z) / a));
      	else
      		tmp = Float64(x + y);
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	tmp = 0.0;
      	if (t <= -2.6e+129)
      		tmp = y;
      	elseif (t <= 0.00022)
      		tmp = x + ((y * z) / a);
      	else
      		tmp = x + y;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.6e+129], y, If[LessEqual[t, 0.00022], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;t \leq -2.6 \cdot 10^{+129}:\\
      \;\;\;\;y\\
      
      \mathbf{elif}\;t \leq 0.00022:\\
      \;\;\;\;x + \frac{y \cdot z}{a}\\
      
      \mathbf{else}:\\
      \;\;\;\;x + y\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t < -2.60000000000000012e129

        1. Initial program 24.0%

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

          \[\leadsto \color{blue}{y} \]
        4. Step-by-step derivation
          1. Simplified56.6%

            \[\leadsto \color{blue}{y} \]

          if -2.60000000000000012e129 < t < 2.20000000000000008e-4

          1. Initial program 90.7%

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

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

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

              \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
            3. --lowering--.f6466.7

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

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

            \[\leadsto x + \frac{z \cdot \color{blue}{y}}{a} \]
          7. Step-by-step derivation
            1. Simplified57.5%

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

            if 2.20000000000000008e-4 < t

            1. Initial program 50.4%

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

              \[\leadsto x + \color{blue}{\left(y - x\right)} \]
            4. Step-by-step derivation
              1. --lowering--.f6438.2

                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
            5. Simplified38.2%

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

              \[\leadsto x + \color{blue}{y} \]
            7. Step-by-step derivation
              1. Simplified47.6%

                \[\leadsto x + \color{blue}{y} \]
            8. Recombined 3 regimes into one program.
            9. Final simplification54.9%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.6 \cdot 10^{+129}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 0.00022:\\ \;\;\;\;x + \frac{y \cdot z}{a}\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \]
            10. Add Preprocessing

            Alternative 14: 44.9% accurate, 0.9× speedup?

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

              1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot z}}{a} \]
                6. --lowering--.f6445.7

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

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

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

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

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

                  \[\leadsto \color{blue}{\frac{z}{a}} \cdot \left(y - x\right) \]
                5. --lowering--.f6453.1

                  \[\leadsto \frac{z}{a} \cdot \color{blue}{\left(y - x\right)} \]
              10. Applied egg-rr53.1%

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

              if -5e50 < z < 2.10000000000000008e79

              1. Initial program 71.2%

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

                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
              4. Step-by-step derivation
                1. --lowering--.f6427.5

                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
              5. Simplified27.5%

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

                \[\leadsto x + \color{blue}{y} \]
              7. Step-by-step derivation
                1. Simplified49.4%

                  \[\leadsto x + \color{blue}{y} \]
              8. Recombined 2 regimes into one program.
              9. Final simplification50.9%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5 \cdot 10^{+50}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a}\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{+79}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;\left(y - x\right) \cdot \frac{z}{a}\\ \end{array} \]
              10. Add Preprocessing

              Alternative 15: 42.5% accurate, 0.9× speedup?

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

                1. Initial program 72.1%

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

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

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{z \cdot \frac{y}{a - t}} \]
                  3. *-lowering-*.f64N/A

                    \[\leadsto \color{blue}{z \cdot \frac{y}{a - t}} \]
                  4. /-lowering-/.f64N/A

                    \[\leadsto z \cdot \color{blue}{\frac{y}{a - t}} \]
                  5. --lowering--.f6444.7

                    \[\leadsto z \cdot \frac{y}{\color{blue}{a - t}} \]
                8. Simplified44.7%

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

                if -1.1999999999999999e42 < z < 2.05e57

                1. Initial program 71.9%

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

                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                4. Step-by-step derivation
                  1. --lowering--.f6429.1

                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                5. Simplified29.1%

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

                  \[\leadsto x + \color{blue}{y} \]
                7. Step-by-step derivation
                  1. Simplified51.1%

                    \[\leadsto x + \color{blue}{y} \]
                8. Recombined 2 regimes into one program.
                9. Add Preprocessing

                Alternative 16: 38.6% accurate, 1.0× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -7.4 \cdot 10^{+135}:\\ \;\;\;\;-x \cdot \frac{z}{a}\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+57}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{y}{a}\\ \end{array} \end{array} \]
                (FPCore (x y z t a)
                 :precision binary64
                 (if (<= z -7.4e+135)
                   (- (* x (/ z a)))
                   (if (<= z 2.7e+57) (+ x y) (* z (/ y a)))))
                double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if (z <= -7.4e+135) {
                		tmp = -(x * (z / a));
                	} else if (z <= 2.7e+57) {
                		tmp = x + y;
                	} else {
                		tmp = z * (y / a);
                	}
                	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) :: tmp
                    if (z <= (-7.4d+135)) then
                        tmp = -(x * (z / a))
                    else if (z <= 2.7d+57) then
                        tmp = x + y
                    else
                        tmp = z * (y / a)
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a) {
                	double tmp;
                	if (z <= -7.4e+135) {
                		tmp = -(x * (z / a));
                	} else if (z <= 2.7e+57) {
                		tmp = x + y;
                	} else {
                		tmp = z * (y / a);
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a):
                	tmp = 0
                	if z <= -7.4e+135:
                		tmp = -(x * (z / a))
                	elif z <= 2.7e+57:
                		tmp = x + y
                	else:
                		tmp = z * (y / a)
                	return tmp
                
                function code(x, y, z, t, a)
                	tmp = 0.0
                	if (z <= -7.4e+135)
                		tmp = Float64(-Float64(x * Float64(z / a)));
                	elseif (z <= 2.7e+57)
                		tmp = Float64(x + y);
                	else
                		tmp = Float64(z * Float64(y / a));
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a)
                	tmp = 0.0;
                	if (z <= -7.4e+135)
                		tmp = -(x * (z / a));
                	elseif (z <= 2.7e+57)
                		tmp = x + y;
                	else
                		tmp = z * (y / a);
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.4e+135], (-N[(x * N[(z / a), $MachinePrecision]), $MachinePrecision]), If[LessEqual[z, 2.7e+57], N[(x + y), $MachinePrecision], N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;z \leq -7.4 \cdot 10^{+135}:\\
                \;\;\;\;-x \cdot \frac{z}{a}\\
                
                \mathbf{elif}\;z \leq 2.7 \cdot 10^{+57}:\\
                \;\;\;\;x + y\\
                
                \mathbf{else}:\\
                \;\;\;\;z \cdot \frac{y}{a}\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 3 regimes
                2. if z < -7.39999999999999994e135

                  1. Initial program 69.2%

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

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

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

                      \[\leadsto x + \frac{\color{blue}{z \cdot \left(y - x\right)}}{a} \]
                    3. --lowering--.f6442.8

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

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

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

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

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

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

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

                      \[\leadsto \frac{\color{blue}{\left(y - x\right) \cdot z}}{a} \]
                    6. --lowering--.f6440.2

                      \[\leadsto \frac{\color{blue}{\left(y - x\right)} \cdot z}{a} \]
                  8. Simplified40.2%

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

                    \[\leadsto \color{blue}{-1 \cdot \frac{x \cdot z}{a}} \]
                  10. Step-by-step derivation
                    1. mul-1-negN/A

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

                      \[\leadsto \mathsf{neg}\left(\color{blue}{x \cdot \frac{z}{a}}\right) \]
                    3. distribute-rgt-neg-inN/A

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

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

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

                      \[\leadsto x \cdot \color{blue}{\left(\mathsf{neg}\left(\frac{z}{a}\right)\right)} \]
                    7. distribute-neg-frac2N/A

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

                      \[\leadsto x \cdot \frac{z}{\color{blue}{-1 \cdot a}} \]
                    9. /-lowering-/.f64N/A

                      \[\leadsto x \cdot \color{blue}{\frac{z}{-1 \cdot a}} \]
                    10. mul-1-negN/A

                      \[\leadsto x \cdot \frac{z}{\color{blue}{\mathsf{neg}\left(a\right)}} \]
                    11. neg-lowering-neg.f6441.6

                      \[\leadsto x \cdot \frac{z}{\color{blue}{-a}} \]
                  11. Simplified41.6%

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

                  if -7.39999999999999994e135 < z < 2.6999999999999998e57

                  1. Initial program 71.6%

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

                    \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                  4. Step-by-step derivation
                    1. --lowering--.f6427.0

                      \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                  5. Simplified27.0%

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

                    \[\leadsto x + \color{blue}{y} \]
                  7. Step-by-step derivation
                    1. Simplified48.4%

                      \[\leadsto x + \color{blue}{y} \]

                    if 2.6999999999999998e57 < z

                    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\left(z - t\right)} \cdot \frac{y}{a} \]
                      5. /-lowering-/.f6437.9

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

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

                      \[\leadsto \color{blue}{z} \cdot \frac{y}{a} \]
                    10. Step-by-step derivation
                      1. Simplified36.3%

                        \[\leadsto \color{blue}{z} \cdot \frac{y}{a} \]
                    11. Recombined 3 regimes into one program.
                    12. Final simplification44.9%

                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.4 \cdot 10^{+135}:\\ \;\;\;\;-x \cdot \frac{z}{a}\\ \mathbf{elif}\;z \leq 2.7 \cdot 10^{+57}:\\ \;\;\;\;x + y\\ \mathbf{else}:\\ \;\;\;\;z \cdot \frac{y}{a}\\ \end{array} \]
                    13. Add Preprocessing

                    Alternative 17: 38.5% accurate, 1.0× speedup?

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

                      1. Initial program 71.4%

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

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

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

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

                          \[\leadsto \frac{y \cdot \color{blue}{\left(z - t\right)}}{a - t} \]
                        4. --lowering--.f6443.8

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

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

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

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

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

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

                          \[\leadsto \color{blue}{\left(z - t\right)} \cdot \frac{y}{a} \]
                        5. /-lowering-/.f6432.9

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

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

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

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

                        if -1.5e52 < z < 2.0000000000000001e57

                        1. Initial program 72.4%

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

                          \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                        4. Step-by-step derivation
                          1. --lowering--.f6428.7

                            \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                        5. Simplified28.7%

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

                          \[\leadsto x + \color{blue}{y} \]
                        7. Step-by-step derivation
                          1. Simplified50.3%

                            \[\leadsto x + \color{blue}{y} \]
                        8. Recombined 2 regimes into one program.
                        9. Add Preprocessing

                        Alternative 18: 37.8% accurate, 1.8× speedup?

                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.6 \cdot 10^{+129}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 1.4 \cdot 10^{-72}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x + y\\ \end{array} \end{array} \]
                        (FPCore (x y z t a)
                         :precision binary64
                         (if (<= t -2.6e+129) y (if (<= t 1.4e-72) x (+ x y))))
                        double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (t <= -2.6e+129) {
                        		tmp = y;
                        	} else if (t <= 1.4e-72) {
                        		tmp = x;
                        	} else {
                        		tmp = x + y;
                        	}
                        	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) :: tmp
                            if (t <= (-2.6d+129)) then
                                tmp = y
                            else if (t <= 1.4d-72) then
                                tmp = x
                            else
                                tmp = x + y
                            end if
                            code = tmp
                        end function
                        
                        public static double code(double x, double y, double z, double t, double a) {
                        	double tmp;
                        	if (t <= -2.6e+129) {
                        		tmp = y;
                        	} else if (t <= 1.4e-72) {
                        		tmp = x;
                        	} else {
                        		tmp = x + y;
                        	}
                        	return tmp;
                        }
                        
                        def code(x, y, z, t, a):
                        	tmp = 0
                        	if t <= -2.6e+129:
                        		tmp = y
                        	elif t <= 1.4e-72:
                        		tmp = x
                        	else:
                        		tmp = x + y
                        	return tmp
                        
                        function code(x, y, z, t, a)
                        	tmp = 0.0
                        	if (t <= -2.6e+129)
                        		tmp = y;
                        	elseif (t <= 1.4e-72)
                        		tmp = x;
                        	else
                        		tmp = Float64(x + y);
                        	end
                        	return tmp
                        end
                        
                        function tmp_2 = code(x, y, z, t, a)
                        	tmp = 0.0;
                        	if (t <= -2.6e+129)
                        		tmp = y;
                        	elseif (t <= 1.4e-72)
                        		tmp = x;
                        	else
                        		tmp = x + y;
                        	end
                        	tmp_2 = tmp;
                        end
                        
                        code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.6e+129], y, If[LessEqual[t, 1.4e-72], x, N[(x + y), $MachinePrecision]]]
                        
                        \begin{array}{l}
                        
                        \\
                        \begin{array}{l}
                        \mathbf{if}\;t \leq -2.6 \cdot 10^{+129}:\\
                        \;\;\;\;y\\
                        
                        \mathbf{elif}\;t \leq 1.4 \cdot 10^{-72}:\\
                        \;\;\;\;x\\
                        
                        \mathbf{else}:\\
                        \;\;\;\;x + y\\
                        
                        
                        \end{array}
                        \end{array}
                        
                        Derivation
                        1. Split input into 3 regimes
                        2. if t < -2.60000000000000012e129

                          1. Initial program 24.0%

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

                            \[\leadsto \color{blue}{y} \]
                          4. Step-by-step derivation
                            1. Simplified56.6%

                              \[\leadsto \color{blue}{y} \]

                            if -2.60000000000000012e129 < t < 1.3999999999999999e-72

                            1. Initial program 89.7%

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

                              \[\leadsto \color{blue}{x} \]
                            4. Step-by-step derivation
                              1. Simplified32.8%

                                \[\leadsto \color{blue}{x} \]

                              if 1.3999999999999999e-72 < t

                              1. Initial program 59.7%

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

                                \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                              4. Step-by-step derivation
                                1. --lowering--.f6433.4

                                  \[\leadsto x + \color{blue}{\left(y - x\right)} \]
                              5. Simplified33.4%

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

                                \[\leadsto x + \color{blue}{y} \]
                              7. Step-by-step derivation
                                1. Simplified44.6%

                                  \[\leadsto x + \color{blue}{y} \]
                              8. Recombined 3 regimes into one program.
                              9. Add Preprocessing

                              Alternative 19: 38.6% accurate, 2.2× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4.9 \cdot 10^{+129}:\\ \;\;\;\;y\\ \mathbf{elif}\;t \leq 5.8 \cdot 10^{+20}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;y\\ \end{array} \end{array} \]
                              (FPCore (x y z t a)
                               :precision binary64
                               (if (<= t -4.9e+129) y (if (<= t 5.8e+20) x y)))
                              double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if (t <= -4.9e+129) {
                              		tmp = y;
                              	} else if (t <= 5.8e+20) {
                              		tmp = x;
                              	} else {
                              		tmp = y;
                              	}
                              	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) :: tmp
                                  if (t <= (-4.9d+129)) then
                                      tmp = y
                                  else if (t <= 5.8d+20) then
                                      tmp = x
                                  else
                                      tmp = y
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a) {
                              	double tmp;
                              	if (t <= -4.9e+129) {
                              		tmp = y;
                              	} else if (t <= 5.8e+20) {
                              		tmp = x;
                              	} else {
                              		tmp = y;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a):
                              	tmp = 0
                              	if t <= -4.9e+129:
                              		tmp = y
                              	elif t <= 5.8e+20:
                              		tmp = x
                              	else:
                              		tmp = y
                              	return tmp
                              
                              function code(x, y, z, t, a)
                              	tmp = 0.0
                              	if (t <= -4.9e+129)
                              		tmp = y;
                              	elseif (t <= 5.8e+20)
                              		tmp = x;
                              	else
                              		tmp = y;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a)
                              	tmp = 0.0;
                              	if (t <= -4.9e+129)
                              		tmp = y;
                              	elseif (t <= 5.8e+20)
                              		tmp = x;
                              	else
                              		tmp = y;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.9e+129], y, If[LessEqual[t, 5.8e+20], x, y]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              \mathbf{if}\;t \leq -4.9 \cdot 10^{+129}:\\
                              \;\;\;\;y\\
                              
                              \mathbf{elif}\;t \leq 5.8 \cdot 10^{+20}:\\
                              \;\;\;\;x\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;y\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < -4.9e129 or 5.8e20 < t

                                1. Initial program 40.9%

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

                                  \[\leadsto \color{blue}{y} \]
                                4. Step-by-step derivation
                                  1. Simplified49.3%

                                    \[\leadsto \color{blue}{y} \]

                                  if -4.9e129 < t < 5.8e20

                                  1. Initial program 90.6%

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

                                    \[\leadsto \color{blue}{x} \]
                                  4. Step-by-step derivation
                                    1. Simplified31.6%

                                      \[\leadsto \color{blue}{x} \]
                                  5. Recombined 2 regimes into one program.
                                  6. Add Preprocessing

                                  Alternative 20: 25.1% accurate, 29.0× speedup?

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

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

                                    \[\leadsto \color{blue}{x} \]
                                  4. Step-by-step derivation
                                    1. Simplified25.2%

                                      \[\leadsto \color{blue}{x} \]
                                    2. Add Preprocessing

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

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

                                    Reproduce

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