Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3

Percentage Accurate: 97.3% → 99.6%
Time: 9.3s
Alternatives: 16
Speedup: 1.3×

Specification

?
\[\begin{array}{l} \\ x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
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 - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a):
	return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a)
	return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)))
end
function tmp = code(x, y, z, t, a)
	tmp = x - ((y - z) / (((t - z) + 1.0) / a));
end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}}
\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: 97.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x - \frac{y - z}{\frac{\left(t - z\right) + 1}{a}} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))
double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
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 - z) + 1.0d0) / a))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x - ((y - z) / (((t - z) + 1.0) / a));
}
def code(x, y, z, t, a):
	return x - ((y - z) / (((t - z) + 1.0) / a))
function code(x, y, z, t, a)
	return Float64(x - Float64(Float64(y - z) / Float64(Float64(Float64(t - z) + 1.0) / a)))
end
function tmp = code(x, y, z, t, a)
	tmp = x - ((y - z) / (((t - z) + 1.0) / a));
end
code[x_, y_, z_, t_, a_] := N[(x - N[(N[(y - z), $MachinePrecision] / N[(N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.6% accurate, 1.3× speedup?

\[\begin{array}{l} \\ \mathsf{fma}\left(\frac{y - z}{-1 - \left(t - z\right)}, a, x\right) \end{array} \]
(FPCore (x y z t a) :precision binary64 (fma (/ (- y z) (- -1.0 (- t z))) a x))
double code(double x, double y, double z, double t, double a) {
	return fma(((y - z) / (-1.0 - (t - z))), a, x);
}
function code(x, y, z, t, a)
	return fma(Float64(Float64(y - z) / Float64(-1.0 - Float64(t - z))), a, x)
end
code[x_, y_, z_, t_, a_] := N[(N[(N[(y - z), $MachinePrecision] / N[(-1.0 - N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a + x), $MachinePrecision]
\begin{array}{l}

\\
\mathsf{fma}\left(\frac{y - z}{-1 - \left(t - z\right)}, a, x\right)
\end{array}
Derivation
  1. Initial program 96.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 72.9% accurate, 0.9× speedup?

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

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

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

\mathbf{elif}\;t \leq 1:\\
\;\;\;\;x - a \cdot y\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.4000000000000003e143 or 1 < t

    1. Initial program 94.7%

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

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

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

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

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

        \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
      5. lower-+.f6484.2

        \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
    5. Applied rewrites84.2%

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

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

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

      if -5.4000000000000003e143 < t < 4.1999999999999998e-200

      1. Initial program 98.1%

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\frac{z}{\color{blue}{\left(1 + t\right) - z}}, a, x\right) \]
        10. lower-+.f6481.0

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

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

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

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

        if 4.1999999999999998e-200 < t < 1

        1. Initial program 97.7%

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

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

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

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

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

            \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
          5. lower-+.f6480.7

            \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
        5. Applied rewrites80.7%

          \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
        6. Taylor expanded in t around 0

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

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

        Alternative 3: 91.8% accurate, 1.0× speedup?

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

          1. Initial program 94.1%

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

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

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

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

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

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

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

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

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

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

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

          if -3.19999999999999983e67 < t < 9.4999999999999995e69

          1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 4: 90.6% accurate, 1.0× speedup?

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

          1. Initial program 94.1%

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

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

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

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

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

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

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

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

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

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

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

          if -6.9999999999999994e66 < t < 9.4999999999999995e69

          1. Initial program 98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\frac{y - z}{\color{blue}{z - 1}}, a, x\right) \]
          8. Step-by-step derivation
            1. lift-fma.f64N/A

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

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

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

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

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

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

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

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

        Alternative 5: 85.8% accurate, 1.0× speedup?

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

          1. Initial program 96.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.65e45 < z < 5.99999999999999977e-161

          1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 6: 84.4% accurate, 1.0× speedup?

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

          1. Initial program 96.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.65e45 < z < 5.99999999999999977e-161

            1. Initial program 97.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 7: 72.2% accurate, 1.0× speedup?

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

            1. Initial program 96.0%

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

              \[\leadsto \color{blue}{x - a} \]
            4. Step-by-step derivation
              1. lower--.f6479.2

                \[\leadsto \color{blue}{x - a} \]
            5. Applied rewrites79.2%

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

            if -1.80000000000000017e-33 < z < 5.50000000000000006e-162

            1. Initial program 96.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 5.50000000000000006e-162 < z < 6.1999999999999998e61

              1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 8: 71.8% accurate, 1.0× speedup?

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

                1. Initial program 95.6%

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

                  \[\leadsto \color{blue}{x - a} \]
                4. Step-by-step derivation
                  1. lower--.f6479.5

                    \[\leadsto \color{blue}{x - a} \]
                5. Applied rewrites79.5%

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

                if -1.7e5 < z < 4.50000000000000023e-162

                1. Initial program 97.1%

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

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

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

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

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

                    \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                  5. lower-+.f6494.3

                    \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                5. Applied rewrites94.3%

                  \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                6. Taylor expanded in t around 0

                  \[\leadsto x - a \cdot \color{blue}{y} \]
                7. Step-by-step derivation
                  1. Applied rewrites68.9%

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

                  if 4.50000000000000023e-162 < z < 6.1999999999999998e61

                  1. Initial program 97.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 78.8% accurate, 1.0× speedup?

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

                    1. Initial program 94.4%

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

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

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

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

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

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

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

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

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

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

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

                    if -1.64999999999999997e26 < t < 8.1999999999999998e69

                    1. Initial program 98.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 10: 72.8% accurate, 1.0× speedup?

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

                      1. Initial program 95.4%

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

                        \[\leadsto \color{blue}{x - a} \]
                      4. Step-by-step derivation
                        1. lower--.f6475.9

                          \[\leadsto \color{blue}{x - a} \]
                      5. Applied rewrites75.9%

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

                      if -1.7e5 < z < 4.50000000000000023e-162

                      1. Initial program 97.1%

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

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

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

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

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

                          \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                        5. lower-+.f6494.3

                          \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                      5. Applied rewrites94.3%

                        \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                      6. Taylor expanded in t around 0

                        \[\leadsto x - a \cdot \color{blue}{y} \]
                      7. Step-by-step derivation
                        1. Applied rewrites68.9%

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

                        if 4.50000000000000023e-162 < z < 8.00000000000000065e-5

                        1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          Alternative 11: 72.2% accurate, 1.1× speedup?

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

                            1. Initial program 95.0%

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

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

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

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

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

                                \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                              5. lower-+.f6481.9

                                \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                            5. Applied rewrites81.9%

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

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

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

                              if -740 < t < 0.839999999999999969

                              1. Initial program 98.3%

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

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

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

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

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

                                  \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                5. lower-+.f6473.4

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

                                \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                              6. Taylor expanded in t around 0

                                \[\leadsto x - \left(y + -1 \cdot \left(t \cdot y\right)\right) \cdot a \]
                              7. Step-by-step derivation
                                1. Applied rewrites73.0%

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

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

                              Alternative 12: 71.9% accurate, 1.1× speedup?

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

                                1. Initial program 95.0%

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

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

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

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

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

                                    \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                  5. lower-+.f6481.9

                                    \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                5. Applied rewrites81.9%

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

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

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

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

                                    if -740 < t < 0.839999999999999969

                                    1. Initial program 98.3%

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

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

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

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

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

                                        \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                      5. lower-+.f6473.4

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

                                      \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                                    6. Taylor expanded in t around 0

                                      \[\leadsto x - \left(y + -1 \cdot \left(t \cdot y\right)\right) \cdot a \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites73.0%

                                        \[\leadsto x - \mathsf{fma}\left(-t, y, y\right) \cdot a \]
                                    8. Recombined 2 regimes into one program.
                                    9. Final simplification76.2%

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

                                    Alternative 13: 79.3% accurate, 1.3× speedup?

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

                                      1. Initial program 98.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 1.5e62 < z

                                      1. Initial program 91.9%

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

                                        \[\leadsto \color{blue}{x - a} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6485.6

                                          \[\leadsto \color{blue}{x - a} \]
                                      5. Applied rewrites85.6%

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

                                    Alternative 14: 71.9% accurate, 1.7× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -170000 \lor \neg \left(z \leq 8.5 \cdot 10^{-106}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot y\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a)
                                     :precision binary64
                                     (if (or (<= z -170000.0) (not (<= z 8.5e-106))) (- x a) (- x (* a y))))
                                    double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if ((z <= -170000.0) || !(z <= 8.5e-106)) {
                                    		tmp = x - a;
                                    	} else {
                                    		tmp = x - (a * y);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    real(8) function code(x, y, z, t, a)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8), intent (in) :: a
                                        real(8) :: tmp
                                        if ((z <= (-170000.0d0)) .or. (.not. (z <= 8.5d-106))) then
                                            tmp = x - a
                                        else
                                            tmp = x - (a * y)
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a) {
                                    	double tmp;
                                    	if ((z <= -170000.0) || !(z <= 8.5e-106)) {
                                    		tmp = x - a;
                                    	} else {
                                    		tmp = x - (a * y);
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a):
                                    	tmp = 0
                                    	if (z <= -170000.0) or not (z <= 8.5e-106):
                                    		tmp = x - a
                                    	else:
                                    		tmp = x - (a * y)
                                    	return tmp
                                    
                                    function code(x, y, z, t, a)
                                    	tmp = 0.0
                                    	if ((z <= -170000.0) || !(z <= 8.5e-106))
                                    		tmp = Float64(x - a);
                                    	else
                                    		tmp = Float64(x - Float64(a * y));
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a)
                                    	tmp = 0.0;
                                    	if ((z <= -170000.0) || ~((z <= 8.5e-106)))
                                    		tmp = x - a;
                                    	else
                                    		tmp = x - (a * y);
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -170000.0], N[Not[LessEqual[z, 8.5e-106]], $MachinePrecision]], N[(x - a), $MachinePrecision], N[(x - N[(a * y), $MachinePrecision]), $MachinePrecision]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;z \leq -170000 \lor \neg \left(z \leq 8.5 \cdot 10^{-106}\right):\\
                                    \;\;\;\;x - a\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;x - a \cdot y\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if z < -1.7e5 or 8.4999999999999998e-106 < z

                                      1. Initial program 95.9%

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

                                        \[\leadsto \color{blue}{x - a} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6473.4

                                          \[\leadsto \color{blue}{x - a} \]
                                      5. Applied rewrites73.4%

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

                                      if -1.7e5 < z < 8.4999999999999998e-106

                                      1. Initial program 97.4%

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

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

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

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

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

                                          \[\leadsto x - \color{blue}{\frac{y}{1 + t}} \cdot a \]
                                        5. lower-+.f6494.0

                                          \[\leadsto x - \frac{y}{\color{blue}{1 + t}} \cdot a \]
                                      5. Applied rewrites94.0%

                                        \[\leadsto x - \color{blue}{\frac{y}{1 + t} \cdot a} \]
                                      6. Taylor expanded in t around 0

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

                                          \[\leadsto x - a \cdot \color{blue}{y} \]
                                      8. Recombined 2 regimes into one program.
                                      9. Final simplification71.8%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -170000 \lor \neg \left(z \leq 8.5 \cdot 10^{-106}\right):\\ \;\;\;\;x - a\\ \mathbf{else}:\\ \;\;\;\;x - a \cdot y\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 15: 60.6% accurate, 8.8× speedup?

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

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

                                        \[\leadsto \color{blue}{x - a} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6462.0

                                          \[\leadsto \color{blue}{x - a} \]
                                      5. Applied rewrites62.0%

                                        \[\leadsto \color{blue}{x - a} \]
                                      6. Add Preprocessing

                                      Alternative 16: 16.9% accurate, 11.7× speedup?

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

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

                                        \[\leadsto \color{blue}{x - a} \]
                                      4. Step-by-step derivation
                                        1. lower--.f6462.0

                                          \[\leadsto \color{blue}{x - a} \]
                                      5. Applied rewrites62.0%

                                        \[\leadsto \color{blue}{x - a} \]
                                      6. Taylor expanded in x around 0

                                        \[\leadsto -1 \cdot \color{blue}{a} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites12.1%

                                          \[\leadsto -a \]
                                        2. Add Preprocessing

                                        Developer Target 1: 99.6% accurate, 1.2× speedup?

                                        \[\begin{array}{l} \\ x - \frac{y - z}{\left(t - z\right) + 1} \cdot a \end{array} \]
                                        (FPCore (x y z t a)
                                         :precision binary64
                                         (- x (* (/ (- y z) (+ (- t z) 1.0)) a)))
                                        double code(double x, double y, double z, double t, double a) {
                                        	return x - (((y - z) / ((t - z) + 1.0)) * a);
                                        }
                                        
                                        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 - z) + 1.0d0)) * a)
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a) {
                                        	return x - (((y - z) / ((t - z) + 1.0)) * a);
                                        }
                                        
                                        def code(x, y, z, t, a):
                                        	return x - (((y - z) / ((t - z) + 1.0)) * a)
                                        
                                        function code(x, y, z, t, a)
                                        	return Float64(x - Float64(Float64(Float64(y - z) / Float64(Float64(t - z) + 1.0)) * a))
                                        end
                                        
                                        function tmp = code(x, y, z, t, a)
                                        	tmp = x - (((y - z) / ((t - z) + 1.0)) * a);
                                        end
                                        
                                        code[x_, y_, z_, t_, a_] := N[(x - N[(N[(N[(y - z), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        x - \frac{y - z}{\left(t - z\right) + 1} \cdot a
                                        \end{array}
                                        

                                        Reproduce

                                        ?
                                        herbie shell --seed 2024313 
                                        (FPCore (x y z t a)
                                          :name "Graphics.Rendering.Chart.SparkLine:renderSparkLine from Chart-1.5.3"
                                          :precision binary64
                                        
                                          :alt
                                          (! :herbie-platform default (- x (* (/ (- y z) (+ (- t z) 1)) a)))
                                        
                                          (- x (/ (- y z) (/ (+ (- t z) 1.0) a))))