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

Percentage Accurate: 73.7% → 83.5%
Time: 10.4s
Alternatives: 25
Speedup: 0.9×

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 25 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: 73.7% accurate, 1.0× speedup?

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

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

Alternative 1: 83.5% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \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 (* j a) c (* (fma (- j) i (* z x)) y)))))
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((j * a), c, (fma(-j, i, (z * x)) * y));
	}
	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 = fma(Float64(j * a), c, Float64(fma(Float64(-j), i, Float64(z * x)) * y));
	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[(j * a), $MachinePrecision] * c + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $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(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
      16. cancel-sign-sub-invN/A

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
      23. lower-*.f6443.5

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

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

      \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \color{blue}{\left(a \cdot \left(c \cdot j\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)} \]
    7. Step-by-step derivation
      1. Applied rewrites58.5%

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

        \[\leadsto j \cdot \left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) + \color{blue}{x \cdot \left(y \cdot z\right)} \]
      3. Step-by-step derivation
        1. Applied rewrites60.6%

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

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

      Alternative 2: 77.1% accurate, 0.3× speedup?

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

        1. Initial program 88.7%

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

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

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

        if 5.0000000000000003e181 < (+.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 90.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
          16. cancel-sign-sub-invN/A

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
          23. lower-*.f6443.5

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

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

          \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \color{blue}{\left(a \cdot \left(c \cdot j\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)} \]
        7. Step-by-step derivation
          1. Applied rewrites58.5%

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

            \[\leadsto j \cdot \left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) + \color{blue}{x \cdot \left(y \cdot z\right)} \]
          3. Step-by-step derivation
            1. Applied rewrites60.6%

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

            \[\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 5 \cdot 10^{+181}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\ \mathbf{elif}\;\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(j \cdot c\right) \cdot a - \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(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \end{array} \]
          6. Add Preprocessing

          Alternative 3: 78.2% accurate, 0.9× speedup?

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

            1. Initial program 56.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
              16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
              23. lower-*.f6469.4

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

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

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

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

                \[\leadsto j \cdot \left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right) + \color{blue}{x \cdot \left(y \cdot z\right)} \]
              3. Step-by-step derivation
                1. Applied rewrites83.7%

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

                if -8.8000000000000003e100 < y < 9e11

                1. Initial program 79.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 0

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

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

                if 9e11 < y

                1. Initial program 63.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 y around 0

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

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

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

              Alternative 4: 72.2% accurate, 0.9× speedup?

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

                1. Initial program 54.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                  16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                  23. lower-*.f6468.2

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

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

                  \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \color{blue}{\left(a \cdot \left(c \cdot j\right) + y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)\right)} \]
                7. Step-by-step derivation
                  1. Applied rewrites77.5%

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

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

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

                    if -5.8999999999999997e117 < y < 1.99999999999999983e29

                    1. Initial program 79.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 0

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

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

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

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

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

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

                    if 1.99999999999999983e29 < y

                    1. Initial program 61.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                      16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                      23. lower-*.f6470.0

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -5.9 \cdot 10^{+117}:\\ \;\;\;\;\mathsf{fma}\left(j \cdot a, c, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+29}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a - \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(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 5: 72.0% accurate, 1.1× speedup?

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

                      1. Initial program 63.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -2.80000000000000017e31 < a < -2.59999999999999988e-157

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

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

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

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

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

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

                        \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), \frac{x}{b}, i \cdot t\right)\right) \cdot b} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                      6. 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)} \]
                      7. Applied rewrites76.8%

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

                      if -2.59999999999999988e-157 < a < 2.79999999999999984e-55

                      1. Initial program 82.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 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 2.79999999999999984e-55 < a

                      1. Initial program 64.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                        16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                        23. lower-*.f6470.0

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

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

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

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

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

                      Alternative 6: 70.0% accurate, 1.1× speedup?

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

                        1. Initial program 63.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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -1.32e29 < a < -2.7499999999999999e-157

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

                          \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                        4. Applied rewrites69.2%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                          13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                          24. lower-neg.f6460.8

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

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

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

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

                          if -2.7499999999999999e-157 < a < 2.79999999999999984e-55

                          1. Initial program 82.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 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if 2.79999999999999984e-55 < a

                          1. Initial program 64.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                            16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                            23. lower-*.f6470.0

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

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

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

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

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

                          Alternative 7: 69.3% accurate, 1.1× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_1\right)\\ \mathbf{if}\;a \leq -8.8 \cdot 10^{+83}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -2.75 \cdot 10^{-157}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, 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 (- i) j (* z x)) y))
                                  (t_2 (fma (fma (- x) t (* j c)) a t_1)))
                             (if (<= a -8.8e+83)
                               t_2
                               (if (<= a -2.75e-157)
                                 (fma (* i b) t (* (fma (- b) c (* y x)) z))
                                 (if (<= a 2.8e-55) (fma (fma (- z) c (* i t)) 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 = fma(-i, j, (z * x)) * y;
                          	double t_2 = fma(fma(-x, t, (j * c)), a, t_1);
                          	double tmp;
                          	if (a <= -8.8e+83) {
                          		tmp = t_2;
                          	} else if (a <= -2.75e-157) {
                          		tmp = fma((i * b), t, (fma(-b, c, (y * x)) * z));
                          	} else if (a <= 2.8e-55) {
                          		tmp = fma(fma(-z, c, (i * t)), b, t_1);
                          	} else {
                          		tmp = t_2;
                          	}
                          	return tmp;
                          }
                          
                          function code(x, y, z, t, a, b, c, i, j)
                          	t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y)
                          	t_2 = fma(fma(Float64(-x), t, Float64(j * c)), a, t_1)
                          	tmp = 0.0
                          	if (a <= -8.8e+83)
                          		tmp = t_2;
                          	elseif (a <= -2.75e-157)
                          		tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), c, Float64(y * x)) * z));
                          	elseif (a <= 2.8e-55)
                          		tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, 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[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + t$95$1), $MachinePrecision]}, If[LessEqual[a, -8.8e+83], t$95$2, If[LessEqual[a, -2.75e-157], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-55], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + t$95$1), $MachinePrecision], t$95$2]]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                          t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_1\right)\\
                          \mathbf{if}\;a \leq -8.8 \cdot 10^{+83}:\\
                          \;\;\;\;t\_2\\
                          
                          \mathbf{elif}\;a \leq -2.75 \cdot 10^{-157}:\\
                          \;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
                          
                          \mathbf{elif}\;a \leq 2.8 \cdot 10^{-55}:\\
                          \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, t\_1\right)\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_2\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if a < -8.79999999999999995e83 or 2.79999999999999984e-55 < a

                            1. Initial program 63.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                              16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                              23. lower-*.f6469.5

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

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

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

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

                              if -8.79999999999999995e83 < a < -2.7499999999999999e-157

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

                                \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                              4. Applied rewrites72.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                                24. lower-neg.f6461.5

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

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

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

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

                                if -2.7499999999999999e-157 < a < 2.79999999999999984e-55

                                1. Initial program 82.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 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 8: 70.9% accurate, 1.2× speedup?

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

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

                                  \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                4. Applied rewrites77.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                  13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                                  24. lower-neg.f6478.3

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

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

                                if -0.0389999999999999999 < b < 1.62000000000000006e156

                                1. Initial program 69.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                                  16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                                  23. lower-*.f6470.2

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

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

                                if 1.62000000000000006e156 < b

                                1. Initial program 66.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 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. +-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 9: 64.4% accurate, 1.2× speedup?

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

                                1. Initial program 63.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                                  16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                                  23. lower-*.f6469.5

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

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

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

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

                                  if -8.79999999999999995e83 < a < 2.79999999999999984e-55

                                  1. Initial program 77.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}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                  4. Applied rewrites72.5%

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                    13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                                    24. lower-neg.f6470.5

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

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

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

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

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

                                  Alternative 10: 61.6% accurate, 1.4× speedup?

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

                                    1. Initial program 74.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}{x \cdot \left(y \cdot z\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                    4. Step-by-step derivation
                                      1. *-commutativeN/A

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

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

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

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

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

                                      \[\leadsto \color{blue}{\left(z \cdot x\right) \cdot y} + j \cdot \left(c \cdot a - y \cdot i\right) \]

                                    if -4.8e-14 < j < 1.25e-63

                                    1. Initial program 65.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}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                    4. Applied rewrites72.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                      13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                                      24. lower-neg.f6471.6

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

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

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

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

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

                                    Alternative 11: 29.8% accurate, 1.4× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -2 \cdot 10^{+105}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-194}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 5.1 \cdot 10^{-259}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;i \leq 1.75 \cdot 10^{+145}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (if (<= i -2.65e+221)
                                       (* (* b t) i)
                                       (if (<= i -2e+105)
                                         (* (* (- i) j) y)
                                         (if (<= i -3.8e-194)
                                           (* (* y x) z)
                                           (if (<= i 5.1e-259)
                                             (* (* j a) c)
                                             (if (<= i 1.75e+145) (* (* z x) y) (* (* (- j) y) 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 <= -2.65e+221) {
                                    		tmp = (b * t) * i;
                                    	} else if (i <= -2e+105) {
                                    		tmp = (-i * j) * y;
                                    	} else if (i <= -3.8e-194) {
                                    		tmp = (y * x) * z;
                                    	} else if (i <= 5.1e-259) {
                                    		tmp = (j * a) * c;
                                    	} else if (i <= 1.75e+145) {
                                    		tmp = (z * x) * y;
                                    	} else {
                                    		tmp = (-j * y) * i;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                        real(8), intent (in) :: x
                                        real(8), intent (in) :: y
                                        real(8), intent (in) :: z
                                        real(8), intent (in) :: t
                                        real(8), intent (in) :: a
                                        real(8), intent (in) :: b
                                        real(8), intent (in) :: c
                                        real(8), intent (in) :: i
                                        real(8), intent (in) :: j
                                        real(8) :: tmp
                                        if (i <= (-2.65d+221)) then
                                            tmp = (b * t) * i
                                        else if (i <= (-2d+105)) then
                                            tmp = (-i * j) * y
                                        else if (i <= (-3.8d-194)) then
                                            tmp = (y * x) * z
                                        else if (i <= 5.1d-259) then
                                            tmp = (j * a) * c
                                        else if (i <= 1.75d+145) then
                                            tmp = (z * x) * y
                                        else
                                            tmp = (-j * y) * i
                                        end if
                                        code = tmp
                                    end function
                                    
                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double tmp;
                                    	if (i <= -2.65e+221) {
                                    		tmp = (b * t) * i;
                                    	} else if (i <= -2e+105) {
                                    		tmp = (-i * j) * y;
                                    	} else if (i <= -3.8e-194) {
                                    		tmp = (y * x) * z;
                                    	} else if (i <= 5.1e-259) {
                                    		tmp = (j * a) * c;
                                    	} else if (i <= 1.75e+145) {
                                    		tmp = (z * x) * y;
                                    	} else {
                                    		tmp = (-j * y) * i;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b, c, i, j):
                                    	tmp = 0
                                    	if i <= -2.65e+221:
                                    		tmp = (b * t) * i
                                    	elif i <= -2e+105:
                                    		tmp = (-i * j) * y
                                    	elif i <= -3.8e-194:
                                    		tmp = (y * x) * z
                                    	elif i <= 5.1e-259:
                                    		tmp = (j * a) * c
                                    	elif i <= 1.75e+145:
                                    		tmp = (z * x) * y
                                    	else:
                                    		tmp = (-j * y) * i
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	tmp = 0.0
                                    	if (i <= -2.65e+221)
                                    		tmp = Float64(Float64(b * t) * i);
                                    	elseif (i <= -2e+105)
                                    		tmp = Float64(Float64(Float64(-i) * j) * y);
                                    	elseif (i <= -3.8e-194)
                                    		tmp = Float64(Float64(y * x) * z);
                                    	elseif (i <= 5.1e-259)
                                    		tmp = Float64(Float64(j * a) * c);
                                    	elseif (i <= 1.75e+145)
                                    		tmp = Float64(Float64(z * x) * y);
                                    	else
                                    		tmp = Float64(Float64(Float64(-j) * y) * i);
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                    	tmp = 0.0;
                                    	if (i <= -2.65e+221)
                                    		tmp = (b * t) * i;
                                    	elseif (i <= -2e+105)
                                    		tmp = (-i * j) * y;
                                    	elseif (i <= -3.8e-194)
                                    		tmp = (y * x) * z;
                                    	elseif (i <= 5.1e-259)
                                    		tmp = (j * a) * c;
                                    	elseif (i <= 1.75e+145)
                                    		tmp = (z * x) * y;
                                    	else
                                    		tmp = (-j * y) * i;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.65e+221], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -2e+105], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, -3.8e-194], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 5.1e-259], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[i, 1.75e+145], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision]]]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\
                                    \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                    
                                    \mathbf{elif}\;i \leq -2 \cdot 10^{+105}:\\
                                    \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
                                    
                                    \mathbf{elif}\;i \leq -3.8 \cdot 10^{-194}:\\
                                    \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                    
                                    \mathbf{elif}\;i \leq 5.1 \cdot 10^{-259}:\\
                                    \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                    
                                    \mathbf{elif}\;i \leq 1.75 \cdot 10^{+145}:\\
                                    \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 6 regimes
                                    2. if i < -2.6499999999999998e221

                                      1. Initial program 38.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -2.6499999999999998e221 < i < -1.9999999999999999e105

                                        1. Initial program 68.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -1.9999999999999999e105 < i < -3.8000000000000003e-194

                                          1. Initial program 77.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if -3.8000000000000003e-194 < i < 5.0999999999999999e-259

                                              1. Initial program 77.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 c around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(a \cdot j\right) \cdot c \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites44.3%

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

                                                if 5.0999999999999999e-259 < i < 1.7500000000000001e145

                                                1. Initial program 71.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  if 1.7500000000000001e145 < i

                                                  1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -2 \cdot 10^{+105}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-194}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 5.1 \cdot 10^{-259}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;i \leq 1.75 \cdot 10^{+145}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \end{array} \]
                                                  10. Add Preprocessing

                                                  Alternative 12: 53.0% accurate, 1.4× speedup?

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

                                                    1. Initial program 65.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 y around inf

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

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

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

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

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

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

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

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

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

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

                                                    if -5.10000000000000022e-22 < y < -1.05000000000000003e-293

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if -1.05000000000000003e-293 < y < 8.19999999999999995e-228

                                                    1. Initial program 81.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 c around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if 8.19999999999999995e-228 < y < 2.40000000000000003e-42

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

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

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

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

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

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

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

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

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

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

                                                  Alternative 13: 60.0% accurate, 1.5× speedup?

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

                                                    1. Initial program 74.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 b around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j}\right) \]
                                                      16. cancel-sign-sub-invN/A

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

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

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

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

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

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

                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j\right) \]
                                                      23. lower-*.f6472.1

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

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

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

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

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

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

                                                        if -4.8e-14 < j < 1.25e-63

                                                        1. Initial program 65.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}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                                        4. Applied rewrites72.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                                          13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, y \cdot z\right), x, \left(-b\right) \cdot \mathsf{fma}\left(z, c, \color{blue}{\left(\mathsf{neg}\left(i\right)\right)} \cdot t\right)\right) \]
                                                          24. lower-neg.f6471.6

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

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

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

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

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

                                                        Alternative 14: 55.8% accurate, 1.5× speedup?

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

                                                          1. Initial program 63.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 a around inf

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

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

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

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

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

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

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

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

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

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

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

                                                          if -5.10000000000000004e32 < a < 4.10000000000000014e-48

                                                          1. Initial program 78.6%

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

                                                            \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                                          4. Applied rewrites71.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, \color{blue}{y \cdot z}\right), x, \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(-a, t, y \cdot z\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z - i \cdot t\right)\right)}\right) \]
                                                            13. associate-*r*N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if 4.10000000000000014e-48 < a

                                                            1. Initial program 63.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 y around 0

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

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

                                                              \[\leadsto -1 \cdot \color{blue}{\left(j \cdot \left(-1 \cdot \left(a \cdot c\right) + i \cdot y\right)\right)} \]
                                                            6. Step-by-step derivation
                                                              1. Applied rewrites53.4%

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

                                                            Alternative 15: 53.0% accurate, 1.6× speedup?

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

                                                              1. Initial program 65.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 y around inf

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

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

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

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

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

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

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

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

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

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

                                                              if -5.10000000000000022e-22 < y < -1.05000000000000003e-293

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot x, a, b \cdot i\right)} \cdot t \]
                                                                9. mul-1-negN/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                                10. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                                11. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                12. lower-*.f6458.5

                                                                  \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                              5. Applied rewrites58.5%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t} \]

                                                              if -1.05000000000000003e-293 < y < 2.79999999999999982e69

                                                              1. Initial program 76.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 c around inf

                                                                \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                2. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                3. sub-negN/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                4. mul-1-negN/A

                                                                  \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                5. +-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                6. *-commutativeN/A

                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                7. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                8. lower-fma.f64N/A

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                9. mul-1-negN/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                10. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                11. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                12. lower-*.f6448.6

                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                              5. Applied rewrites48.6%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                            3. Recombined 3 regimes into one program.
                                                            4. Add Preprocessing

                                                            Alternative 16: 45.2% accurate, 1.6× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{if}\;y \leq -1.15 \cdot 10^{-24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -1 \cdot 10^{-244}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{+37}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (let* ((t_1 (* (fma (- i) j (* z x)) y)))
                                                               (if (<= y -1.15e-24)
                                                                 t_1
                                                                 (if (<= y -1e-244)
                                                                   (* (* j c) a)
                                                                   (if (<= y 2.7e+37) (* (fma (- c) b (* y x)) z) t_1)))))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = fma(-i, j, (z * x)) * y;
                                                            	double tmp;
                                                            	if (y <= -1.15e-24) {
                                                            		tmp = t_1;
                                                            	} else if (y <= -1e-244) {
                                                            		tmp = (j * c) * a;
                                                            	} else if (y <= 2.7e+37) {
                                                            		tmp = fma(-c, b, (y * x)) * z;
                                                            	} else {
                                                            		tmp = t_1;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y)
                                                            	tmp = 0.0
                                                            	if (y <= -1.15e-24)
                                                            		tmp = t_1;
                                                            	elseif (y <= -1e-244)
                                                            		tmp = Float64(Float64(j * c) * a);
                                                            	elseif (y <= 2.7e+37)
                                                            		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                                                            	else
                                                            		tmp = t_1;
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -1.15e-24], t$95$1, If[LessEqual[y, -1e-244], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 2.7e+37], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                                                            \mathbf{if}\;y \leq -1.15 \cdot 10^{-24}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            \mathbf{elif}\;y \leq -1 \cdot 10^{-244}:\\
                                                            \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                            
                                                            \mathbf{elif}\;y \leq 2.7 \cdot 10^{+37}:\\
                                                            \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_1\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 3 regimes
                                                            2. if y < -1.1500000000000001e-24 or 2.69999999999999986e37 < y

                                                              1. Initial program 64.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 y around inf

                                                                \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                2. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                3. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                4. lower-fma.f64N/A

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                5. neg-mul-1N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                6. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                7. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                8. lower-*.f6471.1

                                                                  \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                              5. Applied rewrites71.1%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]

                                                              if -1.1500000000000001e-24 < y < -9.9999999999999993e-245

                                                              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 c around inf

                                                                \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                2. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                3. sub-negN/A

                                                                  \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                4. mul-1-negN/A

                                                                  \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                5. +-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                6. *-commutativeN/A

                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                7. associate-*r*N/A

                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                8. lower-fma.f64N/A

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                9. mul-1-negN/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                10. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                11. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                12. lower-*.f6448.6

                                                                  \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                              5. Applied rewrites48.6%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                              6. Taylor expanded in z around 0

                                                                \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites37.7%

                                                                  \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                                                                if -9.9999999999999993e-245 < y < 2.69999999999999986e37

                                                                1. Initial program 80.9%

                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in z around inf

                                                                  \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                  2. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                  3. sub-negN/A

                                                                    \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                  4. mul-1-negN/A

                                                                    \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                  5. +-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                  6. *-commutativeN/A

                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                  7. associate-*r*N/A

                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                  8. lower-fma.f64N/A

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                  9. neg-mul-1N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                  10. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                  11. *-commutativeN/A

                                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                  12. lower-*.f6440.2

                                                                    \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                5. Applied rewrites40.2%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                              8. Recombined 3 regimes into one program.
                                                              9. Add Preprocessing

                                                              Alternative 17: 42.3% accurate, 1.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -4 \cdot 10^{+184}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;i \leq 9.5 \cdot 10^{+194}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (if (<= i -2.65e+221)
                                                                 (* (* b t) i)
                                                                 (if (<= i -4e+184)
                                                                   (* (* (- i) j) y)
                                                                   (if (<= i 9.5e+194) (* (fma (- c) b (* y x)) z) (* (* (- j) y) 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 <= -2.65e+221) {
                                                              		tmp = (b * t) * i;
                                                              	} else if (i <= -4e+184) {
                                                              		tmp = (-i * j) * y;
                                                              	} else if (i <= 9.5e+194) {
                                                              		tmp = fma(-c, b, (y * x)) * z;
                                                              	} else {
                                                              		tmp = (-j * y) * i;
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0
                                                              	if (i <= -2.65e+221)
                                                              		tmp = Float64(Float64(b * t) * i);
                                                              	elseif (i <= -4e+184)
                                                              		tmp = Float64(Float64(Float64(-i) * j) * y);
                                                              	elseif (i <= 9.5e+194)
                                                              		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                                                              	else
                                                              		tmp = Float64(Float64(Float64(-j) * y) * i);
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.65e+221], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, -4e+184], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 9.5e+194], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision]]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\
                                                              \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                              
                                                              \mathbf{elif}\;i \leq -4 \cdot 10^{+184}:\\
                                                              \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
                                                              
                                                              \mathbf{elif}\;i \leq 9.5 \cdot 10^{+194}:\\
                                                              \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 4 regimes
                                                              2. if i < -2.6499999999999998e221

                                                                1. Initial program 38.3%

                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in i around inf

                                                                  \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                  2. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                  3. sub-negN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                                                  4. *-commutativeN/A

                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                  5. associate-*r*N/A

                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                  6. mul-1-negN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                                                  7. remove-double-negN/A

                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                  8. lower-fma.f64N/A

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                  9. mul-1-negN/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                  10. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                  11. lower-*.f6469.8

                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                5. Applied rewrites69.8%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                6. Taylor expanded in y around 0

                                                                  \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites67.7%

                                                                    \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                                  if -2.6499999999999998e221 < i < -4.00000000000000007e184

                                                                  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 y around inf

                                                                    \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                  4. Step-by-step derivation
                                                                    1. *-commutativeN/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                    2. lower-*.f64N/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                    3. associate-*r*N/A

                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                    4. lower-fma.f64N/A

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                    5. neg-mul-1N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                    6. lower-neg.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                    7. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                    8. lower-*.f6466.4

                                                                      \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                  5. Applied rewrites66.4%

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]
                                                                  6. Taylor expanded in x around 0

                                                                    \[\leadsto \left(-1 \cdot \left(i \cdot j\right)\right) \cdot y \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites66.1%

                                                                      \[\leadsto \left(\left(-j\right) \cdot i\right) \cdot y \]

                                                                    if -4.00000000000000007e184 < i < 9.5e194

                                                                    1. Initial program 74.4%

                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                    2. Add Preprocessing
                                                                    3. Taylor expanded in z around inf

                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                    4. Step-by-step derivation
                                                                      1. *-commutativeN/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                      2. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                      3. sub-negN/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                      4. mul-1-negN/A

                                                                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                      5. +-commutativeN/A

                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                      6. *-commutativeN/A

                                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                      7. associate-*r*N/A

                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                      8. lower-fma.f64N/A

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                      9. neg-mul-1N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                      11. *-commutativeN/A

                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                      12. lower-*.f6449.5

                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                    5. Applied rewrites49.5%

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]

                                                                    if 9.5e194 < i

                                                                    1. Initial program 63.2%

                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                    2. Add Preprocessing
                                                                    3. Taylor expanded in i around inf

                                                                      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                    4. Step-by-step derivation
                                                                      1. *-commutativeN/A

                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                      2. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                      3. sub-negN/A

                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                                                      4. *-commutativeN/A

                                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                      5. associate-*r*N/A

                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                      6. mul-1-negN/A

                                                                        \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                                                      7. remove-double-negN/A

                                                                        \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                      8. lower-fma.f64N/A

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                      9. mul-1-negN/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                      11. lower-*.f6478.4

                                                                        \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                    5. Applied rewrites78.4%

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                    6. Taylor expanded in y around inf

                                                                      \[\leadsto \left(-1 \cdot \left(j \cdot y\right)\right) \cdot i \]
                                                                    7. Step-by-step derivation
                                                                      1. Applied rewrites63.5%

                                                                        \[\leadsto \left(\left(-j\right) \cdot y\right) \cdot i \]
                                                                    8. Recombined 4 regimes into one program.
                                                                    9. Final simplification52.9%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.65 \cdot 10^{+221}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;i \leq -4 \cdot 10^{+184}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;i \leq 9.5 \cdot 10^{+194}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \end{array} \]
                                                                    10. Add Preprocessing

                                                                    Alternative 18: 28.7% accurate, 2.0× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot x\right) \cdot y\\ \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq -8.5 \cdot 10^{-262}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 8.6 \cdot 10^{-94}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\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 (* (* z x) y)))
                                                                       (if (<= y -6.8e-33)
                                                                         t_1
                                                                         (if (<= y -8.5e-262)
                                                                           (* (* j c) a)
                                                                           (if (<= y 8.6e-94) (* (* (- 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 = (z * x) * y;
                                                                    	double tmp;
                                                                    	if (y <= -6.8e-33) {
                                                                    		tmp = t_1;
                                                                    	} else if (y <= -8.5e-262) {
                                                                    		tmp = (j * c) * a;
                                                                    	} else if (y <= 8.6e-94) {
                                                                    		tmp = (-c * z) * 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 = (z * x) * y
                                                                        if (y <= (-6.8d-33)) then
                                                                            tmp = t_1
                                                                        else if (y <= (-8.5d-262)) then
                                                                            tmp = (j * c) * a
                                                                        else if (y <= 8.6d-94) then
                                                                            tmp = (-c * z) * 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 = (z * x) * y;
                                                                    	double tmp;
                                                                    	if (y <= -6.8e-33) {
                                                                    		tmp = t_1;
                                                                    	} else if (y <= -8.5e-262) {
                                                                    		tmp = (j * c) * a;
                                                                    	} else if (y <= 8.6e-94) {
                                                                    		tmp = (-c * z) * b;
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	t_1 = (z * x) * y
                                                                    	tmp = 0
                                                                    	if y <= -6.8e-33:
                                                                    		tmp = t_1
                                                                    	elif y <= -8.5e-262:
                                                                    		tmp = (j * c) * a
                                                                    	elif y <= 8.6e-94:
                                                                    		tmp = (-c * z) * b
                                                                    	else:
                                                                    		tmp = t_1
                                                                    	return tmp
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = Float64(Float64(z * x) * y)
                                                                    	tmp = 0.0
                                                                    	if (y <= -6.8e-33)
                                                                    		tmp = t_1;
                                                                    	elseif (y <= -8.5e-262)
                                                                    		tmp = Float64(Float64(j * c) * a);
                                                                    	elseif (y <= 8.6e-94)
                                                                    		tmp = Float64(Float64(Float64(-c) * z) * b);
                                                                    	else
                                                                    		tmp = t_1;
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = (z * x) * y;
                                                                    	tmp = 0.0;
                                                                    	if (y <= -6.8e-33)
                                                                    		tmp = t_1;
                                                                    	elseif (y <= -8.5e-262)
                                                                    		tmp = (j * c) * a;
                                                                    	elseif (y <= 8.6e-94)
                                                                    		tmp = (-c * z) * 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[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -6.8e-33], t$95$1, If[LessEqual[y, -8.5e-262], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 8.6e-94], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := \left(z \cdot x\right) \cdot y\\
                                                                    \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{elif}\;y \leq -8.5 \cdot 10^{-262}:\\
                                                                    \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                    
                                                                    \mathbf{elif}\;y \leq 8.6 \cdot 10^{-94}:\\
                                                                    \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 3 regimes
                                                                    2. if y < -6.8000000000000001e-33 or 8.5999999999999997e-94 < y

                                                                      1. Initial program 66.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 y around inf

                                                                        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. *-commutativeN/A

                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                        2. lower-*.f64N/A

                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                        3. associate-*r*N/A

                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                        4. lower-fma.f64N/A

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                        5. neg-mul-1N/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                        6. lower-neg.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                        7. *-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                        8. lower-*.f6464.6

                                                                          \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                      5. Applied rewrites64.6%

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]
                                                                      6. Taylor expanded in x around inf

                                                                        \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites40.1%

                                                                          \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                        if -6.8000000000000001e-33 < y < -8.5e-262

                                                                        1. Initial program 71.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 c around inf

                                                                          \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                        4. Step-by-step derivation
                                                                          1. *-commutativeN/A

                                                                            \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                          2. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                          3. sub-negN/A

                                                                            \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                          4. mul-1-negN/A

                                                                            \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                          5. +-commutativeN/A

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                          6. *-commutativeN/A

                                                                            \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                          7. associate-*r*N/A

                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                          8. lower-fma.f64N/A

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                          9. mul-1-negN/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                          10. lower-neg.f64N/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                          11. *-commutativeN/A

                                                                            \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                          12. lower-*.f6447.5

                                                                            \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                        5. Applied rewrites47.5%

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                        6. Taylor expanded in z around 0

                                                                          \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites39.3%

                                                                            \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                                                                          if -8.5e-262 < y < 8.5999999999999997e-94

                                                                          1. Initial program 82.4%

                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                          2. Add Preprocessing
                                                                          3. Taylor expanded in z around inf

                                                                            \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                          4. Step-by-step derivation
                                                                            1. *-commutativeN/A

                                                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                            2. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                            3. sub-negN/A

                                                                              \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                            4. mul-1-negN/A

                                                                              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                            5. +-commutativeN/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                            6. *-commutativeN/A

                                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                            7. associate-*r*N/A

                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                            8. lower-fma.f64N/A

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                            9. neg-mul-1N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                            10. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                            11. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                            12. lower-*.f6440.4

                                                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                          5. Applied rewrites40.4%

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                          6. Taylor expanded in x around 0

                                                                            \[\leadsto -1 \cdot \color{blue}{\left(b \cdot \left(c \cdot z\right)\right)} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites40.2%

                                                                              \[\leadsto \left(-b\right) \cdot \color{blue}{\left(z \cdot c\right)} \]
                                                                          8. Recombined 3 regimes into one program.
                                                                          9. Final simplification40.0%

                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq -8.5 \cdot 10^{-262}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 8.6 \cdot 10^{-94}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                          10. Add Preprocessing

                                                                          Alternative 19: 54.0% accurate, 2.0× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\ \mathbf{if}\;y \leq -5.1 \cdot 10^{-22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 0.00116:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b c i j)
                                                                           :precision binary64
                                                                           (let* ((t_1 (* (fma (- i) j (* z x)) y)))
                                                                             (if (<= y -5.1e-22)
                                                                               t_1
                                                                               (if (<= y 0.00116) (* (fma (- x) a (* i b)) t) t_1))))
                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                          	double t_1 = fma(-i, j, (z * x)) * y;
                                                                          	double tmp;
                                                                          	if (y <= -5.1e-22) {
                                                                          		tmp = t_1;
                                                                          	} else if (y <= 0.00116) {
                                                                          		tmp = fma(-x, a, (i * b)) * t;
                                                                          	} else {
                                                                          		tmp = t_1;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                          	t_1 = Float64(fma(Float64(-i), j, Float64(z * x)) * y)
                                                                          	tmp = 0.0
                                                                          	if (y <= -5.1e-22)
                                                                          		tmp = t_1;
                                                                          	elseif (y <= 0.00116)
                                                                          		tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t);
                                                                          	else
                                                                          		tmp = t_1;
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.1e-22], t$95$1, If[LessEqual[y, 0.00116], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
                                                                          \mathbf{if}\;y \leq -5.1 \cdot 10^{-22}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          \mathbf{elif}\;y \leq 0.00116:\\
                                                                          \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 2 regimes
                                                                          2. if y < -5.10000000000000022e-22 or 0.00116 < y

                                                                            1. Initial program 65.1%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in y around inf

                                                                              \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                              3. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                              4. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                              5. neg-mul-1N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                              6. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                              7. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                              8. lower-*.f6468.4

                                                                                \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                            5. Applied rewrites68.4%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]

                                                                            if -5.10000000000000022e-22 < y < 0.00116

                                                                            1. Initial program 78.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 t around inf

                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                              3. sub-negN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \cdot t \]
                                                                              4. *-commutativeN/A

                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(x \cdot a\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                                              5. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot x\right) \cdot a} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \cdot t \]
                                                                              6. mul-1-negN/A

                                                                                \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \cdot t \]
                                                                              7. remove-double-negN/A

                                                                                \[\leadsto \left(\left(-1 \cdot x\right) \cdot a + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                              8. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot x, a, b \cdot i\right)} \cdot t \]
                                                                              9. mul-1-negN/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(x\right)}, a, b \cdot i\right) \cdot t \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, a, b \cdot i\right) \cdot t \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                              12. lower-*.f6449.0

                                                                                \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                            5. Applied rewrites49.0%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t} \]
                                                                          3. Recombined 2 regimes into one program.
                                                                          4. Add Preprocessing

                                                                          Alternative 20: 50.7% accurate, 2.0× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -1.2 \cdot 10^{-52}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{-96}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b c i j)
                                                                           :precision binary64
                                                                           (let* ((t_1 (* (fma (- c) b (* y x)) z)))
                                                                             (if (<= z -1.2e-52)
                                                                               t_1
                                                                               (if (<= z 8.5e-96) (* (fma (- i) y (* c a)) j) t_1))))
                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                          	double t_1 = fma(-c, b, (y * x)) * z;
                                                                          	double tmp;
                                                                          	if (z <= -1.2e-52) {
                                                                          		tmp = t_1;
                                                                          	} else if (z <= 8.5e-96) {
                                                                          		tmp = fma(-i, y, (c * a)) * j;
                                                                          	} else {
                                                                          		tmp = t_1;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                          	t_1 = Float64(fma(Float64(-c), b, Float64(y * x)) * z)
                                                                          	tmp = 0.0
                                                                          	if (z <= -1.2e-52)
                                                                          		tmp = t_1;
                                                                          	elseif (z <= 8.5e-96)
                                                                          		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
                                                                          	else
                                                                          		tmp = t_1;
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.2e-52], t$95$1, If[LessEqual[z, 8.5e-96], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                                                          \mathbf{if}\;z \leq -1.2 \cdot 10^{-52}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          \mathbf{elif}\;z \leq 8.5 \cdot 10^{-96}:\\
                                                                          \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 2 regimes
                                                                          2. if z < -1.2000000000000001e-52 or 8.49999999999999983e-96 < z

                                                                            1. Initial program 67.8%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in z around inf

                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              3. sub-negN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                              4. mul-1-negN/A

                                                                                \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                              5. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                              6. *-commutativeN/A

                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                              7. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                              8. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                              9. neg-mul-1N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                              12. lower-*.f6458.6

                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                            5. Applied rewrites58.6%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]

                                                                            if -1.2000000000000001e-52 < z < 8.49999999999999983e-96

                                                                            1. Initial program 76.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 c around -inf

                                                                              \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(\left(-1 \cdot \left(a \cdot j\right) + -1 \cdot \frac{\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)}{c}\right) - -1 \cdot \left(b \cdot z\right)\right)\right)} \]
                                                                            4. Applied rewrites76.2%

                                                                              \[\leadsto \color{blue}{\left(-c\right) \cdot \mathsf{fma}\left(b, z, -\mathsf{fma}\left(j, a, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)}{c}\right)\right)} \]
                                                                            5. Taylor expanded in j around inf

                                                                              \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                            6. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                              3. sub-negN/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \cdot j \]
                                                                              4. mul-1-negN/A

                                                                                \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                                                              5. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                                                              6. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot y} + a \cdot c\right) \cdot j \]
                                                                              7. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                              8. mul-1-negN/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                              9. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                              10. lower-*.f6455.9

                                                                                \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{a \cdot c}\right) \cdot j \]
                                                                            7. Applied rewrites55.9%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, a \cdot c\right) \cdot j} \]
                                                                          3. Recombined 2 regimes into one program.
                                                                          4. Final simplification57.6%

                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.2 \cdot 10^{-52}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;z \leq 8.5 \cdot 10^{-96}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \end{array} \]
                                                                          5. Add Preprocessing

                                                                          Alternative 21: 29.6% accurate, 2.1× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.15 \cdot 10^{+84}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;j \leq -1.7 \cdot 10^{-142}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;j \leq 1.8 \cdot 10^{+80}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b c i j)
                                                                           :precision binary64
                                                                           (if (<= j -1.15e+84)
                                                                             (* (* j c) a)
                                                                             (if (<= j -1.7e-142)
                                                                               (* (* b t) i)
                                                                               (if (<= j 1.8e+80) (* (* z x) y) (* (* j a) c)))))
                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                          	double tmp;
                                                                          	if (j <= -1.15e+84) {
                                                                          		tmp = (j * c) * a;
                                                                          	} else if (j <= -1.7e-142) {
                                                                          		tmp = (b * t) * i;
                                                                          	} else if (j <= 1.8e+80) {
                                                                          		tmp = (z * x) * y;
                                                                          	} 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) :: tmp
                                                                              if (j <= (-1.15d+84)) then
                                                                                  tmp = (j * c) * a
                                                                              else if (j <= (-1.7d-142)) then
                                                                                  tmp = (b * t) * i
                                                                              else if (j <= 1.8d+80) then
                                                                                  tmp = (z * x) * y
                                                                              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 tmp;
                                                                          	if (j <= -1.15e+84) {
                                                                          		tmp = (j * c) * a;
                                                                          	} else if (j <= -1.7e-142) {
                                                                          		tmp = (b * t) * i;
                                                                          	} else if (j <= 1.8e+80) {
                                                                          		tmp = (z * x) * y;
                                                                          	} else {
                                                                          		tmp = (j * a) * c;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                          	tmp = 0
                                                                          	if j <= -1.15e+84:
                                                                          		tmp = (j * c) * a
                                                                          	elif j <= -1.7e-142:
                                                                          		tmp = (b * t) * i
                                                                          	elif j <= 1.8e+80:
                                                                          		tmp = (z * x) * y
                                                                          	else:
                                                                          		tmp = (j * a) * c
                                                                          	return tmp
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                          	tmp = 0.0
                                                                          	if (j <= -1.15e+84)
                                                                          		tmp = Float64(Float64(j * c) * a);
                                                                          	elseif (j <= -1.7e-142)
                                                                          		tmp = Float64(Float64(b * t) * i);
                                                                          	elseif (j <= 1.8e+80)
                                                                          		tmp = Float64(Float64(z * x) * y);
                                                                          	else
                                                                          		tmp = Float64(Float64(j * a) * c);
                                                                          	end
                                                                          	return tmp
                                                                          end
                                                                          
                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                          	tmp = 0.0;
                                                                          	if (j <= -1.15e+84)
                                                                          		tmp = (j * c) * a;
                                                                          	elseif (j <= -1.7e-142)
                                                                          		tmp = (b * t) * i;
                                                                          	elseif (j <= 1.8e+80)
                                                                          		tmp = (z * x) * y;
                                                                          	else
                                                                          		tmp = (j * a) * c;
                                                                          	end
                                                                          	tmp_2 = tmp;
                                                                          end
                                                                          
                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.15e+84], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, -1.7e-142], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, 1.8e+80], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          \mathbf{if}\;j \leq -1.15 \cdot 10^{+84}:\\
                                                                          \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                          
                                                                          \mathbf{elif}\;j \leq -1.7 \cdot 10^{-142}:\\
                                                                          \;\;\;\;\left(b \cdot t\right) \cdot i\\
                                                                          
                                                                          \mathbf{elif}\;j \leq 1.8 \cdot 10^{+80}:\\
                                                                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 4 regimes
                                                                          2. if j < -1.1499999999999999e84

                                                                            1. Initial program 73.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 c around inf

                                                                              \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                              3. sub-negN/A

                                                                                \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                              4. mul-1-negN/A

                                                                                \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                              5. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                              6. *-commutativeN/A

                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                              7. associate-*r*N/A

                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                              8. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                              9. mul-1-negN/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                              12. lower-*.f6458.3

                                                                                \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                            5. Applied rewrites58.3%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                            6. Taylor expanded in z around 0

                                                                              \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites50.0%

                                                                                \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                                                                              if -1.1499999999999999e84 < j < -1.70000000000000014e-142

                                                                              1. Initial program 77.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 i around inf

                                                                                \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                              4. Step-by-step derivation
                                                                                1. *-commutativeN/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                2. lower-*.f64N/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                3. sub-negN/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                                                                4. *-commutativeN/A

                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                                5. associate-*r*N/A

                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                                6. mul-1-negN/A

                                                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                                                                7. remove-double-negN/A

                                                                                  \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                8. lower-fma.f64N/A

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                                9. mul-1-negN/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                                10. lower-neg.f64N/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                                11. lower-*.f6446.8

                                                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                              5. Applied rewrites46.8%

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                              6. Taylor expanded in y around 0

                                                                                \[\leadsto \left(b \cdot t\right) \cdot i \]
                                                                              7. Step-by-step derivation
                                                                                1. Applied rewrites38.1%

                                                                                  \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                                                if -1.70000000000000014e-142 < j < 1.79999999999999997e80

                                                                                1. Initial program 68.3%

                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                2. Add Preprocessing
                                                                                3. Taylor expanded in y around inf

                                                                                  \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. *-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                  2. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                  3. associate-*r*N/A

                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                                  4. lower-fma.f64N/A

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                                  5. neg-mul-1N/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                                  6. lower-neg.f64N/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                                  7. *-commutativeN/A

                                                                                    \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                  8. lower-*.f6442.8

                                                                                    \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                5. Applied rewrites42.8%

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]
                                                                                6. Taylor expanded in x around inf

                                                                                  \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites34.0%

                                                                                    \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                                  if 1.79999999999999997e80 < j

                                                                                  1. Initial program 68.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 c around inf

                                                                                    \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                    3. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                                    4. mul-1-negN/A

                                                                                      \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                    5. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                                    6. *-commutativeN/A

                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                                    7. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                                    8. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                                    9. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                                    10. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                                    11. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                    12. lower-*.f6449.3

                                                                                      \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                  5. Applied rewrites49.3%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                                  6. Taylor expanded in z around 0

                                                                                    \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites41.1%

                                                                                      \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                                  8. Recombined 4 regimes into one program.
                                                                                  9. Final simplification39.5%

                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.15 \cdot 10^{+84}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;j \leq -1.7 \cdot 10^{-142}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;j \leq 1.8 \cdot 10^{+80}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                  10. Add Preprocessing

                                                                                  Alternative 22: 28.5% accurate, 2.6× speedup?

                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot x\right) \cdot y\\ \mathbf{if}\;z \leq -1 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.26 \cdot 10^{+197}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                  (FPCore (x y z t a b c i j)
                                                                                   :precision binary64
                                                                                   (let* ((t_1 (* (* z x) y)))
                                                                                     (if (<= z -1e-12) t_1 (if (<= z 1.26e+197) (* (* j c) a) t_1))))
                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double t_1 = (z * x) * y;
                                                                                  	double tmp;
                                                                                  	if (z <= -1e-12) {
                                                                                  		tmp = t_1;
                                                                                  	} else if (z <= 1.26e+197) {
                                                                                  		tmp = (j * c) * a;
                                                                                  	} else {
                                                                                  		tmp = t_1;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                      real(8), intent (in) :: x
                                                                                      real(8), intent (in) :: y
                                                                                      real(8), intent (in) :: z
                                                                                      real(8), intent (in) :: t
                                                                                      real(8), intent (in) :: a
                                                                                      real(8), intent (in) :: b
                                                                                      real(8), intent (in) :: c
                                                                                      real(8), intent (in) :: i
                                                                                      real(8), intent (in) :: j
                                                                                      real(8) :: t_1
                                                                                      real(8) :: tmp
                                                                                      t_1 = (z * x) * y
                                                                                      if (z <= (-1d-12)) then
                                                                                          tmp = t_1
                                                                                      else if (z <= 1.26d+197) then
                                                                                          tmp = (j * c) * a
                                                                                      else
                                                                                          tmp = t_1
                                                                                      end if
                                                                                      code = tmp
                                                                                  end function
                                                                                  
                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double t_1 = (z * x) * y;
                                                                                  	double tmp;
                                                                                  	if (z <= -1e-12) {
                                                                                  		tmp = t_1;
                                                                                  	} else if (z <= 1.26e+197) {
                                                                                  		tmp = (j * c) * a;
                                                                                  	} else {
                                                                                  		tmp = t_1;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                  	t_1 = (z * x) * y
                                                                                  	tmp = 0
                                                                                  	if z <= -1e-12:
                                                                                  		tmp = t_1
                                                                                  	elif z <= 1.26e+197:
                                                                                  		tmp = (j * c) * a
                                                                                  	else:
                                                                                  		tmp = t_1
                                                                                  	return tmp
                                                                                  
                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                  	t_1 = Float64(Float64(z * x) * y)
                                                                                  	tmp = 0.0
                                                                                  	if (z <= -1e-12)
                                                                                  		tmp = t_1;
                                                                                  	elseif (z <= 1.26e+197)
                                                                                  		tmp = Float64(Float64(j * c) * a);
                                                                                  	else
                                                                                  		tmp = t_1;
                                                                                  	end
                                                                                  	return tmp
                                                                                  end
                                                                                  
                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                  	t_1 = (z * x) * y;
                                                                                  	tmp = 0.0;
                                                                                  	if (z <= -1e-12)
                                                                                  		tmp = t_1;
                                                                                  	elseif (z <= 1.26e+197)
                                                                                  		tmp = (j * c) * a;
                                                                                  	else
                                                                                  		tmp = t_1;
                                                                                  	end
                                                                                  	tmp_2 = tmp;
                                                                                  end
                                                                                  
                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[z, -1e-12], t$95$1, If[LessEqual[z, 1.26e+197], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  
                                                                                  \\
                                                                                  \begin{array}{l}
                                                                                  t_1 := \left(z \cdot x\right) \cdot y\\
                                                                                  \mathbf{if}\;z \leq -1 \cdot 10^{-12}:\\
                                                                                  \;\;\;\;t\_1\\
                                                                                  
                                                                                  \mathbf{elif}\;z \leq 1.26 \cdot 10^{+197}:\\
                                                                                  \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;t\_1\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if z < -9.9999999999999998e-13 or 1.26e197 < z

                                                                                    1. Initial program 68.2%

                                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                    2. Add Preprocessing
                                                                                    3. Taylor expanded in y around inf

                                                                                      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                    4. Step-by-step derivation
                                                                                      1. *-commutativeN/A

                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                      2. lower-*.f64N/A

                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                      3. associate-*r*N/A

                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \cdot y \]
                                                                                      4. lower-fma.f64N/A

                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, j, x \cdot z\right)} \cdot y \]
                                                                                      5. neg-mul-1N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, j, x \cdot z\right) \cdot y \]
                                                                                      6. lower-neg.f64N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, j, x \cdot z\right) \cdot y \]
                                                                                      7. *-commutativeN/A

                                                                                        \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                      8. lower-*.f6460.1

                                                                                        \[\leadsto \mathsf{fma}\left(-i, j, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                    5. Applied rewrites60.1%

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y} \]
                                                                                    6. Taylor expanded in x around inf

                                                                                      \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                                    7. Step-by-step derivation
                                                                                      1. Applied rewrites50.9%

                                                                                        \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                                      if -9.9999999999999998e-13 < z < 1.26e197

                                                                                      1. Initial program 72.6%

                                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                      2. Add Preprocessing
                                                                                      3. Taylor expanded in c around inf

                                                                                        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                                      4. Step-by-step derivation
                                                                                        1. *-commutativeN/A

                                                                                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                        2. lower-*.f64N/A

                                                                                          \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                        3. sub-negN/A

                                                                                          \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                                        4. mul-1-negN/A

                                                                                          \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                        5. +-commutativeN/A

                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                                        6. *-commutativeN/A

                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                                        7. associate-*r*N/A

                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                                        8. lower-fma.f64N/A

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                                        9. mul-1-negN/A

                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                                        10. lower-neg.f64N/A

                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                                        11. *-commutativeN/A

                                                                                          \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                        12. lower-*.f6440.8

                                                                                          \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                      5. Applied rewrites40.8%

                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                                      6. Taylor expanded in z around 0

                                                                                        \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                      7. Step-by-step derivation
                                                                                        1. Applied rewrites29.7%

                                                                                          \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]
                                                                                      8. Recombined 2 regimes into one program.
                                                                                      9. Add Preprocessing

                                                                                      Alternative 23: 29.6% accurate, 2.6× speedup?

                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{+53}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                                                                      (FPCore (x y z t a b c i j)
                                                                                       :precision binary64
                                                                                       (if (<= y -6.8e-33)
                                                                                         (* (* z y) x)
                                                                                         (if (<= y 4.2e+53) (* (* j c) a) (* (* y x) z))))
                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                      	double tmp;
                                                                                      	if (y <= -6.8e-33) {
                                                                                      		tmp = (z * y) * x;
                                                                                      	} else if (y <= 4.2e+53) {
                                                                                      		tmp = (j * c) * a;
                                                                                      	} else {
                                                                                      		tmp = (y * x) * z;
                                                                                      	}
                                                                                      	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 (y <= (-6.8d-33)) then
                                                                                              tmp = (z * y) * x
                                                                                          else if (y <= 4.2d+53) then
                                                                                              tmp = (j * c) * a
                                                                                          else
                                                                                              tmp = (y * x) * z
                                                                                          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 (y <= -6.8e-33) {
                                                                                      		tmp = (z * y) * x;
                                                                                      	} else if (y <= 4.2e+53) {
                                                                                      		tmp = (j * c) * a;
                                                                                      	} else {
                                                                                      		tmp = (y * x) * z;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                      	tmp = 0
                                                                                      	if y <= -6.8e-33:
                                                                                      		tmp = (z * y) * x
                                                                                      	elif y <= 4.2e+53:
                                                                                      		tmp = (j * c) * a
                                                                                      	else:
                                                                                      		tmp = (y * x) * z
                                                                                      	return tmp
                                                                                      
                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0
                                                                                      	if (y <= -6.8e-33)
                                                                                      		tmp = Float64(Float64(z * y) * x);
                                                                                      	elseif (y <= 4.2e+53)
                                                                                      		tmp = Float64(Float64(j * c) * a);
                                                                                      	else
                                                                                      		tmp = Float64(Float64(y * x) * z);
                                                                                      	end
                                                                                      	return tmp
                                                                                      end
                                                                                      
                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0;
                                                                                      	if (y <= -6.8e-33)
                                                                                      		tmp = (z * y) * x;
                                                                                      	elseif (y <= 4.2e+53)
                                                                                      		tmp = (j * c) * a;
                                                                                      	else
                                                                                      		tmp = (y * x) * z;
                                                                                      	end
                                                                                      	tmp_2 = tmp;
                                                                                      end
                                                                                      
                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6.8e-33], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 4.2e+53], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
                                                                                      
                                                                                      \begin{array}{l}
                                                                                      
                                                                                      \\
                                                                                      \begin{array}{l}
                                                                                      \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\
                                                                                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                                      
                                                                                      \mathbf{elif}\;y \leq 4.2 \cdot 10^{+53}:\\
                                                                                      \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                                      
                                                                                      \mathbf{else}:\\
                                                                                      \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                      
                                                                                      
                                                                                      \end{array}
                                                                                      \end{array}
                                                                                      
                                                                                      Derivation
                                                                                      1. Split input into 3 regimes
                                                                                      2. if y < -6.8000000000000001e-33

                                                                                        1. Initial program 65.8%

                                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                        2. Add Preprocessing
                                                                                        3. Taylor expanded in z around inf

                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                        4. Step-by-step derivation
                                                                                          1. *-commutativeN/A

                                                                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                          2. lower-*.f64N/A

                                                                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                          3. sub-negN/A

                                                                                            \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                          4. mul-1-negN/A

                                                                                            \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                          5. +-commutativeN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                          6. *-commutativeN/A

                                                                                            \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                                          7. associate-*r*N/A

                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                          8. lower-fma.f64N/A

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                          9. neg-mul-1N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                          10. lower-neg.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                          11. *-commutativeN/A

                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                          12. lower-*.f6452.8

                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                        5. Applied rewrites52.8%

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                        6. Taylor expanded in x around inf

                                                                                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                        7. Step-by-step derivation
                                                                                          1. Applied rewrites43.0%

                                                                                            \[\leadsto \left(y \cdot z\right) \cdot \color{blue}{x} \]

                                                                                          if -6.8000000000000001e-33 < y < 4.2000000000000004e53

                                                                                          1. Initial program 76.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. *-commutativeN/A

                                                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                                            7. associate-*r*N/A

                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                                            8. lower-fma.f64N/A

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                                            9. mul-1-negN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                                            10. lower-neg.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                                            11. *-commutativeN/A

                                                                                              \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                            12. lower-*.f6446.8

                                                                                              \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                                          5. Applied rewrites46.8%

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                                          6. Taylor expanded in z around 0

                                                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites29.8%

                                                                                              \[\leadsto \left(j \cdot c\right) \cdot \color{blue}{a} \]

                                                                                            if 4.2000000000000004e53 < y

                                                                                            1. Initial program 64.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. *-commutativeN/A

                                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                              12. lower-*.f6457.7

                                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                            5. Applied rewrites57.7%

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                            6. Taylor expanded in x around inf

                                                                                              \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites43.8%

                                                                                                \[\leadsto \left(y \cdot z\right) \cdot \color{blue}{x} \]
                                                                                              2. Step-by-step derivation
                                                                                                1. Applied rewrites46.1%

                                                                                                  \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                                              3. Recombined 3 regimes into one program.
                                                                                              4. Final simplification36.9%

                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.8 \cdot 10^{-33}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{+53}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \]
                                                                                              5. Add Preprocessing

                                                                                              Alternative 24: 28.4% accurate, 2.6× speedup?

                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;i \leq -4.8 \cdot 10^{+198}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 4.8 \cdot 10^{+104}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                              (FPCore (x y z t a b c i j)
                                                                                               :precision binary64
                                                                                               (let* ((t_1 (* (* i t) b)))
                                                                                                 (if (<= i -4.8e+198) t_1 (if (<= i 4.8e+104) (* (* y x) z) t_1))))
                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                              	double t_1 = (i * t) * b;
                                                                                              	double tmp;
                                                                                              	if (i <= -4.8e+198) {
                                                                                              		tmp = t_1;
                                                                                              	} else if (i <= 4.8e+104) {
                                                                                              		tmp = (y * x) * z;
                                                                                              	} 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 <= (-4.8d+198)) then
                                                                                                      tmp = t_1
                                                                                                  else if (i <= 4.8d+104) then
                                                                                                      tmp = (y * x) * z
                                                                                                  else
                                                                                                      tmp = t_1
                                                                                                  end if
                                                                                                  code = tmp
                                                                                              end function
                                                                                              
                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                              	double t_1 = (i * t) * b;
                                                                                              	double tmp;
                                                                                              	if (i <= -4.8e+198) {
                                                                                              		tmp = t_1;
                                                                                              	} else if (i <= 4.8e+104) {
                                                                                              		tmp = (y * x) * z;
                                                                                              	} 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 <= -4.8e+198:
                                                                                              		tmp = t_1
                                                                                              	elif i <= 4.8e+104:
                                                                                              		tmp = (y * x) * z
                                                                                              	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 <= -4.8e+198)
                                                                                              		tmp = t_1;
                                                                                              	elseif (i <= 4.8e+104)
                                                                                              		tmp = Float64(Float64(y * x) * z);
                                                                                              	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 <= -4.8e+198)
                                                                                              		tmp = t_1;
                                                                                              	elseif (i <= 4.8e+104)
                                                                                              		tmp = (y * x) * z;
                                                                                              	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, -4.8e+198], t$95$1, If[LessEqual[i, 4.8e+104], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                                                                                              
                                                                                              \begin{array}{l}
                                                                                              
                                                                                              \\
                                                                                              \begin{array}{l}
                                                                                              t_1 := \left(i \cdot t\right) \cdot b\\
                                                                                              \mathbf{if}\;i \leq -4.8 \cdot 10^{+198}:\\
                                                                                              \;\;\;\;t\_1\\
                                                                                              
                                                                                              \mathbf{elif}\;i \leq 4.8 \cdot 10^{+104}:\\
                                                                                              \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                              
                                                                                              \mathbf{else}:\\
                                                                                              \;\;\;\;t\_1\\
                                                                                              
                                                                                              
                                                                                              \end{array}
                                                                                              \end{array}
                                                                                              
                                                                                              Derivation
                                                                                              1. Split input into 2 regimes
                                                                                              2. if i < -4.8000000000000003e198 or 4.8e104 < i

                                                                                                1. Initial program 58.4%

                                                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                2. Add Preprocessing
                                                                                                3. Taylor expanded in i around inf

                                                                                                  \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                4. Step-by-step derivation
                                                                                                  1. *-commutativeN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                                  2. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right) \cdot i} \]
                                                                                                  3. sub-negN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right)} \cdot i \]
                                                                                                  4. *-commutativeN/A

                                                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                                                  5. associate-*r*N/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot t\right)\right)\right)\right) \cdot i \]
                                                                                                  6. mul-1-negN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                                                                                  7. remove-double-negN/A

                                                                                                    \[\leadsto \left(\left(-1 \cdot y\right) \cdot j + \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                                  8. lower-fma.f64N/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, b \cdot t\right)} \cdot i \]
                                                                                                  9. mul-1-negN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, b \cdot t\right) \cdot i \]
                                                                                                  10. lower-neg.f64N/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
                                                                                                  11. lower-*.f6470.4

                                                                                                    \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot t}\right) \cdot i \]
                                                                                                5. Applied rewrites70.4%

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i} \]
                                                                                                6. Taylor expanded in y around 0

                                                                                                  \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites46.0%

                                                                                                    \[\leadsto \left(i \cdot t\right) \cdot \color{blue}{b} \]

                                                                                                  if -4.8000000000000003e198 < i < 4.8e104

                                                                                                  1. Initial program 75.2%

                                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                  2. Add Preprocessing
                                                                                                  3. Taylor expanded in z around inf

                                                                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                  4. Step-by-step derivation
                                                                                                    1. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                    3. sub-negN/A

                                                                                                      \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                                    4. mul-1-negN/A

                                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                    5. +-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                    6. *-commutativeN/A

                                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                                                    7. associate-*r*N/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                    8. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                    9. neg-mul-1N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                    10. lower-neg.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                    11. *-commutativeN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                    12. lower-*.f6449.7

                                                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                  5. Applied rewrites49.7%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                  6. Taylor expanded in x around inf

                                                                                                    \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites31.2%

                                                                                                      \[\leadsto \left(y \cdot z\right) \cdot \color{blue}{x} \]
                                                                                                    2. Step-by-step derivation
                                                                                                      1. Applied rewrites32.1%

                                                                                                        \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                                                    3. Recombined 2 regimes into one program.
                                                                                                    4. Add Preprocessing

                                                                                                    Alternative 25: 22.8% accurate, 5.5× speedup?

                                                                                                    \[\begin{array}{l} \\ \left(y \cdot x\right) \cdot z \end{array} \]
                                                                                                    (FPCore (x y z t a b c i j) :precision binary64 (* (* y x) z))
                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                    	return (y * x) * z;
                                                                                                    }
                                                                                                    
                                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                        real(8), intent (in) :: x
                                                                                                        real(8), intent (in) :: y
                                                                                                        real(8), intent (in) :: z
                                                                                                        real(8), intent (in) :: t
                                                                                                        real(8), intent (in) :: a
                                                                                                        real(8), intent (in) :: b
                                                                                                        real(8), intent (in) :: c
                                                                                                        real(8), intent (in) :: i
                                                                                                        real(8), intent (in) :: j
                                                                                                        code = (y * x) * z
                                                                                                    end function
                                                                                                    
                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                    	return (y * x) * z;
                                                                                                    }
                                                                                                    
                                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                                    	return (y * x) * z
                                                                                                    
                                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                                    	return Float64(Float64(y * x) * z)
                                                                                                    end
                                                                                                    
                                                                                                    function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                    	tmp = (y * x) * z;
                                                                                                    end
                                                                                                    
                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    
                                                                                                    \\
                                                                                                    \left(y \cdot x\right) \cdot z
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Initial program 71.0%

                                                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                    2. Add Preprocessing
                                                                                                    3. Taylor expanded in z around inf

                                                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. *-commutativeN/A

                                                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                      2. lower-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                      3. sub-negN/A

                                                                                                        \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                                      4. mul-1-negN/A

                                                                                                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                      5. +-commutativeN/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                      6. *-commutativeN/A

                                                                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(c \cdot b\right)} + x \cdot y\right) \cdot z \]
                                                                                                      7. associate-*r*N/A

                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                      8. lower-fma.f64N/A

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                      9. neg-mul-1N/A

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                      10. lower-neg.f64N/A

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                      11. *-commutativeN/A

                                                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                      12. lower-*.f6443.8

                                                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                    5. Applied rewrites43.8%

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                    6. Taylor expanded in x around inf

                                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites26.1%

                                                                                                        \[\leadsto \left(y \cdot z\right) \cdot \color{blue}{x} \]
                                                                                                      2. Step-by-step derivation
                                                                                                        1. Applied rewrites26.8%

                                                                                                          \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                                                        2. Add Preprocessing

                                                                                                        Developer Target 1: 59.8% 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 2024304 
                                                                                                        (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)))))