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

Percentage Accurate: 73.5% → 82.5%
Time: 21.5s
Alternatives: 29
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 29 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.5% 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: 82.5% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_1 := a \cdot c - y \cdot i\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot t\_1\\
\mathbf{if}\;t\_2 \leq 2 \cdot 10^{+296}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_1, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\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 (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 1.99999999999999996e296

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

Alternative 2: 78.1% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot i - z \cdot c\\ t_2 := a \cdot c - y \cdot i\\ t_3 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot t\_1\right) + j \cdot t\_2\\ \mathbf{if}\;t\_3 \leq 5 \cdot 10^{+290}:\\ \;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\right)\right)\\ \mathbf{elif}\;t\_3 \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(j, t\_2, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\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
 (let* ((t_1 (- (* t i) (* z c)))
        (t_2 (- (* a c) (* y i)))
        (t_3 (+ (+ (* x (- (* y z) (* t a))) (* b t_1)) (* j t_2))))
   (if (<= t_3 5e+290)
     (fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x z)))))
     (if (<= t_3 INFINITY)
       (fma j t_2 (fma t (fma a (- x) (* b i)) (* z (fma c (- b) (* x y)))))
       (* 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 t_1 = (t * i) - (z * c);
	double t_2 = (a * c) - (y * i);
	double t_3 = ((x * ((y * z) - (t * a))) + (b * t_1)) + (j * t_2);
	double tmp;
	if (t_3 <= 5e+290) {
		tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
	} else if (t_3 <= ((double) INFINITY)) {
		tmp = fma(j, t_2, fma(t, fma(a, -x, (b * i)), (z * fma(c, -b, (x * y)))));
	} else {
		tmp = i * fma(j, -y, (t * b));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(t * i) - Float64(z * c))
	t_2 = Float64(Float64(a * c) - Float64(y * i))
	t_3 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * t_1)) + Float64(j * t_2))
	tmp = 0.0
	if (t_3 <= 5e+290)
		tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * z)))));
	elseif (t_3 <= Inf)
		tmp = fma(j, t_2, fma(t, fma(a, Float64(-x), Float64(b * i)), Float64(z * fma(c, Float64(-b), Float64(x * y)))));
	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_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, 5e+290], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(j * t$95$2 + N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision] + N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, \mathsf{fma}\left(t, \mathsf{fma}\left(a, -x, b \cdot i\right), z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\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 (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < 4.9999999999999998e290

    1. Initial program 96.5%

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

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

      \[\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)} \]

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

    1. Initial program 82.3%

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

