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

Percentage Accurate: 72.6% → 83.4%
Time: 18.4s
Alternatives: 20
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 20 alternatives:

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

Initial Program: 72.6% 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.4% 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(-z, c, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), \frac{y}{b}, i \cdot t\right)\right) \cdot b\\ \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 (- z) c (fma (fma (- j) i (* z x)) (/ y b) (* i t))) b))))
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(-z, c, fma(fma(-j, i, (z * x)), (y / b), (i * t))) * b;
	}
	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(-z), c, fma(fma(Float64(-j), i, Float64(z * x)), Float64(y / b), Float64(i * t))) * b);
	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[((-z) * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * N[(y / b), $MachinePrecision] + N[(i * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $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(-z, c, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), \frac{y}{b}, i \cdot t\right)\right) \cdot b\\


\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 93.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

    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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(j \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. Applied rewrites25.3%

        \[\leadsto \left(-y\right) \cdot \color{blue}{\left(j \cdot i\right)} \]
      2. Taylor expanded in b around inf

        \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z\right) + \left(i \cdot t + \frac{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)}{b}\right)\right)} \]
      3. Step-by-step derivation
        1. Applied rewrites61.0%

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

        \[\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(-z, c, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), \frac{y}{b}, i \cdot t\right)\right) \cdot b\\ \end{array} \]
      6. Add Preprocessing

      Alternative 2: 60.9% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\ \mathbf{if}\;t \leq -2.15 \cdot 10^{+207}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.5 \cdot 10^{-93}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-185}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{+105}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x + \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 (* y x) z (* (fma (- x) a (* i b)) t))))
         (if (<= t -2.15e+207)
           t_1
           (if (<= t -1.5e-93)
             (fma (* b t) i (* (fma (- t) a (* z y)) x))
             (if (<= t 1.8e-185)
               (fma (fma (- j) i (* z x)) y (* (* (- c) z) b))
               (if (<= t 4.7e+105)
                 (+ (* (* z y) x) (* (- (* 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((y * x), z, (fma(-x, a, (i * b)) * t));
      	double tmp;
      	if (t <= -2.15e+207) {
      		tmp = t_1;
      	} else if (t <= -1.5e-93) {
      		tmp = fma((b * t), i, (fma(-t, a, (z * y)) * x));
      	} else if (t <= 1.8e-185) {
      		tmp = fma(fma(-j, i, (z * x)), y, ((-c * z) * b));
      	} else if (t <= 4.7e+105) {
      		tmp = ((z * y) * x) + (((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(y * x), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t))
      	tmp = 0.0
      	if (t <= -2.15e+207)
      		tmp = t_1;
      	elseif (t <= -1.5e-93)
      		tmp = fma(Float64(b * t), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x));
      	elseif (t <= 1.8e-185)
      		tmp = fma(fma(Float64(-j), i, Float64(z * x)), y, Float64(Float64(Float64(-c) * z) * b));
      	elseif (t <= 4.7e+105)
      		tmp = Float64(Float64(Float64(z * y) * x) + 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[(y * x), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.15e+207], t$95$1, If[LessEqual[t, -1.5e-93], N[(N[(b * t), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e-185], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.7e+105], N[(N[(N[(z * y), $MachinePrecision] * x), $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(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\
      \mathbf{if}\;t \leq -2.15 \cdot 10^{+207}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq -1.5 \cdot 10^{-93}:\\
      \;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
      
      \mathbf{elif}\;t \leq 1.8 \cdot 10^{-185}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right)\\
      
      \mathbf{elif}\;t \leq 4.7 \cdot 10^{+105}:\\
      \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if t < -2.1499999999999999e207 or 4.70000000000000004e105 < t

        1. Initial program 62.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) - \color{blue}{b \cdot \left(c \cdot z - t \cdot i\right)}\right) + 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 \color{blue}{\left(c \cdot z - t \cdot i\right)}\right) + j \cdot \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 \color{blue}{\frac{\left(c \cdot z\right) \cdot \left(c \cdot z\right) - \left(t \cdot i\right) \cdot \left(t \cdot i\right)}{c \cdot z + t \cdot i}}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          4. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) + b \cdot t\right)} \]
          13. cancel-sign-subN/A

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

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

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

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

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

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

          if -2.1499999999999999e207 < t < -1.5000000000000001e-93

          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. Step-by-step derivation
            1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) + b \cdot t\right)} \]
            13. cancel-sign-subN/A

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

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

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

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

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

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

            if -1.5000000000000001e-93 < t < 1.7999999999999999e-185

            1. Initial program 86.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(-1 \cdot \left(c \cdot z\right)\right) \cdot b\right) \]
            7. Step-by-step derivation
              1. Applied rewrites68.6%

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

              if 1.7999999999999999e-185 < t < 4.70000000000000004e105

              1. Initial program 85.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 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 \color{blue}{\left(y \cdot z\right) \cdot x} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                2. lower-*.f64N/A

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

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

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

                \[\leadsto \color{blue}{\left(z \cdot y\right) \cdot x} + j \cdot \left(c \cdot a - y \cdot i\right) \]
            8. Recombined 4 regimes into one program.
            9. Final simplification71.2%

              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.15 \cdot 10^{+207}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\ \mathbf{elif}\;t \leq -1.5 \cdot 10^{-93}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot t, i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;t \leq 1.8 \cdot 10^{-185}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right)\\ \mathbf{elif}\;t \leq 4.7 \cdot 10^{+105}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\ \end{array} \]
            10. Add Preprocessing

            Alternative 3: 59.5% accurate, 1.1× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 4.7 \cdot 10^{-290}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\ \mathbf{elif}\;c \leq 2.8 \cdot 10^{-195}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;c \leq 1.75 \cdot 10^{+89}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\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 (- b) z (* j a)) c)))
               (if (<= c -4.5e+54)
                 t_1
                 (if (<= c 4.7e-290)
                   (fma (* y x) z (* (fma (- x) a (* i b)) t))
                   (if (<= c 2.8e-195)
                     (* (fma (- y) j (* b t)) i)
                     (if (<= c 1.75e+89)
                       (fma (fma (- j) i (* z x)) y (* (* (- c) z) 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(-b, z, (j * a)) * c;
            	double tmp;
            	if (c <= -4.5e+54) {
            		tmp = t_1;
            	} else if (c <= 4.7e-290) {
            		tmp = fma((y * x), z, (fma(-x, a, (i * b)) * t));
            	} else if (c <= 2.8e-195) {
            		tmp = fma(-y, j, (b * t)) * i;
            	} else if (c <= 1.75e+89) {
            		tmp = fma(fma(-j, i, (z * x)), y, ((-c * z) * b));
            	} else {
            		tmp = t_1;
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i, j)
            	t_1 = Float64(fma(Float64(-b), z, Float64(j * a)) * c)
            	tmp = 0.0
            	if (c <= -4.5e+54)
            		tmp = t_1;
            	elseif (c <= 4.7e-290)
            		tmp = fma(Float64(y * x), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t));
            	elseif (c <= 2.8e-195)
            		tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i);
            	elseif (c <= 1.75e+89)
            		tmp = fma(fma(Float64(-j), i, Float64(z * x)), y, Float64(Float64(Float64(-c) * z) * 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[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -4.5e+54], t$95$1, If[LessEqual[c, 4.7e-290], N[(N[(y * x), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e-195], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[c, 1.75e+89], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
            \mathbf{if}\;c \leq -4.5 \cdot 10^{+54}:\\
            \;\;\;\;t\_1\\
            
            \mathbf{elif}\;c \leq 4.7 \cdot 10^{-290}:\\
            \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\
            
            \mathbf{elif}\;c \leq 2.8 \cdot 10^{-195}:\\
            \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
            
            \mathbf{elif}\;c \leq 1.75 \cdot 10^{+89}:\\
            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;t\_1\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 4 regimes
            2. if c < -4.49999999999999984e54 or 1.75e89 < c

              1. Initial program 68.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 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. associate-*r*N/A

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

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

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

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

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

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

              if -4.49999999999999984e54 < c < 4.7000000000000001e-290

              1. Initial program 82.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. Step-by-step derivation
                1. lift-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) + b \cdot t\right)} \]
                13. cancel-sign-subN/A

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

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

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

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

                \[\leadsto b \cdot \left(i \cdot t\right) + \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
              9. Step-by-step derivation
                1. Applied rewrites73.8%

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

                if 4.7000000000000001e-290 < c < 2.80000000000000003e-195

                1. Initial program 80.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 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. mul-1-negN/A

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

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

                    \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                  7. mul-1-negN/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 \]
                  8. 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 \]
                  9. remove-double-negN/A

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

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

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

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

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

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

                if 2.80000000000000003e-195 < c < 1.75e89

                1. Initial program 87.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(-1 \cdot \left(c \cdot z\right)\right) \cdot b\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites63.6%

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right) \]
                8. Recombined 4 regimes into one program.
                9. Final simplification69.4%

                  \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -4.5 \cdot 10^{+54}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;c \leq 4.7 \cdot 10^{-290}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot x, z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\\ \mathbf{elif}\;c \leq 2.8 \cdot 10^{-195}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;c \leq 1.75 \cdot 10^{+89}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \left(\left(-c\right) \cdot z\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \end{array} \]
                10. Add Preprocessing

                Alternative 4: 70.6% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, t\_1\right)\\ \mathbf{if}\;i \leq -4.2 \cdot 10^{+24}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;i \leq 1.75 \cdot 10^{+65}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, z, j \cdot a\right), c, 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 (* (fma (- a) t (* z y)) x))
                        (t_2 (fma (fma (- y) j (* b t)) i t_1)))
                   (if (<= i -4.2e+24)
                     t_2
                     (if (<= i 1.75e+65) (fma (fma (- b) z (* j a)) c 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 = fma(-a, t, (z * y)) * x;
                	double t_2 = fma(fma(-y, j, (b * t)), i, t_1);
                	double tmp;
                	if (i <= -4.2e+24) {
                		tmp = t_2;
                	} else if (i <= 1.75e+65) {
                		tmp = fma(fma(-b, z, (j * a)), c, t_1);
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i, j)
                	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                	t_2 = fma(fma(Float64(-y), j, Float64(b * t)), i, t_1)
                	tmp = 0.0
                	if (i <= -4.2e+24)
                		tmp = t_2;
                	elseif (i <= 1.75e+65)
                		tmp = fma(fma(Float64(-b), z, Float64(j * a)), c, t_1);
                	else
                		tmp = t_2;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + t$95$1), $MachinePrecision]}, If[LessEqual[i, -4.2e+24], t$95$2, If[LessEqual[i, 1.75e+65], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + t$95$1), $MachinePrecision], t$95$2]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, t\_1\right)\\
                \mathbf{if}\;i \leq -4.2 \cdot 10^{+24}:\\
                \;\;\;\;t\_2\\
                
                \mathbf{elif}\;i \leq 1.75 \cdot 10^{+65}:\\
                \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, z, j \cdot a\right), c, t\_1\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_2\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if i < -4.2000000000000003e24 or 1.75e65 < i

                  1. Initial program 71.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 c around 0

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

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

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

                      \[\leadsto \left(x \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \left(i \cdot \left(j \cdot y\right)\right)\right) + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
                    4. *-lft-identityN/A

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

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

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

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

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

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

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

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

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

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

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

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

                  if -4.2000000000000003e24 < i < 1.75e65

                  1. Initial program 83.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 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. mul-1-negN/A

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

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

                      \[\leadsto \left(\left(a \cdot j\right) \cdot c + -1 \cdot \color{blue}{\left(\left(b \cdot z\right) \cdot c\right)}\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
                    10. associate-*l*N/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 rewrites79.4%

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

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

                Alternative 5: 66.1% 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.6 \cdot 10^{+26}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 1.2 \cdot 10^{+227}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, z, j \cdot a\right), c, \mathsf{fma}\left(-a, t, 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.6e+26)
                     t_1
                     (if (<= i 1.2e+227)
                       (fma (fma (- b) z (* j a)) c (* (fma (- a) t (* 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.6e+26) {
                		tmp = t_1;
                	} else if (i <= 1.2e+227) {
                		tmp = fma(fma(-b, z, (j * a)), c, (fma(-a, t, (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.6e+26)
                		tmp = t_1;
                	elseif (i <= 1.2e+227)
                		tmp = fma(fma(Float64(-b), z, Float64(j * a)), c, Float64(fma(Float64(-a), t, 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.6e+26], t$95$1, If[LessEqual[i, 1.2e+227], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t + 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.6 \cdot 10^{+26}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;i \leq 1.2 \cdot 10^{+227}:\\
                \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, z, j \cdot a\right), c, \mathsf{fma}\left(-a, t, 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.60000000000000014e26 or 1.1999999999999999e227 < i

                  1. Initial program 71.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. mul-1-negN/A

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

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

                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                    7. mul-1-negN/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 \]
                    8. 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 \]
                    9. remove-double-negN/A

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

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

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

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

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

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

                  if -1.60000000000000014e26 < i < 1.1999999999999999e227

                  1. Initial program 81.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. mul-1-negN/A

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

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

                      \[\leadsto \left(\left(a \cdot j\right) \cdot c + -1 \cdot \color{blue}{\left(\left(b \cdot z\right) \cdot c\right)}\right) + x \cdot \left(y \cdot z - a \cdot t\right) \]
                    10. associate-*l*N/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 rewrites76.8%

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.6 \cdot 10^{+26}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq 1.2 \cdot 10^{+227}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-b, z, j \cdot a\right), c, \mathsf{fma}\left(-a, t, 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 6: 49.5% accurate, 1.2× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ t_2 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{if}\;y \leq -0.05:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -1.1 \cdot 10^{-140}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{-128}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;y \leq 4 \cdot 10^{-81}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{+74}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i j)
                 :precision binary64
                 (let* ((t_1 (* (fma (- a) t (* z y)) x)) (t_2 (* (fma (- j) i (* z x)) y)))
                   (if (<= y -0.05)
                     t_2
                     (if (<= y -1.1e-140)
                       t_1
                       (if (<= y 1.4e-128)
                         (* (fma (- c) z (* i t)) b)
                         (if (<= y 4e-81)
                           (* (fma (- i) y (* c a)) j)
                           (if (<= y 2.5e+74) 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 = fma(-a, t, (z * y)) * x;
                	double t_2 = fma(-j, i, (z * x)) * y;
                	double tmp;
                	if (y <= -0.05) {
                		tmp = t_2;
                	} else if (y <= -1.1e-140) {
                		tmp = t_1;
                	} else if (y <= 1.4e-128) {
                		tmp = fma(-c, z, (i * t)) * b;
                	} else if (y <= 4e-81) {
                		tmp = fma(-i, y, (c * a)) * j;
                	} else if (y <= 2.5e+74) {
                		tmp = t_1;
                	} else {
                		tmp = t_2;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i, j)
                	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                	t_2 = Float64(fma(Float64(-j), i, Float64(z * x)) * y)
                	tmp = 0.0
                	if (y <= -0.05)
                		tmp = t_2;
                	elseif (y <= -1.1e-140)
                		tmp = t_1;
                	elseif (y <= 1.4e-128)
                		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b);
                	elseif (y <= 4e-81)
                		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
                	elseif (y <= 2.5e+74)
                		tmp = t_1;
                	else
                		tmp = t_2;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -0.05], t$95$2, If[LessEqual[y, -1.1e-140], t$95$1, If[LessEqual[y, 1.4e-128], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, 4e-81], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y, 2.5e+74], t$95$1, t$95$2]]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                t_2 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                \mathbf{if}\;y \leq -0.05:\\
                \;\;\;\;t\_2\\
                
                \mathbf{elif}\;y \leq -1.1 \cdot 10^{-140}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;y \leq 1.4 \cdot 10^{-128}:\\
                \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
                
                \mathbf{elif}\;y \leq 4 \cdot 10^{-81}:\\
                \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                
                \mathbf{elif}\;y \leq 2.5 \cdot 10^{+74}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_2\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 4 regimes
                2. if y < -0.050000000000000003 or 2.49999999999999982e74 < y

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

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

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

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

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

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

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

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

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

                  if -0.050000000000000003 < y < -1.1e-140 or 3.9999999999999998e-81 < y < 2.49999999999999982e74

                  1. Initial program 83.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                  if -1.1e-140 < y < 1.3999999999999999e-128

                  1. Initial program 86.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 b around inf

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

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

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

                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + i \cdot t\right)} \cdot b \]
                    4. remove-double-negN/A

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

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                    6. sub-negN/A

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

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

                      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - i \cdot t\right)\right) \cdot b} \]
                    9. mul-1-negN/A

                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right)} \cdot b \]
                    10. sub-negN/A

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

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

                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(i \cdot t\right)\right)\right)\right)\right) \cdot b \]
                    13. neg-mul-1N/A

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{t \cdot i}\right) \cdot b \]
                    19. lower-*.f6460.4

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

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

                  if 1.3999999999999999e-128 < y < 3.9999999999999998e-81

                  1. Initial program 86.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 j around inf

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

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

                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                  \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -0.05:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq -1.1 \cdot 10^{-140}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{-128}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;y \leq 4 \cdot 10^{-81}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;y \leq 2.5 \cdot 10^{+74}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \end{array} \]
                5. Add Preprocessing

                Alternative 7: 30.0% accurate, 1.4× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{if}\;a \leq -5.8 \cdot 10^{+191}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq -2.05 \cdot 10^{+29}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -7.6 \cdot 10^{-144}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;a \leq 105000000:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{+145}:\\ \;\;\;\;t\_1\\ \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
                 (let* ((t_1 (* (* (- x) a) t)))
                   (if (<= a -5.8e+191)
                     (* (* j c) a)
                     (if (<= a -2.05e+29)
                       t_1
                       (if (<= a -7.6e-144)
                         (* (* b t) i)
                         (if (<= a 105000000.0)
                           (* (* z y) x)
                           (if (<= a 3.3e+145) t_1 (* (* j a) c))))))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                	double t_1 = (-x * a) * t;
                	double tmp;
                	if (a <= -5.8e+191) {
                		tmp = (j * c) * a;
                	} else if (a <= -2.05e+29) {
                		tmp = t_1;
                	} else if (a <= -7.6e-144) {
                		tmp = (b * t) * i;
                	} else if (a <= 105000000.0) {
                		tmp = (z * y) * x;
                	} else if (a <= 3.3e+145) {
                		tmp = t_1;
                	} else {
                		tmp = (j * a) * c;
                	}
                	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 = (-x * a) * t
                    if (a <= (-5.8d+191)) then
                        tmp = (j * c) * a
                    else if (a <= (-2.05d+29)) then
                        tmp = t_1
                    else if (a <= (-7.6d-144)) then
                        tmp = (b * t) * i
                    else if (a <= 105000000.0d0) then
                        tmp = (z * y) * x
                    else if (a <= 3.3d+145) then
                        tmp = t_1
                    else
                        tmp = (j * a) * c
                    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 = (-x * a) * t;
                	double tmp;
                	if (a <= -5.8e+191) {
                		tmp = (j * c) * a;
                	} else if (a <= -2.05e+29) {
                		tmp = t_1;
                	} else if (a <= -7.6e-144) {
                		tmp = (b * t) * i;
                	} else if (a <= 105000000.0) {
                		tmp = (z * y) * x;
                	} else if (a <= 3.3e+145) {
                		tmp = t_1;
                	} else {
                		tmp = (j * a) * c;
                	}
                	return tmp;
                }
                
                def code(x, y, z, t, a, b, c, i, j):
                	t_1 = (-x * a) * t
                	tmp = 0
                	if a <= -5.8e+191:
                		tmp = (j * c) * a
                	elif a <= -2.05e+29:
                		tmp = t_1
                	elif a <= -7.6e-144:
                		tmp = (b * t) * i
                	elif a <= 105000000.0:
                		tmp = (z * y) * x
                	elif a <= 3.3e+145:
                		tmp = t_1
                	else:
                		tmp = (j * a) * c
                	return tmp
                
                function code(x, y, z, t, a, b, c, i, j)
                	t_1 = Float64(Float64(Float64(-x) * a) * t)
                	tmp = 0.0
                	if (a <= -5.8e+191)
                		tmp = Float64(Float64(j * c) * a);
                	elseif (a <= -2.05e+29)
                		tmp = t_1;
                	elseif (a <= -7.6e-144)
                		tmp = Float64(Float64(b * t) * i);
                	elseif (a <= 105000000.0)
                		tmp = Float64(Float64(z * y) * x);
                	elseif (a <= 3.3e+145)
                		tmp = t_1;
                	else
                		tmp = Float64(Float64(j * a) * c);
                	end
                	return tmp
                end
                
                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                	t_1 = (-x * a) * t;
                	tmp = 0.0;
                	if (a <= -5.8e+191)
                		tmp = (j * c) * a;
                	elseif (a <= -2.05e+29)
                		tmp = t_1;
                	elseif (a <= -7.6e-144)
                		tmp = (b * t) * i;
                	elseif (a <= 105000000.0)
                		tmp = (z * y) * x;
                	elseif (a <= 3.3e+145)
                		tmp = t_1;
                	else
                		tmp = (j * a) * c;
                	end
                	tmp_2 = tmp;
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[a, -5.8e+191], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, -2.05e+29], t$95$1, If[LessEqual[a, -7.6e-144], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 105000000.0], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 3.3e+145], t$95$1, N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\
                \mathbf{if}\;a \leq -5.8 \cdot 10^{+191}:\\
                \;\;\;\;\left(j \cdot c\right) \cdot a\\
                
                \mathbf{elif}\;a \leq -2.05 \cdot 10^{+29}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;a \leq -7.6 \cdot 10^{-144}:\\
                \;\;\;\;\left(b \cdot t\right) \cdot i\\
                
                \mathbf{elif}\;a \leq 105000000:\\
                \;\;\;\;\left(z \cdot y\right) \cdot x\\
                
                \mathbf{elif}\;a \leq 3.3 \cdot 10^{+145}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{else}:\\
                \;\;\;\;\left(j \cdot a\right) \cdot c\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 5 regimes
                2. if a < -5.8000000000000003e191

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

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

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

                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                    \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                  7. Step-by-step derivation
                    1. Applied rewrites56.7%

                      \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                    if -5.8000000000000003e191 < a < -2.0500000000000002e29 or 1.05e8 < a < 3.30000000000000027e145

                    1. Initial program 67.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                    4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                      \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                    7. Step-by-step derivation
                      1. Applied rewrites49.5%

                        \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot \color{blue}{a} \]
                      2. Step-by-step derivation
                        1. Applied rewrites52.7%

                          \[\leadsto \left(x \cdot a\right) \cdot \left(-t\right) \]

                        if -2.0500000000000002e29 < a < -7.59999999999999985e-144

                        1. Initial program 81.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. mul-1-negN/A

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

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

                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                          7. mul-1-negN/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 \]
                          8. 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 \]
                          9. remove-double-negN/A

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

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

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

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

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

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

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

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

                          if -7.59999999999999985e-144 < a < 1.05e8

                          1. Initial program 87.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                          4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                            if 3.30000000000000027e145 < a

                            1. Initial program 74.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 j around inf

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

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

                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                              3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                              \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                            7. Step-by-step derivation
                              1. Applied rewrites43.8%

                                \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]
                              2. Step-by-step derivation
                                1. Applied rewrites49.8%

                                  \[\leadsto \left(j \cdot a\right) \cdot c \]
                              3. Recombined 5 regimes into one program.
                              4. Final simplification44.3%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.8 \cdot 10^{+191}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq -2.05 \cdot 10^{+29}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{elif}\;a \leq -7.6 \cdot 10^{-144}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;a \leq 105000000:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;a \leq 3.3 \cdot 10^{+145}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                              5. Add Preprocessing

                              Alternative 8: 50.7% accurate, 1.4× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ t_2 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{if}\;y \leq -3.1 \cdot 10^{-56}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -1.05 \cdot 10^{-140}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 10^{-130}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+124}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i j)
                               :precision binary64
                               (let* ((t_1 (* (fma (- x) t (* j c)) a)) (t_2 (* (fma (- j) i (* z x)) y)))
                                 (if (<= y -3.1e-56)
                                   t_2
                                   (if (<= y -1.05e-140)
                                     t_1
                                     (if (<= y 1e-130)
                                       (* (fma (- c) z (* i t)) b)
                                       (if (<= y 7.2e+124) 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 = fma(-x, t, (j * c)) * a;
                              	double t_2 = fma(-j, i, (z * x)) * y;
                              	double tmp;
                              	if (y <= -3.1e-56) {
                              		tmp = t_2;
                              	} else if (y <= -1.05e-140) {
                              		tmp = t_1;
                              	} else if (y <= 1e-130) {
                              		tmp = fma(-c, z, (i * t)) * b;
                              	} else if (y <= 7.2e+124) {
                              		tmp = t_1;
                              	} else {
                              		tmp = t_2;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b, c, i, j)
                              	t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a)
                              	t_2 = Float64(fma(Float64(-j), i, Float64(z * x)) * y)
                              	tmp = 0.0
                              	if (y <= -3.1e-56)
                              		tmp = t_2;
                              	elseif (y <= -1.05e-140)
                              		tmp = t_1;
                              	elseif (y <= 1e-130)
                              		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b);
                              	elseif (y <= 7.2e+124)
                              		tmp = t_1;
                              	else
                              		tmp = t_2;
                              	end
                              	return tmp
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -3.1e-56], t$95$2, If[LessEqual[y, -1.05e-140], t$95$1, If[LessEqual[y, 1e-130], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, 7.2e+124], t$95$1, t$95$2]]]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
                              t_2 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                              \mathbf{if}\;y \leq -3.1 \cdot 10^{-56}:\\
                              \;\;\;\;t\_2\\
                              
                              \mathbf{elif}\;y \leq -1.05 \cdot 10^{-140}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;y \leq 10^{-130}:\\
                              \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
                              
                              \mathbf{elif}\;y \leq 7.2 \cdot 10^{+124}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_2\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 3 regimes
                              2. if y < -3.09999999999999987e-56 or 7.19999999999999972e124 < y

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

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

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

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

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

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

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

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

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

                                if -3.09999999999999987e-56 < y < -1.05000000000000009e-140 or 1.0000000000000001e-130 < y < 7.19999999999999972e124

                                1. Initial program 78.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 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. lower-*.f6457.7

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

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

                                if -1.05000000000000009e-140 < y < 1.0000000000000001e-130

                                1. Initial program 86.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 b around inf

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

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

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

                                    \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + i \cdot t\right)} \cdot b \]
                                  4. remove-double-negN/A

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

                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                                  6. sub-negN/A

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

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

                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - i \cdot t\right)\right) \cdot b} \]
                                  9. mul-1-negN/A

                                    \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right)} \cdot b \]
                                  10. sub-negN/A

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

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

                                    \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(i \cdot t\right)\right)\right)\right)\right) \cdot b \]
                                  13. neg-mul-1N/A

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{t \cdot i}\right) \cdot b \]
                                  19. lower-*.f6460.4

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

                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b} \]
                              3. Recombined 3 regimes into one program.
                              4. Final simplification64.0%

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

                              Alternative 9: 49.1% accurate, 1.4× speedup?

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

                                1. Initial program 74.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 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. associate-*r*N/A

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

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

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

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

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

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

                                if -5.0000000000000001e-9 < c < -5.8000000000000001e-67

                                1. Initial program 92.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 x around inf

                                  \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                if -5.8000000000000001e-67 < c < 3.30000000000000026e-169

                                1. Initial program 81.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. lower-*.f6462.0

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

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

                                if 3.30000000000000026e-169 < c < 5e4

                                1. Initial program 80.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 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. lower-*.f6454.5

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

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

                                if 5e4 < c

                                1. Initial program 76.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 j around inf

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

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

                                    \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                  3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -5 \cdot 10^{-9}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;c \leq -5.8 \cdot 10^{-67}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;c \leq 3.3 \cdot 10^{-169}:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{elif}\;c \leq 50000:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \end{array} \]
                              5. Add Preprocessing

                              Alternative 10: 57.5% accurate, 1.5× speedup?

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

                                1. Initial program 71.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 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. associate-*r*N/A

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

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

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

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

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

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

                                if -4.49999999999999984e54 < c < 7e4

                                1. Initial program 82.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) - \color{blue}{b \cdot \left(c \cdot z - t \cdot i\right)}\right) + 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 \color{blue}{\left(c \cdot z - t \cdot i\right)}\right) + j \cdot \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 \color{blue}{\frac{\left(c \cdot z\right) \cdot \left(c \cdot z\right) - \left(t \cdot i\right) \cdot \left(t \cdot i\right)}{c \cdot z + t \cdot i}}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                  4. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) + b \cdot t\right)} \]
                                  13. cancel-sign-subN/A

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

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

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

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

                                  \[\leadsto b \cdot \left(i \cdot t\right) + \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
                                9. Step-by-step derivation
                                  1. Applied rewrites64.2%

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

                                  if 7e4 < c

                                  1. Initial program 76.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 j around inf

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

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

                                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                10. Recombined 3 regimes into one program.
                                11. Final simplification64.3%

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

                                Alternative 11: 29.6% accurate, 1.7× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot x\right) \cdot y\\ t_2 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;i \leq -13500000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;i \leq 1.06 \cdot 10^{-305}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 1.02 \cdot 10^{-200}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b c i j)
                                 :precision binary64
                                 (let* ((t_1 (* (* z x) y)) (t_2 (* (* i t) b)))
                                   (if (<= i -13500000.0)
                                     t_2
                                     (if (<= i 1.06e-305)
                                       t_1
                                       (if (<= i 1.02e-200) (* (* j a) c) (if (<= i 1.58e+90) 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 = (z * x) * y;
                                	double t_2 = (i * t) * b;
                                	double tmp;
                                	if (i <= -13500000.0) {
                                		tmp = t_2;
                                	} else if (i <= 1.06e-305) {
                                		tmp = t_1;
                                	} else if (i <= 1.02e-200) {
                                		tmp = (j * a) * c;
                                	} else if (i <= 1.58e+90) {
                                		tmp = 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 = (z * x) * y
                                    t_2 = (i * t) * b
                                    if (i <= (-13500000.0d0)) then
                                        tmp = t_2
                                    else if (i <= 1.06d-305) then
                                        tmp = t_1
                                    else if (i <= 1.02d-200) then
                                        tmp = (j * a) * c
                                    else if (i <= 1.58d+90) then
                                        tmp = 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 = (z * x) * y;
                                	double t_2 = (i * t) * b;
                                	double tmp;
                                	if (i <= -13500000.0) {
                                		tmp = t_2;
                                	} else if (i <= 1.06e-305) {
                                		tmp = t_1;
                                	} else if (i <= 1.02e-200) {
                                		tmp = (j * a) * c;
                                	} else if (i <= 1.58e+90) {
                                		tmp = t_1;
                                	} else {
                                		tmp = t_2;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b, c, i, j):
                                	t_1 = (z * x) * y
                                	t_2 = (i * t) * b
                                	tmp = 0
                                	if i <= -13500000.0:
                                		tmp = t_2
                                	elif i <= 1.06e-305:
                                		tmp = t_1
                                	elif i <= 1.02e-200:
                                		tmp = (j * a) * c
                                	elif i <= 1.58e+90:
                                		tmp = t_1
                                	else:
                                		tmp = t_2
                                	return tmp
                                
                                function code(x, y, z, t, a, b, c, i, j)
                                	t_1 = Float64(Float64(z * x) * y)
                                	t_2 = Float64(Float64(i * t) * b)
                                	tmp = 0.0
                                	if (i <= -13500000.0)
                                		tmp = t_2;
                                	elseif (i <= 1.06e-305)
                                		tmp = t_1;
                                	elseif (i <= 1.02e-200)
                                		tmp = Float64(Float64(j * a) * c);
                                	elseif (i <= 1.58e+90)
                                		tmp = 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 = (z * x) * y;
                                	t_2 = (i * t) * b;
                                	tmp = 0.0;
                                	if (i <= -13500000.0)
                                		tmp = t_2;
                                	elseif (i <= 1.06e-305)
                                		tmp = t_1;
                                	elseif (i <= 1.02e-200)
                                		tmp = (j * a) * c;
                                	elseif (i <= 1.58e+90)
                                		tmp = 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[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[i, -13500000.0], t$95$2, If[LessEqual[i, 1.06e-305], t$95$1, If[LessEqual[i, 1.02e-200], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[i, 1.58e+90], t$95$1, t$95$2]]]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(z \cdot x\right) \cdot y\\
                                t_2 := \left(i \cdot t\right) \cdot b\\
                                \mathbf{if}\;i \leq -13500000:\\
                                \;\;\;\;t\_2\\
                                
                                \mathbf{elif}\;i \leq 1.06 \cdot 10^{-305}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;i \leq 1.02 \cdot 10^{-200}:\\
                                \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                
                                \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_2\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if i < -1.35e7 or 1.58e90 < i

                                  1. Initial program 73.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites38.2%

                                      \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                    if -1.35e7 < i < 1.06e-305 or 1.02e-200 < i < 1.58e90

                                    1. Initial program 80.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 1.06e-305 < i < 1.02e-200

                                      1. Initial program 93.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 j around inf

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

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

                                          \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                        3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                        \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites40.0%

                                          \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]
                                        2. Step-by-step derivation
                                          1. Applied rewrites46.2%

                                            \[\leadsto \left(j \cdot a\right) \cdot c \]
                                        3. Recombined 3 regimes into one program.
                                        4. Final simplification37.8%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -13500000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;i \leq 1.06 \cdot 10^{-305}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;i \leq 1.02 \cdot 10^{-200}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                        5. Add Preprocessing

                                        Alternative 12: 29.5% accurate, 2.0× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;z \leq 5.1 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (if (<= z -2.7e+94)
                                           (* (* z y) x)
                                           (if (<= z 9.5e-293)
                                             (* (* (- t) x) a)
                                             (if (<= z 5.1e+79) (* (* (- y) j) i) (* (* (- c) z) b)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double tmp;
                                        	if (z <= -2.7e+94) {
                                        		tmp = (z * y) * x;
                                        	} else if (z <= 9.5e-293) {
                                        		tmp = (-t * x) * a;
                                        	} else if (z <= 5.1e+79) {
                                        		tmp = (-y * j) * i;
                                        	} else {
                                        		tmp = (-c * z) * b;
                                        	}
                                        	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 (z <= (-2.7d+94)) then
                                                tmp = (z * y) * x
                                            else if (z <= 9.5d-293) then
                                                tmp = (-t * x) * a
                                            else if (z <= 5.1d+79) then
                                                tmp = (-y * j) * i
                                            else
                                                tmp = (-c * z) * b
                                            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 (z <= -2.7e+94) {
                                        		tmp = (z * y) * x;
                                        	} else if (z <= 9.5e-293) {
                                        		tmp = (-t * x) * a;
                                        	} else if (z <= 5.1e+79) {
                                        		tmp = (-y * j) * i;
                                        	} else {
                                        		tmp = (-c * z) * b;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	tmp = 0
                                        	if z <= -2.7e+94:
                                        		tmp = (z * y) * x
                                        	elif z <= 9.5e-293:
                                        		tmp = (-t * x) * a
                                        	elif z <= 5.1e+79:
                                        		tmp = (-y * j) * i
                                        	else:
                                        		tmp = (-c * z) * b
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0
                                        	if (z <= -2.7e+94)
                                        		tmp = Float64(Float64(z * y) * x);
                                        	elseif (z <= 9.5e-293)
                                        		tmp = Float64(Float64(Float64(-t) * x) * a);
                                        	elseif (z <= 5.1e+79)
                                        		tmp = Float64(Float64(Float64(-y) * j) * i);
                                        	else
                                        		tmp = Float64(Float64(Float64(-c) * z) * b);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	tmp = 0.0;
                                        	if (z <= -2.7e+94)
                                        		tmp = (z * y) * x;
                                        	elseif (z <= 9.5e-293)
                                        		tmp = (-t * x) * a;
                                        	elseif (z <= 5.1e+79)
                                        		tmp = (-y * j) * i;
                                        	else
                                        		tmp = (-c * z) * b;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.7e+94], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 9.5e-293], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 5.1e+79], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\
                                        \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                        
                                        \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\
                                        \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                                        
                                        \mathbf{elif}\;z \leq 5.1 \cdot 10^{+79}:\\
                                        \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 4 regimes
                                        2. if z < -2.7000000000000001e94

                                          1. Initial program 66.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                          4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                            if -2.7000000000000001e94 < z < 9.50000000000000049e-293

                                            1. Initial program 86.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                            4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                              \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites34.7%

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

                                              if 9.50000000000000049e-293 < z < 5.1000000000000001e79

                                              1. Initial program 79.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. mul-1-negN/A

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

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

                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                7. mul-1-negN/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 \]
                                                8. 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 \]
                                                9. remove-double-negN/A

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

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

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

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

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

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

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

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

                                                if 5.1000000000000001e79 < z

                                                1. Initial program 75.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) - \color{blue}{b \cdot \left(c \cdot z - t \cdot i\right)}\right) + 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 \color{blue}{\left(c \cdot z - t \cdot i\right)}\right) + j \cdot \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 \color{blue}{\frac{\left(c \cdot z\right) \cdot \left(c \cdot z\right) - \left(t \cdot i\right) \cdot \left(t \cdot i\right)}{c \cdot z + t \cdot i}}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                  4. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \color{blue}{\left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right) + c \cdot z\right)} \]
                                                  2. distribute-lft-inN/A

                                                    \[\leadsto \color{blue}{\left(-1 \cdot b\right) \cdot \left(-1 \cdot \left(i \cdot t\right)\right) + \left(-1 \cdot b\right) \cdot \left(c \cdot z\right)} \]
                                                  3. mul-1-negN/A

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

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

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

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

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

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

                                                    \[\leadsto b \cdot \left(i \cdot t\right) + \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z\right)\right)} \]
                                                  10. distribute-lft-inN/A

                                                    \[\leadsto \color{blue}{b \cdot \left(i \cdot t + -1 \cdot \left(c \cdot z\right)\right)} \]
                                                  11. +-commutativeN/A

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

                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z\right) + i \cdot t\right) \cdot b} \]
                                                  13. lower-*.f64N/A

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{t \cdot i}\right) \cdot b \]
                                                  19. lower-*.f6443.4

                                                    \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{t \cdot i}\right) \cdot b \]
                                                7. Applied rewrites43.4%

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

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

                                                    \[\leadsto \left(\left(-z\right) \cdot c\right) \cdot b \]
                                                10. Recombined 4 regimes into one program.
                                                11. Final simplification41.9%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;z \leq 5.1 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \end{array} \]
                                                12. Add Preprocessing

                                                Alternative 13: 29.6% accurate, 2.0× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot y\right) \cdot x\\ \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;z \leq 2.75 \cdot 10^{+113}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (let* ((t_1 (* (* z y) x)))
                                                   (if (<= z -2.7e+94)
                                                     t_1
                                                     (if (<= z 9.5e-293)
                                                       (* (* (- t) x) a)
                                                       (if (<= z 2.75e+113) (* (* (- y) j) i) 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 * y) * x;
                                                	double tmp;
                                                	if (z <= -2.7e+94) {
                                                		tmp = t_1;
                                                	} else if (z <= 9.5e-293) {
                                                		tmp = (-t * x) * a;
                                                	} else if (z <= 2.75e+113) {
                                                		tmp = (-y * j) * i;
                                                	} 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 * y) * x
                                                    if (z <= (-2.7d+94)) then
                                                        tmp = t_1
                                                    else if (z <= 9.5d-293) then
                                                        tmp = (-t * x) * a
                                                    else if (z <= 2.75d+113) then
                                                        tmp = (-y * j) * i
                                                    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 * y) * x;
                                                	double tmp;
                                                	if (z <= -2.7e+94) {
                                                		tmp = t_1;
                                                	} else if (z <= 9.5e-293) {
                                                		tmp = (-t * x) * a;
                                                	} else if (z <= 2.75e+113) {
                                                		tmp = (-y * j) * i;
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b, c, i, j):
                                                	t_1 = (z * y) * x
                                                	tmp = 0
                                                	if z <= -2.7e+94:
                                                		tmp = t_1
                                                	elif z <= 9.5e-293:
                                                		tmp = (-t * x) * a
                                                	elif z <= 2.75e+113:
                                                		tmp = (-y * j) * i
                                                	else:
                                                		tmp = t_1
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	t_1 = Float64(Float64(z * y) * x)
                                                	tmp = 0.0
                                                	if (z <= -2.7e+94)
                                                		tmp = t_1;
                                                	elseif (z <= 9.5e-293)
                                                		tmp = Float64(Float64(Float64(-t) * x) * a);
                                                	elseif (z <= 2.75e+113)
                                                		tmp = Float64(Float64(Float64(-y) * j) * i);
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                	t_1 = (z * y) * x;
                                                	tmp = 0.0;
                                                	if (z <= -2.7e+94)
                                                		tmp = t_1;
                                                	elseif (z <= 9.5e-293)
                                                		tmp = (-t * x) * a;
                                                	elseif (z <= 2.75e+113)
                                                		tmp = (-y * j) * i;
                                                	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 * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -2.7e+94], t$95$1, If[LessEqual[z, 9.5e-293], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 2.75e+113], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := \left(z \cdot y\right) \cdot x\\
                                                \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\
                                                \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                                                
                                                \mathbf{elif}\;z \leq 2.75 \cdot 10^{+113}:\\
                                                \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if z < -2.7000000000000001e94 or 2.75e113 < z

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

                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                  4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                    if -2.7000000000000001e94 < z < 9.50000000000000049e-293

                                                    1. Initial program 86.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                    4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites34.7%

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

                                                      if 9.50000000000000049e-293 < z < 2.75e113

                                                      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 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. mul-1-negN/A

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

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

                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                        7. mul-1-negN/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 \]
                                                        8. 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 \]
                                                        9. remove-double-negN/A

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

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

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

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

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

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

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

                                                          \[\leadsto \left(\left(-y\right) \cdot j\right) \cdot i \]
                                                      8. Recombined 3 regimes into one program.
                                                      9. Final simplification41.5%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.7 \cdot 10^{+94}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-293}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;z \leq 2.75 \cdot 10^{+113}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 14: 50.0% accurate, 2.0× speedup?

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

                                                        1. Initial program 74.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 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. associate-*r*N/A

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

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

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

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

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

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

                                                        if -5.0000000000000001e-9 < c < 64000

                                                        1. Initial program 82.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                        4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                        if 64000 < c

                                                        1. Initial program 76.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 j around inf

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

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

                                                            \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                          3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -5 \cdot 10^{-9}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;c \leq 64000:\\ \;\;\;\;\mathsf{fma}\left(-a, t, 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 15: 53.4% accurate, 2.0× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -5 \cdot 10^{-9}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 45000:\\ \;\;\;\;\mathsf{fma}\left(-a, t, 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 (- b) z (* j a)) c)))
                                                         (if (<= c -5e-9) t_1 (if (<= c 45000.0) (* (fma (- a) t (* 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(-b, z, (j * a)) * c;
                                                      	double tmp;
                                                      	if (c <= -5e-9) {
                                                      		tmp = t_1;
                                                      	} else if (c <= 45000.0) {
                                                      		tmp = fma(-a, t, (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(-b), z, Float64(j * a)) * c)
                                                      	tmp = 0.0
                                                      	if (c <= -5e-9)
                                                      		tmp = t_1;
                                                      	elseif (c <= 45000.0)
                                                      		tmp = Float64(fma(Float64(-a), t, 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[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -5e-9], t$95$1, If[LessEqual[c, 45000.0], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
                                                      \mathbf{if}\;c \leq -5 \cdot 10^{-9}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;c \leq 45000:\\
                                                      \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if c < -5.0000000000000001e-9 or 45000 < c

                                                        1. Initial program 74.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. associate-*r*N/A

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

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

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

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

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

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

                                                        if -5.0000000000000001e-9 < c < 45000

                                                        1. Initial program 82.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}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                        4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

                                                      Alternative 16: 41.8% accurate, 2.0× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -1.4 \cdot 10^{+93}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;i \leq 7.4 \cdot 10^{+226}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \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 -1.4e+93)
                                                         (* (* (- y) j) i)
                                                         (if (<= i 7.4e+226) (* (fma (- a) t (* z y)) x) (* (* 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 <= -1.4e+93) {
                                                      		tmp = (-y * j) * i;
                                                      	} else if (i <= 7.4e+226) {
                                                      		tmp = fma(-a, t, (z * y)) * x;
                                                      	} else {
                                                      		tmp = (b * t) * i;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = 0.0
                                                      	if (i <= -1.4e+93)
                                                      		tmp = Float64(Float64(Float64(-y) * j) * i);
                                                      	elseif (i <= 7.4e+226)
                                                      		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                                      	else
                                                      		tmp = Float64(Float64(b * t) * i);
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.4e+93], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 7.4e+226], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;i \leq -1.4 \cdot 10^{+93}:\\
                                                      \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                                      
                                                      \mathbf{elif}\;i \leq 7.4 \cdot 10^{+226}:\\
                                                      \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if i < -1.39999999999999994e93

                                                        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. mul-1-negN/A

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

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

                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                          7. mul-1-negN/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 \]
                                                          8. 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 \]
                                                          9. remove-double-negN/A

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

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

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

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

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

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

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

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

                                                          if -1.39999999999999994e93 < i < 7.39999999999999963e226

                                                          1. Initial program 80.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 x around inf

                                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                          4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                          if 7.39999999999999963e226 < i

                                                          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. mul-1-negN/A

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

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

                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                            7. mul-1-negN/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 \]
                                                            8. 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 \]
                                                            9. remove-double-negN/A

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

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

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

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

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

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

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

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

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

                                                          Alternative 17: 29.7% accurate, 2.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;i \leq -14500000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\ \;\;\;\;\left(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 (* (* i t) b)))
                                                             (if (<= i -14500000.0) t_1 (if (<= i 1.58e+90) (* (* 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 = (i * t) * b;
                                                          	double tmp;
                                                          	if (i <= -14500000.0) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 1.58e+90) {
                                                          		tmp = (z * y) * x;
                                                          	} 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 * t) * b
                                                              if (i <= (-14500000.0d0)) then
                                                                  tmp = t_1
                                                              else if (i <= 1.58d+90) then
                                                                  tmp = (z * y) * x
                                                              else
                                                                  tmp = t_1
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double t_1 = (i * t) * b;
                                                          	double tmp;
                                                          	if (i <= -14500000.0) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 1.58e+90) {
                                                          		tmp = (z * y) * x;
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	t_1 = (i * t) * b
                                                          	tmp = 0
                                                          	if i <= -14500000.0:
                                                          		tmp = t_1
                                                          	elif i <= 1.58e+90:
                                                          		tmp = (z * y) * x
                                                          	else:
                                                          		tmp = t_1
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(Float64(i * t) * b)
                                                          	tmp = 0.0
                                                          	if (i <= -14500000.0)
                                                          		tmp = t_1;
                                                          	elseif (i <= 1.58e+90)
                                                          		tmp = Float64(Float64(z * y) * x);
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = (i * t) * b;
                                                          	tmp = 0.0;
                                                          	if (i <= -14500000.0)
                                                          		tmp = t_1;
                                                          	elseif (i <= 1.58e+90)
                                                          		tmp = (z * y) * x;
                                                          	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 * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[i, -14500000.0], t$95$1, If[LessEqual[i, 1.58e+90], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := \left(i \cdot t\right) \cdot b\\
                                                          \mathbf{if}\;i \leq -14500000:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\
                                                          \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if i < -1.45e7 or 1.58e90 < i

                                                            1. Initial program 73.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites38.2%

                                                                \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                              if -1.45e7 < i < 1.58e90

                                                              1. Initial program 82.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 x around inf

                                                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                              4. 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \left(y \cdot z\right) \cdot x \]
                                                              8. Recombined 2 regimes into one program.
                                                              9. Final simplification35.5%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -14500000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;i \leq 1.58 \cdot 10^{+90}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 18: 29.5% accurate, 2.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(j \cdot c\right) \cdot a\\ \mathbf{if}\;c \leq -2.6 \cdot 10^{-60}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 4.1 \cdot 10^{-103}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (let* ((t_1 (* (* j c) a)))
                                                                 (if (<= c -2.6e-60) t_1 (if (<= c 4.1e-103) (* (* 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 = (j * c) * a;
                                                              	double tmp;
                                                              	if (c <= -2.6e-60) {
                                                              		tmp = t_1;
                                                              	} else if (c <= 4.1e-103) {
                                                              		tmp = (i * t) * b;
                                                              	} 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 = (j * c) * a
                                                                  if (c <= (-2.6d-60)) then
                                                                      tmp = t_1
                                                                  else if (c <= 4.1d-103) then
                                                                      tmp = (i * t) * b
                                                                  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 = (j * c) * a;
                                                              	double tmp;
                                                              	if (c <= -2.6e-60) {
                                                              		tmp = t_1;
                                                              	} else if (c <= 4.1e-103) {
                                                              		tmp = (i * t) * b;
                                                              	} else {
                                                              		tmp = t_1;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	t_1 = (j * c) * a
                                                              	tmp = 0
                                                              	if c <= -2.6e-60:
                                                              		tmp = t_1
                                                              	elif c <= 4.1e-103:
                                                              		tmp = (i * t) * b
                                                              	else:
                                                              		tmp = t_1
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	t_1 = Float64(Float64(j * c) * a)
                                                              	tmp = 0.0
                                                              	if (c <= -2.6e-60)
                                                              		tmp = t_1;
                                                              	elseif (c <= 4.1e-103)
                                                              		tmp = Float64(Float64(i * t) * b);
                                                              	else
                                                              		tmp = t_1;
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	t_1 = (j * c) * a;
                                                              	tmp = 0.0;
                                                              	if (c <= -2.6e-60)
                                                              		tmp = t_1;
                                                              	elseif (c <= 4.1e-103)
                                                              		tmp = (i * t) * b;
                                                              	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[(j * c), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[c, -2.6e-60], t$95$1, If[LessEqual[c, 4.1e-103], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              t_1 := \left(j \cdot c\right) \cdot a\\
                                                              \mathbf{if}\;c \leq -2.6 \cdot 10^{-60}:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              \mathbf{elif}\;c \leq 4.1 \cdot 10^{-103}:\\
                                                              \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;t\_1\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 2 regimes
                                                              2. if c < -2.5999999999999998e-60 or 4.09999999999999996e-103 < c

                                                                1. Initial program 77.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 j around inf

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

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

                                                                    \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                  3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites32.2%

                                                                    \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                                                                  if -2.5999999999999998e-60 < c < 4.09999999999999996e-103

                                                                  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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites30.7%

                                                                      \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]
                                                                  8. Recombined 2 regimes into one program.
                                                                  9. Final simplification31.6%

                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -2.6 \cdot 10^{-60}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq 4.1 \cdot 10^{-103}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                                  10. Add Preprocessing

                                                                  Alternative 19: 22.7% accurate, 5.5× speedup?

                                                                  \[\begin{array}{l} \\ \left(j \cdot c\right) \cdot a \end{array} \]
                                                                  (FPCore (x y z t a b c i j) :precision binary64 (* (* j c) a))
                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                  	return (j * c) * a;
                                                                  }
                                                                  
                                                                  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 = (j * c) * a
                                                                  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 (j * c) * a;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                  	return (j * c) * a
                                                                  
                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                  	return Float64(Float64(j * c) * a)
                                                                  end
                                                                  
                                                                  function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                  	tmp = (j * c) * a;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \left(j \cdot c\right) \cdot a
                                                                  \end{array}
                                                                  
                                                                  Derivation
                                                                  1. Initial program 78.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 j around inf

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

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

                                                                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites21.8%

                                                                      \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]
                                                                    2. Add Preprocessing

                                                                    Alternative 20: 22.9% accurate, 5.5× speedup?

                                                                    \[\begin{array}{l} \\ \left(j \cdot a\right) \cdot c \end{array} \]
                                                                    (FPCore (x y z t a b c i j) :precision binary64 (* (* j a) c))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	return (j * a) * c;
                                                                    }
                                                                    
                                                                    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 = (j * a) * c
                                                                    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 (j * a) * c;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	return (j * a) * c
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	return Float64(Float64(j * a) * c)
                                                                    end
                                                                    
                                                                    function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                    	tmp = (j * a) * c;
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \left(j \cdot a\right) \cdot c
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Initial program 78.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 j around inf

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

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

                                                                        \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                      3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                    7. Step-by-step derivation
                                                                      1. Applied rewrites21.8%

                                                                        \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]
                                                                      2. Step-by-step derivation
                                                                        1. Applied rewrites21.5%

                                                                          \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                        2. Add Preprocessing

                                                                        Developer Target 1: 60.0% 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 2024277 
                                                                        (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)))))