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

Percentage Accurate: 68.2% → 89.0%
Time: 9.4s
Alternatives: 16
Speedup: 0.8×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 16 alternatives:

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

Initial Program: 68.2% accurate, 1.0× speedup?

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

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

Alternative 1: 89.0% accurate, 0.7× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -4.5999999999999998e203 or 1.5000000000000001e228 < z

    1. Initial program 26.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.5999999999999998e203 < z < 1.5000000000000001e228

    1. Initial program 78.3%

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 75.7% accurate, 0.7× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -0.0045999999999999999 or 11 < a

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

    if -0.0045999999999999999 < a < 11

    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 75.7% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;a \leq 11:\\
\;\;\;\;t - \left(y - a\right) \cdot \frac{t - x}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -0.0045999999999999999 or 11 < a

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

    if -0.0045999999999999999 < a < 11

    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 71.8% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;a \leq 10.5:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot y}{z}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -0.00339999999999999981 or 10.5 < a

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

    if -0.00339999999999999981 < a < 10.5

    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 5: 28.6% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
t_1 := \left(t - x\right) + x\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;z \leq -2.3 \cdot 10^{-90}:\\
\;\;\;\;\frac{y \cdot x}{z}\\

\mathbf{elif}\;z \leq 2050000000:\\
\;\;\;\;\frac{y \cdot t}{a}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.4e111 or 2.05e9 < z

    1. Initial program 42.7%

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

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

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

      \[\leadsto x + \color{blue}{\left(t - x\right)} \]

    if -1.4e111 < z < -2.2999999999999998e-90

    1. Initial program 81.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t - \frac{\color{blue}{y \cdot \left(t - x\right)}}{z} \]
      6. lower--.f6454.4

        \[\leadsto t - \frac{y \cdot \color{blue}{\left(t - x\right)}}{z} \]
    7. Applied rewrites54.4%

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

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

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

      if -2.2999999999999998e-90 < z < 2.05e9

      1. Initial program 89.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{t \cdot y}{\color{blue}{a}} \]
      9. Step-by-step derivation
        1. Applied rewrites34.0%

          \[\leadsto \frac{y \cdot t}{\color{blue}{a}} \]
      10. Recombined 3 regimes into one program.
      11. Final simplification36.3%

        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.4 \cdot 10^{+111}:\\ \;\;\;\;\left(t - x\right) + x\\ \mathbf{elif}\;z \leq -2.3 \cdot 10^{-90}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{elif}\;z \leq 2050000000:\\ \;\;\;\;\frac{y \cdot t}{a}\\ \mathbf{else}:\\ \;\;\;\;\left(t - x\right) + x\\ \end{array} \]
      12. Add Preprocessing

      Alternative 6: 67.4% accurate, 0.8× speedup?

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

        1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

        if -0.0045999999999999999 < a < 10.5

        1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 10.5 < a

        1. Initial program 79.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 7: 63.8% accurate, 0.9× speedup?

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

        1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

        if -0.0045999999999999999 < a < 10.5

        1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 10.5 < a

          1. Initial program 79.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 8: 59.6% accurate, 0.9× speedup?

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

          1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

          if -0.0045999999999999999 < a < 0.97999999999999998

          1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if 0.97999999999999998 < a

            1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 9: 59.4% accurate, 0.9× speedup?

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

            1. Initial program 71.7%

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

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

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

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

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

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

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

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

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

            if -0.0045999999999999999 < a < 0.97999999999999998

            1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \frac{z - y}{z} \cdot \color{blue}{t} \]
            10. Recombined 2 regimes into one program.
            11. Add Preprocessing

            Alternative 10: 54.5% accurate, 0.9× speedup?

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

              1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -0.160000000000000003 < a < 1.36e9

                1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 1.36e9 < a

                  1. Initial program 79.3%

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

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

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

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

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

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

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

                      \[\leadsto x + \frac{y \cdot t}{a} \]
                  8. Recombined 3 regimes into one program.
                  9. Final simplification62.3%

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

                  Alternative 11: 53.7% accurate, 0.9× speedup?

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

                    1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -0.160000000000000003 < a < 6.5

                      1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 6.5 < a

                        1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(y, \frac{-x}{a}, x\right) \]
                        10. Recombined 3 regimes into one program.
                        11. Add Preprocessing

                        Alternative 12: 53.7% accurate, 0.9× speedup?

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

                          1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -0.160000000000000003 < a < 6.5

                            1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 6.5 < a

                              1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 13: 47.5% accurate, 1.0× speedup?

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

                                1. Initial program 41.3%

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

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

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

                                  \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                if -1.6500000000000001e100 < z < 5.5000000000000002e36

                                1. Initial program 86.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(y, \frac{t}{\color{blue}{a}}, x\right) \]
                                10. Recombined 2 regimes into one program.
                                11. Final simplification52.6%

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

                                Alternative 14: 24.9% accurate, 1.0× speedup?

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

                                  1. Initial program 67.3%

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

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

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

                                    \[\leadsto x + \color{blue}{\left(t - x\right)} \]

                                  if -1.42e-129 < t < 2.69999999999999986e-64

                                  1. Initial program 73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto t - \frac{y \cdot \color{blue}{\left(t - x\right)}}{z} \]
                                  7. Applied rewrites43.3%

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

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

                                      \[\leadsto \frac{y \cdot x}{\color{blue}{z}} \]
                                  10. Recombined 2 regimes into one program.
                                  11. Final simplification29.2%

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

                                  Alternative 15: 19.6% accurate, 4.1× speedup?

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

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

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

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

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

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

                                  Alternative 16: 2.8% accurate, 29.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto 0 \]
                                    2. Add Preprocessing

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

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

                                    Reproduce

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