Alternative 3: 77.4% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot i - z \cdot c\\ \mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot t\_1\right) + j \cdot \left(a \cdot c - y \cdot i\right) \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(a, \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right), \mathsf{fma}\left(b, t\_1, y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\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
 (let* ((t_1 (- (* t i) (* z c))))
   (if (<=
        (+ (+ (* x (- (* y z) (* t a))) (* b t_1)) (* j (- (* a c) (* y i))))
        INFINITY)
     (fma a (fma j c (* x (- t))) (fma b t_1 (* y (fma j (- i) (* x 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 t_1 = (t * i) - (z * c);
	double tmp;
	if ((((x * ((y * z) - (t * a))) + (b * t_1)) + (j * ((a * c) - (y * i)))) <= ((double) INFINITY)) {
		tmp = fma(a, fma(j, c, (x * -t)), fma(b, t_1, (y * fma(j, -i, (x * z)))));
	} else {
		tmp = i * fma(j, -y, (t * b));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(t * i) - Float64(z * c))
	tmp = 0.0
	if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * t_1)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) <= Inf)
		tmp = fma(a, fma(j, c, Float64(x * Float64(-t))), fma(b, t_1, Float64(y * fma(j, Float64(-i), Float64(x * 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_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision] + N[(b * t$95$1 + N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\


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

    1. Initial program 92.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 rewrites85.2%

      \[\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)} \]

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

    1. Initial program 0.0%

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

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

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

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

Alternative 4: 49.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\ t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot \left(-z\right), c, x \cdot \left(y \cdot z\right)\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;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 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
   (if (<= j -4.3e+130)
     t_2
     (if (<= j -2.3e+22)
       t_1
       (if (<= j -3.1e-30)
         (* y (fma j (- i) (* x z)))
         (if (<= j -1e-49)
           (* a (fma j c (* x (- t))))
           (if (<= j -5.8e-135)
             (* i (fma j (- y) (* t b)))
             (if (<= j 3e-231)
               (fma (* b (- z)) c (* x (* y z)))
               (if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
	double t_2 = j * ((a * c) - (y * i));
	double tmp;
	if (j <= -4.3e+130) {
		tmp = t_2;
	} else if (j <= -2.3e+22) {
		tmp = t_1;
	} else if (j <= -3.1e-30) {
		tmp = y * fma(j, -i, (x * z));
	} else if (j <= -1e-49) {
		tmp = a * fma(j, c, (x * -t));
	} else if (j <= -5.8e-135) {
		tmp = i * fma(j, -y, (t * b));
	} else if (j <= 3e-231) {
		tmp = fma((b * -z), c, (x * (y * z)));
	} else if (j <= 1.15e+80) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c)))
	t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	tmp = 0.0
	if (j <= -4.3e+130)
		tmp = t_2;
	elseif (j <= -2.3e+22)
		tmp = t_1;
	elseif (j <= -3.1e-30)
		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
	elseif (j <= -1e-49)
		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
	elseif (j <= -5.8e-135)
		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
	elseif (j <= 3e-231)
		tmp = fma(Float64(b * Float64(-z)), c, Float64(x * Float64(y * z)));
	elseif (j <= 1.15e+80)
		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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.8e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-231], N[(N[(b * (-z)), $MachinePrecision] * c + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\

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

\mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j

    1. Initial program 71.9%

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

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

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. lower-*.f6471.5

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

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

    if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 3.0000000000000003e-231 < j < 1.15000000000000002e80

    1. Initial program 76.6%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6460.7

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

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

    if -2.3000000000000002e22 < j < -3.09999999999999991e-30

    1. Initial program 83.4%

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

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

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

    if -3.09999999999999991e-30 < j < -9.99999999999999936e-50

    1. Initial program 87.3%

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

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

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

    if -9.99999999999999936e-50 < j < -5.8000000000000004e-135

    1. Initial program 83.6%

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

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. 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-*.f6475.3

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

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

    if -5.8000000000000004e-135 < j < 3.0000000000000003e-231

    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 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.6

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

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites64.0%

        \[\leadsto \mathsf{fma}\left(z \cdot \left(-b\right), \color{blue}{c}, x \cdot \left(y \cdot z\right)\right) \]
    7. Recombined 6 regimes into one program.
    8. Final simplification67.8%

      \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\ \;\;\;\;\mathsf{fma}\left(b \cdot \left(-z\right), c, x \cdot \left(y \cdot z\right)\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \end{array} \]
    9. Add Preprocessing

    Alternative 5: 50.0% accurate, 1.0× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\ t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;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 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
       (if (<= j -4.3e+130)
         t_2
         (if (<= j -2.3e+22)
           t_1
           (if (<= j -3.1e-30)
             (* y (fma j (- i) (* x z)))
             (if (<= j -1e-49)
               (* a (fma j c (* x (- t))))
               (if (<= j -5.8e-135)
                 (* i (fma j (- y) (* t b)))
                 (if (<= j 3e-231)
                   (* z (fma c (- b) (* x y)))
                   (if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
    	double t_2 = j * ((a * c) - (y * i));
    	double tmp;
    	if (j <= -4.3e+130) {
    		tmp = t_2;
    	} else if (j <= -2.3e+22) {
    		tmp = t_1;
    	} else if (j <= -3.1e-30) {
    		tmp = y * fma(j, -i, (x * z));
    	} else if (j <= -1e-49) {
    		tmp = a * fma(j, c, (x * -t));
    	} else if (j <= -5.8e-135) {
    		tmp = i * fma(j, -y, (t * b));
    	} else if (j <= 3e-231) {
    		tmp = z * fma(c, -b, (x * y));
    	} else if (j <= 1.15e+80) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c)))
    	t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
    	tmp = 0.0
    	if (j <= -4.3e+130)
    		tmp = t_2;
    	elseif (j <= -2.3e+22)
    		tmp = t_1;
    	elseif (j <= -3.1e-30)
    		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
    	elseif (j <= -1e-49)
    		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
    	elseif (j <= -5.8e-135)
    		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
    	elseif (j <= 3e-231)
    		tmp = Float64(z * fma(c, Float64(-b), Float64(x * y)));
    	elseif (j <= 1.15e+80)
    		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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.8e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-231], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
    t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
    \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\
    \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
    
    \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
    \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
    
    \mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\
    \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
    
    \mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\
    \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
    
    \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 6 regimes
    2. if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j

      1. Initial program 71.9%

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

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

          \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
        4. lower-*.f6471.5

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

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

      if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 3.0000000000000003e-231 < j < 1.15000000000000002e80

      1. Initial program 76.6%

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

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

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

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

          \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6460.7

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

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

      if -2.3000000000000002e22 < j < -3.09999999999999991e-30

      1. Initial program 83.4%

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

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

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

      if -3.09999999999999991e-30 < j < -9.99999999999999936e-50

      1. Initial program 87.3%

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

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

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

      if -9.99999999999999936e-50 < j < -5.8000000000000004e-135

      1. Initial program 83.6%

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

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      4. Step-by-step derivation
        1. 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-*.f6475.3

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

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

      if -5.8000000000000004e-135 < j < 3.0000000000000003e-231

      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 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.6

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-231}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 49.5% accurate, 1.0× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\ t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 5.4 \cdot 10^{-204}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;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 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
       (if (<= j -4.3e+130)
         t_2
         (if (<= j -2.3e+22)
           t_1
           (if (<= j -3.1e-30)
             (* y (fma j (- i) (* x z)))
             (if (<= j -1e-49)
               (* a (fma j c (* x (- t))))
               (if (<= j -5e-135)
                 (* i (fma j (- y) (* t b)))
                 (if (<= j 5.4e-204)
                   (* x (- (* y z) (* t a)))
                   (if (<= j 1.15e+80) 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 = b * ((t * i) - (z * c));
    	double t_2 = j * ((a * c) - (y * i));
    	double tmp;
    	if (j <= -4.3e+130) {
    		tmp = t_2;
    	} else if (j <= -2.3e+22) {
    		tmp = t_1;
    	} else if (j <= -3.1e-30) {
    		tmp = y * fma(j, -i, (x * z));
    	} else if (j <= -1e-49) {
    		tmp = a * fma(j, c, (x * -t));
    	} else if (j <= -5e-135) {
    		tmp = i * fma(j, -y, (t * b));
    	} else if (j <= 5.4e-204) {
    		tmp = x * ((y * z) - (t * a));
    	} else if (j <= 1.15e+80) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c)))
    	t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
    	tmp = 0.0
    	if (j <= -4.3e+130)
    		tmp = t_2;
    	elseif (j <= -2.3e+22)
    		tmp = t_1;
    	elseif (j <= -3.1e-30)
    		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
    	elseif (j <= -1e-49)
    		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
    	elseif (j <= -5e-135)
    		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
    	elseif (j <= 5.4e-204)
    		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
    	elseif (j <= 1.15e+80)
    		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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+130], t$95$2, If[LessEqual[j, -2.3e+22], t$95$1, If[LessEqual[j, -3.1e-30], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1e-49], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5e-135], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e-204], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e+80], t$95$1, t$95$2]]]]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
    t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
    \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\
    \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
    
    \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\
    \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
    
    \mathbf{elif}\;j \leq -5 \cdot 10^{-135}:\\
    \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
    
    \mathbf{elif}\;j \leq 5.4 \cdot 10^{-204}:\\
    \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
    
    \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 6 regimes
    2. if j < -4.29999999999999984e130 or 1.15000000000000002e80 < j

      1. Initial program 71.9%

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

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

          \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
        4. lower-*.f6471.5

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

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

      if -4.29999999999999984e130 < j < -2.3000000000000002e22 or 5.39999999999999983e-204 < j < 1.15000000000000002e80

      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 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. +-commutativeN/A

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

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

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

          \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6463.5

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

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

      if -2.3000000000000002e22 < j < -3.09999999999999991e-30

      1. Initial program 83.4%

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

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

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

      if -3.09999999999999991e-30 < j < -9.99999999999999936e-50

      1. Initial program 87.3%

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

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

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

      if -9.99999999999999936e-50 < j < -5.0000000000000002e-135

      1. Initial program 83.6%

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

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      4. Step-by-step derivation
        1. 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-*.f6475.3

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

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

      if -5.0000000000000002e-135 < j < 5.39999999999999983e-204

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto x \cdot \left(\color{blue}{y \cdot z} - a \cdot t\right) \]
          4. lower-*.f6455.0

            \[\leadsto x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) \]
        4. Applied rewrites55.0%

          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
      8. Recombined 6 regimes into one program.
      9. Final simplification66.8%

        \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.3 \cdot 10^{+130}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;j \leq -2.3 \cdot 10^{+22}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;j \leq -3.1 \cdot 10^{-30}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;j \leq -1 \cdot 10^{-49}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;j \leq -5 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq 5.4 \cdot 10^{-204}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \end{array} \]
      10. Add Preprocessing

      Alternative 7: 60.6% accurate, 1.2× speedup?

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

        1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) \]
        7. Step-by-step derivation
          1. Applied rewrites77.0%

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

          if -9.99999999999999957e110 < j < -6.50000000000000056e-135

          1. Initial program 79.3%

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

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

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

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

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

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

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

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

          if -6.50000000000000056e-135 < j < 8.49999999999999986e81

          1. Initial program 73.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
            7. *-commutativeN/A

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

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

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

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

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

            if 8.49999999999999986e81 < j

            1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

                \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
              10. lower-neg.f6478.5

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

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

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

          Alternative 8: 60.8% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) \]
            7. Step-by-step derivation
              1. Applied rewrites77.8%

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

              if -9.99999999999999957e110 < j < -6.50000000000000056e-135

              1. Initial program 79.3%

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

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

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

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

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

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

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

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

              if -6.50000000000000056e-135 < j < 8.49999999999999986e81

              1. Initial program 73.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                7. *-commutativeN/A

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

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

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

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

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

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

              Alternative 9: 60.6% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites77.8%

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

                  if -2.6499999999999999e110 < j < -6.50000000000000056e-135

                  1. Initial program 79.3%

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, b \cdot \left(i \cdot t\right)\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites58.0%

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

                    if -6.50000000000000056e-135 < j < 8.49999999999999986e81

                    1. Initial program 73.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                      7. *-commutativeN/A

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

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

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

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

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

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

                    Alternative 10: 57.6% accurate, 1.2× speedup?

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

                      1. Initial program 49.9%

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

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

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

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

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

                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                        2. Taylor expanded in b around 0

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

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

                          if -5.5999999999999996e206 < j < -6.50000000000000056e-135

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -6.50000000000000056e-135 < j < 5.2000000000000003e100

                            1. Initial program 74.3%

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

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

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

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

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

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

                              if 5.2000000000000003e100 < j

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

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

                                  \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                4. lower-*.f6477.3

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

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

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

                            Alternative 11: 69.5% accurate, 1.2× speedup?

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

                              1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -1.95e124 < j < 8.49999999999999986e81

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 8.49999999999999986e81 < j

                                    1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                      10. lower-neg.f6478.5

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

                                      \[\leadsto \color{blue}{a \cdot \left(t \cdot \left(-x\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                  4. Recombined 3 regimes into one program.
                                  5. Final simplification77.0%

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

                                  Alternative 12: 69.3% accurate, 1.2× speedup?

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

                                    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -1.95e124 < j < 8.49999999999999986e81

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 8.49999999999999986e81 < j

                                        1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          10. lower-neg.f6478.5

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

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

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

                                      Alternative 13: 42.9% accurate, 1.2× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i\right)\\ t_2 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{if}\;a \leq -4.2 \cdot 10^{+44}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -1.1 \cdot 10^{-167}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.8 \cdot 10^{-287}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-38}:\\ \;\;\;\;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 (* t (* b i))) (t_2 (* a (fma j c (* x (- t))))))
                                         (if (<= a -4.2e+44)
                                           t_2
                                           (if (<= a -1.1e-167)
                                             t_1
                                             (if (<= a 4.8e-287)
                                               (* j (* y (- i)))
                                               (if (<= a 9.5e-68) (* x (* y z)) (if (<= a 4.6e-38) 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 = t * (b * i);
                                      	double t_2 = a * fma(j, c, (x * -t));
                                      	double tmp;
                                      	if (a <= -4.2e+44) {
                                      		tmp = t_2;
                                      	} else if (a <= -1.1e-167) {
                                      		tmp = t_1;
                                      	} else if (a <= 4.8e-287) {
                                      		tmp = j * (y * -i);
                                      	} else if (a <= 9.5e-68) {
                                      		tmp = x * (y * z);
                                      	} else if (a <= 4.6e-38) {
                                      		tmp = t_1;
                                      	} else {
                                      		tmp = t_2;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      function code(x, y, z, t, a, b, c, i, j)
                                      	t_1 = Float64(t * Float64(b * i))
                                      	t_2 = Float64(a * fma(j, c, Float64(x * Float64(-t))))
                                      	tmp = 0.0
                                      	if (a <= -4.2e+44)
                                      		tmp = t_2;
                                      	elseif (a <= -1.1e-167)
                                      		tmp = t_1;
                                      	elseif (a <= 4.8e-287)
                                      		tmp = Float64(j * Float64(y * Float64(-i)));
                                      	elseif (a <= 9.5e-68)
                                      		tmp = Float64(x * Float64(y * z));
                                      	elseif (a <= 4.6e-38)
                                      		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[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+44], t$95$2, If[LessEqual[a, -1.1e-167], t$95$1, If[LessEqual[a, 4.8e-287], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 9.5e-68], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.6e-38], t$95$1, t$95$2]]]]]]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      t_1 := t \cdot \left(b \cdot i\right)\\
                                      t_2 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
                                      \mathbf{if}\;a \leq -4.2 \cdot 10^{+44}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      \mathbf{elif}\;a \leq -1.1 \cdot 10^{-167}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{elif}\;a \leq 4.8 \cdot 10^{-287}:\\
                                      \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
                                      
                                      \mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\
                                      \;\;\;\;x \cdot \left(y \cdot z\right)\\
                                      
                                      \mathbf{elif}\;a \leq 4.6 \cdot 10^{-38}:\\
                                      \;\;\;\;t\_1\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\_2\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 4 regimes
                                      2. if a < -4.19999999999999974e44 or 4.60000000000000003e-38 < a

                                        1. Initial program 69.9%

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

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

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

                                        if -4.19999999999999974e44 < a < -1.1e-167 or 9.4999999999999997e-68 < a < 4.60000000000000003e-38

                                        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 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-*.f6451.2

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

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

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

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

                                          if -1.1e-167 < a < 4.79999999999999999e-287

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

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

                                              \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                            4. lower-*.f6444.6

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

                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites41.6%

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

                                            if 4.79999999999999999e-287 < a < 9.4999999999999997e-68

                                            1. Initial program 83.9%

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

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

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

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

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

                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                            8. Recombined 4 regimes into one program.
                                            9. Final simplification52.2%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.2 \cdot 10^{+44}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;a \leq -1.1 \cdot 10^{-167}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;a \leq 4.8 \cdot 10^{-287}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-38}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 14: 50.0% accurate, 1.4× speedup?

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

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

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

                                                  \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                4. lower-*.f6471.1

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

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

                                              if -1.22e124 < j < -5.0000000000000002e-135

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

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

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

                                              if -5.0000000000000002e-135 < j < 5.39999999999999983e-204

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto x \cdot \left(\color{blue}{y \cdot z} - a \cdot t\right) \]
                                                  4. lower-*.f6455.0

                                                    \[\leadsto x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) \]
                                                4. Applied rewrites55.0%

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

                                                if 5.39999999999999983e-204 < j < 1.15000000000000002e80

                                                1. Initial program 81.6%

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

                                                  \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
                                                4. Step-by-step derivation
                                                  1. 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. +-commutativeN/A

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

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

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

                                                    \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6461.5

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

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

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

                                              Alternative 15: 48.8% accurate, 1.4× speedup?

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

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

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

                                                    \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                  4. lower-*.f6471.1

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

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

                                                if -1.22e124 < j < -4.3999999999999999e-135

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

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

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

                                                if -4.3999999999999999e-135 < j < -4.5000000000000001e-268

                                                1. Initial program 53.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                  7. *-commutativeN/A

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

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

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

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

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

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

                                                    if -4.5000000000000001e-268 < j < 1.15000000000000002e80

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

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

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

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

                                                        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6455.8

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

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

                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.22 \cdot 10^{+124}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;j \leq -4.5 \cdot 10^{-268}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{+80}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \end{array} \]
                                                  5. Add Preprocessing

                                                  Alternative 16: 60.7% accurate, 1.5× speedup?

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

                                                    1. Initial program 61.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-*.f6465.3

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

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

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

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

                                                          \[\leadsto z \cdot \left(x \cdot \left(y - \frac{b}{x} \cdot c\right)\right) \]

                                                        if -3.4e13 < z < 1.12000000000000002e52

                                                        1. Initial program 84.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

                                                          if 1.12000000000000002e52 < z

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

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

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

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

                                                          Alternative 17: 58.0% accurate, 1.5× speedup?

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

                                                            1. Initial program 72.9%

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

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

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

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

                                                                \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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.2

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

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

                                                            if -1.45000000000000005e131 < b < 1.8e-91

                                                            1. Initial program 74.8%

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

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

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

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

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

                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                              2. Taylor expanded in b around 0

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

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

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

                                                              Alternative 18: 30.0% accurate, 1.5× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.6 \cdot 10^{+196}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -9.8 \cdot 10^{-56}:\\ \;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\ \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (if (<= j -1.6e+196)
                                                                 (* c (* a j))
                                                                 (if (<= j -9.8e-56)
                                                                   (* (- i) (* y j))
                                                                   (if (<= j -4.4e-135)
                                                                     (* i (* t b))
                                                                     (if (<= j 3e-205)
                                                                       (* y (* x z))
                                                                       (if (<= j 2e+81) (* t (* b i)) (* j (* a c))))))))
                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (j <= -1.6e+196) {
                                                              		tmp = c * (a * j);
                                                              	} else if (j <= -9.8e-56) {
                                                              		tmp = -i * (y * j);
                                                              	} else if (j <= -4.4e-135) {
                                                              		tmp = i * (t * b);
                                                              	} else if (j <= 3e-205) {
                                                              		tmp = y * (x * z);
                                                              	} else if (j <= 2e+81) {
                                                              		tmp = t * (b * i);
                                                              	} else {
                                                              		tmp = j * (a * c);
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                  real(8), intent (in) :: x
                                                                  real(8), intent (in) :: y
                                                                  real(8), intent (in) :: z
                                                                  real(8), intent (in) :: t
                                                                  real(8), intent (in) :: a
                                                                  real(8), intent (in) :: b
                                                                  real(8), intent (in) :: c
                                                                  real(8), intent (in) :: i
                                                                  real(8), intent (in) :: j
                                                                  real(8) :: tmp
                                                                  if (j <= (-1.6d+196)) then
                                                                      tmp = c * (a * j)
                                                                  else if (j <= (-9.8d-56)) then
                                                                      tmp = -i * (y * j)
                                                                  else if (j <= (-4.4d-135)) then
                                                                      tmp = i * (t * b)
                                                                  else if (j <= 3d-205) then
                                                                      tmp = y * (x * z)
                                                                  else if (j <= 2d+81) then
                                                                      tmp = t * (b * i)
                                                                  else
                                                                      tmp = j * (a * c)
                                                                  end if
                                                                  code = tmp
                                                              end function
                                                              
                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (j <= -1.6e+196) {
                                                              		tmp = c * (a * j);
                                                              	} else if (j <= -9.8e-56) {
                                                              		tmp = -i * (y * j);
                                                              	} else if (j <= -4.4e-135) {
                                                              		tmp = i * (t * b);
                                                              	} else if (j <= 3e-205) {
                                                              		tmp = y * (x * z);
                                                              	} else if (j <= 2e+81) {
                                                              		tmp = t * (b * i);
                                                              	} else {
                                                              		tmp = j * (a * c);
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	tmp = 0
                                                              	if j <= -1.6e+196:
                                                              		tmp = c * (a * j)
                                                              	elif j <= -9.8e-56:
                                                              		tmp = -i * (y * j)
                                                              	elif j <= -4.4e-135:
                                                              		tmp = i * (t * b)
                                                              	elif j <= 3e-205:
                                                              		tmp = y * (x * z)
                                                              	elif j <= 2e+81:
                                                              		tmp = t * (b * i)
                                                              	else:
                                                              		tmp = j * (a * c)
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0
                                                              	if (j <= -1.6e+196)
                                                              		tmp = Float64(c * Float64(a * j));
                                                              	elseif (j <= -9.8e-56)
                                                              		tmp = Float64(Float64(-i) * Float64(y * j));
                                                              	elseif (j <= -4.4e-135)
                                                              		tmp = Float64(i * Float64(t * b));
                                                              	elseif (j <= 3e-205)
                                                              		tmp = Float64(y * Float64(x * z));
                                                              	elseif (j <= 2e+81)
                                                              		tmp = Float64(t * Float64(b * i));
                                                              	else
                                                              		tmp = Float64(j * Float64(a * c));
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0;
                                                              	if (j <= -1.6e+196)
                                                              		tmp = c * (a * j);
                                                              	elseif (j <= -9.8e-56)
                                                              		tmp = -i * (y * j);
                                                              	elseif (j <= -4.4e-135)
                                                              		tmp = i * (t * b);
                                                              	elseif (j <= 3e-205)
                                                              		tmp = y * (x * z);
                                                              	elseif (j <= 2e+81)
                                                              		tmp = t * (b * i);
                                                              	else
                                                              		tmp = j * (a * c);
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.6e+196], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9.8e-56], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.4e-135], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;j \leq -1.6 \cdot 10^{+196}:\\
                                                              \;\;\;\;c \cdot \left(a \cdot j\right)\\
                                                              
                                                              \mathbf{elif}\;j \leq -9.8 \cdot 10^{-56}:\\
                                                              \;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
                                                              
                                                              \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\
                                                              \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                                              
                                                              \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
                                                              \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                              
                                                              \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
                                                              \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;j \cdot \left(a \cdot c\right)\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 6 regimes
                                                              2. if j < -1.59999999999999996e196

                                                                1. Initial program 51.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 t around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                  if -1.59999999999999996e196 < j < -9.8e-56

                                                                  1. Initial program 81.1%

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

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

                                                                      \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                                    4. lower-*.f6450.5

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

                                                                    \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites36.4%

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

                                                                    if -9.8e-56 < j < -4.3999999999999999e-135

                                                                    1. Initial program 82.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-*.f6473.1

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

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

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

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

                                                                      if -4.3999999999999999e-135 < j < 3e-205

                                                                      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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                        7. *-commutativeN/A

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

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

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

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

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

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

                                                                          if 3e-205 < j < 1.99999999999999984e81

                                                                          1. Initial program 81.6%

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

                                                                            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                          4. Step-by-step derivation
                                                                            1. 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-*.f6443.2

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

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

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

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

                                                                            if 1.99999999999999984e81 < j

                                                                            1. Initial program 74.4%

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

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

                                                                                \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                                              4. lower-*.f6475.0

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

                                                                              \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites53.6%

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

                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.6 \cdot 10^{+196}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -9.8 \cdot 10^{-56}:\\ \;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\ \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \end{array} \]
                                                                            10. Add Preprocessing

                                                                            Alternative 19: 29.0% accurate, 1.7× speedup?

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

                                                                              1. Initial program 73.3%

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

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

                                                                                  \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                                                4. lower-*.f6454.3

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

                                                                                \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites35.4%

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

                                                                                if -9.8e-56 < j < -4.3999999999999999e-135

                                                                                1. Initial program 82.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-*.f6473.1

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

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

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

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

                                                                                  if -4.3999999999999999e-135 < j < 3e-205

                                                                                  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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                    7. *-commutativeN/A

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

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

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

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

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

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

                                                                                      if 3e-205 < j < 1.99999999999999984e81

                                                                                      1. Initial program 81.6%

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

                                                                                        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                      4. Step-by-step derivation
                                                                                        1. 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-*.f6443.2

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

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

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

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

                                                                                        if 1.99999999999999984e81 < j

                                                                                        1. Initial program 74.4%

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

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

                                                                                            \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
                                                                                          4. lower-*.f6475.0

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

                                                                                          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites53.6%

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

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -9.8 \cdot 10^{-56}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \end{array} \]
                                                                                        10. Add Preprocessing

                                                                                        Alternative 20: 30.4% accurate, 1.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                            if -2.1000000000000001e116 < a < -5.89999999999999994e-115

                                                                                            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 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.4

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

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

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

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

                                                                                              if -5.89999999999999994e-115 < a < 9.4999999999999997e-68

                                                                                              1. Initial program 78.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                7. *-commutativeN/A

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

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

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

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

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

                                                                                                if 9.4999999999999997e-68 < a < 2.59999999999999998e53

                                                                                                1. Initial program 76.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-*.f6450.1

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

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

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

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

                                                                                                  if 2.59999999999999998e53 < a

                                                                                                  1. Initial program 68.1%

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

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

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

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

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

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

                                                                                                    \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\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 rewrites45.2%

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

                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.1 \cdot 10^{+116}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;a \leq -5.9 \cdot 10^{-115}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;a \leq 9.5 \cdot 10^{-68}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 2.6 \cdot 10^{+53}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \end{array} \]
                                                                                                  10. Add Preprocessing

                                                                                                  Alternative 21: 30.2% accurate, 1.7× speedup?

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

                                                                                                    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                      if -1.20000000000000003e124 < j < -4.3999999999999999e-135

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

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

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

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

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

                                                                                                        if -4.3999999999999999e-135 < j < 3e-205

                                                                                                        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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                          7. *-commutativeN/A

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

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

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

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

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

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

                                                                                                            if 3e-205 < j < 1.99999999999999984e81

                                                                                                            1. Initial program 81.6%

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

                                                                                                              \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                            4. Step-by-step derivation
                                                                                                              1. 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-*.f6443.2

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

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

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

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

                                                                                                              if 1.99999999999999984e81 < j

                                                                                                              1. Initial program 74.4%

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

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

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

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

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

                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -4.4 \cdot 10^{-135}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]
                                                                                                              10. Add Preprocessing

                                                                                                              Alternative 22: 30.2% accurate, 1.7× speedup?

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

                                                                                                                1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                  if -2.05000000000000001e124 < j < -4.3e-124

                                                                                                                  1. Initial program 81.3%

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

                                                                                                                    \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                                  4. Step-by-step derivation
                                                                                                                    1. 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.9

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

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

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

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

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

                                                                                                                      if -4.3e-124 < j < 3e-205

                                                                                                                      1. Initial program 65.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                                        7. *-commutativeN/A

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

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

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

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

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

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

                                                                                                                          if 3e-205 < j < 1.99999999999999984e81

                                                                                                                          1. Initial program 81.6%

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

                                                                                                                            \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                                          4. Step-by-step derivation
                                                                                                                            1. 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-*.f6443.2

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

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

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

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

                                                                                                                            if 1.99999999999999984e81 < j

                                                                                                                            1. Initial program 74.4%

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

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

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

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

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

                                                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.05 \cdot 10^{+124}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]
                                                                                                                            10. Add Preprocessing

                                                                                                                            Alternative 23: 30.4% accurate, 1.7× speedup?

                                                                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j\right)\\ \mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \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 (* a (* c j))))
                                                                                                                               (if (<= j -1.2e+124)
                                                                                                                                 t_1
                                                                                                                                 (if (<= j -4.3e-124)
                                                                                                                                   (* b (* t i))
                                                                                                                                   (if (<= j 3e-205) (* y (* x z)) (if (<= j 2e+81) (* t (* 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 = a * (c * j);
                                                                                                                            	double tmp;
                                                                                                                            	if (j <= -1.2e+124) {
                                                                                                                            		tmp = t_1;
                                                                                                                            	} else if (j <= -4.3e-124) {
                                                                                                                            		tmp = b * (t * i);
                                                                                                                            	} else if (j <= 3e-205) {
                                                                                                                            		tmp = y * (x * z);
                                                                                                                            	} else if (j <= 2e+81) {
                                                                                                                            		tmp = t * (b * 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 = a * (c * j)
                                                                                                                                if (j <= (-1.2d+124)) then
                                                                                                                                    tmp = t_1
                                                                                                                                else if (j <= (-4.3d-124)) then
                                                                                                                                    tmp = b * (t * i)
                                                                                                                                else if (j <= 3d-205) then
                                                                                                                                    tmp = y * (x * z)
                                                                                                                                else if (j <= 2d+81) then
                                                                                                                                    tmp = t * (b * 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 = a * (c * j);
                                                                                                                            	double tmp;
                                                                                                                            	if (j <= -1.2e+124) {
                                                                                                                            		tmp = t_1;
                                                                                                                            	} else if (j <= -4.3e-124) {
                                                                                                                            		tmp = b * (t * i);
                                                                                                                            	} else if (j <= 3e-205) {
                                                                                                                            		tmp = y * (x * z);
                                                                                                                            	} else if (j <= 2e+81) {
                                                                                                                            		tmp = t * (b * i);
                                                                                                                            	} else {
                                                                                                                            		tmp = t_1;
                                                                                                                            	}
                                                                                                                            	return tmp;
                                                                                                                            }
                                                                                                                            
                                                                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                                                                            	t_1 = a * (c * j)
                                                                                                                            	tmp = 0
                                                                                                                            	if j <= -1.2e+124:
                                                                                                                            		tmp = t_1
                                                                                                                            	elif j <= -4.3e-124:
                                                                                                                            		tmp = b * (t * i)
                                                                                                                            	elif j <= 3e-205:
                                                                                                                            		tmp = y * (x * z)
                                                                                                                            	elif j <= 2e+81:
                                                                                                                            		tmp = t * (b * i)
                                                                                                                            	else:
                                                                                                                            		tmp = t_1
                                                                                                                            	return tmp
                                                                                                                            
                                                                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                                                                            	t_1 = Float64(a * Float64(c * j))
                                                                                                                            	tmp = 0.0
                                                                                                                            	if (j <= -1.2e+124)
                                                                                                                            		tmp = t_1;
                                                                                                                            	elseif (j <= -4.3e-124)
                                                                                                                            		tmp = Float64(b * Float64(t * i));
                                                                                                                            	elseif (j <= 3e-205)
                                                                                                                            		tmp = Float64(y * Float64(x * z));
                                                                                                                            	elseif (j <= 2e+81)
                                                                                                                            		tmp = Float64(t * Float64(b * i));
                                                                                                                            	else
                                                                                                                            		tmp = t_1;
                                                                                                                            	end
                                                                                                                            	return tmp
                                                                                                                            end
                                                                                                                            
                                                                                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                            	t_1 = a * (c * j);
                                                                                                                            	tmp = 0.0;
                                                                                                                            	if (j <= -1.2e+124)
                                                                                                                            		tmp = t_1;
                                                                                                                            	elseif (j <= -4.3e-124)
                                                                                                                            		tmp = b * (t * i);
                                                                                                                            	elseif (j <= 3e-205)
                                                                                                                            		tmp = y * (x * z);
                                                                                                                            	elseif (j <= 2e+81)
                                                                                                                            		tmp = t * (b * 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[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.2e+124], t$95$1, If[LessEqual[j, -4.3e-124], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3e-205], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+81], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
                                                                                                                            
                                                                                                                            \begin{array}{l}
                                                                                                                            
                                                                                                                            \\
                                                                                                                            \begin{array}{l}
                                                                                                                            t_1 := a \cdot \left(c \cdot j\right)\\
                                                                                                                            \mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            \mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\
                                                                                                                            \;\;\;\;b \cdot \left(t \cdot i\right)\\
                                                                                                                            
                                                                                                                            \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\
                                                                                                                            \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                                                                                            
                                                                                                                            \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\
                                                                                                                            \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                                                                                                            
                                                                                                                            \mathbf{else}:\\
                                                                                                                            \;\;\;\;t\_1\\
                                                                                                                            
                                                                                                                            
                                                                                                                            \end{array}
                                                                                                                            \end{array}
                                                                                                                            
                                                                                                                            Derivation
                                                                                                                            1. Split input into 4 regimes
                                                                                                                            2. if j < -1.20000000000000003e124 or 1.99999999999999984e81 < j

                                                                                                                              1. Initial program 70.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.f6457.1

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

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

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

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

                                                                                                                                if -1.20000000000000003e124 < j < -4.3e-124

                                                                                                                                1. Initial program 81.3%

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

                                                                                                                                  \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                                                4. Step-by-step derivation
                                                                                                                                  1. 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.9

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

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

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

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

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

                                                                                                                                    if -4.3e-124 < j < 3e-205

                                                                                                                                    1. Initial program 65.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                                                      7. *-commutativeN/A

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

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

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

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

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

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

                                                                                                                                        if 3e-205 < j < 1.99999999999999984e81

                                                                                                                                        1. Initial program 81.6%

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

                                                                                                                                          \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                                                                                                        4. Step-by-step derivation
                                                                                                                                          1. 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-*.f6443.2

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

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

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

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

                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.2 \cdot 10^{+124}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-124}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 3 \cdot 10^{-205}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2 \cdot 10^{+81}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]
                                                                                                                                        10. Add Preprocessing

                                                                                                                                        Alternative 24: 53.2% accurate, 2.0× speedup?

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

                                                                                                                                          1. Initial program 69.6%

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

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

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

                                                                                                                                          if -1.3999999999999999e50 < a < 5.40000000000000039e53

                                                                                                                                          1. Initial program 76.7%

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

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

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

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

                                                                                                                                        Alternative 25: 52.5% accurate, 2.0× speedup?

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

                                                                                                                                          1. Initial program 68.7%

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

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

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

                                                                                                                                          if -1.20000000000000009e47 < a < 1.5500000000000001e86

                                                                                                                                          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 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. +-commutativeN/A

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

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

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

                                                                                                                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\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-*.f6442.3

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

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

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

                                                                                                                                        Alternative 26: 29.7% accurate, 2.6× speedup?

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

                                                                                                                                          1. Initial program 62.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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                                                            7. *-commutativeN/A

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

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

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

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

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

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

                                                                                                                                              if -9.8000000000000002e135 < y < 8.20000000000000028e-41

                                                                                                                                              1. Initial program 74.8%

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

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

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

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

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

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

                                                                                                                                                  if 8.20000000000000028e-41 < y

                                                                                                                                                  1. Initial program 77.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 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. 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}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
                                                                                                                                                    7. *-commutativeN/A

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

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

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

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

                                                                                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                  8. Recombined 3 regimes into one program.
                                                                                                                                                  9. Final simplification34.7%

                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.8 \cdot 10^{+135}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                                                                                                                  10. Add Preprocessing

                                                                                                                                                  Alternative 27: 29.9% accurate, 2.6× speedup?

                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;y \leq -9.8 \cdot 10^{+135}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\ \;\;\;\;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 (<= y -9.8e+135) t_1 (if (<= y 8.2e-41) (* 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 (y <= -9.8e+135) {
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	} else if (y <= 8.2e-41) {
                                                                                                                                                  		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 (y <= (-9.8d+135)) then
                                                                                                                                                          tmp = t_1
                                                                                                                                                      else if (y <= 8.2d-41) 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 (y <= -9.8e+135) {
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	} else if (y <= 8.2e-41) {
                                                                                                                                                  		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 y <= -9.8e+135:
                                                                                                                                                  		tmp = t_1
                                                                                                                                                  	elif y <= 8.2e-41:
                                                                                                                                                  		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 (y <= -9.8e+135)
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	elseif (y <= 8.2e-41)
                                                                                                                                                  		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 (y <= -9.8e+135)
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	elseif (y <= 8.2e-41)
                                                                                                                                                  		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[y, -9.8e+135], t$95$1, If[LessEqual[y, 8.2e-41], 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}\;y \leq -9.8 \cdot 10^{+135}:\\
                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                  
                                                                                                                                                  \mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\
                                                                                                                                                  \;\;\;\;b \cdot \left(t \cdot i\right)\\
                                                                                                                                                  
                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                  \end{array}
                                                                                                                                                  \end{array}
                                                                                                                                                  
                                                                                                                                                  Derivation
                                                                                                                                                  1. Split input into 2 regimes
                                                                                                                                                  2. if y < -9.8000000000000002e135 or 8.20000000000000028e-41 < y

                                                                                                                                                    1. Initial program 73.0%

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

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

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

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

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

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

                                                                                                                                                      if -9.8000000000000002e135 < y < 8.20000000000000028e-41

                                                                                                                                                      1. Initial program 74.8%

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

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

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

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

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

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

                                                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -9.8 \cdot 10^{+135}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;y \leq 8.2 \cdot 10^{-41}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                                                                                                                        5. Add Preprocessing

                                                                                                                                                        Alternative 28: 22.8% 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 74.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-*.f6439.9

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

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

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

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

                                                                                                                                                              \[\leadsto \left(t \cdot i\right) \cdot b \]
                                                                                                                                                            2. Final simplification22.3%

                                                                                                                                                              \[\leadsto b \cdot \left(t \cdot i\right) \]
                                                                                                                                                            3. Add Preprocessing

                                                                                                                                                            Alternative 29: 22.8% accurate, 5.5× speedup?

                                                                                                                                                            \[\begin{array}{l} \\ t \cdot \left(b \cdot i\right) \end{array} \]
                                                                                                                                                            (FPCore (x y z t a b c i j) :precision binary64 (* t (* b i)))
                                                                                                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                            	return t * (b * 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 = t * (b * 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 t * (b * i);
                                                                                                                                                            }
                                                                                                                                                            
                                                                                                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                            	return t * (b * i)
                                                                                                                                                            
                                                                                                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                            	return Float64(t * Float64(b * i))
                                                                                                                                                            end
                                                                                                                                                            
                                                                                                                                                            function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                            	tmp = t * (b * i);
                                                                                                                                                            end
                                                                                                                                                            
                                                                                                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]
                                                                                                                                                            
                                                                                                                                                            \begin{array}{l}
                                                                                                                                                            
                                                                                                                                                            \\
                                                                                                                                                            t \cdot \left(b \cdot i\right)
                                                                                                                                                            \end{array}
                                                                                                                                                            
                                                                                                                                                            Derivation
                                                                                                                                                            1. Initial program 74.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-*.f6439.9

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

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

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

                                                                                                                                                                \[\leadsto \left(i \cdot b\right) \cdot \color{blue}{t} \]
                                                                                                                                                              2. Final simplification21.8%

                                                                                                                                                                \[\leadsto t \cdot \left(b \cdot i\right) \]
                                                                                                                                                              3. Add Preprocessing

                                                                                                                                                              Developer Target 1: 59.6% 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 2024219 
                                                                                                                                                              (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)))))