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

Percentage Accurate: 67.8% → 89.5%
Time: 10.4s
Alternatives: 16
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 16 alternatives:

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

Initial Program: 67.8% accurate, 1.0× speedup?

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

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

Alternative 1: 89.5% accurate, 0.2× speedup?

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

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

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

\mathbf{else}:\\
\;\;\;\;\frac{y - x}{\frac{a - t}{z - t}} + x\\


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

    1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999989e-283

    1. Initial program 5.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}{y + -1 \cdot \frac{\left(z \cdot \left(y - x\right) + \frac{a \cdot \left(z \cdot \left(y - x\right) - a \cdot \left(y - x\right)\right)}{t}\right) - a \cdot \left(y - x\right)}{t}} \]
    4. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

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

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

    if 1.99999999999999989e-283 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 72.7%

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

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

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

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

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

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

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

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

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

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

Alternative 2: 85.7% accurate, 0.2× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
t_2 := \left(z - t\right) \cdot \left(y - x\right)\\
t_3 := \frac{t\_2}{a - t} + x\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;\mathsf{fma}\left(\frac{-1}{t - a}, t\_2, x\right)\\

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

\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;t\_3\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 4.9999999999999997e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t)))

    1. Initial program 31.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. div-subN/A

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

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

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

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

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

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

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

    if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237

    1. Initial program 95.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{-1}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)}}, \left(y - x\right) \cdot \left(z - t\right), x\right) \]
      14. associate--r+N/A

        \[\leadsto \mathsf{fma}\left(\frac{-1}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(t\right)\right)\right) - a}}, \left(y - x\right) \cdot \left(z - t\right), x\right) \]
      15. neg-sub0N/A

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

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

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

        \[\leadsto \mathsf{fma}\left(\frac{-1}{t - a}, \color{blue}{\left(y - x\right) \cdot \left(z - t\right)}, x\right) \]
      19. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(\frac{-1}{t - a}, \color{blue}{\left(z - t\right) \cdot \left(y - x\right)}, x\right) \]
      20. lower-*.f6495.4

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

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

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

    1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.9999999999999997e303

      1. Initial program 96.7%

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

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

    Alternative 3: 85.7% accurate, 0.2× speedup?

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

      1. Initial program 31.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. div-subN/A

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

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

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

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

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

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

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

      if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.9999999999999997e303

      1. Initial program 96.0%

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

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

      1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 4: 89.5% accurate, 0.3× speedup?

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

        1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          1. Initial program 72.3%

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

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

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

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

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

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

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

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

            \[\leadsto x + \color{blue}{\frac{y - x}{\frac{a - t}{z - t}}} \]
        8. Recombined 3 regimes into one program.
        9. Final simplification89.3%

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

        Alternative 5: 89.5% accurate, 0.3× speedup?

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

          1. Initial program 68.6%

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

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

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

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

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

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

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

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

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

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

          1. Initial program 4.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 6: 74.8% accurate, 0.8× speedup?

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

            1. Initial program 42.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.69999999999999986e-64 < t < 4.10000000000000004e39

            1. Initial program 89.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\frac{-1}{0 - \color{blue}{\left(\left(\mathsf{neg}\left(t\right)\right) + a\right)}}, \left(y - x\right) \cdot \left(z - t\right), x\right) \]
              14. associate--r+N/A

                \[\leadsto \mathsf{fma}\left(\frac{-1}{\color{blue}{\left(0 - \left(\mathsf{neg}\left(t\right)\right)\right) - a}}, \left(y - x\right) \cdot \left(z - t\right), x\right) \]
              15. neg-sub0N/A

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

                \[\leadsto \mathsf{fma}\left(\frac{-1}{\color{blue}{t} - a}, \left(y - x\right) \cdot \left(z - t\right), x\right) \]
              17. lower--.f6489.9

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

                \[\leadsto \mathsf{fma}\left(\frac{-1}{t - a}, \color{blue}{\left(y - x\right) \cdot \left(z - t\right)}, x\right) \]
              19. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(\frac{-1}{t - a}, \color{blue}{\left(z - t\right) \cdot \left(y - x\right)}, x\right) \]
              20. lower-*.f6489.9

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{-1}{t - a}, \left(z - t\right) \cdot \left(y - x\right), x\right)} \]
            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. lower-fma.f64N/A

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

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

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

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

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

          Alternative 7: 72.5% accurate, 0.8× speedup?

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

            1. Initial program 42.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.10000000000000011e-64 < t < 5.20000000000000013e35

            1. Initial program 89.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. *-commutativeN/A

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

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

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

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

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

          Alternative 8: 68.1% accurate, 0.9× speedup?

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

            1. Initial program 47.7%

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

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

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

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

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

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

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

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

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

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

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

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

              if -2.69999999999999986e-64 < t < 7.50000000000000054e36

              1. Initial program 89.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. *-commutativeN/A

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

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

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

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

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

              if 7.50000000000000054e36 < t

              1. Initial program 31.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 69.1% accurate, 0.9× speedup?

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

                1. Initial program 29.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -4.7000000000000001e96 < t < 7.50000000000000054e36

                  1. Initial program 85.1%

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

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

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

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

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

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

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

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

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

                Alternative 10: 51.3% accurate, 0.9× speedup?

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

                  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 y around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -5.79999999999999977e84 < a < 4.49999999999999967e144

                      1. Initial program 61.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 11: 43.7% accurate, 0.9× speedup?

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

                        1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -2.2e104 < a < 4.49999999999999967e144

                            1. Initial program 61.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 12: 44.0% accurate, 0.9× speedup?

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

                                1. Initial program 45.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. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

                                    if -6.9999999999999995e88 < t < 1.65e-164

                                    1. Initial program 86.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 13: 41.6% accurate, 1.0× speedup?

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

                                      1. Initial program 45.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. div-subN/A

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

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

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

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

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

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

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

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

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

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

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

                                          if -6.9999999999999995e88 < t < 2.9e-165

                                          1. Initial program 86.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            Alternative 14: 34.7% accurate, 1.0× speedup?

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

                                              1. Initial program 38.1%

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto y \cdot 1 \]
                                                3. Step-by-step derivation
                                                  1. Applied rewrites45.5%

                                                    \[\leadsto y \cdot 1 \]

                                                  if -4.50000000000000017e81 < t < 6.4999999999999997e-56

                                                  1. Initial program 86.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.5 \cdot 10^{+81}:\\ \;\;\;\;1 \cdot y\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{-56}:\\ \;\;\;\;\frac{z}{a} \cdot y\\ \mathbf{else}:\\ \;\;\;\;1 \cdot y\\ \end{array} \]
                                                    6. Add Preprocessing

                                                    Alternative 15: 33.0% accurate, 1.0× speedup?

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

                                                      1. Initial program 37.8%

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto y \cdot 1 \]
                                                        3. Step-by-step derivation
                                                          1. Applied rewrites44.2%

                                                            \[\leadsto y \cdot 1 \]

                                                          if -2.50000000000000014e62 < t < 3.45e-57

                                                          1. Initial program 88.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.5 \cdot 10^{+62}:\\ \;\;\;\;1 \cdot y\\ \mathbf{elif}\;t \leq 3.45 \cdot 10^{-57}:\\ \;\;\;\;\frac{z \cdot y}{a}\\ \mathbf{else}:\\ \;\;\;\;1 \cdot y\\ \end{array} \]
                                                          10. Add Preprocessing

                                                          Alternative 16: 25.3% accurate, 4.8× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto y \cdot 1 \]
                                                            3. Step-by-step derivation
                                                              1. Applied rewrites25.7%

                                                                \[\leadsto y \cdot 1 \]
                                                              2. Final simplification25.7%

                                                                \[\leadsto 1 \cdot y \]
                                                              3. 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 2024235 
                                                              (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))))