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

Percentage Accurate: 73.9% → 79.0%
Time: 20.9s
Alternatives: 23
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 23 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.9% accurate, 1.0× speedup?

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

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

Alternative 1: 79.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(c, a \cdot j - z \cdot b, x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\right)\\ \mathbf{if}\;c \leq -4.6 \cdot 10^{+71}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 1.1 \cdot 10^{+115}:\\ \;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, -x \cdot t\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\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 c (- (* a j) (* z b)) (* x (fma t (- a) (* y z))))))
   (if (<= c -4.6e+71)
     t_1
     (if (<= c 1.1e+115)
       (fma
        a
        (fma j c (- (* x t)))
        (fma b (- (* t i) (* c z)) (* y (fma j (- i) (* 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(c, ((a * j) - (z * b)), (x * fma(t, -a, (y * z))));
	double tmp;
	if (c <= -4.6e+71) {
		tmp = t_1;
	} else if (c <= 1.1e+115) {
		tmp = fma(a, fma(j, c, -(x * t)), fma(b, ((t * i) - (c * z)), (y * fma(j, -i, (x * z)))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(c, Float64(Float64(a * j) - Float64(z * b)), Float64(x * fma(t, Float64(-a), Float64(y * z))))
	tmp = 0.0
	if (c <= -4.6e+71)
		tmp = t_1;
	elseif (c <= 1.1e+115)
		tmp = fma(a, fma(j, c, Float64(-Float64(x * t))), fma(b, Float64(Float64(t * i) - Float64(c * z)), Float64(y * fma(j, Float64(-i), Float64(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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision] + N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.6e+71], t$95$1, If[LessEqual[c, 1.1e+115], N[(a * N[(j * c + (-N[(x * t), $MachinePrecision])), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, a \cdot j - z \cdot b, x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\right)\\
\mathbf{if}\;c \leq -4.6 \cdot 10^{+71}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 1.1 \cdot 10^{+115}:\\
\;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, -x \cdot t\right), \mathsf{fma}\left(b, t \cdot i - c \cdot z, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -4.6000000000000005e71 or 1.1e115 < c

    1. Initial program 60.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 i around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.6000000000000005e71 < c < 1.1e115

    1. Initial program 76.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 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 rewrites85.0%

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

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

Alternative 2: 51.3% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;c \leq 2.7 \cdot 10^{-155}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 2.45 \cdot 10^{-49}:\\ \;\;\;\;i \cdot \left(t \cdot \left(b - \frac{x \cdot a}{i}\right)\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* i (fma j (- y) (* t b)))) (t_2 (* c (- (* a j) (* z b)))))
   (if (<= c -4.1e+101)
     t_2
     (if (<= c -1.25e-203)
       (* y (fma j (- i) (* x z)))
       (if (<= c 2.7e-155)
         t_1
         (if (<= c 2.45e-49)
           (* i (* t (- b (/ (* x a) i))))
           (if (<= c 3.8e+109) 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 = i * fma(j, -y, (t * b));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -4.1e+101) {
		tmp = t_2;
	} else if (c <= -1.25e-203) {
		tmp = y * fma(j, -i, (x * z));
	} else if (c <= 2.7e-155) {
		tmp = t_1;
	} else if (c <= 2.45e-49) {
		tmp = i * (t * (b - ((x * a) / i)));
	} else if (c <= 3.8e+109) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * fma(j, Float64(-y), Float64(t * b)))
	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -4.1e+101)
		tmp = t_2;
	elseif (c <= -1.25e-203)
		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
	elseif (c <= 2.7e-155)
		tmp = t_1;
	elseif (c <= 2.45e-49)
		tmp = Float64(i * Float64(t * Float64(b - Float64(Float64(x * a) / i))));
	elseif (c <= 3.8e+109)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.1e+101], t$95$2, If[LessEqual[c, -1.25e-203], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.7e-155], t$95$1, If[LessEqual[c, 2.45e-49], N[(i * N[(t * N[(b - N[(N[(x * a), $MachinePrecision] / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+109], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\

\mathbf{elif}\;c \leq 2.7 \cdot 10^{-155}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 2.45 \cdot 10^{-49}:\\
\;\;\;\;i \cdot \left(t \cdot \left(b - \frac{x \cdot a}{i}\right)\right)\\

\mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -4.1e101 or 3.80000000000000039e109 < c

    1. Initial program 55.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. lower-*.f64N/A

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

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

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

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      5. lower-*.f6476.7

        \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
    5. Applied rewrites76.7%

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

    if -4.1e101 < c < -1.25e-203

    1. Initial program 79.8%

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

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

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

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

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

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

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

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

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

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

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

    if -1.25e-203 < c < 2.69999999999999981e-155 or 2.4500000000000001e-49 < c < 3.80000000000000039e109

    1. Initial program 75.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in i around 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.69999999999999981e-155 < c < 2.4500000000000001e-49

    1. Initial program 82.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 i around -inf

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

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

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

        \[\leadsto i \cdot \left(t \cdot \color{blue}{\left(b - \frac{a \cdot x}{i}\right)}\right) \]
    7. Recombined 4 regimes into one program.
    8. Final simplification65.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;c \leq 2.7 \cdot 10^{-155}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;c \leq 2.45 \cdot 10^{-49}:\\ \;\;\;\;i \cdot \left(t \cdot \left(b - \frac{x \cdot a}{i}\right)\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 3: 50.1% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;c \leq 7 \cdot 10^{-199}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 1.56 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \left(t \cdot \mathsf{fma}\left(c, \frac{j}{t}, -x\right)\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* i (fma j (- y) (* t b)))) (t_2 (* c (- (* a j) (* z b)))))
       (if (<= c -4.1e+101)
         t_2
         (if (<= c -1.25e-203)
           (* y (fma j (- i) (* x z)))
           (if (<= c 7e-199)
             t_1
             (if (<= c 1.56e-49)
               (* a (* t (fma c (/ j t) (- x))))
               (if (<= c 3.8e+109) 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 = i * fma(j, -y, (t * b));
    	double t_2 = c * ((a * j) - (z * b));
    	double tmp;
    	if (c <= -4.1e+101) {
    		tmp = t_2;
    	} else if (c <= -1.25e-203) {
    		tmp = y * fma(j, -i, (x * z));
    	} else if (c <= 7e-199) {
    		tmp = t_1;
    	} else if (c <= 1.56e-49) {
    		tmp = a * (t * fma(c, (j / t), -x));
    	} else if (c <= 3.8e+109) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(i * fma(j, Float64(-y), Float64(t * b)))
    	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
    	tmp = 0.0
    	if (c <= -4.1e+101)
    		tmp = t_2;
    	elseif (c <= -1.25e-203)
    		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
    	elseif (c <= 7e-199)
    		tmp = t_1;
    	elseif (c <= 1.56e-49)
    		tmp = Float64(a * Float64(t * fma(c, Float64(j / t), Float64(-x))));
    	elseif (c <= 3.8e+109)
    		tmp = t_1;
    	else
    		tmp = t_2;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.1e+101], t$95$2, If[LessEqual[c, -1.25e-203], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7e-199], t$95$1, If[LessEqual[c, 1.56e-49], N[(a * N[(t * N[(c * N[(j / t), $MachinePrecision] + (-x)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+109], t$95$1, t$95$2]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
    t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
    \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\
    \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
    
    \mathbf{elif}\;c \leq 7 \cdot 10^{-199}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;c \leq 1.56 \cdot 10^{-49}:\\
    \;\;\;\;a \cdot \left(t \cdot \mathsf{fma}\left(c, \frac{j}{t}, -x\right)\right)\\
    
    \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if c < -4.1e101 or 3.80000000000000039e109 < c

      1. Initial program 55.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. lower-*.f64N/A

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

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

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

          \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
        5. lower-*.f6476.7

          \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
      5. Applied rewrites76.7%

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

      if -4.1e101 < c < -1.25e-203

      1. Initial program 79.8%

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

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

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

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

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

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

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

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

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

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

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

      if -1.25e-203 < c < 6.9999999999999998e-199 or 1.56000000000000008e-49 < c < 3.80000000000000039e109

      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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

      if 6.9999999999999998e-199 < c < 1.56000000000000008e-49

      1. Initial program 80.2%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in 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. lower-*.f64N/A

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

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

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

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

          \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
        6. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;c \leq 7 \cdot 10^{-199}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;c \leq 1.56 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \left(t \cdot \mathsf{fma}\left(c, \frac{j}{t}, -x\right)\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
      10. Add Preprocessing

      Alternative 4: 68.0% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -6.20000000000000016e-132 < c < 4.29999999999999991e77

        1. Initial program 79.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 5: 67.7% accurate, 1.2× speedup?

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

        1. Initial program 72.2%

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

            \[\leadsto \left(\color{blue}{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. lift--.f64N/A

            \[\leadsto \left(x \cdot \color{blue}{\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) \]
          3. flip--N/A

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

            \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
          5. un-div-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.99999999999999991e68 < i < 2.3999999999999999e78

        1. Initial program 73.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 2.3999999999999999e78 < i

        1. Initial program 63.8%

          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
        2. Add Preprocessing
        3. Taylor expanded in 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 6: 29.8% accurate, 1.2× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(-c \cdot b\right)\\ \mathbf{if}\;c \leq -6.6 \cdot 10^{+103}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -5.2 \cdot 10^{-204}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;c \leq 6.4 \cdot 10^{-199}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;c \leq 4 \cdot 10^{-38}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;c \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;c \leq 1.22 \cdot 10^{+268}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i j)
       :precision binary64
       (let* ((t_1 (* z (- (* c b)))))
         (if (<= c -6.6e+103)
           t_1
           (if (<= c -5.2e-204)
             (* z (* x y))
             (if (<= c 6.4e-199)
               (* b (* t i))
               (if (<= c 4e-38)
                 (* a (- (* x t)))
                 (if (<= c 5.4e+70)
                   (* j (* i (- y)))
                   (if (<= c 1.22e+268) t_1 (* j (* c a))))))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
      	double t_1 = z * -(c * b);
      	double tmp;
      	if (c <= -6.6e+103) {
      		tmp = t_1;
      	} else if (c <= -5.2e-204) {
      		tmp = z * (x * y);
      	} else if (c <= 6.4e-199) {
      		tmp = b * (t * i);
      	} else if (c <= 4e-38) {
      		tmp = a * -(x * t);
      	} else if (c <= 5.4e+70) {
      		tmp = j * (i * -y);
      	} else if (c <= 1.22e+268) {
      		tmp = t_1;
      	} else {
      		tmp = j * (c * a);
      	}
      	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 * -(c * b)
          if (c <= (-6.6d+103)) then
              tmp = t_1
          else if (c <= (-5.2d-204)) then
              tmp = z * (x * y)
          else if (c <= 6.4d-199) then
              tmp = b * (t * i)
          else if (c <= 4d-38) then
              tmp = a * -(x * t)
          else if (c <= 5.4d+70) then
              tmp = j * (i * -y)
          else if (c <= 1.22d+268) then
              tmp = t_1
          else
              tmp = j * (c * a)
          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 * -(c * b);
      	double tmp;
      	if (c <= -6.6e+103) {
      		tmp = t_1;
      	} else if (c <= -5.2e-204) {
      		tmp = z * (x * y);
      	} else if (c <= 6.4e-199) {
      		tmp = b * (t * i);
      	} else if (c <= 4e-38) {
      		tmp = a * -(x * t);
      	} else if (c <= 5.4e+70) {
      		tmp = j * (i * -y);
      	} else if (c <= 1.22e+268) {
      		tmp = t_1;
      	} else {
      		tmp = j * (c * a);
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a, b, c, i, j):
      	t_1 = z * -(c * b)
      	tmp = 0
      	if c <= -6.6e+103:
      		tmp = t_1
      	elif c <= -5.2e-204:
      		tmp = z * (x * y)
      	elif c <= 6.4e-199:
      		tmp = b * (t * i)
      	elif c <= 4e-38:
      		tmp = a * -(x * t)
      	elif c <= 5.4e+70:
      		tmp = j * (i * -y)
      	elif c <= 1.22e+268:
      		tmp = t_1
      	else:
      		tmp = j * (c * a)
      	return tmp
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = Float64(z * Float64(-Float64(c * b)))
      	tmp = 0.0
      	if (c <= -6.6e+103)
      		tmp = t_1;
      	elseif (c <= -5.2e-204)
      		tmp = Float64(z * Float64(x * y));
      	elseif (c <= 6.4e-199)
      		tmp = Float64(b * Float64(t * i));
      	elseif (c <= 4e-38)
      		tmp = Float64(a * Float64(-Float64(x * t)));
      	elseif (c <= 5.4e+70)
      		tmp = Float64(j * Float64(i * Float64(-y)));
      	elseif (c <= 1.22e+268)
      		tmp = t_1;
      	else
      		tmp = Float64(j * Float64(c * a));
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
      	t_1 = z * -(c * b);
      	tmp = 0.0;
      	if (c <= -6.6e+103)
      		tmp = t_1;
      	elseif (c <= -5.2e-204)
      		tmp = z * (x * y);
      	elseif (c <= 6.4e-199)
      		tmp = b * (t * i);
      	elseif (c <= 4e-38)
      		tmp = a * -(x * t);
      	elseif (c <= 5.4e+70)
      		tmp = j * (i * -y);
      	elseif (c <= 1.22e+268)
      		tmp = t_1;
      	else
      		tmp = j * (c * a);
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * (-N[(c * b), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[c, -6.6e+103], t$95$1, If[LessEqual[c, -5.2e-204], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.4e-199], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4e-38], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision], If[LessEqual[c, 5.4e+70], N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.22e+268], t$95$1, N[(j * N[(c * a), $MachinePrecision]), $MachinePrecision]]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := z \cdot \left(-c \cdot b\right)\\
      \mathbf{if}\;c \leq -6.6 \cdot 10^{+103}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;c \leq -5.2 \cdot 10^{-204}:\\
      \;\;\;\;z \cdot \left(x \cdot y\right)\\
      
      \mathbf{elif}\;c \leq 6.4 \cdot 10^{-199}:\\
      \;\;\;\;b \cdot \left(t \cdot i\right)\\
      
      \mathbf{elif}\;c \leq 4 \cdot 10^{-38}:\\
      \;\;\;\;a \cdot \left(-x \cdot t\right)\\
      
      \mathbf{elif}\;c \leq 5.4 \cdot 10^{+70}:\\
      \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
      
      \mathbf{elif}\;c \leq 1.22 \cdot 10^{+268}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;j \cdot \left(c \cdot a\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 6 regimes
      2. if c < -6.60000000000000017e103 or 5.3999999999999999e70 < c < 1.2200000000000001e268

        1. Initial program 53.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

            \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
          11. lower-*.f6460.6

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

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

          \[\leadsto z \cdot \left(-1 \cdot \color{blue}{\left(b \cdot c\right)}\right) \]
        7. Step-by-step derivation
          1. Applied rewrites50.5%

            \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(-b\right)}\right) \]

          if -6.60000000000000017e103 < c < -5.19999999999999965e-204

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -5.19999999999999965e-204 < c < 6.3999999999999999e-199

            1. Initial program 84.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 6.3999999999999999e-199 < c < 3.9999999999999998e-38

              1. Initial program 78.3%

                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
              2. Add Preprocessing
              3. Taylor expanded in 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. lower-*.f64N/A

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

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

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

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

                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                6. distribute-rgt-neg-inN/A

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

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

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

                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                10. lower-neg.f6454.5

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

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

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

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

                if 3.9999999999999998e-38 < c < 5.3999999999999999e70

                1. Initial program 65.0%

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

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

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

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

                    \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                  4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

                    \[\leadsto j \cdot \left(i \cdot \color{blue}{\left(-y\right)}\right) \]

                  if 1.2200000000000001e268 < c

                  1. Initial program 75.0%

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

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

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

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

                      \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                    4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

                      \[\leadsto j \cdot \left(a \cdot \color{blue}{c}\right) \]
                  8. Recombined 6 regimes into one program.
                  9. Final simplification45.7%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.6 \cdot 10^{+103}:\\ \;\;\;\;z \cdot \left(-c \cdot b\right)\\ \mathbf{elif}\;c \leq -5.2 \cdot 10^{-204}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;c \leq 6.4 \cdot 10^{-199}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;c \leq 4 \cdot 10^{-38}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;c \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;c \leq 1.22 \cdot 10^{+268}:\\ \;\;\;\;z \cdot \left(-c \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \end{array} \]
                  10. Add Preprocessing

                  Alternative 7: 29.6% accurate, 1.4× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b c i j)
                   :precision binary64
                   (let* ((t_1 (* j (* i (- y)))))
                     (if (<= i -2.5e+24)
                       t_1
                       (if (<= i -1.85e-124)
                         (* y (* x z))
                         (if (<= i 3.15e-86)
                           (* b (* c (- z)))
                           (if (<= i 5.8e+78)
                             (* t (- (* x a)))
                             (if (<= i 1.35e+274) (* b (* t i)) t_1)))))))
                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                  	double t_1 = j * (i * -y);
                  	double tmp;
                  	if (i <= -2.5e+24) {
                  		tmp = t_1;
                  	} else if (i <= -1.85e-124) {
                  		tmp = y * (x * z);
                  	} else if (i <= 3.15e-86) {
                  		tmp = b * (c * -z);
                  	} else if (i <= 5.8e+78) {
                  		tmp = t * -(x * a);
                  	} else if (i <= 1.35e+274) {
                  		tmp = b * (t * i);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  real(8) function code(x, y, z, t, a, b, c, i, j)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8), intent (in) :: b
                      real(8), intent (in) :: c
                      real(8), intent (in) :: i
                      real(8), intent (in) :: j
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = j * (i * -y)
                      if (i <= (-2.5d+24)) then
                          tmp = t_1
                      else if (i <= (-1.85d-124)) then
                          tmp = y * (x * z)
                      else if (i <= 3.15d-86) then
                          tmp = b * (c * -z)
                      else if (i <= 5.8d+78) then
                          tmp = t * -(x * a)
                      else if (i <= 1.35d+274) then
                          tmp = b * (t * i)
                      else
                          tmp = t_1
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                  	double t_1 = j * (i * -y);
                  	double tmp;
                  	if (i <= -2.5e+24) {
                  		tmp = t_1;
                  	} else if (i <= -1.85e-124) {
                  		tmp = y * (x * z);
                  	} else if (i <= 3.15e-86) {
                  		tmp = b * (c * -z);
                  	} else if (i <= 5.8e+78) {
                  		tmp = t * -(x * a);
                  	} else if (i <= 1.35e+274) {
                  		tmp = b * (t * i);
                  	} else {
                  		tmp = t_1;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b, c, i, j):
                  	t_1 = j * (i * -y)
                  	tmp = 0
                  	if i <= -2.5e+24:
                  		tmp = t_1
                  	elif i <= -1.85e-124:
                  		tmp = y * (x * z)
                  	elif i <= 3.15e-86:
                  		tmp = b * (c * -z)
                  	elif i <= 5.8e+78:
                  		tmp = t * -(x * a)
                  	elif i <= 1.35e+274:
                  		tmp = b * (t * i)
                  	else:
                  		tmp = t_1
                  	return tmp
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	t_1 = Float64(j * Float64(i * Float64(-y)))
                  	tmp = 0.0
                  	if (i <= -2.5e+24)
                  		tmp = t_1;
                  	elseif (i <= -1.85e-124)
                  		tmp = Float64(y * Float64(x * z));
                  	elseif (i <= 3.15e-86)
                  		tmp = Float64(b * Float64(c * Float64(-z)));
                  	elseif (i <= 5.8e+78)
                  		tmp = Float64(t * Float64(-Float64(x * a)));
                  	elseif (i <= 1.35e+274)
                  		tmp = Float64(b * Float64(t * i));
                  	else
                  		tmp = t_1;
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                  	t_1 = j * (i * -y);
                  	tmp = 0.0;
                  	if (i <= -2.5e+24)
                  		tmp = t_1;
                  	elseif (i <= -1.85e-124)
                  		tmp = y * (x * z);
                  	elseif (i <= 3.15e-86)
                  		tmp = b * (c * -z);
                  	elseif (i <= 5.8e+78)
                  		tmp = t * -(x * a);
                  	elseif (i <= 1.35e+274)
                  		tmp = b * (t * i);
                  	else
                  		tmp = t_1;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.5e+24], t$95$1, If[LessEqual[i, -1.85e-124], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.15e-86], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.8e+78], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 1.35e+274], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\
                  \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\
                  \;\;\;\;y \cdot \left(x \cdot z\right)\\
                  
                  \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\
                  \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
                  
                  \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\
                  \;\;\;\;t \cdot \left(-x \cdot a\right)\\
                  
                  \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\
                  \;\;\;\;b \cdot \left(t \cdot i\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_1\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 5 regimes
                  2. if i < -2.50000000000000023e24 or 1.3500000000000001e274 < i

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

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

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

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

                        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                      4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

                        \[\leadsto j \cdot \left(i \cdot \color{blue}{\left(-y\right)}\right) \]

                      if -2.50000000000000023e24 < i < -1.84999999999999995e-124

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                        11. lower-*.f6453.7

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

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

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

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

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

                          if -1.84999999999999995e-124 < i < 3.15e-86

                          1. Initial program 75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(c \cdot z\right) \cdot \color{blue}{\left(-b\right)} \]

                            if 3.15e-86 < i < 5.80000000000000034e78

                            1. Initial program 76.3%

                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                            2. Add Preprocessing
                            3. Taylor expanded in 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 5.80000000000000034e78 < i < 1.3500000000000001e274

                              1. Initial program 64.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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
                              8. Recombined 5 regimes into one program.
                              9. Final simplification43.9%

                                \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 8: 29.5% accurate, 1.4× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i j)
                               :precision binary64
                               (let* ((t_1 (* j (* i (- y)))))
                                 (if (<= i -2.5e+24)
                                   t_1
                                   (if (<= i -1.85e-124)
                                     (* y (* x z))
                                     (if (<= i 3.15e-86)
                                       (* b (* c (- z)))
                                       (if (<= i 5.8e+78)
                                         (* a (- (* x t)))
                                         (if (<= i 1.35e+274) (* b (* t i)) t_1)))))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double t_1 = j * (i * -y);
                              	double tmp;
                              	if (i <= -2.5e+24) {
                              		tmp = t_1;
                              	} else if (i <= -1.85e-124) {
                              		tmp = y * (x * z);
                              	} else if (i <= 3.15e-86) {
                              		tmp = b * (c * -z);
                              	} else if (i <= 5.8e+78) {
                              		tmp = a * -(x * t);
                              	} else if (i <= 1.35e+274) {
                              		tmp = b * (t * i);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                  real(8), intent (in) :: x
                                  real(8), intent (in) :: y
                                  real(8), intent (in) :: z
                                  real(8), intent (in) :: t
                                  real(8), intent (in) :: a
                                  real(8), intent (in) :: b
                                  real(8), intent (in) :: c
                                  real(8), intent (in) :: i
                                  real(8), intent (in) :: j
                                  real(8) :: t_1
                                  real(8) :: tmp
                                  t_1 = j * (i * -y)
                                  if (i <= (-2.5d+24)) then
                                      tmp = t_1
                                  else if (i <= (-1.85d-124)) then
                                      tmp = y * (x * z)
                                  else if (i <= 3.15d-86) then
                                      tmp = b * (c * -z)
                                  else if (i <= 5.8d+78) then
                                      tmp = a * -(x * t)
                                  else if (i <= 1.35d+274) then
                                      tmp = b * (t * i)
                                  else
                                      tmp = t_1
                                  end if
                                  code = tmp
                              end function
                              
                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double t_1 = j * (i * -y);
                              	double tmp;
                              	if (i <= -2.5e+24) {
                              		tmp = t_1;
                              	} else if (i <= -1.85e-124) {
                              		tmp = y * (x * z);
                              	} else if (i <= 3.15e-86) {
                              		tmp = b * (c * -z);
                              	} else if (i <= 5.8e+78) {
                              		tmp = a * -(x * t);
                              	} else if (i <= 1.35e+274) {
                              		tmp = b * (t * i);
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              def code(x, y, z, t, a, b, c, i, j):
                              	t_1 = j * (i * -y)
                              	tmp = 0
                              	if i <= -2.5e+24:
                              		tmp = t_1
                              	elif i <= -1.85e-124:
                              		tmp = y * (x * z)
                              	elif i <= 3.15e-86:
                              		tmp = b * (c * -z)
                              	elif i <= 5.8e+78:
                              		tmp = a * -(x * t)
                              	elif i <= 1.35e+274:
                              		tmp = b * (t * i)
                              	else:
                              		tmp = t_1
                              	return tmp
                              
                              function code(x, y, z, t, a, b, c, i, j)
                              	t_1 = Float64(j * Float64(i * Float64(-y)))
                              	tmp = 0.0
                              	if (i <= -2.5e+24)
                              		tmp = t_1;
                              	elseif (i <= -1.85e-124)
                              		tmp = Float64(y * Float64(x * z));
                              	elseif (i <= 3.15e-86)
                              		tmp = Float64(b * Float64(c * Float64(-z)));
                              	elseif (i <= 5.8e+78)
                              		tmp = Float64(a * Float64(-Float64(x * t)));
                              	elseif (i <= 1.35e+274)
                              		tmp = Float64(b * Float64(t * i));
                              	else
                              		tmp = t_1;
                              	end
                              	return tmp
                              end
                              
                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                              	t_1 = j * (i * -y);
                              	tmp = 0.0;
                              	if (i <= -2.5e+24)
                              		tmp = t_1;
                              	elseif (i <= -1.85e-124)
                              		tmp = y * (x * z);
                              	elseif (i <= 3.15e-86)
                              		tmp = b * (c * -z);
                              	elseif (i <= 5.8e+78)
                              		tmp = a * -(x * t);
                              	elseif (i <= 1.35e+274)
                              		tmp = b * (t * i);
                              	else
                              		tmp = t_1;
                              	end
                              	tmp_2 = tmp;
                              end
                              
                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.5e+24], t$95$1, If[LessEqual[i, -1.85e-124], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.15e-86], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.8e+78], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, 1.35e+274], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\
                              \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\
                              \;\;\;\;y \cdot \left(x \cdot z\right)\\
                              
                              \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\
                              \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
                              
                              \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\
                              \;\;\;\;a \cdot \left(-x \cdot t\right)\\
                              
                              \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\
                              \;\;\;\;b \cdot \left(t \cdot i\right)\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 5 regimes
                              2. if i < -2.50000000000000023e24 or 1.3500000000000001e274 < i

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

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

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

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

                                    \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                  4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

                                    \[\leadsto j \cdot \left(i \cdot \color{blue}{\left(-y\right)}\right) \]

                                  if -2.50000000000000023e24 < i < -1.84999999999999995e-124

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                    11. lower-*.f6453.7

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

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

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

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

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

                                      if -1.84999999999999995e-124 < i < 3.15e-86

                                      1. Initial program 75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \left(c \cdot z\right) \cdot \color{blue}{\left(-b\right)} \]

                                        if 3.15e-86 < i < 5.80000000000000034e78

                                        1. Initial program 76.3%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in 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. lower-*.f64N/A

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

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

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

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

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                          6. distribute-rgt-neg-inN/A

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

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

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

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                          10. lower-neg.f6454.4

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

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

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

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

                                          if 5.80000000000000034e78 < i < 1.3500000000000001e274

                                          1. Initial program 64.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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
                                          8. Recombined 5 regimes into one program.
                                          9. Final simplification43.9%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.5 \cdot 10^{+24}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;i \leq -1.85 \cdot 10^{-124}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.15 \cdot 10^{-86}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;i \leq 5.8 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;i \leq 1.35 \cdot 10^{+274}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 9: 61.1% accurate, 1.5× speedup?

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

                                            1. Initial program 75.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 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 rewrites75.4%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, i \cdot t\right) \]
                                              9. lower-*.f6462.2

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

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

                                            if -3.9e17 < b < 6.40000000000000038e137

                                            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 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 rewrites73.1%

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

                                              \[\leadsto \mathsf{fma}\left(a, \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right), x \cdot \left(y \cdot z\right)\right) \]
                                            6. Step-by-step derivation
                                              1. Applied rewrites62.8%

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

                                              if 6.40000000000000038e137 < b

                                              1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto b \cdot \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)} \]
                                                12. remove-double-negN/A

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

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

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

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

                                                  \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                                                17. lower-*.f6481.6

                                                  \[\leadsto b \cdot \left(i \cdot t - \color{blue}{c \cdot z}\right) \]
                                              5. Applied rewrites81.6%

                                                \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
                                            7. Recombined 3 regimes into one program.
                                            8. Final simplification65.5%

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

                                            Alternative 10: 29.5% accurate, 1.5× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{-273}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 2.3 \cdot 10^{-52}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{+148}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i j)
                                             :precision binary64
                                             (if (<= b -1.05e+27)
                                               (* t (* b i))
                                               (if (<= b -4.6e-57)
                                                 (* j (* c a))
                                                 (if (<= b 6.8e-273)
                                                   (* i (* y (- j)))
                                                   (if (<= b 2.3e-52)
                                                     (* a (- (* x t)))
                                                     (if (<= b 3.6e+148) (* x (* y z)) (* i (* t b))))))))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if (b <= -1.05e+27) {
                                            		tmp = t * (b * i);
                                            	} else if (b <= -4.6e-57) {
                                            		tmp = j * (c * a);
                                            	} else if (b <= 6.8e-273) {
                                            		tmp = i * (y * -j);
                                            	} else if (b <= 2.3e-52) {
                                            		tmp = a * -(x * t);
                                            	} else if (b <= 3.6e+148) {
                                            		tmp = x * (y * z);
                                            	} else {
                                            		tmp = i * (t * b);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8), intent (in) :: b
                                                real(8), intent (in) :: c
                                                real(8), intent (in) :: i
                                                real(8), intent (in) :: j
                                                real(8) :: tmp
                                                if (b <= (-1.05d+27)) then
                                                    tmp = t * (b * i)
                                                else if (b <= (-4.6d-57)) then
                                                    tmp = j * (c * a)
                                                else if (b <= 6.8d-273) then
                                                    tmp = i * (y * -j)
                                                else if (b <= 2.3d-52) then
                                                    tmp = a * -(x * t)
                                                else if (b <= 3.6d+148) then
                                                    tmp = x * (y * z)
                                                else
                                                    tmp = i * (t * b)
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if (b <= -1.05e+27) {
                                            		tmp = t * (b * i);
                                            	} else if (b <= -4.6e-57) {
                                            		tmp = j * (c * a);
                                            	} else if (b <= 6.8e-273) {
                                            		tmp = i * (y * -j);
                                            	} else if (b <= 2.3e-52) {
                                            		tmp = a * -(x * t);
                                            	} else if (b <= 3.6e+148) {
                                            		tmp = x * (y * z);
                                            	} else {
                                            		tmp = i * (t * b);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i, j):
                                            	tmp = 0
                                            	if b <= -1.05e+27:
                                            		tmp = t * (b * i)
                                            	elif b <= -4.6e-57:
                                            		tmp = j * (c * a)
                                            	elif b <= 6.8e-273:
                                            		tmp = i * (y * -j)
                                            	elif b <= 2.3e-52:
                                            		tmp = a * -(x * t)
                                            	elif b <= 3.6e+148:
                                            		tmp = x * (y * z)
                                            	else:
                                            		tmp = i * (t * b)
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0
                                            	if (b <= -1.05e+27)
                                            		tmp = Float64(t * Float64(b * i));
                                            	elseif (b <= -4.6e-57)
                                            		tmp = Float64(j * Float64(c * a));
                                            	elseif (b <= 6.8e-273)
                                            		tmp = Float64(i * Float64(y * Float64(-j)));
                                            	elseif (b <= 2.3e-52)
                                            		tmp = Float64(a * Float64(-Float64(x * t)));
                                            	elseif (b <= 3.6e+148)
                                            		tmp = Float64(x * Float64(y * z));
                                            	else
                                            		tmp = Float64(i * Float64(t * b));
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0;
                                            	if (b <= -1.05e+27)
                                            		tmp = t * (b * i);
                                            	elseif (b <= -4.6e-57)
                                            		tmp = j * (c * a);
                                            	elseif (b <= 6.8e-273)
                                            		tmp = i * (y * -j);
                                            	elseif (b <= 2.3e-52)
                                            		tmp = a * -(x * t);
                                            	elseif (b <= 3.6e+148)
                                            		tmp = x * (y * z);
                                            	else
                                            		tmp = i * (t * b);
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.05e+27], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.6e-57], N[(j * N[(c * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-273], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e-52], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision], If[LessEqual[b, 3.6e+148], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\
                                            \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                            
                                            \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\
                                            \;\;\;\;j \cdot \left(c \cdot a\right)\\
                                            
                                            \mathbf{elif}\;b \leq 6.8 \cdot 10^{-273}:\\
                                            \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
                                            
                                            \mathbf{elif}\;b \leq 2.3 \cdot 10^{-52}:\\
                                            \;\;\;\;a \cdot \left(-x \cdot t\right)\\
                                            
                                            \mathbf{elif}\;b \leq 3.6 \cdot 10^{+148}:\\
                                            \;\;\;\;x \cdot \left(y \cdot z\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 6 regimes
                                            2. if b < -1.04999999999999997e27

                                              1. Initial program 75.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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if -1.04999999999999997e27 < b < -4.6e-57

                                                1. Initial program 71.4%

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

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

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

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

                                                    \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                  4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

                                                  if -4.6e-57 < b < 6.79999999999999982e-273

                                                  1. Initial program 69.7%

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

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

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

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

                                                      \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                    4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

                                                    if 6.79999999999999982e-273 < b < 2.29999999999999994e-52

                                                    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 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. lower-*.f64N/A

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

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

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

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

                                                        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                      6. distribute-rgt-neg-inN/A

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

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

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

                                                        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                      10. lower-neg.f6452.8

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

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

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

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

                                                      if 2.29999999999999994e-52 < b < 3.60000000000000006e148

                                                      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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                        11. lower-*.f6463.2

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

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

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

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

                                                        if 3.60000000000000006e148 < b

                                                        1. Initial program 71.4%

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

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

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

                                                          \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                        6. Step-by-step derivation
                                                          1. Applied rewrites83.8%

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

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

                                                              \[\leadsto i \cdot \left(t \cdot b\right) \]
                                                          4. Recombined 6 regimes into one program.
                                                          5. Final simplification43.6%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \mathbf{elif}\;b \leq 6.8 \cdot 10^{-273}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 2.3 \cdot 10^{-52}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{+148}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
                                                          6. Add Preprocessing

                                                          Alternative 11: 51.2% accurate, 1.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (let* ((t_1 (* c (- (* a j) (* z b)))))
                                                             (if (<= c -4.1e+101)
                                                               t_1
                                                               (if (<= c -1.25e-203)
                                                                 (* y (fma j (- i) (* x z)))
                                                                 (if (<= c 3.8e+109) (* i (fma j (- y) (* 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 = c * ((a * j) - (z * b));
                                                          	double tmp;
                                                          	if (c <= -4.1e+101) {
                                                          		tmp = t_1;
                                                          	} else if (c <= -1.25e-203) {
                                                          		tmp = y * fma(j, -i, (x * z));
                                                          	} else if (c <= 3.8e+109) {
                                                          		tmp = i * fma(j, -y, (t * b));
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
                                                          	tmp = 0.0
                                                          	if (c <= -4.1e+101)
                                                          		tmp = t_1;
                                                          	elseif (c <= -1.25e-203)
                                                          		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
                                                          	elseif (c <= 3.8e+109)
                                                          		tmp = Float64(i * fma(j, Float64(-y), Float64(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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.1e+101], t$95$1, If[LessEqual[c, -1.25e-203], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+109], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
                                                          \mathbf{if}\;c \leq -4.1 \cdot 10^{+101}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;c \leq -1.25 \cdot 10^{-203}:\\
                                                          \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
                                                          
                                                          \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\
                                                          \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if c < -4.1e101 or 3.80000000000000039e109 < c

                                                            1. Initial program 55.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. lower-*.f64N/A

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

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

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

                                                                \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
                                                              5. lower-*.f6476.7

                                                                \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
                                                            5. Applied rewrites76.7%

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

                                                            if -4.1e101 < c < -1.25e-203

                                                            1. Initial program 79.8%

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

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

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

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

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

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

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

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

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

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

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

                                                            if -1.25e-203 < c < 3.80000000000000039e109

                                                            1. Initial program 77.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 12: 51.6% accurate, 1.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -2.5 \cdot 10^{+102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -7.5 \cdot 10^{-206}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (let* ((t_1 (* c (- (* a j) (* z b)))))
                                                             (if (<= c -2.5e+102)
                                                               t_1
                                                               (if (<= c -7.5e-206)
                                                                 (* x (fma t (- a) (* y z)))
                                                                 (if (<= c 3.8e+109) (* i (fma j (- y) (* 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 = c * ((a * j) - (z * b));
                                                          	double tmp;
                                                          	if (c <= -2.5e+102) {
                                                          		tmp = t_1;
                                                          	} else if (c <= -7.5e-206) {
                                                          		tmp = x * fma(t, -a, (y * z));
                                                          	} else if (c <= 3.8e+109) {
                                                          		tmp = i * fma(j, -y, (t * b));
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
                                                          	tmp = 0.0
                                                          	if (c <= -2.5e+102)
                                                          		tmp = t_1;
                                                          	elseif (c <= -7.5e-206)
                                                          		tmp = Float64(x * fma(t, Float64(-a), Float64(y * z)));
                                                          	elseif (c <= 3.8e+109)
                                                          		tmp = Float64(i * fma(j, Float64(-y), Float64(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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.5e+102], t$95$1, If[LessEqual[c, -7.5e-206], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+109], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
                                                          \mathbf{if}\;c \leq -2.5 \cdot 10^{+102}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;c \leq -7.5 \cdot 10^{-206}:\\
                                                          \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
                                                          
                                                          \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\
                                                          \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if c < -2.5e102 or 3.80000000000000039e109 < c

                                                            1. Initial program 55.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. lower-*.f64N/A

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

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

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

                                                                \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
                                                              5. lower-*.f6476.7

                                                                \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
                                                            5. Applied rewrites76.7%

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

                                                            if -2.5e102 < c < -7.5e-206

                                                            1. Initial program 80.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if -7.5e-206 < c < 3.80000000000000039e109

                                                            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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          Alternative 13: 53.2% accurate, 1.6× speedup?

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

                                                            1. Initial program 75.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 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 rewrites75.4%

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, i \cdot t\right) \]
                                                              9. lower-*.f6462.2

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

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

                                                            if -3.4e17 < b < 3.2000000000000002e-238

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

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

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

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

                                                                \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                              4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

                                                            if 3.2000000000000002e-238 < b < 1.9e52

                                                            1. Initial program 64.4%

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

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

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

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

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

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

                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                              6. distribute-rgt-neg-inN/A

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

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

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

                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                              10. lower-neg.f6452.6

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

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

                                                            if 1.9e52 < b

                                                            1. Initial program 75.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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto b \cdot \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)} \]
                                                              12. remove-double-negN/A

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

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

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

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

                                                                \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                                                              17. lower-*.f6469.6

                                                                \[\leadsto b \cdot \left(i \cdot t - \color{blue}{c \cdot z}\right) \]
                                                            5. Applied rewrites69.6%

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

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

                                                          Alternative 14: 51.1% accurate, 1.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -2.6 \cdot 10^{+100}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -4.2 \cdot 10^{+85}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (let* ((t_1 (* c (- (* a j) (* z b)))))
                                                             (if (<= c -2.6e+100)
                                                               t_1
                                                               (if (<= c -4.2e+85)
                                                                 (* z (* x y))
                                                                 (if (<= c 3.8e+109) (* i (fma j (- y) (* 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 = c * ((a * j) - (z * b));
                                                          	double tmp;
                                                          	if (c <= -2.6e+100) {
                                                          		tmp = t_1;
                                                          	} else if (c <= -4.2e+85) {
                                                          		tmp = z * (x * y);
                                                          	} else if (c <= 3.8e+109) {
                                                          		tmp = i * fma(j, -y, (t * b));
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
                                                          	tmp = 0.0
                                                          	if (c <= -2.6e+100)
                                                          		tmp = t_1;
                                                          	elseif (c <= -4.2e+85)
                                                          		tmp = Float64(z * Float64(x * y));
                                                          	elseif (c <= 3.8e+109)
                                                          		tmp = Float64(i * fma(j, Float64(-y), Float64(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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.6e+100], t$95$1, If[LessEqual[c, -4.2e+85], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+109], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
                                                          \mathbf{if}\;c \leq -2.6 \cdot 10^{+100}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;c \leq -4.2 \cdot 10^{+85}:\\
                                                          \;\;\;\;z \cdot \left(x \cdot y\right)\\
                                                          
                                                          \mathbf{elif}\;c \leq 3.8 \cdot 10^{+109}:\\
                                                          \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if c < -2.6000000000000002e100 or 3.80000000000000039e109 < c

                                                            1. Initial program 55.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. lower-*.f64N/A

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

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

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

                                                                \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
                                                              5. lower-*.f6476.7

                                                                \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
                                                            5. Applied rewrites76.7%

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

                                                            if -2.6000000000000002e100 < c < -4.2000000000000002e85

                                                            1. Initial program 83.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -4.2000000000000002e85 < c < 3.80000000000000039e109

                                                              1. Initial program 78.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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 15: 43.3% accurate, 1.6× speedup?

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

                                                              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 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. lower-*.f64N/A

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

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

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

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

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                6. distribute-rgt-neg-inN/A

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

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

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

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                10. lower-neg.f6460.4

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

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

                                                              if -1.25000000000000006e25 < a < 2.5e-206

                                                              1. Initial program 78.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if 2.5e-206 < a < 0.0037000000000000002

                                                                1. Initial program 72.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                                  11. lower-*.f6439.2

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

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

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

                                                                    \[\leadsto \left(c \cdot z\right) \cdot \color{blue}{\left(-b\right)} \]
                                                                8. Recombined 3 regimes into one program.
                                                                9. Final simplification46.8%

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

                                                                Alternative 16: 28.8% accurate, 1.7× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \mathbf{elif}\;b \leq 1.08 \cdot 10^{-252}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a b c i j)
                                                                 :precision binary64
                                                                 (if (<= b -1.05e+27)
                                                                   (* t (* b i))
                                                                   (if (<= b -4.6e-57)
                                                                     (* j (* c a))
                                                                     (if (<= b 1.08e-252)
                                                                       (* i (* y (- j)))
                                                                       (if (<= b 2.2e+133) (* y (* x z)) (* i (* t b)))))))
                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	double tmp;
                                                                	if (b <= -1.05e+27) {
                                                                		tmp = t * (b * i);
                                                                	} else if (b <= -4.6e-57) {
                                                                		tmp = j * (c * a);
                                                                	} else if (b <= 1.08e-252) {
                                                                		tmp = i * (y * -j);
                                                                	} else if (b <= 2.2e+133) {
                                                                		tmp = y * (x * z);
                                                                	} else {
                                                                		tmp = i * (t * b);
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                    real(8), intent (in) :: x
                                                                    real(8), intent (in) :: y
                                                                    real(8), intent (in) :: z
                                                                    real(8), intent (in) :: t
                                                                    real(8), intent (in) :: a
                                                                    real(8), intent (in) :: b
                                                                    real(8), intent (in) :: c
                                                                    real(8), intent (in) :: i
                                                                    real(8), intent (in) :: j
                                                                    real(8) :: tmp
                                                                    if (b <= (-1.05d+27)) then
                                                                        tmp = t * (b * i)
                                                                    else if (b <= (-4.6d-57)) then
                                                                        tmp = j * (c * a)
                                                                    else if (b <= 1.08d-252) then
                                                                        tmp = i * (y * -j)
                                                                    else if (b <= 2.2d+133) then
                                                                        tmp = y * (x * z)
                                                                    else
                                                                        tmp = i * (t * b)
                                                                    end if
                                                                    code = tmp
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	double tmp;
                                                                	if (b <= -1.05e+27) {
                                                                		tmp = t * (b * i);
                                                                	} else if (b <= -4.6e-57) {
                                                                		tmp = j * (c * a);
                                                                	} else if (b <= 1.08e-252) {
                                                                		tmp = i * (y * -j);
                                                                	} else if (b <= 2.2e+133) {
                                                                		tmp = y * (x * z);
                                                                	} else {
                                                                		tmp = i * (t * b);
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                	tmp = 0
                                                                	if b <= -1.05e+27:
                                                                		tmp = t * (b * i)
                                                                	elif b <= -4.6e-57:
                                                                		tmp = j * (c * a)
                                                                	elif b <= 1.08e-252:
                                                                		tmp = i * (y * -j)
                                                                	elif b <= 2.2e+133:
                                                                		tmp = y * (x * z)
                                                                	else:
                                                                		tmp = i * (t * b)
                                                                	return tmp
                                                                
                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                	tmp = 0.0
                                                                	if (b <= -1.05e+27)
                                                                		tmp = Float64(t * Float64(b * i));
                                                                	elseif (b <= -4.6e-57)
                                                                		tmp = Float64(j * Float64(c * a));
                                                                	elseif (b <= 1.08e-252)
                                                                		tmp = Float64(i * Float64(y * Float64(-j)));
                                                                	elseif (b <= 2.2e+133)
                                                                		tmp = Float64(y * Float64(x * z));
                                                                	else
                                                                		tmp = Float64(i * Float64(t * b));
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                	tmp = 0.0;
                                                                	if (b <= -1.05e+27)
                                                                		tmp = t * (b * i);
                                                                	elseif (b <= -4.6e-57)
                                                                		tmp = j * (c * a);
                                                                	elseif (b <= 1.08e-252)
                                                                		tmp = i * (y * -j);
                                                                	elseif (b <= 2.2e+133)
                                                                		tmp = y * (x * z);
                                                                	else
                                                                		tmp = i * (t * b);
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.05e+27], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.6e-57], N[(j * N[(c * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.08e-252], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\
                                                                \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                                                
                                                                \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\
                                                                \;\;\;\;j \cdot \left(c \cdot a\right)\\
                                                                
                                                                \mathbf{elif}\;b \leq 1.08 \cdot 10^{-252}:\\
                                                                \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
                                                                
                                                                \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\
                                                                \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 5 regimes
                                                                2. if b < -1.04999999999999997e27

                                                                  1. Initial program 75.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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if -1.04999999999999997e27 < b < -4.6e-57

                                                                    1. Initial program 71.4%

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

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

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

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

                                                                        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                                      4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

                                                                      if -4.6e-57 < b < 1.08e-252

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

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

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

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

                                                                          \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(a, c, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                                        4. distribute-rgt-neg-inN/A

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

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

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

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

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

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

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

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

                                                                        if 1.08e-252 < b < 2.2e133

                                                                        1. Initial program 66.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if 2.2e133 < b

                                                                            1. Initial program 75.6%

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

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

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

                                                                              \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                                            6. Step-by-step derivation
                                                                              1. Applied rewrites76.8%

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

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

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

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+27}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq -4.6 \cdot 10^{-57}:\\ \;\;\;\;j \cdot \left(c \cdot a\right)\\ \mathbf{elif}\;b \leq 1.08 \cdot 10^{-252}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
                                                                              6. Add Preprocessing

                                                                              Alternative 17: 54.0% accurate, 2.0× speedup?

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

                                                                                1. Initial program 75.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 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 rewrites75.4%

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, i \cdot t\right) \]
                                                                                  9. lower-*.f6462.2

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

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

                                                                                if -3.9e17 < b < 1.9e52

                                                                                1. Initial program 67.4%

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

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

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

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

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

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

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                                  6. distribute-rgt-neg-inN/A

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

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

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

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                                  10. lower-neg.f6447.3

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

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

                                                                                if 1.9e52 < b

                                                                                1. Initial program 75.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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto b \cdot \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)} \]
                                                                                  12. remove-double-negN/A

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

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

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

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

                                                                                    \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                                                                                  17. lower-*.f6469.6

                                                                                    \[\leadsto b \cdot \left(i \cdot t - \color{blue}{c \cdot z}\right) \]
                                                                                5. Applied rewrites69.6%

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

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

                                                                              Alternative 18: 53.9% accurate, 2.0× speedup?

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

                                                                                1. Initial program 75.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 inf

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto b \cdot \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)} \]
                                                                                  12. remove-double-negN/A

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

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

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

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

                                                                                    \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                                                                                  17. lower-*.f6464.5

                                                                                    \[\leadsto b \cdot \left(i \cdot t - \color{blue}{c \cdot z}\right) \]
                                                                                5. Applied rewrites64.5%

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

                                                                                if -3.9e17 < b < 1.9e52

                                                                                1. Initial program 67.4%

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

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

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

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

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

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

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                                  6. distribute-rgt-neg-inN/A

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

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

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

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                                  10. lower-neg.f6447.3

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

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

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

                                                                              Alternative 19: 28.7% accurate, 2.6× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \end{array} \]
                                                                              (FPCore (x y z t a b c i j)
                                                                               :precision binary64
                                                                               (if (<= b -1.75e+41)
                                                                                 (* t (* b i))
                                                                                 (if (<= b 2.2e+133) (* y (* x z)) (* i (* t b)))))
                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double tmp;
                                                                              	if (b <= -1.75e+41) {
                                                                              		tmp = t * (b * i);
                                                                              	} else if (b <= 2.2e+133) {
                                                                              		tmp = y * (x * z);
                                                                              	} else {
                                                                              		tmp = i * (t * b);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  real(8), intent (in) :: z
                                                                                  real(8), intent (in) :: t
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: i
                                                                                  real(8), intent (in) :: j
                                                                                  real(8) :: tmp
                                                                                  if (b <= (-1.75d+41)) then
                                                                                      tmp = t * (b * i)
                                                                                  else if (b <= 2.2d+133) then
                                                                                      tmp = y * (x * z)
                                                                                  else
                                                                                      tmp = i * (t * b)
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double tmp;
                                                                              	if (b <= -1.75e+41) {
                                                                              		tmp = t * (b * i);
                                                                              	} else if (b <= 2.2e+133) {
                                                                              		tmp = y * (x * z);
                                                                              	} else {
                                                                              		tmp = i * (t * b);
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                              	tmp = 0
                                                                              	if b <= -1.75e+41:
                                                                              		tmp = t * (b * i)
                                                                              	elif b <= 2.2e+133:
                                                                              		tmp = y * (x * z)
                                                                              	else:
                                                                              		tmp = i * (t * b)
                                                                              	return tmp
                                                                              
                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                              	tmp = 0.0
                                                                              	if (b <= -1.75e+41)
                                                                              		tmp = Float64(t * Float64(b * i));
                                                                              	elseif (b <= 2.2e+133)
                                                                              		tmp = Float64(y * Float64(x * z));
                                                                              	else
                                                                              		tmp = Float64(i * Float64(t * b));
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                              	tmp = 0.0;
                                                                              	if (b <= -1.75e+41)
                                                                              		tmp = t * (b * i);
                                                                              	elseif (b <= 2.2e+133)
                                                                              		tmp = y * (x * z);
                                                                              	else
                                                                              		tmp = i * (t * b);
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.75e+41], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\
                                                                              \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                                                              
                                                                              \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\
                                                                              \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 3 regimes
                                                                              2. if b < -1.75e41

                                                                                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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                                5. Applied rewrites48.9%

                                                                                  \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                                6. Taylor expanded in a around 0

                                                                                  \[\leadsto t \cdot \left(b \cdot \color{blue}{i}\right) \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites42.1%

                                                                                    \[\leadsto t \cdot \left(i \cdot \color{blue}{b}\right) \]

                                                                                  if -1.75e41 < b < 2.2e133

                                                                                  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. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                    2. sub-negN/A

                                                                                      \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                                                                    3. mul-1-negN/A

                                                                                      \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                                                                    4. +-commutativeN/A

                                                                                      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                    5. associate-*r*N/A

                                                                                      \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                                                                    6. *-commutativeN/A

                                                                                      \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                                                                    7. lower-fma.f64N/A

                                                                                      \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                                                                    8. neg-mul-1N/A

                                                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                    9. lower-neg.f64N/A

                                                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                    10. *-commutativeN/A

                                                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                                                    11. lower-*.f6439.1

                                                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                                                                  5. Applied rewrites39.1%

                                                                                    \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                                                                  6. Taylor expanded in c around 0

                                                                                    \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                  7. Step-by-step derivation
                                                                                    1. Applied rewrites27.0%

                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                    2. Step-by-step derivation
                                                                                      1. Applied rewrites28.8%

                                                                                        \[\leadsto \left(z \cdot x\right) \cdot y \]

                                                                                      if 2.2e133 < b

                                                                                      1. Initial program 75.6%

                                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                      2. Add Preprocessing
                                                                                      3. Taylor expanded in i around -inf

                                                                                        \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(-1 \cdot \frac{\left(a \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - b \cdot \left(c \cdot z\right)}{i} + j \cdot y\right) - b \cdot t\right)\right)} \]
                                                                                      4. Applied rewrites64.5%

                                                                                        \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(b, t, -\mathsf{fma}\left(j, y, \frac{\mathsf{fma}\left(c, \mathsf{fma}\left(j, -a, b \cdot z\right), x \cdot \mathsf{fma}\left(a, t, y \cdot \left(-z\right)\right)\right)}{i}\right)\right)} \]
                                                                                      5. Taylor expanded in b around inf

                                                                                        \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                                                      6. Step-by-step derivation
                                                                                        1. Applied rewrites76.8%

                                                                                          \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                                                        2. Taylor expanded in t around inf

                                                                                          \[\leadsto i \cdot \left(b \cdot t\right) \]
                                                                                        3. Step-by-step derivation
                                                                                          1. Applied rewrites50.1%

                                                                                            \[\leadsto i \cdot \left(t \cdot b\right) \]
                                                                                        4. Recombined 3 regimes into one program.
                                                                                        5. Final simplification35.6%

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
                                                                                        6. Add Preprocessing

                                                                                        Alternative 20: 28.6% accurate, 2.6× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \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 (* i (* t b))))
                                                                                           (if (<= b -1.75e+41) t_1 (if (<= b 2.2e+133) (* 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 (b <= -1.75e+41) {
                                                                                        		tmp = t_1;
                                                                                        	} else if (b <= 2.2e+133) {
                                                                                        		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 (b <= (-1.75d+41)) then
                                                                                                tmp = t_1
                                                                                            else if (b <= 2.2d+133) 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 (b <= -1.75e+41) {
                                                                                        		tmp = t_1;
                                                                                        	} else if (b <= 2.2e+133) {
                                                                                        		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 b <= -1.75e+41:
                                                                                        		tmp = t_1
                                                                                        	elif b <= 2.2e+133:
                                                                                        		tmp = y * (x * z)
                                                                                        	else:
                                                                                        		tmp = t_1
                                                                                        	return tmp
                                                                                        
                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                        	t_1 = Float64(i * Float64(t * b))
                                                                                        	tmp = 0.0
                                                                                        	if (b <= -1.75e+41)
                                                                                        		tmp = t_1;
                                                                                        	elseif (b <= 2.2e+133)
                                                                                        		tmp = Float64(y * Float64(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 (b <= -1.75e+41)
                                                                                        		tmp = t_1;
                                                                                        	elseif (b <= 2.2e+133)
                                                                                        		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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.75e+41], t$95$1, If[LessEqual[b, 2.2e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        t_1 := i \cdot \left(t \cdot b\right)\\
                                                                                        \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\
                                                                                        \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 2 regimes
                                                                                        2. if b < -1.75e41 or 2.2e133 < b

                                                                                          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 i around -inf

                                                                                            \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(\left(-1 \cdot \frac{\left(a \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - b \cdot \left(c \cdot z\right)}{i} + j \cdot y\right) - b \cdot t\right)\right)} \]
                                                                                          4. Applied rewrites66.9%

                                                                                            \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(b, t, -\mathsf{fma}\left(j, y, \frac{\mathsf{fma}\left(c, \mathsf{fma}\left(j, -a, b \cdot z\right), x \cdot \mathsf{fma}\left(a, t, y \cdot \left(-z\right)\right)\right)}{i}\right)\right)} \]
                                                                                          5. Taylor expanded in b around inf

                                                                                            \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                                                          6. Step-by-step derivation
                                                                                            1. Applied rewrites65.1%

                                                                                              \[\leadsto i \cdot \left(b \cdot \color{blue}{\left(t - \frac{c \cdot z}{i}\right)}\right) \]
                                                                                            2. Taylor expanded in t around inf

                                                                                              \[\leadsto i \cdot \left(b \cdot t\right) \]
                                                                                            3. Step-by-step derivation
                                                                                              1. Applied rewrites43.5%

                                                                                                \[\leadsto i \cdot \left(t \cdot b\right) \]

                                                                                              if -1.75e41 < b < 2.2e133

                                                                                              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. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                2. sub-negN/A

                                                                                                  \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                                                                                3. mul-1-negN/A

                                                                                                  \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                                                                                4. +-commutativeN/A

                                                                                                  \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                                5. associate-*r*N/A

                                                                                                  \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                                                                                6. *-commutativeN/A

                                                                                                  \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                                                                                7. lower-fma.f64N/A

                                                                                                  \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                                                                                8. neg-mul-1N/A

                                                                                                  \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                9. lower-neg.f64N/A

                                                                                                  \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                10. *-commutativeN/A

                                                                                                  \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                                                                11. lower-*.f6439.1

                                                                                                  \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                                                                              5. Applied rewrites39.1%

                                                                                                \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                                                                              6. Taylor expanded in c around 0

                                                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites27.0%

                                                                                                  \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                2. Step-by-step derivation
                                                                                                  1. Applied rewrites28.8%

                                                                                                    \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                                                3. Recombined 2 regimes into one program.
                                                                                                4. Final simplification34.9%

                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
                                                                                                5. Add Preprocessing

                                                                                                Alternative 21: 28.3% accurate, 2.6× speedup?

                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \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 (* b (* t i))))
                                                                                                   (if (<= b -1.75e+41) t_1 (if (<= b 2.2e+133) (* 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 = b * (t * i);
                                                                                                	double tmp;
                                                                                                	if (b <= -1.75e+41) {
                                                                                                		tmp = t_1;
                                                                                                	} else if (b <= 2.2e+133) {
                                                                                                		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 = b * (t * i)
                                                                                                    if (b <= (-1.75d+41)) then
                                                                                                        tmp = t_1
                                                                                                    else if (b <= 2.2d+133) 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 = b * (t * i);
                                                                                                	double tmp;
                                                                                                	if (b <= -1.75e+41) {
                                                                                                		tmp = t_1;
                                                                                                	} else if (b <= 2.2e+133) {
                                                                                                		tmp = y * (x * z);
                                                                                                	} else {
                                                                                                		tmp = t_1;
                                                                                                	}
                                                                                                	return tmp;
                                                                                                }
                                                                                                
                                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                                	t_1 = b * (t * i)
                                                                                                	tmp = 0
                                                                                                	if b <= -1.75e+41:
                                                                                                		tmp = t_1
                                                                                                	elif b <= 2.2e+133:
                                                                                                		tmp = y * (x * z)
                                                                                                	else:
                                                                                                		tmp = t_1
                                                                                                	return tmp
                                                                                                
                                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                                	t_1 = Float64(b * Float64(t * i))
                                                                                                	tmp = 0.0
                                                                                                	if (b <= -1.75e+41)
                                                                                                		tmp = t_1;
                                                                                                	elseif (b <= 2.2e+133)
                                                                                                		tmp = Float64(y * Float64(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 = b * (t * i);
                                                                                                	tmp = 0.0;
                                                                                                	if (b <= -1.75e+41)
                                                                                                		tmp = t_1;
                                                                                                	elseif (b <= 2.2e+133)
                                                                                                		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[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.75e+41], t$95$1, If[LessEqual[b, 2.2e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                                
                                                                                                \begin{array}{l}
                                                                                                
                                                                                                \\
                                                                                                \begin{array}{l}
                                                                                                t_1 := b \cdot \left(t \cdot i\right)\\
                                                                                                \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\
                                                                                                \;\;\;\;t\_1\\
                                                                                                
                                                                                                \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\
                                                                                                \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                                                                
                                                                                                \mathbf{else}:\\
                                                                                                \;\;\;\;t\_1\\
                                                                                                
                                                                                                
                                                                                                \end{array}
                                                                                                \end{array}
                                                                                                
                                                                                                Derivation
                                                                                                1. Split input into 2 regimes
                                                                                                2. if b < -1.75e41 or 2.2e133 < b

                                                                                                  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 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. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                    2. sub-negN/A

                                                                                                      \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                                                    3. mul-1-negN/A

                                                                                                      \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                    4. distribute-rgt-neg-inN/A

                                                                                                      \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                    5. mul-1-negN/A

                                                                                                      \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                    6. mul-1-negN/A

                                                                                                      \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                                                    7. remove-double-negN/A

                                                                                                      \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                                                    8. lower-fma.f64N/A

                                                                                                      \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                                                    9. mul-1-negN/A

                                                                                                      \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                    10. lower-neg.f64N/A

                                                                                                      \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                    11. *-commutativeN/A

                                                                                                      \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                                                    12. lower-*.f6448.7

                                                                                                      \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                                                  5. Applied rewrites48.7%

                                                                                                    \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                                                  6. Taylor expanded in a around 0

                                                                                                    \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites42.5%

                                                                                                      \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]

                                                                                                    if -1.75e41 < b < 2.2e133

                                                                                                    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. lower-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                      2. sub-negN/A

                                                                                                        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                                                                                      3. mul-1-negN/A

                                                                                                        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                                                                                      4. +-commutativeN/A

                                                                                                        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                                      5. associate-*r*N/A

                                                                                                        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                                                                                      6. *-commutativeN/A

                                                                                                        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                                                                                      7. lower-fma.f64N/A

                                                                                                        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                                                                                      8. neg-mul-1N/A

                                                                                                        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                      9. lower-neg.f64N/A

                                                                                                        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                      10. *-commutativeN/A

                                                                                                        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                                                                      11. lower-*.f6439.1

                                                                                                        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                                                                                    5. Applied rewrites39.1%

                                                                                                      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                                                                                    6. Taylor expanded in c around 0

                                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites27.0%

                                                                                                        \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                      2. Step-by-step derivation
                                                                                                        1. Applied rewrites28.8%

                                                                                                          \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                                                      3. Recombined 2 regimes into one program.
                                                                                                      4. Final simplification34.5%

                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.75 \cdot 10^{+41}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;b \leq 2.2 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
                                                                                                      5. Add Preprocessing

                                                                                                      Alternative 22: 30.4% accurate, 2.6× speedup?

                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;z \leq -1.15 \cdot 10^{+52}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+113}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                      (FPCore (x y z t a b c i j)
                                                                                                       :precision binary64
                                                                                                       (let* ((t_1 (* x (* y z))))
                                                                                                         (if (<= z -1.15e+52) t_1 (if (<= z 2.8e+113) (* b (* t i)) t_1))))
                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                      	double t_1 = x * (y * z);
                                                                                                      	double tmp;
                                                                                                      	if (z <= -1.15e+52) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (z <= 2.8e+113) {
                                                                                                      		tmp = b * (t * i);
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                          real(8), intent (in) :: x
                                                                                                          real(8), intent (in) :: y
                                                                                                          real(8), intent (in) :: z
                                                                                                          real(8), intent (in) :: t
                                                                                                          real(8), intent (in) :: a
                                                                                                          real(8), intent (in) :: b
                                                                                                          real(8), intent (in) :: c
                                                                                                          real(8), intent (in) :: i
                                                                                                          real(8), intent (in) :: j
                                                                                                          real(8) :: t_1
                                                                                                          real(8) :: tmp
                                                                                                          t_1 = x * (y * z)
                                                                                                          if (z <= (-1.15d+52)) then
                                                                                                              tmp = t_1
                                                                                                          else if (z <= 2.8d+113) then
                                                                                                              tmp = b * (t * i)
                                                                                                          else
                                                                                                              tmp = t_1
                                                                                                          end if
                                                                                                          code = tmp
                                                                                                      end function
                                                                                                      
                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                      	double t_1 = x * (y * z);
                                                                                                      	double tmp;
                                                                                                      	if (z <= -1.15e+52) {
                                                                                                      		tmp = t_1;
                                                                                                      	} else if (z <= 2.8e+113) {
                                                                                                      		tmp = b * (t * i);
                                                                                                      	} else {
                                                                                                      		tmp = t_1;
                                                                                                      	}
                                                                                                      	return tmp;
                                                                                                      }
                                                                                                      
                                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                                      	t_1 = x * (y * z)
                                                                                                      	tmp = 0
                                                                                                      	if z <= -1.15e+52:
                                                                                                      		tmp = t_1
                                                                                                      	elif z <= 2.8e+113:
                                                                                                      		tmp = b * (t * i)
                                                                                                      	else:
                                                                                                      		tmp = t_1
                                                                                                      	return tmp
                                                                                                      
                                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                                      	t_1 = Float64(x * Float64(y * z))
                                                                                                      	tmp = 0.0
                                                                                                      	if (z <= -1.15e+52)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (z <= 2.8e+113)
                                                                                                      		tmp = Float64(b * Float64(t * i));
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	return tmp
                                                                                                      end
                                                                                                      
                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                      	t_1 = x * (y * z);
                                                                                                      	tmp = 0.0;
                                                                                                      	if (z <= -1.15e+52)
                                                                                                      		tmp = t_1;
                                                                                                      	elseif (z <= 2.8e+113)
                                                                                                      		tmp = b * (t * i);
                                                                                                      	else
                                                                                                      		tmp = t_1;
                                                                                                      	end
                                                                                                      	tmp_2 = tmp;
                                                                                                      end
                                                                                                      
                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+52], t$95$1, If[LessEqual[z, 2.8e+113], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                                                      
                                                                                                      \begin{array}{l}
                                                                                                      
                                                                                                      \\
                                                                                                      \begin{array}{l}
                                                                                                      t_1 := x \cdot \left(y \cdot z\right)\\
                                                                                                      \mathbf{if}\;z \leq -1.15 \cdot 10^{+52}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      \mathbf{elif}\;z \leq 2.8 \cdot 10^{+113}:\\
                                                                                                      \;\;\;\;b \cdot \left(t \cdot i\right)\\
                                                                                                      
                                                                                                      \mathbf{else}:\\
                                                                                                      \;\;\;\;t\_1\\
                                                                                                      
                                                                                                      
                                                                                                      \end{array}
                                                                                                      \end{array}
                                                                                                      
                                                                                                      Derivation
                                                                                                      1. Split input into 2 regimes
                                                                                                      2. if z < -1.15e52 or 2.79999999999999998e113 < z

                                                                                                        1. Initial program 58.3%

                                                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                        2. Add Preprocessing
                                                                                                        3. Taylor expanded in z around inf

                                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                        4. Step-by-step derivation
                                                                                                          1. lower-*.f64N/A

                                                                                                            \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                          2. sub-negN/A

                                                                                                            \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                                                                                          3. mul-1-negN/A

                                                                                                            \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                                                                                          4. +-commutativeN/A

                                                                                                            \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                                          5. associate-*r*N/A

                                                                                                            \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                                                                                          6. *-commutativeN/A

                                                                                                            \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                                                                                          7. lower-fma.f64N/A

                                                                                                            \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                                                                                          8. neg-mul-1N/A

                                                                                                            \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                          9. lower-neg.f64N/A

                                                                                                            \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                                                                          10. *-commutativeN/A

                                                                                                            \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                                                                          11. lower-*.f6465.5

                                                                                                            \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                                                                                        5. Applied rewrites65.5%

                                                                                                          \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                                                                                        6. Taylor expanded in c around 0

                                                                                                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites41.9%

                                                                                                            \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]

                                                                                                          if -1.15e52 < z < 2.79999999999999998e113

                                                                                                          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 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. lower-*.f64N/A

                                                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                            2. sub-negN/A

                                                                                                              \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                                                            3. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            4. distribute-rgt-neg-inN/A

                                                                                                              \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            5. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            6. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                                                            7. remove-double-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                                                            8. lower-fma.f64N/A

                                                                                                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                                                            9. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                            10. lower-neg.f64N/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                            11. *-commutativeN/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                                                            12. lower-*.f6446.6

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                                                          5. Applied rewrites46.6%

                                                                                                            \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                                                          6. Taylor expanded in a around 0

                                                                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites29.2%

                                                                                                              \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
                                                                                                          8. Recombined 2 regimes into one program.
                                                                                                          9. Add Preprocessing

                                                                                                          Alternative 23: 22.5% accurate, 5.5× speedup?

                                                                                                          \[\begin{array}{l} \\ b \cdot \left(t \cdot i\right) \end{array} \]
                                                                                                          (FPCore (x y z t a b c i j) :precision binary64 (* b (* t i)))
                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                          	return b * (t * 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 = b * (t * 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 b * (t * i);
                                                                                                          }
                                                                                                          
                                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                                          	return b * (t * i)
                                                                                                          
                                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                                          	return Float64(b * Float64(t * i))
                                                                                                          end
                                                                                                          
                                                                                                          function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                          	tmp = b * (t * i);
                                                                                                          end
                                                                                                          
                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]
                                                                                                          
                                                                                                          \begin{array}{l}
                                                                                                          
                                                                                                          \\
                                                                                                          b \cdot \left(t \cdot i\right)
                                                                                                          \end{array}
                                                                                                          
                                                                                                          Derivation
                                                                                                          1. Initial program 71.4%

                                                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                                                          2. Add Preprocessing
                                                                                                          3. Taylor expanded in 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. lower-*.f64N/A

                                                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                                            2. sub-negN/A

                                                                                                              \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                                                            3. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            4. distribute-rgt-neg-inN/A

                                                                                                              \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            5. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                                            6. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                                                            7. remove-double-negN/A

                                                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                                                            8. lower-fma.f64N/A

                                                                                                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                                                            9. mul-1-negN/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                            10. lower-neg.f64N/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                                            11. *-commutativeN/A

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                                                            12. lower-*.f6440.8

                                                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                                                          5. Applied rewrites40.8%

                                                                                                            \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                                                          6. Taylor expanded in a around 0

                                                                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                          7. Step-by-step derivation
                                                                                                            1. Applied rewrites23.0%

                                                                                                              \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
                                                                                                            2. Add Preprocessing

                                                                                                            Developer Target 1: 60.0% accurate, 0.2× speedup?

                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                                                            (FPCore (x y z t a b c i j)
                                                                                                             :precision binary64
                                                                                                             (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                                                                    (t_2
                                                                                                                     (+
                                                                                                                      (-
                                                                                                                       (* x (- (* y z) (* t a)))
                                                                                                                       (/
                                                                                                                        (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                                                                        (+ (* c z) (* t i))))
                                                                                                                      t_1)))
                                                                                                               (if (< x -1.469694296777705e-64)
                                                                                                                 t_2
                                                                                                                 (if (< x 3.2113527362226803e-147)
                                                                                                                   (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                                                                                   t_2))))
                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                            	double t_1 = j * ((c * a) - (y * i));
                                                                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                            	double tmp;
                                                                                                            	if (x < -1.469694296777705e-64) {
                                                                                                            		tmp = t_2;
                                                                                                            	} else if (x < 3.2113527362226803e-147) {
                                                                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                                                            	} else {
                                                                                                            		tmp = t_2;
                                                                                                            	}
                                                                                                            	return tmp;
                                                                                                            }
                                                                                                            
                                                                                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                real(8), intent (in) :: x
                                                                                                                real(8), intent (in) :: y
                                                                                                                real(8), intent (in) :: z
                                                                                                                real(8), intent (in) :: t
                                                                                                                real(8), intent (in) :: a
                                                                                                                real(8), intent (in) :: b
                                                                                                                real(8), intent (in) :: c
                                                                                                                real(8), intent (in) :: i
                                                                                                                real(8), intent (in) :: j
                                                                                                                real(8) :: t_1
                                                                                                                real(8) :: t_2
                                                                                                                real(8) :: tmp
                                                                                                                t_1 = j * ((c * a) - (y * i))
                                                                                                                t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                                                                if (x < (-1.469694296777705d-64)) then
                                                                                                                    tmp = t_2
                                                                                                                else if (x < 3.2113527362226803d-147) then
                                                                                                                    tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                                                                else
                                                                                                                    tmp = t_2
                                                                                                                end if
                                                                                                                code = tmp
                                                                                                            end function
                                                                                                            
                                                                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                            	double t_1 = j * ((c * a) - (y * i));
                                                                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                            	double tmp;
                                                                                                            	if (x < -1.469694296777705e-64) {
                                                                                                            		tmp = t_2;
                                                                                                            	} else if (x < 3.2113527362226803e-147) {
                                                                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                                                            	} else {
                                                                                                            		tmp = t_2;
                                                                                                            	}
                                                                                                            	return tmp;
                                                                                                            }
                                                                                                            
                                                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                                                            	t_1 = j * ((c * a) - (y * i))
                                                                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                                                                            	tmp = 0
                                                                                                            	if x < -1.469694296777705e-64:
                                                                                                            		tmp = t_2
                                                                                                            	elif x < 3.2113527362226803e-147:
                                                                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                                                            	else:
                                                                                                            		tmp = t_2
                                                                                                            	return tmp
                                                                                                            
                                                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                                                            	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                                                                            	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                                                                            	tmp = 0.0
                                                                                                            	if (x < -1.469694296777705e-64)
                                                                                                            		tmp = t_2;
                                                                                                            	elseif (x < 3.2113527362226803e-147)
                                                                                                            		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                                                                                            	else
                                                                                                            		tmp = t_2;
                                                                                                            	end
                                                                                                            	return tmp
                                                                                                            end
                                                                                                            
                                                                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                            	t_1 = j * ((c * a) - (y * i));
                                                                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                                                            	tmp = 0.0;
                                                                                                            	if (x < -1.469694296777705e-64)
                                                                                                            		tmp = t_2;
                                                                                                            	elseif (x < 3.2113527362226803e-147)
                                                                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                                                            	else
                                                                                                            		tmp = t_2;
                                                                                                            	end
                                                                                                            	tmp_2 = tmp;
                                                                                                            end
                                                                                                            
                                                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                                                                            
                                                                                                            \begin{array}{l}
                                                                                                            
                                                                                                            \\
                                                                                                            \begin{array}{l}
                                                                                                            t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                                                                            t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                                                                            \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                                                                            \;\;\;\;t\_2\\
                                                                                                            
                                                                                                            \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                                                                            \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                                                                            
                                                                                                            \mathbf{else}:\\
                                                                                                            \;\;\;\;t\_2\\
                                                                                                            
                                                                                                            
                                                                                                            \end{array}
                                                                                                            \end{array}
                                                                                                            

                                                                                                            Reproduce

                                                                                                            ?
                                                                                                            herbie shell --seed 2024220 
                                                                                                            (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)))))