Data.Colour.Matrix:determinant from colour-2.3.3, A

Percentage Accurate: 72.9% → 83.5%
Time: 8.5s
Alternatives: 22
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    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), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j)
	return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\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 22 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: 72.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
  (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    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), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j)
	return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}

Alternative 1: 83.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{c \cdot z}{x} \cdot \left(-b\right)\right)\right) \cdot x\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1
         (-
          (* (- (* c a) (* i y)) j)
          (- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
   (if (<= t_1 INFINITY)
     t_1
     (* (fma (- t) a (fma z y (* (/ (* c z) x) (- b)))) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = fma(-t, a, fma(z, y, (((c * z) / x) * -b))) * x;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b)))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(Float64(c * z) / x) * Float64(-b)))) * x);
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-t) * a + N[(z * y + N[(N[(N[(c * z), $MachinePrecision] / x), $MachinePrecision] * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

    1. Initial program 91.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing

    if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i))))

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around -inf

      \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
    4. Applied rewrites32.7%

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

      \[\leadsto \mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, -1 \cdot \frac{b \cdot \left(c \cdot z\right)}{x}\right)\right) \cdot x \]
    6. Step-by-step derivation
      1. Applied rewrites59.4%

        \[\leadsto \mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \left(-b\right) \cdot \frac{c \cdot z}{x}\right)\right) \cdot x \]
    7. Recombined 2 regimes into one program.
    8. Final simplification85.1%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right) \leq \infty:\\ \;\;\;\;\left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{c \cdot z}{x} \cdot \left(-b\right)\right)\right) \cdot x\\ \end{array} \]
    9. Add Preprocessing

    Alternative 2: 69.4% accurate, 0.8× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} + \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{if}\;i \leq -3.5 \cdot 10^{+152}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -205000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 0.047:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1
             (+ (/ j (/ 1.0 (fma (- i) y (* c a)))) (* (fma (- c) z (* i t)) b))))
       (if (<= i -3.5e+152)
         (* (fma (- y) j (* b t)) i)
         (if (<= i -205000000000.0)
           t_1
           (if (<= i 0.047)
             (fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
             t_1)))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = (j / (1.0 / fma(-i, y, (c * a)))) + (fma(-c, z, (i * t)) * b);
    	double tmp;
    	if (i <= -3.5e+152) {
    		tmp = fma(-y, j, (b * t)) * i;
    	} else if (i <= -205000000000.0) {
    		tmp = t_1;
    	} else if (i <= 0.047) {
    		tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(Float64(j / Float64(1.0 / fma(Float64(-i), y, Float64(c * a)))) + Float64(fma(Float64(-c), z, Float64(i * t)) * b))
    	tmp = 0.0
    	if (i <= -3.5e+152)
    		tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i);
    	elseif (i <= -205000000000.0)
    		tmp = t_1;
    	elseif (i <= 0.047)
    		tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j / N[(1.0 / N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+152], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -205000000000.0], t$95$1, If[LessEqual[i, 0.047], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} + \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
    \mathbf{if}\;i \leq -3.5 \cdot 10^{+152}:\\
    \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
    
    \mathbf{elif}\;i \leq -205000000000:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;i \leq 0.047:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if i < -3.49999999999999981e152

      1. Initial program 61.3%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around inf

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        3. sub-negN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
        4. *-commutativeN/A

          \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
        5. associate-*r*N/A

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

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
        7. remove-double-negN/A

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
        8. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
        9. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
        10. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
        11. lower-*.f6487.3

          \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
      5. Applied rewrites87.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]

      if -3.49999999999999981e152 < i < -2.05e11 or 0.047 < i

      1. Initial program 75.0%

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

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

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

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

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

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
        8. flip--N/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        10. lower-/.f6475.1

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        12. sub-negN/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
        14. lift-*.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
        15. *-commutativeN/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
        18. lower-neg.f6475.1

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

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

        \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
      6. Step-by-step derivation
        1. associate-*r*N/A

          \[\leadsto \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z - i \cdot t\right)} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        2. sub-negN/A

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

          \[\leadsto \left(-1 \cdot b\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(i \cdot t\right)}\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        4. distribute-lft-inN/A

          \[\leadsto \color{blue}{\left(\left(-1 \cdot b\right) \cdot \left(c \cdot z\right) + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)\right)} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        5. associate-*r*N/A

          \[\leadsto \left(\color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)} + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        6. mul-1-negN/A

          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)} + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        7. distribute-rgt-neg-inN/A

          \[\leadsto \left(\color{blue}{b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right)} + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        8. mul-1-negN/A

          \[\leadsto \left(b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(-1 \cdot b\right) \cdot \color{blue}{\left(\mathsf{neg}\left(i \cdot t\right)\right)}\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        9. distribute-rgt-neg-inN/A

          \[\leadsto \left(b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(-1 \cdot b\right) \cdot \left(i \cdot t\right)\right)\right)}\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        10. associate-*r*N/A

          \[\leadsto \left(b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\color{blue}{-1 \cdot \left(b \cdot \left(i \cdot t\right)\right)}\right)\right)\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        11. mul-1-negN/A

          \[\leadsto \left(b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot \left(i \cdot t\right)\right)\right)}\right)\right)\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        12. remove-double-negN/A

          \[\leadsto \left(b \cdot \left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{b \cdot \left(i \cdot t\right)}\right) + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        13. distribute-lft-inN/A

          \[\leadsto \color{blue}{b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + i \cdot t\right)} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        14. *-commutativeN/A

          \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + i \cdot t\right) \cdot b} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        15. mul-1-negN/A

          \[\leadsto \left(\color{blue}{-1 \cdot \left(c \cdot z\right)} + i \cdot t\right) \cdot b + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
        16. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z\right) + i \cdot t\right) \cdot b} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]
      7. Applied rewrites76.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b} + \frac{j}{\frac{1}{\mathsf{fma}\left(-i, y, c \cdot a\right)}} \]

      if -2.05e11 < i < 0.047

      1. Initial program 75.8%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around 0

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

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

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

          \[\leadsto a \cdot \left(c \cdot j\right) + \color{blue}{\left(\left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
        4. associate-+r+N/A

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

          \[\leadsto \left(a \cdot \color{blue}{\left(j \cdot c\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        6. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(a \cdot j\right) \cdot c} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        7. *-commutativeN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \left(\mathsf{neg}\left(\color{blue}{\left(b \cdot z\right) \cdot c}\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        9. distribute-lft-neg-outN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \cdot c\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        11. distribute-rgt-inN/A

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

          \[\leadsto c \cdot \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        13. sub-negN/A

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot j - b \cdot z, c, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
      5. Applied rewrites73.7%

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

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

    Alternative 3: 69.1% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{if}\;i \leq -3.1 \cdot 10^{+155}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -225000000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;i \leq 2 \cdot 10^{+122}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- y) j (* b t)) i)))
       (if (<= i -3.1e+155)
         t_1
         (if (<= i -225000000000.0)
           (fma (fma (- t) x (* j c)) a (* (fma (- c) z (* i t)) b))
           (if (<= i 2e+122)
             (fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
             t_1)))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = fma(-y, j, (b * t)) * i;
    	double tmp;
    	if (i <= -3.1e+155) {
    		tmp = t_1;
    	} else if (i <= -225000000000.0) {
    		tmp = fma(fma(-t, x, (j * c)), a, (fma(-c, z, (i * t)) * b));
    	} else if (i <= 2e+122) {
    		tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-y), j, Float64(b * t)) * i)
    	tmp = 0.0
    	if (i <= -3.1e+155)
    		tmp = t_1;
    	elseif (i <= -225000000000.0)
    		tmp = fma(fma(Float64(-t), x, Float64(j * c)), a, Float64(fma(Float64(-c), z, Float64(i * t)) * b));
    	elseif (i <= 2e+122)
    		tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -3.1e+155], t$95$1, If[LessEqual[i, -225000000000.0], N[(N[((-t) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e+122], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
    \mathbf{if}\;i \leq -3.1 \cdot 10^{+155}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;i \leq -225000000000:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
    
    \mathbf{elif}\;i \leq 2 \cdot 10^{+122}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if i < -3.09999999999999989e155 or 2.00000000000000003e122 < i

      1. Initial program 69.9%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around inf

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        3. sub-negN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
        4. *-commutativeN/A

          \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
        5. associate-*r*N/A

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

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
        7. remove-double-negN/A

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
        8. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
        9. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
        10. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
        11. lower-*.f6485.7

          \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
      5. Applied rewrites85.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]

      if -3.09999999999999989e155 < i < -2.25e11

      1. Initial program 76.3%

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

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

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

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

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

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
        8. flip--N/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        10. lower-/.f6476.3

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        12. sub-negN/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
        14. lift-*.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
        15. *-commutativeN/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
        18. lower-neg.f6476.3

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
      6. Step-by-step derivation
        1. sub-negN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
        2. mul-1-negN/A

          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t \cdot x\right)\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        3. distribute-rgt-neg-inN/A

          \[\leadsto \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        4. mul-1-negN/A

          \[\leadsto \left(a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        5. distribute-lft-inN/A

          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        6. *-commutativeN/A

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t \cdot x\right) + c \cdot j, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
        8. associate-*r*N/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot t, x, c \cdot j\right)}, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        10. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        11. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-t}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        12. lower-*.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, \color{blue}{c \cdot j}\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        13. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
        14. associate-*r*N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z - i \cdot t\right)}\right) \]
        15. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)}\right) \]
        16. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(i \cdot t\right)}\right)\right) \]
        17. distribute-lft-inN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right) + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)}\right) \]
      7. Applied rewrites76.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]

      if -2.25e11 < i < 2.00000000000000003e122

      1. Initial program 75.3%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around 0

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

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

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

          \[\leadsto a \cdot \left(c \cdot j\right) + \color{blue}{\left(\left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
        4. associate-+r+N/A

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

          \[\leadsto \left(a \cdot \color{blue}{\left(j \cdot c\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        6. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(a \cdot j\right) \cdot c} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        7. *-commutativeN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \left(\mathsf{neg}\left(\color{blue}{\left(b \cdot z\right) \cdot c}\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        9. distribute-lft-neg-outN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \cdot c\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        11. distribute-rgt-inN/A

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

          \[\leadsto c \cdot \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        13. sub-negN/A

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot j - b \cdot z, c, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
      5. Applied rewrites71.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)} \]
    3. Recombined 3 regimes into one program.
    4. Final simplification75.9%

      \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.1 \cdot 10^{+155}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -225000000000:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, x, j \cdot c\right), a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;i \leq 2 \cdot 10^{+122}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \end{array} \]
    5. Add Preprocessing

    Alternative 4: 68.8% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{if}\;i \leq -1.1 \cdot 10^{+67}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 2 \cdot 10^{+122}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- y) j (* b t)) i)))
       (if (<= i -1.1e+67)
         t_1
         (if (<= i 2e+122)
           (fma (fma (- z) b (* j a)) c (* (fma (- t) a (* z y)) x))
           t_1))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = fma(-y, j, (b * t)) * i;
    	double tmp;
    	if (i <= -1.1e+67) {
    		tmp = t_1;
    	} else if (i <= 2e+122) {
    		tmp = fma(fma(-z, b, (j * a)), c, (fma(-t, a, (z * y)) * x));
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-y), j, Float64(b * t)) * i)
    	tmp = 0.0
    	if (i <= -1.1e+67)
    		tmp = t_1;
    	elseif (i <= 2e+122)
    		tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -1.1e+67], t$95$1, If[LessEqual[i, 2e+122], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
    \mathbf{if}\;i \leq -1.1 \cdot 10^{+67}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;i \leq 2 \cdot 10^{+122}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if i < -1.1e67 or 2.00000000000000003e122 < i

      1. Initial program 69.4%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around inf

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      4. Step-by-step derivation
        1. *-commutativeN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        2. lower-*.f64N/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
        3. sub-negN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
        4. *-commutativeN/A

          \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
        5. associate-*r*N/A

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

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
        7. remove-double-negN/A

          \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
        8. lower-fma.f64N/A

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
        9. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
        10. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
        11. lower-*.f6481.1

          \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
      5. Applied rewrites81.1%

        \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]

      if -1.1e67 < i < 2.00000000000000003e122

      1. Initial program 76.3%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in i around 0

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

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

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

          \[\leadsto a \cdot \left(c \cdot j\right) + \color{blue}{\left(\left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
        4. associate-+r+N/A

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

          \[\leadsto \left(a \cdot \color{blue}{\left(j \cdot c\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        6. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(a \cdot j\right) \cdot c} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        7. *-commutativeN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \left(\mathsf{neg}\left(\color{blue}{\left(b \cdot z\right) \cdot c}\right)\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        9. distribute-lft-neg-outN/A

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

          \[\leadsto \left(\left(a \cdot j\right) \cdot c + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \cdot c\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        11. distribute-rgt-inN/A

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

          \[\leadsto c \cdot \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
        13. sub-negN/A

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot j - b \cdot z, c, x \cdot \left(y \cdot z - a \cdot t\right)\right)} \]
      5. Applied rewrites70.4%

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

    Alternative 5: 61.3% accurate, 1.4× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{if}\;b \leq -8.2 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 210:\\ \;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (fma (* (- x) t) a (* (fma (- c) z (* i t)) b))))
       (if (<= b -8.2e+100)
         t_1
         (if (<= b 210.0) (+ (* (* z x) y) (* (- (* c a) (* i y)) j)) t_1))))
    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
    	double t_1 = fma((-x * t), a, (fma(-c, z, (i * t)) * b));
    	double tmp;
    	if (b <= -8.2e+100) {
    		tmp = t_1;
    	} else if (b <= 210.0) {
    		tmp = ((z * x) * y) + (((c * a) - (i * y)) * j);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = fma(Float64(Float64(-x) * t), a, Float64(fma(Float64(-c), z, Float64(i * t)) * b))
    	tmp = 0.0
    	if (b <= -8.2e+100)
    		tmp = t_1;
    	elseif (b <= 210.0)
    		tmp = Float64(Float64(Float64(z * x) * y) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t), $MachinePrecision] * a + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e+100], t$95$1, If[LessEqual[b, 210.0], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
    \mathbf{if}\;b \leq -8.2 \cdot 10^{+100}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;b \leq 210:\\
    \;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if b < -8.2000000000000006e100 or 210 < b

      1. Initial program 71.2%

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

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

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

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

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

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
        8. flip--N/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        10. lower-/.f6471.2

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
        12. sub-negN/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
        14. lift-*.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
        15. *-commutativeN/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
        18. lower-neg.f6471.2

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
      6. Step-by-step derivation
        1. sub-negN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
        2. mul-1-negN/A

          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t \cdot x\right)\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        3. distribute-rgt-neg-inN/A

          \[\leadsto \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        4. mul-1-negN/A

          \[\leadsto \left(a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        5. distribute-lft-inN/A

          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        6. *-commutativeN/A

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t \cdot x\right) + c \cdot j, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
        8. associate-*r*N/A

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot t, x, c \cdot j\right)}, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        10. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        11. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-t}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        12. lower-*.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, \color{blue}{c \cdot j}\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
        13. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
        14. associate-*r*N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z - i \cdot t\right)}\right) \]
        15. sub-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)}\right) \]
        16. mul-1-negN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(i \cdot t\right)}\right)\right) \]
        17. distribute-lft-inN/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right) + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)}\right) \]
      7. Applied rewrites77.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
      8. Taylor expanded in x around inf

        \[\leadsto \mathsf{fma}\left(-1 \cdot \left(t \cdot x\right), a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right) \]
      9. Step-by-step derivation
        1. Applied rewrites76.2%

          \[\leadsto \mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right) \]

        if -8.2000000000000006e100 < b < 210

        1. Initial program 75.7%

          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
        2. Add Preprocessing
        3. Taylor expanded in y around inf

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

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

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

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

            \[\leadsto \color{blue}{\left(z \cdot x\right)} \cdot y + j \cdot \left(c \cdot a - y \cdot i\right) \]
          5. lower-*.f6469.0

            \[\leadsto \color{blue}{\left(z \cdot x\right)} \cdot y + j \cdot \left(c \cdot a - y \cdot i\right) \]
        5. Applied rewrites69.0%

          \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. Recombined 2 regimes into one program.
      11. Final simplification72.0%

        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.2 \cdot 10^{+100}:\\ \;\;\;\;\mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{elif}\;b \leq 210:\\ \;\;\;\;\left(z \cdot x\right) \cdot y + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \end{array} \]
      12. Add Preprocessing

      Alternative 6: 59.2% accurate, 1.4× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{if}\;j \leq -5.7 \cdot 10^{+78}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 1.3 \cdot 10^{+174}:\\ \;\;\;\;\mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i j)
       :precision binary64
       (let* ((t_1 (* (fma (- i) y (* c a)) j)))
         (if (<= j -5.7e+78)
           t_1
           (if (<= j 1.3e+174)
             (fma (* (- x) t) a (* (fma (- c) z (* i t)) b))
             t_1))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
      	double t_1 = fma(-i, y, (c * a)) * j;
      	double tmp;
      	if (j <= -5.7e+78) {
      		tmp = t_1;
      	} else if (j <= 1.3e+174) {
      		tmp = fma((-x * t), a, (fma(-c, z, (i * t)) * b));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j)
      	tmp = 0.0
      	if (j <= -5.7e+78)
      		tmp = t_1;
      	elseif (j <= 1.3e+174)
      		tmp = fma(Float64(Float64(-x) * t), a, Float64(fma(Float64(-c), z, Float64(i * t)) * b));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -5.7e+78], t$95$1, If[LessEqual[j, 1.3e+174], N[(N[((-x) * t), $MachinePrecision] * a + N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
      \mathbf{if}\;j \leq -5.7 \cdot 10^{+78}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;j \leq 1.3 \cdot 10^{+174}:\\
      \;\;\;\;\mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if j < -5.69999999999999986e78 or 1.2999999999999999e174 < j

        1. Initial program 76.3%

          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
        2. Add Preprocessing
        3. Taylor expanded in x around -inf

          \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
        4. Applied rewrites74.1%

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

          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
        6. Step-by-step derivation
          1. *-commutativeN/A

            \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
          2. sub-negN/A

            \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
          3. mul-1-negN/A

            \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
          4. +-commutativeN/A

            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
          5. lower-*.f64N/A

            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) \cdot j} \]
          6. associate-*r*N/A

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
          9. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
          11. lower-*.f6479.8

            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
        7. Applied rewrites79.8%

          \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]

        if -5.69999999999999986e78 < j < 1.2999999999999999e174

        1. Initial program 72.8%

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

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

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

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

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

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

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
          8. flip--N/A

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
          10. lower-/.f6472.8

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
          12. sub-negN/A

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
          14. lift-*.f64N/A

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
          15. *-commutativeN/A

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

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
          18. lower-neg.f6472.8

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

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

          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
        6. Step-by-step derivation
          1. sub-negN/A

            \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
          2. mul-1-negN/A

            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot \left(t \cdot x\right)\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          3. distribute-rgt-neg-inN/A

            \[\leadsto \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          4. mul-1-negN/A

            \[\leadsto \left(a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} + a \cdot \left(c \cdot j\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          5. distribute-lft-inN/A

            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          6. *-commutativeN/A

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(t \cdot x\right) + c \cdot j, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
          8. associate-*r*N/A

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot t, x, c \cdot j\right)}, a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          10. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          11. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-t}, x, c \cdot j\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          12. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, \color{blue}{c \cdot j}\right), a, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
          13. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
          14. associate-*r*N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z - i \cdot t\right)}\right) \]
          15. sub-negN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)}\right) \]
          16. mul-1-negN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \left(-1 \cdot b\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(i \cdot t\right)}\right)\right) \]
          17. distribute-lft-inN/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right) + \left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right)}\right) \]
        7. Applied rewrites63.9%

          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-t, x, c \cdot j\right), a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
        8. Taylor expanded in x around inf

          \[\leadsto \mathsf{fma}\left(-1 \cdot \left(t \cdot x\right), a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right) \]
        9. Step-by-step derivation
          1. Applied rewrites58.5%

            \[\leadsto \mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right) \]
        10. Recombined 2 regimes into one program.
        11. Final simplification64.7%

          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -5.7 \cdot 10^{+78}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;j \leq 1.3 \cdot 10^{+174}:\\ \;\;\;\;\mathsf{fma}\left(\left(-x\right) \cdot t, a, \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \end{array} \]
        12. Add Preprocessing

        Alternative 7: 53.0% accurate, 1.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{if}\;i \leq -1.3 \cdot 10^{+19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -2.1 \cdot 10^{-231}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;i \leq 2.2 \cdot 10^{+59}:\\ \;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (let* ((t_1 (* (fma (- y) j (* b t)) i)))
           (if (<= i -1.3e+19)
             t_1
             (if (<= i -2.1e-231)
               (* (fma (- t) a (* z y)) x)
               (if (<= i 2.2e+59) (* (fma (- z) b (* j a)) c) t_1)))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double t_1 = fma(-y, j, (b * t)) * i;
        	double tmp;
        	if (i <= -1.3e+19) {
        		tmp = t_1;
        	} else if (i <= -2.1e-231) {
        		tmp = fma(-t, a, (z * y)) * x;
        	} else if (i <= 2.2e+59) {
        		tmp = fma(-z, b, (j * a)) * c;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(fma(Float64(-y), j, Float64(b * t)) * i)
        	tmp = 0.0
        	if (i <= -1.3e+19)
        		tmp = t_1;
        	elseif (i <= -2.1e-231)
        		tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x);
        	elseif (i <= 2.2e+59)
        		tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -1.3e+19], t$95$1, If[LessEqual[i, -2.1e-231], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[i, 2.2e+59], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
        \mathbf{if}\;i \leq -1.3 \cdot 10^{+19}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;i \leq -2.1 \cdot 10^{-231}:\\
        \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
        
        \mathbf{elif}\;i \leq 2.2 \cdot 10^{+59}:\\
        \;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if i < -1.3e19 or 2.2e59 < i

          1. Initial program 72.2%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in i around inf

            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
            2. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
            3. sub-negN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
            4. *-commutativeN/A

              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
            5. associate-*r*N/A

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

              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
            7. remove-double-negN/A

              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
            8. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
            9. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
            10. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
            11. lower-*.f6475.7

              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
          5. Applied rewrites75.7%

            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]

          if -1.3e19 < i < -2.09999999999999989e-231

          1. Initial program 81.4%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in x around -inf

            \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
          4. Applied rewrites73.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.09999999999999989e-231 < i < 2.2e59

          1. Initial program 71.9%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in c around inf

            \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
            2. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
            3. sub-negN/A

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

              \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
            5. +-commutativeN/A

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

              \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
            7. associate-*r*N/A

              \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
            8. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
            9. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
            10. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
            11. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
            12. lower-*.f6452.4

              \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
          5. Applied rewrites52.4%

            \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
        3. Recombined 3 regimes into one program.
        4. Final simplification62.9%

          \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.3 \cdot 10^{+19}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -2.1 \cdot 10^{-231}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;i \leq 2.2 \cdot 10^{+59}:\\ \;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \end{array} \]
        5. Add Preprocessing

        Alternative 8: 52.3% accurate, 1.6× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{if}\;i \leq -1.04 \cdot 10^{+21}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 6.8 \cdot 10^{-305}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{elif}\;i \leq 1.55 \cdot 10^{+122}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (let* ((t_1 (* (fma (- y) j (* b t)) i)))
           (if (<= i -1.04e+21)
             t_1
             (if (<= i 6.8e-305)
               (* (fma (- x) t (* j c)) a)
               (if (<= i 1.55e+122) (* (fma (- c) b (* y x)) z) t_1)))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double t_1 = fma(-y, j, (b * t)) * i;
        	double tmp;
        	if (i <= -1.04e+21) {
        		tmp = t_1;
        	} else if (i <= 6.8e-305) {
        		tmp = fma(-x, t, (j * c)) * a;
        	} else if (i <= 1.55e+122) {
        		tmp = fma(-c, b, (y * x)) * z;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(fma(Float64(-y), j, Float64(b * t)) * i)
        	tmp = 0.0
        	if (i <= -1.04e+21)
        		tmp = t_1;
        	elseif (i <= 6.8e-305)
        		tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a);
        	elseif (i <= 1.55e+122)
        		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -1.04e+21], t$95$1, If[LessEqual[i, 6.8e-305], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[i, 1.55e+122], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
        \mathbf{if}\;i \leq -1.04 \cdot 10^{+21}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;i \leq 6.8 \cdot 10^{-305}:\\
        \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
        
        \mathbf{elif}\;i \leq 1.55 \cdot 10^{+122}:\\
        \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if i < -1.04e21 or 1.54999999999999999e122 < i

          1. Initial program 71.5%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in i around inf

            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
          4. Step-by-step derivation
            1. *-commutativeN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
            2. lower-*.f64N/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
            3. sub-negN/A

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
            4. *-commutativeN/A

              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
            5. associate-*r*N/A

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

              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
            7. remove-double-negN/A

              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
            8. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
            9. mul-1-negN/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
            10. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
            11. lower-*.f6479.4

              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
          5. Applied rewrites79.4%

            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]

          if -1.04e21 < i < 6.8000000000000001e-305

          1. Initial program 75.2%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in a around inf

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, t, c \cdot j\right) \cdot a \]
            7. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, t, c \cdot j\right) \cdot a \]
            8. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
            9. lower-*.f6455.0

              \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
          5. Applied rewrites55.0%

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

          if 6.8000000000000001e-305 < i < 1.54999999999999999e122

          1. Initial program 75.3%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in z around inf

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

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

              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
            3. sub-negN/A

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

              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
            5. +-commutativeN/A

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

              \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
            7. associate-*r*N/A

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
            9. neg-mul-1N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
            10. lower-neg.f64N/A

              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
            11. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
            12. lower-*.f6450.0

              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
          5. Applied rewrites50.0%

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

        Alternative 9: 29.4% accurate, 1.7× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot x\right) \cdot y\\ \mathbf{if}\;z \leq -1.02 \cdot 10^{+195}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -5 \cdot 10^{+24}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-220}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{elif}\;z \leq 4200:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (let* ((t_1 (* (* z x) y)))
           (if (<= z -1.02e+195)
             t_1
             (if (<= z -5e+24)
               (* (* (- c) b) z)
               (if (<= z 1.45e-220)
                 (* (* (- j) i) y)
                 (if (<= z 4200.0) (* (* j a) c) t_1))))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double t_1 = (z * x) * y;
        	double tmp;
        	if (z <= -1.02e+195) {
        		tmp = t_1;
        	} else if (z <= -5e+24) {
        		tmp = (-c * b) * z;
        	} else if (z <= 1.45e-220) {
        		tmp = (-j * i) * y;
        	} else if (z <= 4200.0) {
        		tmp = (j * a) * c;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        real(8) function code(x, y, z, t, a, b, c, i, j)
            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), intent (in) :: b
            real(8), intent (in) :: c
            real(8), intent (in) :: i
            real(8), intent (in) :: j
            real(8) :: t_1
            real(8) :: tmp
            t_1 = (z * x) * y
            if (z <= (-1.02d+195)) then
                tmp = t_1
            else if (z <= (-5d+24)) then
                tmp = (-c * b) * z
            else if (z <= 1.45d-220) then
                tmp = (-j * i) * y
            else if (z <= 4200.0d0) then
                tmp = (j * a) * c
            else
                tmp = t_1
            end if
            code = tmp
        end function
        
        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double t_1 = (z * x) * y;
        	double tmp;
        	if (z <= -1.02e+195) {
        		tmp = t_1;
        	} else if (z <= -5e+24) {
        		tmp = (-c * b) * z;
        	} else if (z <= 1.45e-220) {
        		tmp = (-j * i) * y;
        	} else if (z <= 4200.0) {
        		tmp = (j * a) * c;
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        def code(x, y, z, t, a, b, c, i, j):
        	t_1 = (z * x) * y
        	tmp = 0
        	if z <= -1.02e+195:
        		tmp = t_1
        	elif z <= -5e+24:
        		tmp = (-c * b) * z
        	elif z <= 1.45e-220:
        		tmp = (-j * i) * y
        	elif z <= 4200.0:
        		tmp = (j * a) * c
        	else:
        		tmp = t_1
        	return tmp
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(Float64(z * x) * y)
        	tmp = 0.0
        	if (z <= -1.02e+195)
        		tmp = t_1;
        	elseif (z <= -5e+24)
        		tmp = Float64(Float64(Float64(-c) * b) * z);
        	elseif (z <= 1.45e-220)
        		tmp = Float64(Float64(Float64(-j) * i) * y);
        	elseif (z <= 4200.0)
        		tmp = Float64(Float64(j * a) * c);
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
        	t_1 = (z * x) * y;
        	tmp = 0.0;
        	if (z <= -1.02e+195)
        		tmp = t_1;
        	elseif (z <= -5e+24)
        		tmp = (-c * b) * z;
        	elseif (z <= 1.45e-220)
        		tmp = (-j * i) * y;
        	elseif (z <= 4200.0)
        		tmp = (j * a) * c;
        	else
        		tmp = t_1;
        	end
        	tmp_2 = tmp;
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[z, -1.02e+195], t$95$1, If[LessEqual[z, -5e+24], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 1.45e-220], N[(N[((-j) * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 4200.0], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \left(z \cdot x\right) \cdot y\\
        \mathbf{if}\;z \leq -1.02 \cdot 10^{+195}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;z \leq -5 \cdot 10^{+24}:\\
        \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
        
        \mathbf{elif}\;z \leq 1.45 \cdot 10^{-220}:\\
        \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\
        
        \mathbf{elif}\;z \leq 4200:\\
        \;\;\;\;\left(j \cdot a\right) \cdot c\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 4 regimes
        2. if z < -1.02e195 or 4200 < z

          1. Initial program 63.8%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          2. Add Preprocessing
          3. Taylor expanded in y around inf

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

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

              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
            3. associate-*r*N/A

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
            5. neg-mul-1N/A

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

              \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
            7. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
            8. lower-*.f6457.0

              \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
          5. Applied rewrites57.0%

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

            \[\leadsto \left(x \cdot z\right) \cdot y \]
          7. Step-by-step derivation
            1. Applied rewrites51.4%

              \[\leadsto \left(z \cdot x\right) \cdot y \]

            if -1.02e195 < z < -5.00000000000000045e24

            1. Initial program 73.3%

              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
            2. Add Preprocessing
            3. Taylor expanded in z around inf

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

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

                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
              3. sub-negN/A

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

                \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
              5. +-commutativeN/A

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

                \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
              7. associate-*r*N/A

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
              9. neg-mul-1N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
              10. lower-neg.f64N/A

                \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
              11. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
              12. lower-*.f6450.1

                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
            5. Applied rewrites50.1%

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

              \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
            7. Step-by-step derivation
              1. Applied rewrites36.7%

                \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot z \]

              if -5.00000000000000045e24 < z < 1.4499999999999999e-220

              1. Initial program 81.1%

                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
              2. Add Preprocessing
              3. Taylor expanded in y around inf

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

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

                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                3. associate-*r*N/A

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                5. neg-mul-1N/A

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

                  \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                7. *-commutativeN/A

                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                8. lower-*.f6444.5

                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
              5. Applied rewrites44.5%

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

                \[\leadsto \left(-1 \cdot \left(i \cdot j\right)\right) \cdot y \]
              7. Step-by-step derivation
                1. Applied rewrites42.1%

                  \[\leadsto \left(\left(-j\right) \cdot i\right) \cdot y \]

                if 1.4499999999999999e-220 < z < 4200

                1. Initial program 79.6%

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

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

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

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

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

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

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
                  8. flip--N/A

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                  10. lower-/.f6479.7

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                  12. sub-negN/A

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
                  14. lift-*.f64N/A

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
                  15. *-commutativeN/A

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

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

                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
                  18. lower-neg.f6479.7

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

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

                  \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                6. Step-by-step derivation
                  1. *-commutativeN/A

                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                  2. lower-*.f64N/A

                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                  3. sub-negN/A

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \cdot c \]
                  6. mul-1-negN/A

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \cdot c \]
                  7. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \cdot c \]
                  8. distribute-lft-neg-inN/A

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot b}\right) \cdot c \]
                  9. mul-1-negN/A

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right)} \cdot b\right) \cdot c \]
                  10. lower-*.f64N/A

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right) \cdot b}\right) \cdot c \]
                  11. mul-1-negN/A

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \cdot b\right) \cdot c \]
                  12. lower-neg.f6438.8

                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-z\right)} \cdot b\right) \cdot c \]
                7. Applied rewrites38.8%

                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, \left(-z\right) \cdot b\right) \cdot c} \]
                8. Taylor expanded in z around 0

                  \[\leadsto \left(a \cdot j\right) \cdot c \]
                9. Step-by-step derivation
                  1. Applied rewrites36.6%

                    \[\leadsto \left(j \cdot a\right) \cdot c \]
                10. Recombined 4 regimes into one program.
                11. Final simplification43.6%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.02 \cdot 10^{+195}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;z \leq -5 \cdot 10^{+24}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 1.45 \cdot 10^{-220}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{elif}\;z \leq 4200:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                12. Add Preprocessing

                Alternative 10: 30.1% accurate, 1.7× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.56 \cdot 10^{+103}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 54:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i j)
                 :precision binary64
                 (if (<= b -1.56e+103)
                   (* (* (- c) b) z)
                   (if (<= b -5.6e-185)
                     (* (* y x) z)
                     (if (<= b 2.1e-152)
                       (* (* j a) c)
                       (if (<= b 54.0) (* (* z x) y) (* (* b t) i))))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                	double tmp;
                	if (b <= -1.56e+103) {
                		tmp = (-c * b) * z;
                	} else if (b <= -5.6e-185) {
                		tmp = (y * x) * z;
                	} else if (b <= 2.1e-152) {
                		tmp = (j * a) * c;
                	} else if (b <= 54.0) {
                		tmp = (z * x) * y;
                	} else {
                		tmp = (b * t) * i;
                	}
                	return tmp;
                }
                
                real(8) function code(x, y, z, t, a, b, c, i, j)
                    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), intent (in) :: b
                    real(8), intent (in) :: c
                    real(8), intent (in) :: i
                    real(8), intent (in) :: j
                    real(8) :: tmp
                    if (b <= (-1.56d+103)) then
                        tmp = (-c * b) * z
                    else if (b <= (-5.6d-185)) then
                        tmp = (y * x) * z
                    else if (b <= 2.1d-152) then
                        tmp = (j * a) * c
                    else if (b <= 54.0d0) then
                        tmp = (z * x) * y
                    else
                        tmp = (b * t) * i
                    end if
                    code = tmp
                end function
                
                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                	double tmp;
                	if (b <= -1.56e+103) {
                		tmp = (-c * b) * z;
                	} else if (b <= -5.6e-185) {
                		tmp = (y * x) * z;
                	} else if (b <= 2.1e-152) {
                		tmp = (j * a) * c;
                	} else if (b <= 54.0) {
                		tmp = (z * x) * y;
                	} else {
                		tmp = (b * t) * i;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b, c, i, j):
                	tmp = 0
                	if b <= -1.56e+103:
                		tmp = (-c * b) * z
                	elif b <= -5.6e-185:
                		tmp = (y * x) * z
                	elif b <= 2.1e-152:
                		tmp = (j * a) * c
                	elif b <= 54.0:
                		tmp = (z * x) * y
                	else:
                		tmp = (b * t) * i
                	return tmp
                
                function code(x, y, z, t, a, b, c, i, j)
                	tmp = 0.0
                	if (b <= -1.56e+103)
                		tmp = Float64(Float64(Float64(-c) * b) * z);
                	elseif (b <= -5.6e-185)
                		tmp = Float64(Float64(y * x) * z);
                	elseif (b <= 2.1e-152)
                		tmp = Float64(Float64(j * a) * c);
                	elseif (b <= 54.0)
                		tmp = Float64(Float64(z * x) * y);
                	else
                		tmp = Float64(Float64(b * t) * i);
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                	tmp = 0.0;
                	if (b <= -1.56e+103)
                		tmp = (-c * b) * z;
                	elseif (b <= -5.6e-185)
                		tmp = (y * x) * z;
                	elseif (b <= 2.1e-152)
                		tmp = (j * a) * c;
                	elseif (b <= 54.0)
                		tmp = (z * x) * y;
                	else
                		tmp = (b * t) * i;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.56e+103], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, -5.6e-185], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 2.1e-152], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 54.0], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                \mathbf{if}\;b \leq -1.56 \cdot 10^{+103}:\\
                \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
                
                \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\
                \;\;\;\;\left(y \cdot x\right) \cdot z\\
                
                \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\
                \;\;\;\;\left(j \cdot a\right) \cdot c\\
                
                \mathbf{elif}\;b \leq 54:\\
                \;\;\;\;\left(z \cdot x\right) \cdot y\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(b \cdot t\right) \cdot i\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 5 regimes
                2. if b < -1.5599999999999999e103

                  1. Initial program 72.2%

                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                  2. Add Preprocessing
                  3. Taylor expanded in z around inf

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

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

                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                    3. sub-negN/A

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

                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                    5. +-commutativeN/A

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

                      \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                    7. associate-*r*N/A

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                    9. neg-mul-1N/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                    10. lower-neg.f64N/A

                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                    11. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                    12. lower-*.f6458.8

                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                  5. Applied rewrites58.8%

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

                    \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
                  7. Step-by-step derivation
                    1. Applied rewrites45.1%

                      \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot z \]

                    if -1.5599999999999999e103 < b < -5.59999999999999983e-185

                    1. Initial program 71.2%

                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                    2. Add Preprocessing
                    3. Taylor expanded in z around inf

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

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

                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                      3. sub-negN/A

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

                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                      5. +-commutativeN/A

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

                        \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                      7. associate-*r*N/A

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                      9. neg-mul-1N/A

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                      10. lower-neg.f64N/A

                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                      11. *-commutativeN/A

                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                      12. lower-*.f6447.5

                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                    5. Applied rewrites47.5%

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

                      \[\leadsto \left(x \cdot y\right) \cdot z \]
                    7. Step-by-step derivation
                      1. Applied rewrites36.5%

                        \[\leadsto \left(x \cdot y\right) \cdot z \]

                      if -5.59999999999999983e-185 < b < 2.09999999999999999e-152

                      1. Initial program 78.6%

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

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

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

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

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

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

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

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
                        8. flip--N/A

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

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                        10. lower-/.f6478.6

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

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                        12. sub-negN/A

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

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
                        14. lift-*.f64N/A

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
                        15. *-commutativeN/A

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

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

                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
                        18. lower-neg.f6478.6

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

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

                        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                      6. Step-by-step derivation
                        1. *-commutativeN/A

                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                        2. lower-*.f64N/A

                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                        3. sub-negN/A

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

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \cdot c \]
                        6. mul-1-negN/A

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \cdot c \]
                        7. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \cdot c \]
                        8. distribute-lft-neg-inN/A

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot b}\right) \cdot c \]
                        9. mul-1-negN/A

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right)} \cdot b\right) \cdot c \]
                        10. lower-*.f64N/A

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right) \cdot b}\right) \cdot c \]
                        11. mul-1-negN/A

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \cdot b\right) \cdot c \]
                        12. lower-neg.f6440.9

                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-z\right)} \cdot b\right) \cdot c \]
                      7. Applied rewrites40.9%

                        \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, \left(-z\right) \cdot b\right) \cdot c} \]
                      8. Taylor expanded in z around 0

                        \[\leadsto \left(a \cdot j\right) \cdot c \]
                      9. Step-by-step derivation
                        1. Applied rewrites37.6%

                          \[\leadsto \left(j \cdot a\right) \cdot c \]

                        if 2.09999999999999999e-152 < b < 54

                        1. Initial program 80.2%

                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                        2. Add Preprocessing
                        3. Taylor expanded in y around inf

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

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

                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                          3. associate-*r*N/A

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

                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                          5. neg-mul-1N/A

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

                            \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                          7. *-commutativeN/A

                            \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                          8. lower-*.f6465.4

                            \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                        5. Applied rewrites65.4%

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

                          \[\leadsto \left(x \cdot z\right) \cdot y \]
                        7. Step-by-step derivation
                          1. Applied rewrites49.8%

                            \[\leadsto \left(z \cdot x\right) \cdot y \]

                          if 54 < b

                          1. Initial program 70.5%

                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                          2. Add Preprocessing
                          3. Taylor expanded in i around inf

                            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                          4. Step-by-step derivation
                            1. *-commutativeN/A

                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                            2. lower-*.f64N/A

                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                            3. sub-negN/A

                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                            4. *-commutativeN/A

                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                            5. associate-*r*N/A

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

                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                            7. remove-double-negN/A

                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                            8. lower-fma.f64N/A

                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                            9. mul-1-negN/A

                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                            10. lower-neg.f64N/A

                              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                            11. lower-*.f6456.7

                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                          5. Applied rewrites56.7%

                            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                          6. Taylor expanded in y around 0

                            \[\leadsto \left(b \cdot t\right) \cdot i \]
                          7. Step-by-step derivation
                            1. Applied rewrites49.7%

                              \[\leadsto \left(b \cdot t\right) \cdot i \]
                          8. Recombined 5 regimes into one program.
                          9. Final simplification42.8%

                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.56 \cdot 10^{+103}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 54:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \]
                          10. Add Preprocessing

                          Alternative 11: 29.8% accurate, 1.7× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -4 \cdot 10^{+122}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 54:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i j)
                           :precision binary64
                           (if (<= b -4e+122)
                             (* (* i b) t)
                             (if (<= b -5.6e-185)
                               (* (* y x) z)
                               (if (<= b 2.1e-152)
                                 (* (* j a) c)
                                 (if (<= b 54.0) (* (* z x) y) (* (* b t) i))))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double tmp;
                          	if (b <= -4e+122) {
                          		tmp = (i * b) * t;
                          	} else if (b <= -5.6e-185) {
                          		tmp = (y * x) * z;
                          	} else if (b <= 2.1e-152) {
                          		tmp = (j * a) * c;
                          	} else if (b <= 54.0) {
                          		tmp = (z * x) * y;
                          	} else {
                          		tmp = (b * t) * i;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a, b, c, i, j)
                              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), intent (in) :: b
                              real(8), intent (in) :: c
                              real(8), intent (in) :: i
                              real(8), intent (in) :: j
                              real(8) :: tmp
                              if (b <= (-4d+122)) then
                                  tmp = (i * b) * t
                              else if (b <= (-5.6d-185)) then
                                  tmp = (y * x) * z
                              else if (b <= 2.1d-152) then
                                  tmp = (j * a) * c
                              else if (b <= 54.0d0) then
                                  tmp = (z * x) * y
                              else
                                  tmp = (b * t) * i
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double tmp;
                          	if (b <= -4e+122) {
                          		tmp = (i * b) * t;
                          	} else if (b <= -5.6e-185) {
                          		tmp = (y * x) * z;
                          	} else if (b <= 2.1e-152) {
                          		tmp = (j * a) * c;
                          	} else if (b <= 54.0) {
                          		tmp = (z * x) * y;
                          	} else {
                          		tmp = (b * t) * i;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b, c, i, j):
                          	tmp = 0
                          	if b <= -4e+122:
                          		tmp = (i * b) * t
                          	elif b <= -5.6e-185:
                          		tmp = (y * x) * z
                          	elif b <= 2.1e-152:
                          		tmp = (j * a) * c
                          	elif b <= 54.0:
                          		tmp = (z * x) * y
                          	else:
                          		tmp = (b * t) * i
                          	return tmp
                          
                          function code(x, y, z, t, a, b, c, i, j)
                          	tmp = 0.0
                          	if (b <= -4e+122)
                          		tmp = Float64(Float64(i * b) * t);
                          	elseif (b <= -5.6e-185)
                          		tmp = Float64(Float64(y * x) * z);
                          	elseif (b <= 2.1e-152)
                          		tmp = Float64(Float64(j * a) * c);
                          	elseif (b <= 54.0)
                          		tmp = Float64(Float64(z * x) * y);
                          	else
                          		tmp = Float64(Float64(b * t) * i);
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                          	tmp = 0.0;
                          	if (b <= -4e+122)
                          		tmp = (i * b) * t;
                          	elseif (b <= -5.6e-185)
                          		tmp = (y * x) * z;
                          	elseif (b <= 2.1e-152)
                          		tmp = (j * a) * c;
                          	elseif (b <= 54.0)
                          		tmp = (z * x) * y;
                          	else
                          		tmp = (b * t) * i;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4e+122], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, -5.6e-185], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[b, 2.1e-152], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[b, 54.0], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;b \leq -4 \cdot 10^{+122}:\\
                          \;\;\;\;\left(i \cdot b\right) \cdot t\\
                          
                          \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\
                          \;\;\;\;\left(y \cdot x\right) \cdot z\\
                          
                          \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\
                          \;\;\;\;\left(j \cdot a\right) \cdot c\\
                          
                          \mathbf{elif}\;b \leq 54:\\
                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\left(b \cdot t\right) \cdot i\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 5 regimes
                          2. if b < -4.00000000000000006e122

                            1. Initial program 75.0%

                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                            2. Add Preprocessing
                            3. Taylor expanded in t around inf

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

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

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                              3. sub-negN/A

                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                              4. *-commutativeN/A

                                \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                              5. associate-*r*N/A

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

                                \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                              7. remove-double-negN/A

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

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

                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                              10. lower-neg.f64N/A

                                \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                              11. *-commutativeN/A

                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                              12. lower-*.f6445.4

                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                            5. Applied rewrites45.4%

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

                              \[\leadsto \left(b \cdot i\right) \cdot t \]
                            7. Step-by-step derivation
                              1. Applied rewrites40.2%

                                \[\leadsto \left(b \cdot i\right) \cdot t \]

                              if -4.00000000000000006e122 < b < -5.59999999999999983e-185

                              1. Initial program 69.8%

                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                              2. Add Preprocessing
                              3. Taylor expanded in z around inf

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

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

                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                3. sub-negN/A

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

                                  \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                5. +-commutativeN/A

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

                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                7. associate-*r*N/A

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                9. neg-mul-1N/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                10. lower-neg.f64N/A

                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                11. *-commutativeN/A

                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                12. lower-*.f6449.9

                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                              5. Applied rewrites49.9%

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

                                \[\leadsto \left(x \cdot y\right) \cdot z \]
                              7. Step-by-step derivation
                                1. Applied rewrites35.8%

                                  \[\leadsto \left(x \cdot y\right) \cdot z \]

                                if -5.59999999999999983e-185 < b < 2.09999999999999999e-152

                                1. Initial program 78.6%

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

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

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

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

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

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

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

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
                                  8. flip--N/A

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

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                                  10. lower-/.f6478.6

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

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                                  12. sub-negN/A

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

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
                                  14. lift-*.f64N/A

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
                                  15. *-commutativeN/A

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

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

                                    \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
                                  18. lower-neg.f6478.6

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

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

                                  \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                6. Step-by-step derivation
                                  1. *-commutativeN/A

                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                  2. lower-*.f64N/A

                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                  3. sub-negN/A

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \cdot c \]
                                  6. mul-1-negN/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \cdot c \]
                                  7. *-commutativeN/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \cdot c \]
                                  8. distribute-lft-neg-inN/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot b}\right) \cdot c \]
                                  9. mul-1-negN/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right)} \cdot b\right) \cdot c \]
                                  10. lower-*.f64N/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right) \cdot b}\right) \cdot c \]
                                  11. mul-1-negN/A

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \cdot b\right) \cdot c \]
                                  12. lower-neg.f6440.9

                                    \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-z\right)} \cdot b\right) \cdot c \]
                                7. Applied rewrites40.9%

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, \left(-z\right) \cdot b\right) \cdot c} \]
                                8. Taylor expanded in z around 0

                                  \[\leadsto \left(a \cdot j\right) \cdot c \]
                                9. Step-by-step derivation
                                  1. Applied rewrites37.6%

                                    \[\leadsto \left(j \cdot a\right) \cdot c \]

                                  if 2.09999999999999999e-152 < b < 54

                                  1. Initial program 80.2%

                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                  2. Add Preprocessing
                                  3. Taylor expanded in y around inf

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

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

                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                    3. associate-*r*N/A

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                    5. neg-mul-1N/A

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                    7. *-commutativeN/A

                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                    8. lower-*.f6465.4

                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                  5. Applied rewrites65.4%

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

                                    \[\leadsto \left(x \cdot z\right) \cdot y \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites49.8%

                                      \[\leadsto \left(z \cdot x\right) \cdot y \]

                                    if 54 < b

                                    1. Initial program 70.5%

                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in i around inf

                                      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                      2. lower-*.f64N/A

                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                      3. sub-negN/A

                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                      4. *-commutativeN/A

                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                      5. associate-*r*N/A

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

                                        \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                      7. remove-double-negN/A

                                        \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                      8. lower-fma.f64N/A

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                      9. mul-1-negN/A

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                      10. lower-neg.f64N/A

                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                      11. lower-*.f6456.7

                                        \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                    5. Applied rewrites56.7%

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                    6. Taylor expanded in y around 0

                                      \[\leadsto \left(b \cdot t\right) \cdot i \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites49.7%

                                        \[\leadsto \left(b \cdot t\right) \cdot i \]
                                    8. Recombined 5 regimes into one program.
                                    9. Final simplification41.7%

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4 \cdot 10^{+122}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-185}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{-152}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 54:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 12: 52.4% accurate, 2.0× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{if}\;j \leq -7.2 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 2.2 \cdot 10^{-21}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (let* ((t_1 (* (fma (- i) y (* c a)) j)))
                                       (if (<= j -7.2e+24)
                                         t_1
                                         (if (<= j 2.2e-21) (* (fma (- t) a (* z y)) x) t_1))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double t_1 = fma(-i, y, (c * a)) * j;
                                    	double tmp;
                                    	if (j <= -7.2e+24) {
                                    		tmp = t_1;
                                    	} else if (j <= 2.2e-21) {
                                    		tmp = fma(-t, a, (z * y)) * x;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j)
                                    	tmp = 0.0
                                    	if (j <= -7.2e+24)
                                    		tmp = t_1;
                                    	elseif (j <= 2.2e-21)
                                    		tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -7.2e+24], t$95$1, If[LessEqual[j, 2.2e-21], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                    \mathbf{if}\;j \leq -7.2 \cdot 10^{+24}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;j \leq 2.2 \cdot 10^{-21}:\\
                                    \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if j < -7.19999999999999966e24 or 2.2000000000000001e-21 < j

                                      1. Initial program 75.3%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around -inf

                                        \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
                                      4. Applied rewrites75.2%

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

                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                      6. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                        2. sub-negN/A

                                          \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
                                        3. mul-1-negN/A

                                          \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                        4. +-commutativeN/A

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                        5. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) \cdot j} \]
                                        6. associate-*r*N/A

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

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                        9. lower-neg.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                        10. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                        11. lower-*.f6465.8

                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                      7. Applied rewrites65.8%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]

                                      if -7.19999999999999966e24 < j < 2.2000000000000001e-21

                                      1. Initial program 72.1%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around -inf

                                        \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
                                      4. Applied rewrites73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 13: 52.4% accurate, 2.0× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -1.1 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1850:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (let* ((t_1 (* (fma (- c) b (* y x)) z)))
                                       (if (<= z -1.1e+25)
                                         t_1
                                         (if (<= z 1850.0) (* (fma (- i) y (* c a)) j) t_1))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double t_1 = fma(-c, b, (y * x)) * z;
                                    	double tmp;
                                    	if (z <= -1.1e+25) {
                                    		tmp = t_1;
                                    	} else if (z <= 1850.0) {
                                    		tmp = fma(-i, y, (c * a)) * j;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	t_1 = Float64(fma(Float64(-c), b, Float64(y * x)) * z)
                                    	tmp = 0.0
                                    	if (z <= -1.1e+25)
                                    		tmp = t_1;
                                    	elseif (z <= 1850.0)
                                    		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.1e+25], t$95$1, If[LessEqual[z, 1850.0], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                    \mathbf{if}\;z \leq -1.1 \cdot 10^{+25}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;z \leq 1850:\\
                                    \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if z < -1.1e25 or 1850 < z

                                      1. Initial program 66.6%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in z around inf

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

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

                                          \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                        3. sub-negN/A

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

                                          \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                        5. +-commutativeN/A

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

                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                        7. associate-*r*N/A

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                        9. neg-mul-1N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                        10. lower-neg.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                        11. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                        12. lower-*.f6461.3

                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                      5. Applied rewrites61.3%

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

                                      if -1.1e25 < z < 1850

                                      1. Initial program 80.6%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in x around -inf

                                        \[\leadsto \color{blue}{-1 \cdot \left(x \cdot \left(-1 \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \frac{j \cdot \left(a \cdot c - i \cdot y\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{x}\right)\right)} \]
                                      4. Applied rewrites74.3%

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

                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                      6. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                        2. sub-negN/A

                                          \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
                                        3. mul-1-negN/A

                                          \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                        4. +-commutativeN/A

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                        5. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) \cdot j} \]
                                        6. associate-*r*N/A

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

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                        9. lower-neg.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                        10. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                        11. lower-*.f6456.6

                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                      7. Applied rewrites56.6%

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

                                    Alternative 14: 44.2% accurate, 2.0× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -2.6 \cdot 10^{-32}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;c \leq 1.02 \cdot 10^{+182}:\\ \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (if (<= c -2.6e-32)
                                       (* (fma (- c) b (* y x)) z)
                                       (if (<= c 1.02e+182) (* (fma (- i) j (* z x)) y) (* (* j a) c))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double tmp;
                                    	if (c <= -2.6e-32) {
                                    		tmp = fma(-c, b, (y * x)) * z;
                                    	} else if (c <= 1.02e+182) {
                                    		tmp = fma(-i, j, (z * x)) * y;
                                    	} else {
                                    		tmp = (j * a) * c;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	tmp = 0.0
                                    	if (c <= -2.6e-32)
                                    		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                                    	elseif (c <= 1.02e+182)
                                    		tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y);
                                    	else
                                    		tmp = Float64(Float64(j * a) * c);
                                    	end
                                    	return tmp
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.6e-32], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[c, 1.02e+182], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;c \leq -2.6 \cdot 10^{-32}:\\
                                    \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                    
                                    \mathbf{elif}\;c \leq 1.02 \cdot 10^{+182}:\\
                                    \;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 3 regimes
                                    2. if c < -2.5999999999999997e-32

                                      1. Initial program 68.8%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in z around inf

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

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

                                          \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                        3. sub-negN/A

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

                                          \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                        5. +-commutativeN/A

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

                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                        7. associate-*r*N/A

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                        9. neg-mul-1N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                        10. lower-neg.f64N/A

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                        11. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                        12. lower-*.f6456.9

                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                      5. Applied rewrites56.9%

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

                                      if -2.5999999999999997e-32 < c < 1.02e182

                                      1. Initial program 78.3%

                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in y around inf

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

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

                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                        3. associate-*r*N/A

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                        5. neg-mul-1N/A

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

                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                        7. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                        8. lower-*.f6455.0

                                          \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                      5. Applied rewrites55.0%

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

                                      if 1.02e182 < c

                                      1. Initial program 60.6%

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

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

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

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

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

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

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

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\color{blue}{\frac{1}{\frac{\left(c \cdot a\right) \cdot \left(c \cdot a\right) - \left(y \cdot i\right) \cdot \left(y \cdot i\right)}{c \cdot a + y \cdot i}}}} \]
                                        8. flip--N/A

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

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                                        10. lower-/.f6460.6

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

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{c \cdot a - y \cdot i}}} \]
                                        12. sub-negN/A

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

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\left(\mathsf{neg}\left(y \cdot i\right)\right) + c \cdot a}}} \]
                                        14. lift-*.f64N/A

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + c \cdot a}} \]
                                        15. *-commutativeN/A

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

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

                                          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \frac{j}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i\right), y, c \cdot a\right)}}} \]
                                        18. lower-neg.f6460.6

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

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

                                        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                      6. Step-by-step derivation
                                        1. *-commutativeN/A

                                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                        2. lower-*.f64N/A

                                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                        3. sub-negN/A

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \cdot c \]
                                        6. mul-1-negN/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \cdot c \]
                                        7. *-commutativeN/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \cdot c \]
                                        8. distribute-lft-neg-inN/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot b}\right) \cdot c \]
                                        9. mul-1-negN/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right)} \cdot b\right) \cdot c \]
                                        10. lower-*.f64N/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-1 \cdot z\right) \cdot b}\right) \cdot c \]
                                        11. mul-1-negN/A

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(\mathsf{neg}\left(z\right)\right)} \cdot b\right) \cdot c \]
                                        12. lower-neg.f6472.2

                                          \[\leadsto \mathsf{fma}\left(a, j, \color{blue}{\left(-z\right)} \cdot b\right) \cdot c \]
                                      7. Applied rewrites72.2%

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(a, j, \left(-z\right) \cdot b\right) \cdot c} \]
                                      8. Taylor expanded in z around 0

                                        \[\leadsto \left(a \cdot j\right) \cdot c \]
                                      9. Step-by-step derivation
                                        1. Applied rewrites58.1%

                                          \[\leadsto \left(j \cdot a\right) \cdot c \]
                                      10. Recombined 3 regimes into one program.
                                      11. Add Preprocessing

                                      Alternative 15: 42.7% accurate, 2.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{if}\;j \leq -1.02 \cdot 10^{+182}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 1.4 \cdot 10^{+183}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a b c i j)
                                       :precision binary64
                                       (let* ((t_1 (* (* (- y) j) i)))
                                         (if (<= j -1.02e+182)
                                           t_1
                                           (if (<= j 1.4e+183) (* (fma (- c) b (* y x)) z) t_1))))
                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                      	double t_1 = (-y * j) * i;
                                      	double tmp;
                                      	if (j <= -1.02e+182) {
                                      		tmp = t_1;
                                      	} else if (j <= 1.4e+183) {
                                      		tmp = fma(-c, b, (y * x)) * z;
                                      	} else {
                                      		tmp = t_1;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = Float64(Float64(Float64(-y) * j) * i)
                                      	tmp = 0.0
                                      	if (j <= -1.02e+182)
                                      		tmp = t_1;
                                      	elseif (j <= 1.4e+183)
                                      		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                                      	else
                                      		tmp = t_1;
                                      	end
                                      	return tmp
                                      end
                                      
                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[j, -1.02e+182], t$95$1, If[LessEqual[j, 1.4e+183], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := \left(\left(-y\right) \cdot j\right) \cdot i\\
                                      \mathbf{if}\;j \leq -1.02 \cdot 10^{+182}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;j \leq 1.4 \cdot 10^{+183}:\\
                                      \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if j < -1.02e182 or 1.40000000000000009e183 < j

                                        1. Initial program 73.2%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in i around inf

                                          \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                          3. sub-negN/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                          4. *-commutativeN/A

                                            \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                          5. associate-*r*N/A

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

                                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                          7. remove-double-negN/A

                                            \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                          8. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                          9. mul-1-negN/A

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                          10. lower-neg.f64N/A

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                          11. lower-*.f6471.5

                                            \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                        5. Applied rewrites71.5%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                        6. Taylor expanded in y around inf

                                          \[\leadsto \left(-1 \cdot \left(j \cdot y\right)\right) \cdot i \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites67.6%

                                            \[\leadsto \left(\left(-y\right) \cdot j\right) \cdot i \]

                                          if -1.02e182 < j < 1.40000000000000009e183

                                          1. Initial program 73.9%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in z around inf

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

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

                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                            3. sub-negN/A

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

                                              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                            5. +-commutativeN/A

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

                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                            7. associate-*r*N/A

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

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                            9. neg-mul-1N/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                            11. *-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                            12. lower-*.f6445.7

                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                          5. Applied rewrites45.7%

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

                                        Alternative 16: 29.4% accurate, 2.4× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{-70}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (if (<= x -9.5e-28)
                                           (* (* y x) z)
                                           (if (<= x 8.2e-70) (* (* (- y) j) i) (* (* (- a) x) t))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if (x <= -9.5e-28) {
                                        		tmp = (y * x) * z;
                                        	} else if (x <= 8.2e-70) {
                                        		tmp = (-y * j) * i;
                                        	} else {
                                        		tmp = (-a * x) * t;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                            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), intent (in) :: b
                                            real(8), intent (in) :: c
                                            real(8), intent (in) :: i
                                            real(8), intent (in) :: j
                                            real(8) :: tmp
                                            if (x <= (-9.5d-28)) then
                                                tmp = (y * x) * z
                                            else if (x <= 8.2d-70) then
                                                tmp = (-y * j) * i
                                            else
                                                tmp = (-a * x) * t
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if (x <= -9.5e-28) {
                                        		tmp = (y * x) * z;
                                        	} else if (x <= 8.2e-70) {
                                        		tmp = (-y * j) * i;
                                        	} else {
                                        		tmp = (-a * x) * t;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	tmp = 0
                                        	if x <= -9.5e-28:
                                        		tmp = (y * x) * z
                                        	elif x <= 8.2e-70:
                                        		tmp = (-y * j) * i
                                        	else:
                                        		tmp = (-a * x) * t
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0
                                        	if (x <= -9.5e-28)
                                        		tmp = Float64(Float64(y * x) * z);
                                        	elseif (x <= 8.2e-70)
                                        		tmp = Float64(Float64(Float64(-y) * j) * i);
                                        	else
                                        		tmp = Float64(Float64(Float64(-a) * x) * t);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0;
                                        	if (x <= -9.5e-28)
                                        		tmp = (y * x) * z;
                                        	elseif (x <= 8.2e-70)
                                        		tmp = (-y * j) * i;
                                        	else
                                        		tmp = (-a * x) * t;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -9.5e-28], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, 8.2e-70], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\
                                        \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                        
                                        \mathbf{elif}\;x \leq 8.2 \cdot 10^{-70}:\\
                                        \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if x < -9.50000000000000001e-28

                                          1. Initial program 69.4%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in z around inf

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

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

                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                            3. sub-negN/A

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

                                              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                            5. +-commutativeN/A

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

                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                            7. associate-*r*N/A

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

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                            9. neg-mul-1N/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                            11. *-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                            12. lower-*.f6451.6

                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                          5. Applied rewrites51.6%

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

                                            \[\leadsto \left(x \cdot y\right) \cdot z \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites42.6%

                                              \[\leadsto \left(x \cdot y\right) \cdot z \]

                                            if -9.50000000000000001e-28 < x < 8.19999999999999955e-70

                                            1. Initial program 73.2%

                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in i around inf

                                              \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                            4. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                              2. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                              3. sub-negN/A

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                              4. *-commutativeN/A

                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                              5. associate-*r*N/A

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

                                                \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                              7. remove-double-negN/A

                                                \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                              8. lower-fma.f64N/A

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                              9. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                              10. lower-neg.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                              11. lower-*.f6459.9

                                                \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                            5. Applied rewrites59.9%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                            6. Taylor expanded in y around inf

                                              \[\leadsto \left(-1 \cdot \left(j \cdot y\right)\right) \cdot i \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites45.4%

                                                \[\leadsto \left(\left(-y\right) \cdot j\right) \cdot i \]

                                              if 8.19999999999999955e-70 < x

                                              1. Initial program 79.2%

                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in t around inf

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

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

                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                3. sub-negN/A

                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                                                4. *-commutativeN/A

                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                5. associate-*r*N/A

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

                                                  \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                                                7. remove-double-negN/A

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

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

                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                10. lower-neg.f64N/A

                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                11. *-commutativeN/A

                                                  \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                12. lower-*.f6448.3

                                                  \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                              5. Applied rewrites48.3%

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

                                                \[\leadsto \left(-1 \cdot \left(a \cdot x\right)\right) \cdot t \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites36.8%

                                                  \[\leadsto \left(\left(-a\right) \cdot x\right) \cdot t \]
                                              8. Recombined 3 regimes into one program.
                                              9. Final simplification42.0%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{-70}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \]
                                              10. Add Preprocessing

                                              Alternative 17: 29.7% accurate, 2.4× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq 5.5 \cdot 10^{-70}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b c i j)
                                               :precision binary64
                                               (if (<= x -9.5e-28)
                                                 (* (* y x) z)
                                                 (if (<= x 5.5e-70) (* (* (- j) i) y) (* (* (- a) x) t))))
                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double tmp;
                                              	if (x <= -9.5e-28) {
                                              		tmp = (y * x) * z;
                                              	} else if (x <= 5.5e-70) {
                                              		tmp = (-j * i) * y;
                                              	} else {
                                              		tmp = (-a * x) * t;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                  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), intent (in) :: b
                                                  real(8), intent (in) :: c
                                                  real(8), intent (in) :: i
                                                  real(8), intent (in) :: j
                                                  real(8) :: tmp
                                                  if (x <= (-9.5d-28)) then
                                                      tmp = (y * x) * z
                                                  else if (x <= 5.5d-70) then
                                                      tmp = (-j * i) * y
                                                  else
                                                      tmp = (-a * x) * t
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double tmp;
                                              	if (x <= -9.5e-28) {
                                              		tmp = (y * x) * z;
                                              	} else if (x <= 5.5e-70) {
                                              		tmp = (-j * i) * y;
                                              	} else {
                                              		tmp = (-a * x) * t;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a, b, c, i, j):
                                              	tmp = 0
                                              	if x <= -9.5e-28:
                                              		tmp = (y * x) * z
                                              	elif x <= 5.5e-70:
                                              		tmp = (-j * i) * y
                                              	else:
                                              		tmp = (-a * x) * t
                                              	return tmp
                                              
                                              function code(x, y, z, t, a, b, c, i, j)
                                              	tmp = 0.0
                                              	if (x <= -9.5e-28)
                                              		tmp = Float64(Float64(y * x) * z);
                                              	elseif (x <= 5.5e-70)
                                              		tmp = Float64(Float64(Float64(-j) * i) * y);
                                              	else
                                              		tmp = Float64(Float64(Float64(-a) * x) * t);
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                              	tmp = 0.0;
                                              	if (x <= -9.5e-28)
                                              		tmp = (y * x) * z;
                                              	elseif (x <= 5.5e-70)
                                              		tmp = (-j * i) * y;
                                              	else
                                              		tmp = (-a * x) * t;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -9.5e-28], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, 5.5e-70], N[(N[((-j) * i), $MachinePrecision] * y), $MachinePrecision], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\
                                              \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                              
                                              \mathbf{elif}\;x \leq 5.5 \cdot 10^{-70}:\\
                                              \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 3 regimes
                                              2. if x < -9.50000000000000001e-28

                                                1. Initial program 69.4%

                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in z around inf

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

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

                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                  3. sub-negN/A

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

                                                    \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                  5. +-commutativeN/A

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

                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                  7. associate-*r*N/A

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

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                  9. neg-mul-1N/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                  10. lower-neg.f64N/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                  11. *-commutativeN/A

                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                  12. lower-*.f6451.6

                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                5. Applied rewrites51.6%

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

                                                  \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites42.6%

                                                    \[\leadsto \left(x \cdot y\right) \cdot z \]

                                                  if -9.50000000000000001e-28 < x < 5.5000000000000001e-70

                                                  1. Initial program 73.2%

                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in y around inf

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

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

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                    3. associate-*r*N/A

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

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                    5. neg-mul-1N/A

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

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                    7. *-commutativeN/A

                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                    8. lower-*.f6445.5

                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                  5. Applied rewrites45.5%

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

                                                    \[\leadsto \left(-1 \cdot \left(i \cdot j\right)\right) \cdot y \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites41.7%

                                                      \[\leadsto \left(\left(-j\right) \cdot i\right) \cdot y \]

                                                    if 5.5000000000000001e-70 < x

                                                    1. Initial program 79.2%

                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in t around inf

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

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

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                      3. sub-negN/A

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                                                      4. *-commutativeN/A

                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                      5. associate-*r*N/A

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

                                                        \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                                                      7. remove-double-negN/A

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

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

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                      10. lower-neg.f64N/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                      11. *-commutativeN/A

                                                        \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                      12. lower-*.f6448.3

                                                        \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                    5. Applied rewrites48.3%

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

                                                      \[\leadsto \left(-1 \cdot \left(a \cdot x\right)\right) \cdot t \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites36.8%

                                                        \[\leadsto \left(\left(-a\right) \cdot x\right) \cdot t \]
                                                    8. Recombined 3 regimes into one program.
                                                    9. Final simplification40.5%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -9.5 \cdot 10^{-28}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq 5.5 \cdot 10^{-70}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \]
                                                    10. Add Preprocessing

                                                    Alternative 18: 30.3% accurate, 2.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -3 \cdot 10^{+19}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{elif}\;i \leq 5 \cdot 10^{+121}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i j)
                                                     :precision binary64
                                                     (if (<= i -3e+19)
                                                       (* (* i b) t)
                                                       (if (<= i 5e+121) (* (* z x) y) (* (* b t) i))))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (i <= -3e+19) {
                                                    		tmp = (i * b) * t;
                                                    	} else if (i <= 5e+121) {
                                                    		tmp = (z * x) * y;
                                                    	} else {
                                                    		tmp = (b * t) * i;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                        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), intent (in) :: b
                                                        real(8), intent (in) :: c
                                                        real(8), intent (in) :: i
                                                        real(8), intent (in) :: j
                                                        real(8) :: tmp
                                                        if (i <= (-3d+19)) then
                                                            tmp = (i * b) * t
                                                        else if (i <= 5d+121) then
                                                            tmp = (z * x) * y
                                                        else
                                                            tmp = (b * t) * i
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (i <= -3e+19) {
                                                    		tmp = (i * b) * t;
                                                    	} else if (i <= 5e+121) {
                                                    		tmp = (z * x) * y;
                                                    	} else {
                                                    		tmp = (b * t) * i;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	tmp = 0
                                                    	if i <= -3e+19:
                                                    		tmp = (i * b) * t
                                                    	elif i <= 5e+121:
                                                    		tmp = (z * x) * y
                                                    	else:
                                                    		tmp = (b * t) * i
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0
                                                    	if (i <= -3e+19)
                                                    		tmp = Float64(Float64(i * b) * t);
                                                    	elseif (i <= 5e+121)
                                                    		tmp = Float64(Float64(z * x) * y);
                                                    	else
                                                    		tmp = Float64(Float64(b * t) * i);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0;
                                                    	if (i <= -3e+19)
                                                    		tmp = (i * b) * t;
                                                    	elseif (i <= 5e+121)
                                                    		tmp = (z * x) * y;
                                                    	else
                                                    		tmp = (b * t) * i;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -3e+19], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 5e+121], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;i \leq -3 \cdot 10^{+19}:\\
                                                    \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                    
                                                    \mathbf{elif}\;i \leq 5 \cdot 10^{+121}:\\
                                                    \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if i < -3e19

                                                      1. Initial program 68.0%

                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in t around inf

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

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

                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                        3. sub-negN/A

                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                                                        4. *-commutativeN/A

                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                        5. associate-*r*N/A

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

                                                          \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                                                        7. remove-double-negN/A

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

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

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                        10. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                        11. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                        12. lower-*.f6449.2

                                                          \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                      5. Applied rewrites49.2%

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

                                                        \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites45.8%

                                                          \[\leadsto \left(b \cdot i\right) \cdot t \]

                                                        if -3e19 < i < 5.00000000000000007e121

                                                        1. Initial program 75.3%

                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in y around inf

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

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

                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                          3. associate-*r*N/A

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

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                          5. neg-mul-1N/A

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

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                          7. *-commutativeN/A

                                                            \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                          8. lower-*.f6437.7

                                                            \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                        5. Applied rewrites37.7%

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

                                                          \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites31.3%

                                                            \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                          if 5.00000000000000007e121 < i

                                                          1. Initial program 75.9%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in i around inf

                                                            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                            2. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                            3. sub-negN/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                                            4. *-commutativeN/A

                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                            5. associate-*r*N/A

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

                                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                                            7. remove-double-negN/A

                                                              \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                            8. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                            9. mul-1-negN/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                            10. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                            11. lower-*.f6484.6

                                                              \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                          5. Applied rewrites84.6%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                          6. Taylor expanded in y around 0

                                                            \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites47.7%

                                                              \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                          8. Recombined 3 regimes into one program.
                                                          9. Final simplification37.4%

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

                                                          Alternative 19: 30.4% accurate, 2.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot b\right) \cdot t\\ \mathbf{if}\;i \leq -3 \cdot 10^{+19}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 5 \cdot 10^{+121}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (let* ((t_1 (* (* i b) t)))
                                                             (if (<= i -3e+19) t_1 (if (<= i 5e+121) (* (* z x) y) t_1))))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double t_1 = (i * b) * t;
                                                          	double tmp;
                                                          	if (i <= -3e+19) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 5e+121) {
                                                          		tmp = (z * x) * y;
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                              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), intent (in) :: b
                                                              real(8), intent (in) :: c
                                                              real(8), intent (in) :: i
                                                              real(8), intent (in) :: j
                                                              real(8) :: t_1
                                                              real(8) :: tmp
                                                              t_1 = (i * b) * t
                                                              if (i <= (-3d+19)) then
                                                                  tmp = t_1
                                                              else if (i <= 5d+121) then
                                                                  tmp = (z * x) * y
                                                              else
                                                                  tmp = t_1
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double t_1 = (i * b) * t;
                                                          	double tmp;
                                                          	if (i <= -3e+19) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 5e+121) {
                                                          		tmp = (z * x) * y;
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	t_1 = (i * b) * t
                                                          	tmp = 0
                                                          	if i <= -3e+19:
                                                          		tmp = t_1
                                                          	elif i <= 5e+121:
                                                          		tmp = (z * x) * y
                                                          	else:
                                                          		tmp = t_1
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(Float64(i * b) * t)
                                                          	tmp = 0.0
                                                          	if (i <= -3e+19)
                                                          		tmp = t_1;
                                                          	elseif (i <= 5e+121)
                                                          		tmp = Float64(Float64(z * x) * y);
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = (i * b) * t;
                                                          	tmp = 0.0;
                                                          	if (i <= -3e+19)
                                                          		tmp = t_1;
                                                          	elseif (i <= 5e+121)
                                                          		tmp = (z * x) * y;
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[i, -3e+19], t$95$1, If[LessEqual[i, 5e+121], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := \left(i \cdot b\right) \cdot t\\
                                                          \mathbf{if}\;i \leq -3 \cdot 10^{+19}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;i \leq 5 \cdot 10^{+121}:\\
                                                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if i < -3e19 or 5.00000000000000007e121 < i

                                                            1. Initial program 71.5%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in t around inf

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

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

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                              3. sub-negN/A

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                                                              4. *-commutativeN/A

                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                              5. associate-*r*N/A

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

                                                                \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                                                              7. remove-double-negN/A

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

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

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                              10. lower-neg.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                              11. *-commutativeN/A

                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                              12. lower-*.f6447.7

                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                            5. Applied rewrites47.7%

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

                                                              \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites44.8%

                                                                \[\leadsto \left(b \cdot i\right) \cdot t \]

                                                              if -3e19 < i < 5.00000000000000007e121

                                                              1. Initial program 75.3%

                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in y around inf

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

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

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                3. associate-*r*N/A

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

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                5. neg-mul-1N/A

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

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                7. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                8. lower-*.f6437.7

                                                                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                              5. Applied rewrites37.7%

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

                                                                \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites31.3%

                                                                  \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                              8. Recombined 2 regimes into one program.
                                                              9. Final simplification36.7%

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

                                                              Alternative 20: 22.7% accurate, 3.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.4 \cdot 10^{-277}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (if (<= b -2.4e-277) (* (* y x) z) (* (* z x) y)))
                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (b <= -2.4e-277) {
                                                              		tmp = (y * x) * z;
                                                              	} else {
                                                              		tmp = (z * x) * y;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                  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), intent (in) :: b
                                                                  real(8), intent (in) :: c
                                                                  real(8), intent (in) :: i
                                                                  real(8), intent (in) :: j
                                                                  real(8) :: tmp
                                                                  if (b <= (-2.4d-277)) then
                                                                      tmp = (y * x) * z
                                                                  else
                                                                      tmp = (z * x) * y
                                                                  end if
                                                                  code = tmp
                                                              end function
                                                              
                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (b <= -2.4e-277) {
                                                              		tmp = (y * x) * z;
                                                              	} else {
                                                              		tmp = (z * x) * y;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	tmp = 0
                                                              	if b <= -2.4e-277:
                                                              		tmp = (y * x) * z
                                                              	else:
                                                              		tmp = (z * x) * y
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0
                                                              	if (b <= -2.4e-277)
                                                              		tmp = Float64(Float64(y * x) * z);
                                                              	else
                                                              		tmp = Float64(Float64(z * x) * y);
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0;
                                                              	if (b <= -2.4e-277)
                                                              		tmp = (y * x) * z;
                                                              	else
                                                              		tmp = (z * x) * y;
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.4e-277], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;b \leq -2.4 \cdot 10^{-277}:\\
                                                              \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if b < -2.4e-277

                                                                1. Initial program 75.0%

                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in z around inf

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

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

                                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                  3. sub-negN/A

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

                                                                    \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                  5. +-commutativeN/A

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

                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                  7. associate-*r*N/A

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

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                  9. neg-mul-1N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                  10. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                  11. *-commutativeN/A

                                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                  12. lower-*.f6450.7

                                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                5. Applied rewrites50.7%

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

                                                                  \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites31.3%

                                                                    \[\leadsto \left(x \cdot y\right) \cdot z \]

                                                                  if -2.4e-277 < b

                                                                  1. Initial program 72.6%

                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in y around inf

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

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

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                    3. associate-*r*N/A

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

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                    5. neg-mul-1N/A

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

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                    7. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                    8. lower-*.f6442.4

                                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                  5. Applied rewrites42.4%

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

                                                                    \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites23.8%

                                                                      \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                  8. Recombined 2 regimes into one program.
                                                                  9. Final simplification27.4%

                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.4 \cdot 10^{-277}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                  10. Add Preprocessing

                                                                  Alternative 21: 22.8% accurate, 5.5× speedup?

                                                                  \[\begin{array}{l} \\ \left(y \cdot x\right) \cdot z \end{array} \]
                                                                  (FPCore (x y z t a b c i j) :precision binary64 (* (* y x) z))
                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                  	return (y * x) * z;
                                                                  }
                                                                  
                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                      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), intent (in) :: b
                                                                      real(8), intent (in) :: c
                                                                      real(8), intent (in) :: i
                                                                      real(8), intent (in) :: j
                                                                      code = (y * x) * z
                                                                  end function
                                                                  
                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                  	return (y * x) * z;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                  	return (y * x) * z
                                                                  
                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                  	return Float64(Float64(y * x) * z)
                                                                  end
                                                                  
                                                                  function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                  	tmp = (y * x) * z;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \left(y \cdot x\right) \cdot z
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 73.8%

                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in z around inf

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

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

                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                    3. sub-negN/A

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

                                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                    5. +-commutativeN/A

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

                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                    7. associate-*r*N/A

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

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                    9. neg-mul-1N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                    10. lower-neg.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                    11. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                    12. lower-*.f6441.5

                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                  5. Applied rewrites41.5%

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

                                                                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites25.1%

                                                                      \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                    2. Final simplification25.1%

                                                                      \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                    3. Add Preprocessing

                                                                    Alternative 22: 23.0% accurate, 5.5× speedup?

                                                                    \[\begin{array}{l} \\ \left(z \cdot y\right) \cdot x \end{array} \]
                                                                    (FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	return (z * y) * x;
                                                                    }
                                                                    
                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                        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), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: i
                                                                        real(8), intent (in) :: j
                                                                        code = (z * y) * x
                                                                    end function
                                                                    
                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	return (z * y) * x;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	return (z * y) * x
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	return Float64(Float64(z * y) * x)
                                                                    end
                                                                    
                                                                    function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                    	tmp = (z * y) * x;
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \left(z \cdot y\right) \cdot x
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Initial program 73.8%

                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                    2. Add Preprocessing
                                                                    3. Taylor expanded in z around inf

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

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

                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                      3. sub-negN/A

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

                                                                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                      5. +-commutativeN/A

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

                                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                      7. associate-*r*N/A

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

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                      9. neg-mul-1N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                      11. *-commutativeN/A

                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                      12. lower-*.f6441.5

                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                    5. Applied rewrites41.5%

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

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

                                                                        \[\leadsto \left(y \cdot z\right) \cdot \color{blue}{x} \]
                                                                      2. Final simplification21.8%

                                                                        \[\leadsto \left(z \cdot y\right) \cdot x \]
                                                                      3. Add Preprocessing

                                                                      Developer Target 1: 59.7% accurate, 0.2× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                      (FPCore (x y z t a b c i j)
                                                                       :precision binary64
                                                                       (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                              (t_2
                                                                               (+
                                                                                (-
                                                                                 (* x (- (* y z) (* t a)))
                                                                                 (/
                                                                                  (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                                  (+ (* c z) (* t i))))
                                                                                t_1)))
                                                                         (if (< x -1.469694296777705e-64)
                                                                           t_2
                                                                           (if (< x 3.2113527362226803e-147)
                                                                             (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                                             t_2))))
                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                      	double t_1 = j * ((c * a) - (y * i));
                                                                      	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                      	double tmp;
                                                                      	if (x < -1.469694296777705e-64) {
                                                                      		tmp = t_2;
                                                                      	} else if (x < 3.2113527362226803e-147) {
                                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                      	} else {
                                                                      		tmp = t_2;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                          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), intent (in) :: b
                                                                          real(8), intent (in) :: c
                                                                          real(8), intent (in) :: i
                                                                          real(8), intent (in) :: j
                                                                          real(8) :: t_1
                                                                          real(8) :: t_2
                                                                          real(8) :: tmp
                                                                          t_1 = j * ((c * a) - (y * i))
                                                                          t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                          if (x < (-1.469694296777705d-64)) then
                                                                              tmp = t_2
                                                                          else if (x < 3.2113527362226803d-147) then
                                                                              tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                          else
                                                                              tmp = t_2
                                                                          end if
                                                                          code = tmp
                                                                      end function
                                                                      
                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                      	double t_1 = j * ((c * a) - (y * i));
                                                                      	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                      	double tmp;
                                                                      	if (x < -1.469694296777705e-64) {
                                                                      		tmp = t_2;
                                                                      	} else if (x < 3.2113527362226803e-147) {
                                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                      	} else {
                                                                      		tmp = t_2;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                      	t_1 = j * ((c * a) - (y * i))
                                                                      	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                                      	tmp = 0
                                                                      	if x < -1.469694296777705e-64:
                                                                      		tmp = t_2
                                                                      	elif x < 3.2113527362226803e-147:
                                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                      	else:
                                                                      		tmp = t_2
                                                                      	return tmp
                                                                      
                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                      	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                                      	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                                      	tmp = 0.0
                                                                      	if (x < -1.469694296777705e-64)
                                                                      		tmp = t_2;
                                                                      	elseif (x < 3.2113527362226803e-147)
                                                                      		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                                                      	else
                                                                      		tmp = t_2;
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                      	t_1 = j * ((c * a) - (y * i));
                                                                      	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                      	tmp = 0.0;
                                                                      	if (x < -1.469694296777705e-64)
                                                                      		tmp = t_2;
                                                                      	elseif (x < 3.2113527362226803e-147)
                                                                      		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                      	else
                                                                      		tmp = t_2;
                                                                      	end
                                                                      	tmp_2 = tmp;
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                                      t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                                      \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                                      \;\;\;\;t\_2\\
                                                                      
                                                                      \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                                      \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;t\_2\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      

                                                                      Reproduce

                                                                      ?
                                                                      herbie shell --seed 2024332 
                                                                      (FPCore (x y z t a b c i j)
                                                                        :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                                        :precision binary64
                                                                      
                                                                        :alt
                                                                        (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                                                      
                                                                        (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))