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

Percentage Accurate: 72.9% → 81.3%
Time: 24.8s
Alternatives: 21
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 21 alternatives:

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

Initial Program: 72.9% accurate, 1.0× speedup?

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

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

Alternative 1: 81.3% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \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{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1
         (+
          (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
          (* j (- (* a c) (* y i))))))
   (if (<= t_1 INFINITY) t_1 (* a (- (* c j) (* 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = a * ((c * j) - (x * t));
	}
	return tmp;
}
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) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
	double tmp;
	if (t_1 <= Double.POSITIVE_INFINITY) {
		tmp = t_1;
	} else {
		tmp = a * ((c * j) - (x * t));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)))
	tmp = 0
	if t_1 <= math.inf:
		tmp = t_1
	else:
		tmp = a * ((c * j) - (x * t))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i))))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
	tmp = 0.0;
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = a * ((c * j) - (x * t));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = 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 * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \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{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 90.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 +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i))))

    1. Initial program 0.0%

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

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

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg49.4%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg49.4%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative49.4%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified49.4%

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c - t \cdot x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification84.2%

    \[\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:\\ \;\;\;\;\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{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 2: 29.8% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\ \mathbf{if}\;j \leq -9 \cdot 10^{+46}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;j \leq -2.2 \cdot 10^{-81}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq -4 \cdot 10^{-117}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -1.06 \cdot 10^{-188}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq -4.1 \cdot 10^{-289}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 6.8 \cdot 10^{-251}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 2.5 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (* t (- x)))))
   (if (<= j -9e+46)
     (* y (* i (- j)))
     (if (<= j -2.2e-81)
       (* c (* z (- b)))
       (if (<= j -4e-117)
         t_1
         (if (<= j -1.06e-188)
           (* i (* t b))
           (if (<= j -4.1e-289)
             (* y (* x z))
             (if (<= j 6.8e-251)
               t_1
               (if (<= j 2.5e-55) (* z (* x y)) (* c (* a j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (t * -x);
	double tmp;
	if (j <= -9e+46) {
		tmp = y * (i * -j);
	} else if (j <= -2.2e-81) {
		tmp = c * (z * -b);
	} else if (j <= -4e-117) {
		tmp = t_1;
	} else if (j <= -1.06e-188) {
		tmp = i * (t * b);
	} else if (j <= -4.1e-289) {
		tmp = y * (x * z);
	} else if (j <= 6.8e-251) {
		tmp = t_1;
	} else if (j <= 2.5e-55) {
		tmp = z * (x * y);
	} else {
		tmp = c * (a * 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) :: t_1
    real(8) :: tmp
    t_1 = a * (t * -x)
    if (j <= (-9d+46)) then
        tmp = y * (i * -j)
    else if (j <= (-2.2d-81)) then
        tmp = c * (z * -b)
    else if (j <= (-4d-117)) then
        tmp = t_1
    else if (j <= (-1.06d-188)) then
        tmp = i * (t * b)
    else if (j <= (-4.1d-289)) then
        tmp = y * (x * z)
    else if (j <= 6.8d-251) then
        tmp = t_1
    else if (j <= 2.5d-55) then
        tmp = z * (x * y)
    else
        tmp = c * (a * 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 t_1 = a * (t * -x);
	double tmp;
	if (j <= -9e+46) {
		tmp = y * (i * -j);
	} else if (j <= -2.2e-81) {
		tmp = c * (z * -b);
	} else if (j <= -4e-117) {
		tmp = t_1;
	} else if (j <= -1.06e-188) {
		tmp = i * (t * b);
	} else if (j <= -4.1e-289) {
		tmp = y * (x * z);
	} else if (j <= 6.8e-251) {
		tmp = t_1;
	} else if (j <= 2.5e-55) {
		tmp = z * (x * y);
	} else {
		tmp = c * (a * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * (t * -x)
	tmp = 0
	if j <= -9e+46:
		tmp = y * (i * -j)
	elif j <= -2.2e-81:
		tmp = c * (z * -b)
	elif j <= -4e-117:
		tmp = t_1
	elif j <= -1.06e-188:
		tmp = i * (t * b)
	elif j <= -4.1e-289:
		tmp = y * (x * z)
	elif j <= 6.8e-251:
		tmp = t_1
	elif j <= 2.5e-55:
		tmp = z * (x * y)
	else:
		tmp = c * (a * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(t * Float64(-x)))
	tmp = 0.0
	if (j <= -9e+46)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (j <= -2.2e-81)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (j <= -4e-117)
		tmp = t_1;
	elseif (j <= -1.06e-188)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= -4.1e-289)
		tmp = Float64(y * Float64(x * z));
	elseif (j <= 6.8e-251)
		tmp = t_1;
	elseif (j <= 2.5e-55)
		tmp = Float64(z * Float64(x * y));
	else
		tmp = Float64(c * Float64(a * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * (t * -x);
	tmp = 0.0;
	if (j <= -9e+46)
		tmp = y * (i * -j);
	elseif (j <= -2.2e-81)
		tmp = c * (z * -b);
	elseif (j <= -4e-117)
		tmp = t_1;
	elseif (j <= -1.06e-188)
		tmp = i * (t * b);
	elseif (j <= -4.1e-289)
		tmp = y * (x * z);
	elseif (j <= 6.8e-251)
		tmp = t_1;
	elseif (j <= 2.5e-55)
		tmp = z * (x * y);
	else
		tmp = c * (a * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9e+46], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.2e-81], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4e-117], t$95$1, If[LessEqual[j, -1.06e-188], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.1e-289], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.8e-251], t$95$1, If[LessEqual[j, 2.5e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;j \leq -9 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

\mathbf{elif}\;j \leq -2.2 \cdot 10^{-81}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;j \leq -4 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -1.06 \cdot 10^{-188}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

\mathbf{elif}\;j \leq -4.1 \cdot 10^{-289}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;j \leq 6.8 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq 2.5 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if j < -9.00000000000000019e46

    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 y around inf 44.5%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative44.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg44.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg44.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative44.5%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative44.5%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified44.5%

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

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

        \[\leadsto y \cdot \color{blue}{\left(-i \cdot j\right)} \]
      2. distribute-rgt-neg-in40.7%

        \[\leadsto y \cdot \color{blue}{\left(i \cdot \left(-j\right)\right)} \]
    8. Simplified40.7%

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

    if -9.00000000000000019e46 < j < -2.1999999999999999e-81

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

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

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-b \cdot z\right)} \]
      2. distribute-rgt-neg-in45.2%

        \[\leadsto c \cdot \color{blue}{\left(b \cdot \left(-z\right)\right)} \]
    8. Simplified45.2%

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

    if -2.1999999999999999e-81 < j < -4.00000000000000012e-117 or -4.0999999999999998e-289 < j < 6.80000000000000034e-251

    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 50.1%

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

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg50.1%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg50.1%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative50.1%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified50.1%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} \]
      2. mul-1-neg43.8%

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

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

    if -4.00000000000000012e-117 < j < -1.06e-188

    1. Initial program 76.2%

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

      \[\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. distribute-lft-out--51.4%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified51.4%

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
    8. Applied egg-rr35.8%

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

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutative35.8%

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. associate-*r*43.4%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
    10. Simplified43.4%

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

    if -1.06e-188 < j < -4.0999999999999998e-289

    1. Initial program 69.5%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg59.1%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg59.1%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative59.1%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative59.1%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified59.1%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*53.7%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative53.7%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified53.7%

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

    if 6.80000000000000034e-251 < j < 2.5000000000000001e-55

    1. Initial program 81.0%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg42.4%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg42.4%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative42.4%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative42.4%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified42.4%

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. associate-*r*37.6%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative37.6%

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
    8. Simplified37.6%

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

    if 2.5000000000000001e-55 < j

    1. Initial program 81.0%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 45.2%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified45.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -9 \cdot 10^{+46}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;j \leq -2.2 \cdot 10^{-81}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq -4 \cdot 10^{-117}:\\ \;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\ \mathbf{elif}\;j \leq -1.06 \cdot 10^{-188}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq -4.1 \cdot 10^{-289}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 6.8 \cdot 10^{-251}:\\ \;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\ \mathbf{elif}\;j \leq 2.5 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 51.3% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\ t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{if}\;a \leq -4.5 \cdot 10^{+57}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -1.4 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq -180000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq 2 \cdot 10^{-125}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-31}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{+63}:\\ \;\;\;\;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 (* a (- (* c j) (* x t)))))
   (if (<= a -4.5e+57)
     t_2
     (if (<= a -1.4e+28)
       (* i (* y (- j)))
       (if (<= a -180000.0)
         t_2
         (if (<= a 2e-125)
           t_1
           (if (<= a 8.5e-31)
             (* j (- (* a c) (* y i)))
             (if (<= a 8.5e+63) 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 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -4.5e+57) {
		tmp = t_2;
	} else if (a <= -1.4e+28) {
		tmp = i * (y * -j);
	} else if (a <= -180000.0) {
		tmp = t_2;
	} else if (a <= 2e-125) {
		tmp = t_1;
	} else if (a <= 8.5e-31) {
		tmp = j * ((a * c) - (y * i));
	} else if (a <= 8.5e+63) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = b * ((t * i) - (z * c))
    t_2 = a * ((c * j) - (x * t))
    if (a <= (-4.5d+57)) then
        tmp = t_2
    else if (a <= (-1.4d+28)) then
        tmp = i * (y * -j)
    else if (a <= (-180000.0d0)) then
        tmp = t_2
    else if (a <= 2d-125) then
        tmp = t_1
    else if (a <= 8.5d-31) then
        tmp = j * ((a * c) - (y * i))
    else if (a <= 8.5d+63) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * ((t * i) - (z * c));
	double t_2 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -4.5e+57) {
		tmp = t_2;
	} else if (a <= -1.4e+28) {
		tmp = i * (y * -j);
	} else if (a <= -180000.0) {
		tmp = t_2;
	} else if (a <= 2e-125) {
		tmp = t_1;
	} else if (a <= 8.5e-31) {
		tmp = j * ((a * c) - (y * i));
	} else if (a <= 8.5e+63) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * ((t * i) - (z * c))
	t_2 = a * ((c * j) - (x * t))
	tmp = 0
	if a <= -4.5e+57:
		tmp = t_2
	elif a <= -1.4e+28:
		tmp = i * (y * -j)
	elif a <= -180000.0:
		tmp = t_2
	elif a <= 2e-125:
		tmp = t_1
	elif a <= 8.5e-31:
		tmp = j * ((a * c) - (y * i))
	elif a <= 8.5e+63:
		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(a * Float64(Float64(c * j) - Float64(x * t)))
	tmp = 0.0
	if (a <= -4.5e+57)
		tmp = t_2;
	elseif (a <= -1.4e+28)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (a <= -180000.0)
		tmp = t_2;
	elseif (a <= 2e-125)
		tmp = t_1;
	elseif (a <= 8.5e-31)
		tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i)));
	elseif (a <= 8.5e+63)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * ((t * i) - (z * c));
	t_2 = a * ((c * j) - (x * t));
	tmp = 0.0;
	if (a <= -4.5e+57)
		tmp = t_2;
	elseif (a <= -1.4e+28)
		tmp = i * (y * -j);
	elseif (a <= -180000.0)
		tmp = t_2;
	elseif (a <= 2e-125)
		tmp = t_1;
	elseif (a <= 8.5e-31)
		tmp = j * ((a * c) - (y * i));
	elseif (a <= 8.5e+63)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+57], t$95$2, If[LessEqual[a, -1.4e+28], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -180000.0], t$95$2, If[LessEqual[a, 2e-125], t$95$1, If[LessEqual[a, 8.5e-31], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e+63], 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 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq -1.4 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

\mathbf{elif}\;a \leq -180000:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 2 \cdot 10^{-125}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 8.5 \cdot 10^{-31}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\

\mathbf{elif}\;a \leq 8.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -4.49999999999999996e57 or -1.4000000000000001e28 < a < -1.8e5 or 8.5000000000000004e63 < a

    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 a around inf 72.6%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. +-commutative72.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg72.6%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg72.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative72.6%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified72.6%

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

    if -4.49999999999999996e57 < a < -1.4000000000000001e28

    1. Initial program 59.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 86.2%

      \[\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. distribute-lft-out--86.2%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified86.2%

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

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*86.2%

        \[\leadsto \color{blue}{\left(-1 \cdot i\right) \cdot \left(j \cdot y\right)} \]
      2. mul-1-neg86.2%

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(j \cdot y\right) \]
    8. Simplified86.2%

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

    if -1.8e5 < a < 2.00000000000000002e-125 or 8.5000000000000007e-31 < a < 8.5000000000000004e63

    1. Initial program 84.4%

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

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

    if 2.00000000000000002e-125 < a < 8.5000000000000007e-31

    1. Initial program 82.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg82.2%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.5 \cdot 10^{+57}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.4 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq -180000:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq 2 \cdot 10^{-125}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-31}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{+63}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 29.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -4.6 \cdot 10^{+45}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;j \leq -3.8 \cdot 10^{-84}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-190}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq -1.4 \cdot 10^{-228}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 1.05 \cdot 10^{-227}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;j \leq 2.9 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= j -4.6e+45)
   (* y (* i (- j)))
   (if (<= j -3.8e-84)
     (* c (* z (- b)))
     (if (<= j -4.3e-190)
       (* i (* t b))
       (if (<= j -1.4e-228)
         (* y (* x z))
         (if (<= j 1.05e-227)
           (* x (* t (- a)))
           (if (<= j 2.9e-55) (* z (* x y)) (* c (* a j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (j <= -4.6e+45) {
		tmp = y * (i * -j);
	} else if (j <= -3.8e-84) {
		tmp = c * (z * -b);
	} else if (j <= -4.3e-190) {
		tmp = i * (t * b);
	} else if (j <= -1.4e-228) {
		tmp = y * (x * z);
	} else if (j <= 1.05e-227) {
		tmp = x * (t * -a);
	} else if (j <= 2.9e-55) {
		tmp = z * (x * y);
	} else {
		tmp = c * (a * 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 <= (-4.6d+45)) then
        tmp = y * (i * -j)
    else if (j <= (-3.8d-84)) then
        tmp = c * (z * -b)
    else if (j <= (-4.3d-190)) then
        tmp = i * (t * b)
    else if (j <= (-1.4d-228)) then
        tmp = y * (x * z)
    else if (j <= 1.05d-227) then
        tmp = x * (t * -a)
    else if (j <= 2.9d-55) then
        tmp = z * (x * y)
    else
        tmp = c * (a * 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 <= -4.6e+45) {
		tmp = y * (i * -j);
	} else if (j <= -3.8e-84) {
		tmp = c * (z * -b);
	} else if (j <= -4.3e-190) {
		tmp = i * (t * b);
	} else if (j <= -1.4e-228) {
		tmp = y * (x * z);
	} else if (j <= 1.05e-227) {
		tmp = x * (t * -a);
	} else if (j <= 2.9e-55) {
		tmp = z * (x * y);
	} else {
		tmp = c * (a * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if j <= -4.6e+45:
		tmp = y * (i * -j)
	elif j <= -3.8e-84:
		tmp = c * (z * -b)
	elif j <= -4.3e-190:
		tmp = i * (t * b)
	elif j <= -1.4e-228:
		tmp = y * (x * z)
	elif j <= 1.05e-227:
		tmp = x * (t * -a)
	elif j <= 2.9e-55:
		tmp = z * (x * y)
	else:
		tmp = c * (a * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (j <= -4.6e+45)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (j <= -3.8e-84)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (j <= -4.3e-190)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= -1.4e-228)
		tmp = Float64(y * Float64(x * z));
	elseif (j <= 1.05e-227)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif (j <= 2.9e-55)
		tmp = Float64(z * Float64(x * y));
	else
		tmp = Float64(c * Float64(a * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (j <= -4.6e+45)
		tmp = y * (i * -j);
	elseif (j <= -3.8e-84)
		tmp = c * (z * -b);
	elseif (j <= -4.3e-190)
		tmp = i * (t * b);
	elseif (j <= -1.4e-228)
		tmp = y * (x * z);
	elseif (j <= 1.05e-227)
		tmp = x * (t * -a);
	elseif (j <= 2.9e-55)
		tmp = z * (x * y);
	else
		tmp = c * (a * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.6e+45], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.8e-84], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e-190], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.4e-228], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e-227], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.6 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

\mathbf{elif}\;j \leq -3.8 \cdot 10^{-84}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;j \leq -4.3 \cdot 10^{-190}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

\mathbf{elif}\;j \leq -1.4 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;j \leq 1.05 \cdot 10^{-227}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;j \leq 2.9 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if j < -4.60000000000000025e45

    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 y around inf 44.5%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative44.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg44.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg44.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative44.5%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative44.5%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified44.5%

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

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

        \[\leadsto y \cdot \color{blue}{\left(-i \cdot j\right)} \]
      2. distribute-rgt-neg-in40.7%

        \[\leadsto y \cdot \color{blue}{\left(i \cdot \left(-j\right)\right)} \]
    8. Simplified40.7%

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

    if -4.60000000000000025e45 < j < -3.79999999999999986e-84

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

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

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-b \cdot z\right)} \]
      2. distribute-rgt-neg-in42.2%

        \[\leadsto c \cdot \color{blue}{\left(b \cdot \left(-z\right)\right)} \]
    8. Simplified42.2%

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

    if -3.79999999999999986e-84 < j < -4.3e-190

    1. Initial program 66.9%

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

      \[\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. distribute-lft-out--49.3%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified49.3%

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
    8. Applied egg-rr28.6%

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

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutative28.6%

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. associate-*r*32.5%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
    10. Simplified32.5%

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

    if -4.3e-190 < j < -1.4000000000000001e-228

    1. Initial program 63.7%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative63.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg63.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg63.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative63.5%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative63.5%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified63.5%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*63.5%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative63.5%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified63.5%

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

    if -1.4000000000000001e-228 < j < 1.05e-227

    1. Initial program 77.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg77.1%

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

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

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

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

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

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

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

        \[\leadsto x \cdot \color{blue}{\left(\left(-1 \cdot a\right) \cdot t\right)} \]
      2. neg-mul-138.7%

        \[\leadsto x \cdot \left(\color{blue}{\left(-a\right)} \cdot t\right) \]
    8. Simplified38.7%

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

    if 1.05e-227 < j < 2.9e-55

    1. Initial program 80.5%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg43.4%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg43.4%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative43.4%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative43.4%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified43.4%

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. associate-*r*38.4%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative38.4%

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
    8. Simplified38.4%

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

    if 2.9e-55 < j

    1. Initial program 81.0%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 45.2%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified45.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.6 \cdot 10^{+45}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;j \leq -3.8 \cdot 10^{-84}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-190}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq -1.4 \cdot 10^{-228}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 1.05 \cdot 10^{-227}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;j \leq 2.9 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 60.0% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{if}\;b \leq -1.05 \cdot 10^{+142}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-115}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-162}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{+115}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* j (- (* a c) (* y i))) (* a (* x t)))))
   (if (<= b -1.05e+142)
     (* b (- (* t i) (* z c)))
     (if (<= b -7.5e-115)
       t_1
       (if (<= b -7.5e-162)
         (* x (- (* y z) (* t a)))
         (if (<= b 1.25e+115) t_1 (* b (* z (- (* i (/ t z)) c)))))))))
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))) - (a * (x * t));
	double tmp;
	if (b <= -1.05e+142) {
		tmp = b * ((t * i) - (z * c));
	} else if (b <= -7.5e-115) {
		tmp = t_1;
	} else if (b <= -7.5e-162) {
		tmp = x * ((y * z) - (t * a));
	} else if (b <= 1.25e+115) {
		tmp = t_1;
	} else {
		tmp = b * (z * ((i * (t / z)) - c));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = (j * ((a * c) - (y * i))) - (a * (x * t))
    if (b <= (-1.05d+142)) then
        tmp = b * ((t * i) - (z * c))
    else if (b <= (-7.5d-115)) then
        tmp = t_1
    else if (b <= (-7.5d-162)) then
        tmp = x * ((y * z) - (t * a))
    else if (b <= 1.25d+115) then
        tmp = t_1
    else
        tmp = b * (z * ((i * (t / z)) - c))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (j * ((a * c) - (y * i))) - (a * (x * t));
	double tmp;
	if (b <= -1.05e+142) {
		tmp = b * ((t * i) - (z * c));
	} else if (b <= -7.5e-115) {
		tmp = t_1;
	} else if (b <= -7.5e-162) {
		tmp = x * ((y * z) - (t * a));
	} else if (b <= 1.25e+115) {
		tmp = t_1;
	} else {
		tmp = b * (z * ((i * (t / z)) - c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (j * ((a * c) - (y * i))) - (a * (x * t))
	tmp = 0
	if b <= -1.05e+142:
		tmp = b * ((t * i) - (z * c))
	elif b <= -7.5e-115:
		tmp = t_1
	elif b <= -7.5e-162:
		tmp = x * ((y * z) - (t * a))
	elif b <= 1.25e+115:
		tmp = t_1
	else:
		tmp = b * (z * ((i * (t / z)) - c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(a * Float64(x * t)))
	tmp = 0.0
	if (b <= -1.05e+142)
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	elseif (b <= -7.5e-115)
		tmp = t_1;
	elseif (b <= -7.5e-162)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (b <= 1.25e+115)
		tmp = t_1;
	else
		tmp = Float64(b * Float64(z * Float64(Float64(i * Float64(t / z)) - c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (j * ((a * c) - (y * i))) - (a * (x * t));
	tmp = 0.0;
	if (b <= -1.05e+142)
		tmp = b * ((t * i) - (z * c));
	elseif (b <= -7.5e-115)
		tmp = t_1;
	elseif (b <= -7.5e-162)
		tmp = x * ((y * z) - (t * a));
	elseif (b <= 1.25e+115)
		tmp = t_1;
	else
		tmp = b * (z * ((i * (t / z)) - c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+142], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-115], t$95$1, If[LessEqual[b, -7.5e-162], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+115], t$95$1, N[(b * N[(z * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -7.5 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;b \leq -7.5 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\

\mathbf{elif}\;b \leq 1.25 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -1.05e142

    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 71.6%

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

    if -1.05e142 < b < -7.50000000000000038e-115 or -7.49999999999999972e-162 < b < 1.25000000000000002e115

    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 0 67.6%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
    4. Taylor expanded in y around 0 63.4%

      \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*63.4%

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} \]
      2. neg-mul-163.4%

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

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

    if -7.50000000000000038e-115 < b < -7.49999999999999972e-162

    1. Initial program 70.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg70.0%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in70.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in70.0%

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

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

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

    if 1.25000000000000002e115 < b

    1. Initial program 86.2%

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

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

      \[\leadsto b \cdot \color{blue}{\left(z \cdot \left(\frac{i \cdot t}{z} - c\right)\right)} \]
    5. Step-by-step derivation
      1. associate-/l*73.2%

        \[\leadsto b \cdot \left(z \cdot \left(\color{blue}{i \cdot \frac{t}{z}} - c\right)\right) \]
    6. Simplified73.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.05 \cdot 10^{+142}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-115}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-162}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{+115}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 60.9% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(x \cdot t\right)\\ t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t\_1\\ t_3 := j \cdot \left(a \cdot c - y \cdot i\right) - t\_1\\ \mathbf{if}\;b \leq -1.4 \cdot 10^{+17}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-118}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-162}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;b \leq 1.18 \cdot 10^{+120}:\\ \;\;\;\;t\_3\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (* x t)))
        (t_2 (- (* b (- (* t i) (* z c))) t_1))
        (t_3 (- (* j (- (* a c) (* y i))) t_1)))
   (if (<= b -1.4e+17)
     t_2
     (if (<= b -4.1e-118)
       t_3
       (if (<= b -5.6e-162)
         (* x (- (* y z) (* t a)))
         (if (<= b 1.18e+120) t_3 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 * (x * t);
	double t_2 = (b * ((t * i) - (z * c))) - t_1;
	double t_3 = (j * ((a * c) - (y * i))) - t_1;
	double tmp;
	if (b <= -1.4e+17) {
		tmp = t_2;
	} else if (b <= -4.1e-118) {
		tmp = t_3;
	} else if (b <= -5.6e-162) {
		tmp = x * ((y * z) - (t * a));
	} else if (b <= 1.18e+120) {
		tmp = t_3;
	} 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) :: t_3
    real(8) :: tmp
    t_1 = a * (x * t)
    t_2 = (b * ((t * i) - (z * c))) - t_1
    t_3 = (j * ((a * c) - (y * i))) - t_1
    if (b <= (-1.4d+17)) then
        tmp = t_2
    else if (b <= (-4.1d-118)) then
        tmp = t_3
    else if (b <= (-5.6d-162)) then
        tmp = x * ((y * z) - (t * a))
    else if (b <= 1.18d+120) then
        tmp = t_3
    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 = a * (x * t);
	double t_2 = (b * ((t * i) - (z * c))) - t_1;
	double t_3 = (j * ((a * c) - (y * i))) - t_1;
	double tmp;
	if (b <= -1.4e+17) {
		tmp = t_2;
	} else if (b <= -4.1e-118) {
		tmp = t_3;
	} else if (b <= -5.6e-162) {
		tmp = x * ((y * z) - (t * a));
	} else if (b <= 1.18e+120) {
		tmp = t_3;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * (x * t)
	t_2 = (b * ((t * i) - (z * c))) - t_1
	t_3 = (j * ((a * c) - (y * i))) - t_1
	tmp = 0
	if b <= -1.4e+17:
		tmp = t_2
	elif b <= -4.1e-118:
		tmp = t_3
	elif b <= -5.6e-162:
		tmp = x * ((y * z) - (t * a))
	elif b <= 1.18e+120:
		tmp = t_3
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(x * t))
	t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1)
	t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - t_1)
	tmp = 0.0
	if (b <= -1.4e+17)
		tmp = t_2;
	elseif (b <= -4.1e-118)
		tmp = t_3;
	elseif (b <= -5.6e-162)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (b <= 1.18e+120)
		tmp = t_3;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * (x * t);
	t_2 = (b * ((t * i) - (z * c))) - t_1;
	t_3 = (j * ((a * c) - (y * i))) - t_1;
	tmp = 0.0;
	if (b <= -1.4e+17)
		tmp = t_2;
	elseif (b <= -4.1e-118)
		tmp = t_3;
	elseif (b <= -5.6e-162)
		tmp = x * ((y * z) - (t * a));
	elseif (b <= 1.18e+120)
		tmp = t_3;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[b, -1.4e+17], t$95$2, If[LessEqual[b, -4.1e-118], t$95$3, If[LessEqual[b, -5.6e-162], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.18e+120], t$95$3, t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -4.1 \cdot 10^{-118}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;b \leq -5.6 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\

\mathbf{elif}\;b \leq 1.18 \cdot 10^{+120}:\\
\;\;\;\;t\_3\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.4e17 or 1.18e120 < b

    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 y around 0 76.4%

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

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

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(t \cdot x\right) \cdot a\right)} + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      3. associate-*r*76.4%

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

        \[\leadsto \left(\left(-1 \cdot \left(t \cdot x\right)\right) \cdot a + \color{blue}{\left(c \cdot j\right) \cdot a}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      5. distribute-rgt-in79.7%

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

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

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      8. unsub-neg79.7%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      9. *-commutative79.7%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      10. distribute-lft-neg-in79.7%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      11. sub-neg79.7%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot t\right)\right)}\right) \]
      12. distribute-rgt-neg-out79.7%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \left(c \cdot z + \color{blue}{i \cdot \left(-t\right)}\right)\right) \]
      13. distribute-lft-out74.2%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(i \cdot \left(-t\right)\right)\right)}\right) \]
      14. +-commutative74.2%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(i \cdot \left(-t\right)\right) + b \cdot \left(c \cdot z\right)\right)}\right) \]
      15. distribute-rgt-neg-out74.2%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(b \cdot \color{blue}{\left(-i \cdot t\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      16. distribute-rgt-neg-in74.2%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(\color{blue}{\left(-b \cdot \left(i \cdot t\right)\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      17. mul-1-neg74.2%

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} + b \cdot \left(i \cdot t - c \cdot z\right) \]
    7. Step-by-step derivation
      1. associate-*r*20.4%

        \[\leadsto \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} \]
      2. mul-1-neg20.4%

        \[\leadsto \color{blue}{\left(-a\right)} \cdot \left(t \cdot x\right) \]
    8. Simplified73.2%

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

    if -1.4e17 < b < -4.1000000000000003e-118 or -5.60000000000000043e-162 < b < 1.18e120

    1. Initial program 77.5%

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

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
    4. Taylor expanded in y around 0 64.4%

      \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]
    5. Step-by-step derivation
      1. associate-*r*64.4%

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} \]
      2. neg-mul-164.4%

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

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

    if -4.1000000000000003e-118 < b < -5.60000000000000043e-162

    1. Initial program 70.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg70.0%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in70.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in70.0%

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

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification67.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.4 \cdot 10^{+17}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;b \leq -4.1 \cdot 10^{-118}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;b \leq -5.6 \cdot 10^{-162}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;b \leq 1.18 \cdot 10^{+120}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - a \cdot \left(x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 52.0% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\ t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{if}\;t \leq -5.1 \cdot 10^{+79}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-153}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-301}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-201}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 6.1 \cdot 10^{+88}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\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 (- (* a c) (* y i)))) (t_2 (* t (- (* b i) (* x a)))))
   (if (<= t -5.1e+79)
     t_2
     (if (<= t -2.1e-153)
       t_1
       (if (<= t 1.2e-301)
         (* y (- (* x z) (* i j)))
         (if (<= t 9e-201)
           t_1
           (if (<= t 6.1e+88) (* c (- (* a j) (* z b))) 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 * ((a * c) - (y * i));
	double t_2 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -5.1e+79) {
		tmp = t_2;
	} else if (t <= -2.1e-153) {
		tmp = t_1;
	} else if (t <= 1.2e-301) {
		tmp = y * ((x * z) - (i * j));
	} else if (t <= 9e-201) {
		tmp = t_1;
	} else if (t <= 6.1e+88) {
		tmp = c * ((a * j) - (z * b));
	} 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 * ((a * c) - (y * i))
    t_2 = t * ((b * i) - (x * a))
    if (t <= (-5.1d+79)) then
        tmp = t_2
    else if (t <= (-2.1d-153)) then
        tmp = t_1
    else if (t <= 1.2d-301) then
        tmp = y * ((x * z) - (i * j))
    else if (t <= 9d-201) then
        tmp = t_1
    else if (t <= 6.1d+88) then
        tmp = c * ((a * j) - (z * b))
    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 * ((a * c) - (y * i));
	double t_2 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -5.1e+79) {
		tmp = t_2;
	} else if (t <= -2.1e-153) {
		tmp = t_1;
	} else if (t <= 1.2e-301) {
		tmp = y * ((x * z) - (i * j));
	} else if (t <= 9e-201) {
		tmp = t_1;
	} else if (t <= 6.1e+88) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * ((a * c) - (y * i))
	t_2 = t * ((b * i) - (x * a))
	tmp = 0
	if t <= -5.1e+79:
		tmp = t_2
	elif t <= -2.1e-153:
		tmp = t_1
	elif t <= 1.2e-301:
		tmp = y * ((x * z) - (i * j))
	elif t <= 9e-201:
		tmp = t_1
	elif t <= 6.1e+88:
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	tmp = 0.0
	if (t <= -5.1e+79)
		tmp = t_2;
	elseif (t <= -2.1e-153)
		tmp = t_1;
	elseif (t <= 1.2e-301)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (t <= 9e-201)
		tmp = t_1;
	elseif (t <= 6.1e+88)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = j * ((a * c) - (y * i));
	t_2 = t * ((b * i) - (x * a));
	tmp = 0.0;
	if (t <= -5.1e+79)
		tmp = t_2;
	elseif (t <= -2.1e-153)
		tmp = t_1;
	elseif (t <= 1.2e-301)
		tmp = y * ((x * z) - (i * j));
	elseif (t <= 9e-201)
		tmp = t_1;
	elseif (t <= 6.1e+88)
		tmp = c * ((a * j) - (z * b));
	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[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.1e+79], t$95$2, If[LessEqual[t, -2.1e-153], t$95$1, If[LessEqual[t, 1.2e-301], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-201], t$95$1, If[LessEqual[t, 6.1e+88], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq -2.1 \cdot 10^{-153}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 1.2 \cdot 10^{-301}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;t \leq 9 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 6.1 \cdot 10^{+88}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -5.1000000000000001e79 or 6.0999999999999998e88 < t

    1. Initial program 67.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg67.0%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in66.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in66.0%

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

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*68.3%

        \[\leadsto t \cdot \left(-1 \cdot \left(a \cdot x\right) - \color{blue}{\left(-1 \cdot b\right) \cdot i}\right) \]
      2. neg-mul-168.3%

        \[\leadsto t \cdot \left(-1 \cdot \left(a \cdot x\right) - \color{blue}{\left(-b\right)} \cdot i\right) \]
      3. cancel-sign-sub68.3%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      4. +-commutative68.3%

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i + -1 \cdot \left(a \cdot x\right)\right)} \]
      5. mul-1-neg68.3%

        \[\leadsto t \cdot \left(b \cdot i + \color{blue}{\left(-a \cdot x\right)}\right) \]
      6. unsub-neg68.3%

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i - a \cdot x\right)} \]
    7. Simplified68.3%

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

    if -5.1000000000000001e79 < t < -2.10000000000000004e-153 or 1.19999999999999996e-301 < t < 9.0000000000000004e-201

    1. Initial program 81.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg81.5%

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in81.5%

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

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

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

    if -2.10000000000000004e-153 < t < 1.19999999999999996e-301

    1. Initial program 86.3%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg66.6%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg66.6%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative66.6%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative66.6%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified66.6%

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

    if 9.0000000000000004e-201 < t < 6.0999999999999998e88

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.1 \cdot 10^{+79}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;t \leq -2.1 \cdot 10^{-153}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{-301}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;t \leq 9 \cdot 10^{-201}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;t \leq 6.1 \cdot 10^{+88}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 30.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\ t_2 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;j \leq -4.3 \cdot 10^{+48}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-128}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -4.6 \cdot 10^{-285}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-227}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 3.8 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* c (* z (- b)))) (t_2 (* c (* a j))))
   (if (<= j -4.3e+48)
     t_2
     (if (<= j -3.4e-128)
       t_1
       (if (<= j -4.6e-285)
         (* y (* x z))
         (if (<= j 2.8e-227) t_1 (if (<= j 3.8e-55) (* z (* x y)) 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 = c * (z * -b);
	double t_2 = c * (a * j);
	double tmp;
	if (j <= -4.3e+48) {
		tmp = t_2;
	} else if (j <= -3.4e-128) {
		tmp = t_1;
	} else if (j <= -4.6e-285) {
		tmp = y * (x * z);
	} else if (j <= 2.8e-227) {
		tmp = t_1;
	} else if (j <= 3.8e-55) {
		tmp = z * (x * y);
	} 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 = c * (z * -b)
    t_2 = c * (a * j)
    if (j <= (-4.3d+48)) then
        tmp = t_2
    else if (j <= (-3.4d-128)) then
        tmp = t_1
    else if (j <= (-4.6d-285)) then
        tmp = y * (x * z)
    else if (j <= 2.8d-227) then
        tmp = t_1
    else if (j <= 3.8d-55) then
        tmp = z * (x * y)
    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 = c * (z * -b);
	double t_2 = c * (a * j);
	double tmp;
	if (j <= -4.3e+48) {
		tmp = t_2;
	} else if (j <= -3.4e-128) {
		tmp = t_1;
	} else if (j <= -4.6e-285) {
		tmp = y * (x * z);
	} else if (j <= 2.8e-227) {
		tmp = t_1;
	} else if (j <= 3.8e-55) {
		tmp = z * (x * y);
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * (z * -b)
	t_2 = c * (a * j)
	tmp = 0
	if j <= -4.3e+48:
		tmp = t_2
	elif j <= -3.4e-128:
		tmp = t_1
	elif j <= -4.6e-285:
		tmp = y * (x * z)
	elif j <= 2.8e-227:
		tmp = t_1
	elif j <= 3.8e-55:
		tmp = z * (x * y)
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(z * Float64(-b)))
	t_2 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (j <= -4.3e+48)
		tmp = t_2;
	elseif (j <= -3.4e-128)
		tmp = t_1;
	elseif (j <= -4.6e-285)
		tmp = Float64(y * Float64(x * z));
	elseif (j <= 2.8e-227)
		tmp = t_1;
	elseif (j <= 3.8e-55)
		tmp = Float64(z * Float64(x * y));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = c * (z * -b);
	t_2 = c * (a * j);
	tmp = 0.0;
	if (j <= -4.3e+48)
		tmp = t_2;
	elseif (j <= -3.4e-128)
		tmp = t_1;
	elseif (j <= -4.6e-285)
		tmp = y * (x * z);
	elseif (j <= 2.8e-227)
		tmp = t_1;
	elseif (j <= 3.8e-55)
		tmp = z * (x * y);
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+48], t$95$2, If[LessEqual[j, -3.4e-128], t$95$1, If[LessEqual[j, -4.6e-285], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-227], t$95$1, If[LessEqual[j, 3.8e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -3.4 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -4.6 \cdot 10^{-285}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;j \leq 2.8 \cdot 10^{-227}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq 3.8 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -4.29999999999999978e48 or 3.7999999999999997e-55 < j

    1. Initial program 78.1%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 42.2%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified42.2%

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

    if -4.29999999999999978e48 < j < -3.39999999999999975e-128 or -4.59999999999999993e-285 < j < 2.7999999999999998e-227

    1. Initial program 74.7%

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

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

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-b \cdot z\right)} \]
      2. distribute-rgt-neg-in35.7%

        \[\leadsto c \cdot \color{blue}{\left(b \cdot \left(-z\right)\right)} \]
    8. Simplified35.7%

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

    if -3.39999999999999975e-128 < j < -4.59999999999999993e-285

    1. Initial program 69.1%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg51.3%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg51.3%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative51.3%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative51.3%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified51.3%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*43.9%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative43.9%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified43.9%

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

    if 2.7999999999999998e-227 < j < 3.7999999999999997e-55

    1. Initial program 80.5%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg43.4%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg43.4%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative43.4%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative43.4%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified43.4%

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. associate-*r*38.4%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative38.4%

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
    8. Simplified38.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.3 \cdot 10^{+48}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-128}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq -4.6 \cdot 10^{-285}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2.8 \cdot 10^{-227}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;j \leq 3.8 \cdot 10^{-55}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 29.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;c \leq -2.45 \cdot 10^{+89}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;c \leq -1.75 \cdot 10^{-64}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;c \leq -9.8 \cdot 10^{-214}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 2.4 \cdot 10^{-122}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;c \leq 14200000:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* i (* t b))))
   (if (<= c -2.45e+89)
     (* c (* z (- b)))
     (if (<= c -1.75e-64)
       (* x (* t (- a)))
       (if (<= c -9.8e-214)
         t_1
         (if (<= c 2.4e-122)
           (* y (* x z))
           (if (<= c 14200000.0) t_1 (* c (* a j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = i * (t * b);
	double tmp;
	if (c <= -2.45e+89) {
		tmp = c * (z * -b);
	} else if (c <= -1.75e-64) {
		tmp = x * (t * -a);
	} else if (c <= -9.8e-214) {
		tmp = t_1;
	} else if (c <= 2.4e-122) {
		tmp = y * (x * z);
	} else if (c <= 14200000.0) {
		tmp = t_1;
	} else {
		tmp = c * (a * 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) :: t_1
    real(8) :: tmp
    t_1 = i * (t * b)
    if (c <= (-2.45d+89)) then
        tmp = c * (z * -b)
    else if (c <= (-1.75d-64)) then
        tmp = x * (t * -a)
    else if (c <= (-9.8d-214)) then
        tmp = t_1
    else if (c <= 2.4d-122) then
        tmp = y * (x * z)
    else if (c <= 14200000.0d0) then
        tmp = t_1
    else
        tmp = c * (a * 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 t_1 = i * (t * b);
	double tmp;
	if (c <= -2.45e+89) {
		tmp = c * (z * -b);
	} else if (c <= -1.75e-64) {
		tmp = x * (t * -a);
	} else if (c <= -9.8e-214) {
		tmp = t_1;
	} else if (c <= 2.4e-122) {
		tmp = y * (x * z);
	} else if (c <= 14200000.0) {
		tmp = t_1;
	} else {
		tmp = c * (a * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = i * (t * b)
	tmp = 0
	if c <= -2.45e+89:
		tmp = c * (z * -b)
	elif c <= -1.75e-64:
		tmp = x * (t * -a)
	elif c <= -9.8e-214:
		tmp = t_1
	elif c <= 2.4e-122:
		tmp = y * (x * z)
	elif c <= 14200000.0:
		tmp = t_1
	else:
		tmp = c * (a * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * Float64(t * b))
	tmp = 0.0
	if (c <= -2.45e+89)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (c <= -1.75e-64)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif (c <= -9.8e-214)
		tmp = t_1;
	elseif (c <= 2.4e-122)
		tmp = Float64(y * Float64(x * z));
	elseif (c <= 14200000.0)
		tmp = t_1;
	else
		tmp = Float64(c * Float64(a * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = i * (t * b);
	tmp = 0.0;
	if (c <= -2.45e+89)
		tmp = c * (z * -b);
	elseif (c <= -1.75e-64)
		tmp = x * (t * -a);
	elseif (c <= -9.8e-214)
		tmp = t_1;
	elseif (c <= 2.4e-122)
		tmp = y * (x * z);
	elseif (c <= 14200000.0)
		tmp = t_1;
	else
		tmp = c * (a * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.45e+89], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.75e-64], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.8e-214], t$95$1, If[LessEqual[c, 2.4e-122], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 14200000.0], t$95$1, N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;c \leq -2.45 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;c \leq -1.75 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;c \leq -9.8 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 2.4 \cdot 10^{-122}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;c \leq 14200000:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if c < -2.44999999999999998e89

    1. Initial program 70.7%

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

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

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-b \cdot z\right)} \]
      2. distribute-rgt-neg-in47.8%

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

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

    if -2.44999999999999998e89 < c < -1.7500000000000002e-64

    1. Initial program 67.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg67.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in67.3%

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

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

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

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

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

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

        \[\leadsto x \cdot \color{blue}{\left(\left(-1 \cdot a\right) \cdot t\right)} \]
      2. neg-mul-135.3%

        \[\leadsto x \cdot \left(\color{blue}{\left(-a\right)} \cdot t\right) \]
    8. Simplified35.3%

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

    if -1.7500000000000002e-64 < c < -9.79999999999999935e-214 or 2.39999999999999987e-122 < c < 1.42e7

    1. Initial program 83.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 55.1%

      \[\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. distribute-lft-out--55.1%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified55.1%

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
    8. Applied egg-rr30.8%

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

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutative30.8%

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. associate-*r*38.4%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
    10. Simplified38.4%

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

    if -9.79999999999999935e-214 < c < 2.39999999999999987e-122

    1. Initial program 83.2%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg57.9%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg57.9%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative57.9%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative57.9%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified57.9%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*35.9%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative35.9%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified35.9%

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

    if 1.42e7 < c

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 43.7%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified43.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -2.45 \cdot 10^{+89}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;c \leq -1.75 \cdot 10^{-64}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;c \leq -9.8 \cdot 10^{-214}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;c \leq 2.4 \cdot 10^{-122}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;c \leq 14200000:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 51.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{if}\;a \leq -3.2 \cdot 10^{+57}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -1.6 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq -750000 \lor \neg \left(a \leq 7 \cdot 10^{+63}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (- (* c j) (* x t)))))
   (if (<= a -3.2e+57)
     t_1
     (if (<= a -1.6e+28)
       (* i (* y (- j)))
       (if (or (<= a -750000.0) (not (<= a 7e+63)))
         t_1
         (* b (- (* t i) (* z c))))))))
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) - (x * t));
	double tmp;
	if (a <= -3.2e+57) {
		tmp = t_1;
	} else if (a <= -1.6e+28) {
		tmp = i * (y * -j);
	} else if ((a <= -750000.0) || !(a <= 7e+63)) {
		tmp = t_1;
	} else {
		tmp = b * ((t * i) - (z * c));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * ((c * j) - (x * t))
    if (a <= (-3.2d+57)) then
        tmp = t_1
    else if (a <= (-1.6d+28)) then
        tmp = i * (y * -j)
    else if ((a <= (-750000.0d0)) .or. (.not. (a <= 7d+63))) then
        tmp = t_1
    else
        tmp = b * ((t * i) - (z * c))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -3.2e+57) {
		tmp = t_1;
	} else if (a <= -1.6e+28) {
		tmp = i * (y * -j);
	} else if ((a <= -750000.0) || !(a <= 7e+63)) {
		tmp = t_1;
	} else {
		tmp = b * ((t * i) - (z * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * ((c * j) - (x * t))
	tmp = 0
	if a <= -3.2e+57:
		tmp = t_1
	elif a <= -1.6e+28:
		tmp = i * (y * -j)
	elif (a <= -750000.0) or not (a <= 7e+63):
		tmp = t_1
	else:
		tmp = b * ((t * i) - (z * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	tmp = 0.0
	if (a <= -3.2e+57)
		tmp = t_1;
	elseif (a <= -1.6e+28)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif ((a <= -750000.0) || !(a <= 7e+63))
		tmp = t_1;
	else
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * ((c * j) - (x * t));
	tmp = 0.0;
	if (a <= -3.2e+57)
		tmp = t_1;
	elseif (a <= -1.6e+28)
		tmp = i * (y * -j);
	elseif ((a <= -750000.0) || ~((a <= 7e+63)))
		tmp = t_1;
	else
		tmp = b * ((t * i) - (z * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e+57], t$95$1, If[LessEqual[a, -1.6e+28], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -750000.0], N[Not[LessEqual[a, 7e+63]], $MachinePrecision]], t$95$1, N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq -1.6 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

\mathbf{elif}\;a \leq -750000 \lor \neg \left(a \leq 7 \cdot 10^{+63}\right):\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -3.20000000000000029e57 or -1.6e28 < a < -7.5e5 or 7.00000000000000059e63 < a

    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 a around inf 72.6%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. +-commutative72.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg72.6%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg72.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative72.6%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified72.6%

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

    if -3.20000000000000029e57 < a < -1.6e28

    1. Initial program 59.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 86.2%

      \[\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. distribute-lft-out--86.2%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified86.2%

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

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*86.2%

        \[\leadsto \color{blue}{\left(-1 \cdot i\right) \cdot \left(j \cdot y\right)} \]
      2. mul-1-neg86.2%

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(j \cdot y\right) \]
    8. Simplified86.2%

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

    if -7.5e5 < a < 7.00000000000000059e63

    1. Initial program 84.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.2 \cdot 10^{+57}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.6 \cdot 10^{+28}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq -750000 \lor \neg \left(a \leq 7 \cdot 10^{+63}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 66.1% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.95 \cdot 10^{+66} \lor \neg \left(y \leq 6.6 \cdot 10^{+136}\right):\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= y -1.95e+66) (not (<= y 6.6e+136)))
   (* y (- (* x z) (* i j)))
   (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((y <= -1.95e+66) || !(y <= 6.6e+136)) {
		tmp = y * ((x * z) - (i * j));
	} else {
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * 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 ((y <= (-1.95d+66)) .or. (.not. (y <= 6.6d+136))) then
        tmp = y * ((x * z) - (i * j))
    else
        tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * 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 ((y <= -1.95e+66) || !(y <= 6.6e+136)) {
		tmp = y * ((x * z) - (i * j));
	} else {
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (y <= -1.95e+66) or not (y <= 6.6e+136):
		tmp = y * ((x * z) - (i * j))
	else:
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((y <= -1.95e+66) || !(y <= 6.6e+136))
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	else
		tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((y <= -1.95e+66) || ~((y <= 6.6e+136)))
		tmp = y * ((x * z) - (i * j));
	else
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.95e+66], N[Not[LessEqual[y, 6.6e+136]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+66} \lor \neg \left(y \leq 6.6 \cdot 10^{+136}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.9500000000000002e66 or 6.59999999999999984e136 < y

    1. Initial program 64.7%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative69.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg69.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg69.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative69.5%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative69.5%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified69.5%

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

    if -1.9500000000000002e66 < y < 6.59999999999999984e136

    1. Initial program 81.5%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right)} \]
      2. *-commutative68.3%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(t \cdot x\right) \cdot a\right)} + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      3. associate-*r*68.3%

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

        \[\leadsto \left(\left(-1 \cdot \left(t \cdot x\right)\right) \cdot a + \color{blue}{\left(c \cdot j\right) \cdot a}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      5. distribute-rgt-in71.0%

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      6. +-commutative71.0%

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

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      8. unsub-neg71.0%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      9. *-commutative71.0%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      10. distribute-lft-neg-in71.0%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      11. sub-neg71.0%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot t\right)\right)}\right) \]
      12. distribute-rgt-neg-out71.0%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \left(c \cdot z + \color{blue}{i \cdot \left(-t\right)}\right)\right) \]
      13. distribute-lft-out69.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(i \cdot \left(-t\right)\right)\right)}\right) \]
      14. +-commutative69.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(i \cdot \left(-t\right)\right) + b \cdot \left(c \cdot z\right)\right)}\right) \]
      15. distribute-rgt-neg-out69.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(b \cdot \color{blue}{\left(-i \cdot t\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      16. distribute-rgt-neg-in69.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(\color{blue}{\left(-b \cdot \left(i \cdot t\right)\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      17. mul-1-neg69.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.95 \cdot 10^{+66} \lor \neg \left(y \leq 6.6 \cdot 10^{+136}\right):\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 68.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.8 \cdot 10^{-81} \lor \neg \left(b \leq 1.25 \cdot 10^{+120}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= b -2.8e-81) (not (<= b 1.25e+120)))
   (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
   (- (* j (- (* a c) (* y i))) (* x (- (* t a) (* 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 ((b <= -2.8e-81) || !(b <= 1.25e+120)) {
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
	} else {
		tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (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 ((b <= (-2.8d-81)) .or. (.not. (b <= 1.25d+120))) then
        tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
    else
        tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (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 ((b <= -2.8e-81) || !(b <= 1.25e+120)) {
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
	} else {
		tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (b <= -2.8e-81) or not (b <= 1.25e+120):
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
	else:
		tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((b <= -2.8e-81) || !(b <= 1.25e+120))
		tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c))));
	else
		tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((b <= -2.8e-81) || ~((b <= 1.25e+120)))
		tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
	else
		tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.8e-81], N[Not[LessEqual[b, 1.25e+120]], $MachinePrecision]], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{-81} \lor \neg \left(b \leq 1.25 \cdot 10^{+120}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.7999999999999999e-81 or 1.25000000000000005e120 < b

    1. Initial program 77.6%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right)} \]
      2. *-commutative74.6%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(t \cdot x\right) \cdot a\right)} + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      3. associate-*r*74.6%

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

        \[\leadsto \left(\left(-1 \cdot \left(t \cdot x\right)\right) \cdot a + \color{blue}{\left(c \cdot j\right) \cdot a}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      5. distribute-rgt-in77.5%

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

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      7. mul-1-neg77.5%

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

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      9. *-commutative77.5%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      10. distribute-lft-neg-in77.5%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      11. sub-neg77.5%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot t\right)\right)}\right) \]
      12. distribute-rgt-neg-out77.5%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \left(c \cdot z + \color{blue}{i \cdot \left(-t\right)}\right)\right) \]
      13. distribute-lft-out72.6%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(i \cdot \left(-t\right)\right)\right)}\right) \]
      14. +-commutative72.6%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(i \cdot \left(-t\right)\right) + b \cdot \left(c \cdot z\right)\right)}\right) \]
      15. distribute-rgt-neg-out72.6%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(b \cdot \color{blue}{\left(-i \cdot t\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      16. distribute-rgt-neg-in72.6%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(\color{blue}{\left(-b \cdot \left(i \cdot t\right)\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      17. mul-1-neg72.6%

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

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

    if -2.7999999999999999e-81 < b < 1.25000000000000005e120

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.8 \cdot 10^{-81} \lor \neg \left(b \leq 1.25 \cdot 10^{+120}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 67.2% 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}\;b \leq -2.4 \cdot 10^{-118}:\\ \;\;\;\;t\_2 + t\_1\\ \mathbf{elif}\;b \leq 1.4 \cdot 10^{+120}:\\ \;\;\;\;t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + 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)))) (t_2 (* j (- (* a c) (* y i)))))
   (if (<= b -2.4e-118)
     (+ t_2 t_1)
     (if (<= b 1.4e+120)
       (- t_2 (* x (- (* t a) (* y z))))
       (+ (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * ((t * i) - (z * c));
	double t_2 = j * ((a * c) - (y * i));
	double tmp;
	if (b <= -2.4e-118) {
		tmp = t_2 + t_1;
	} else if (b <= 1.4e+120) {
		tmp = t_2 - (x * ((t * a) - (y * z)));
	} else {
		tmp = (a * ((c * j) - (x * t))) + 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) :: t_2
    real(8) :: tmp
    t_1 = b * ((t * i) - (z * c))
    t_2 = j * ((a * c) - (y * i))
    if (b <= (-2.4d-118)) then
        tmp = t_2 + t_1
    else if (b <= 1.4d+120) then
        tmp = t_2 - (x * ((t * a) - (y * z)))
    else
        tmp = (a * ((c * j) - (x * t))) + t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * ((t * i) - (z * c));
	double t_2 = j * ((a * c) - (y * i));
	double tmp;
	if (b <= -2.4e-118) {
		tmp = t_2 + t_1;
	} else if (b <= 1.4e+120) {
		tmp = t_2 - (x * ((t * a) - (y * z)));
	} else {
		tmp = (a * ((c * j) - (x * t))) + t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * ((t * i) - (z * c))
	t_2 = j * ((a * c) - (y * i))
	tmp = 0
	if b <= -2.4e-118:
		tmp = t_2 + t_1
	elif b <= 1.4e+120:
		tmp = t_2 - (x * ((t * a) - (y * z)))
	else:
		tmp = (a * ((c * j) - (x * t))) + 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)))
	t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	tmp = 0.0
	if (b <= -2.4e-118)
		tmp = Float64(t_2 + t_1);
	elseif (b <= 1.4e+120)
		tmp = Float64(t_2 - Float64(x * Float64(Float64(t * a) - Float64(y * z))));
	else
		tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * ((t * i) - (z * c));
	t_2 = j * ((a * c) - (y * i));
	tmp = 0.0;
	if (b <= -2.4e-118)
		tmp = t_2 + t_1;
	elseif (b <= 1.4e+120)
		tmp = t_2 - (x * ((t * a) - (y * z)));
	else
		tmp = (a * ((c * j) - (x * t))) + t_1;
	end
	tmp_2 = 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[b, -2.4e-118], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 1.4e+120], N[(t$95$2 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\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}\;b \leq -2.4 \cdot 10^{-118}:\\
\;\;\;\;t\_2 + t\_1\\

\mathbf{elif}\;b \leq 1.4 \cdot 10^{+120}:\\
\;\;\;\;t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -2.4000000000000001e-118

    1. Initial program 75.3%

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

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

    if -2.4000000000000001e-118 < b < 1.4e120

    1. Initial program 75.8%

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

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

    if 1.4e120 < b

    1. Initial program 85.7%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right)} \]
      2. *-commutative85.8%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(t \cdot x\right) \cdot a\right)} + a \cdot \left(c \cdot j\right)\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      3. associate-*r*85.8%

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

        \[\leadsto \left(\left(-1 \cdot \left(t \cdot x\right)\right) \cdot a + \color{blue}{\left(c \cdot j\right) \cdot a}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      5. distribute-rgt-in89.4%

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

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

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      8. unsub-neg89.4%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      9. *-commutative89.4%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot t\right) \]
      10. distribute-lft-neg-in89.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      11. sub-neg89.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot t\right)\right)}\right) \]
      12. distribute-rgt-neg-out89.4%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-b \cdot \left(c \cdot z + \color{blue}{i \cdot \left(-t\right)}\right)\right) \]
      13. distribute-lft-out85.8%

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

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\color{blue}{\left(b \cdot \left(i \cdot \left(-t\right)\right) + b \cdot \left(c \cdot z\right)\right)}\right) \]
      15. distribute-rgt-neg-out85.8%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(b \cdot \color{blue}{\left(-i \cdot t\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      16. distribute-rgt-neg-in85.8%

        \[\leadsto a \cdot \left(j \cdot c - t \cdot x\right) + \left(-\left(\color{blue}{\left(-b \cdot \left(i \cdot t\right)\right)} + b \cdot \left(c \cdot z\right)\right)\right) \]
      17. mul-1-neg85.8%

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

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

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

Alternative 14: 30.6% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;j \leq -5.4 \cdot 10^{+49}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -5.4 \cdot 10^{-78}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -1.75 \cdot 10^{-139}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3.4 \cdot 10^{-55}:\\ \;\;\;\;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 (* y (* x z))) (t_2 (* c (* a j))))
   (if (<= j -5.4e+49)
     t_2
     (if (<= j -5.4e-78)
       t_1
       (if (<= j -1.75e-139) (* i (* t b)) (if (<= j 3.4e-55) 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 = y * (x * z);
	double t_2 = c * (a * j);
	double tmp;
	if (j <= -5.4e+49) {
		tmp = t_2;
	} else if (j <= -5.4e-78) {
		tmp = t_1;
	} else if (j <= -1.75e-139) {
		tmp = i * (t * b);
	} else if (j <= 3.4e-55) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = y * (x * z)
    t_2 = c * (a * j)
    if (j <= (-5.4d+49)) then
        tmp = t_2
    else if (j <= (-5.4d-78)) then
        tmp = t_1
    else if (j <= (-1.75d-139)) then
        tmp = i * (t * b)
    else if (j <= 3.4d-55) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = c * (a * j);
	double tmp;
	if (j <= -5.4e+49) {
		tmp = t_2;
	} else if (j <= -5.4e-78) {
		tmp = t_1;
	} else if (j <= -1.75e-139) {
		tmp = i * (t * b);
	} else if (j <= 3.4e-55) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	t_2 = c * (a * j)
	tmp = 0
	if j <= -5.4e+49:
		tmp = t_2
	elif j <= -5.4e-78:
		tmp = t_1
	elif j <= -1.75e-139:
		tmp = i * (t * b)
	elif j <= 3.4e-55:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (j <= -5.4e+49)
		tmp = t_2;
	elseif (j <= -5.4e-78)
		tmp = t_1;
	elseif (j <= -1.75e-139)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= 3.4e-55)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	t_2 = c * (a * j);
	tmp = 0.0;
	if (j <= -5.4e+49)
		tmp = t_2;
	elseif (j <= -5.4e-78)
		tmp = t_1;
	elseif (j <= -1.75e-139)
		tmp = i * (t * b);
	elseif (j <= 3.4e-55)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.4e+49], t$95$2, If[LessEqual[j, -5.4e-78], t$95$1, If[LessEqual[j, -1.75e-139], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e-55], t$95$1, t$95$2]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -5.4 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -1.75 \cdot 10^{-139}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

\mathbf{elif}\;j \leq 3.4 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -5.4000000000000002e49 or 3.39999999999999973e-55 < j

    1. Initial program 77.8%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 42.9%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified42.9%

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

    if -5.4000000000000002e49 < j < -5.39999999999999987e-78 or -1.75000000000000001e-139 < j < 3.39999999999999973e-55

    1. Initial program 79.2%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg43.1%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg43.1%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative43.1%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative43.1%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified43.1%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*31.9%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative31.9%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified31.9%

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

    if -5.39999999999999987e-78 < j < -1.75000000000000001e-139

    1. Initial program 56.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 46.1%

      \[\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. distribute-lft-out--46.1%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified46.1%

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
    8. Applied egg-rr27.3%

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

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutative27.3%

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. associate-*r*31.7%

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
    10. Simplified31.7%

      \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification37.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -5.4 \cdot 10^{+49}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -5.4 \cdot 10^{-78}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq -1.75 \cdot 10^{-139}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 3.4 \cdot 10^{-55}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 51.8% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{if}\;t \leq -2.4 \cdot 10^{+76}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.22 \cdot 10^{-200}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;t \leq 9.6 \cdot 10^{+90}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \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 (* t (- (* b i) (* x a)))))
   (if (<= t -2.4e+76)
     t_1
     (if (<= t 1.22e-200)
       (* j (- (* a c) (* y i)))
       (if (<= t 9.6e+90) (* c (- (* a j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -2.4e+76) {
		tmp = t_1;
	} else if (t <= 1.22e-200) {
		tmp = j * ((a * c) - (y * i));
	} else if (t <= 9.6e+90) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = t * ((b * i) - (x * a))
    if (t <= (-2.4d+76)) then
        tmp = t_1
    else if (t <= 1.22d-200) then
        tmp = j * ((a * c) - (y * i))
    else if (t <= 9.6d+90) then
        tmp = c * ((a * j) - (z * b))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -2.4e+76) {
		tmp = t_1;
	} else if (t <= 1.22e-200) {
		tmp = j * ((a * c) - (y * i));
	} else if (t <= 9.6e+90) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	tmp = 0
	if t <= -2.4e+76:
		tmp = t_1
	elif t <= 1.22e-200:
		tmp = j * ((a * c) - (y * i))
	elif t <= 9.6e+90:
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	tmp = 0.0
	if (t <= -2.4e+76)
		tmp = t_1;
	elseif (t <= 1.22e-200)
		tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i)));
	elseif (t <= 9.6e+90)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = t * ((b * i) - (x * a));
	tmp = 0.0;
	if (t <= -2.4e+76)
		tmp = t_1;
	elseif (t <= 1.22e-200)
		tmp = j * ((a * c) - (y * i));
	elseif (t <= 9.6e+90)
		tmp = c * ((a * j) - (z * b));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+76], t$95$1, If[LessEqual[t, 1.22e-200], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e+90], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 1.22 \cdot 10^{-200}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\

\mathbf{elif}\;t \leq 9.6 \cdot 10^{+90}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.4e76 or 9.6000000000000004e90 < t

    1. Initial program 67.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg67.0%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in66.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in66.0%

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

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*68.3%

        \[\leadsto t \cdot \left(-1 \cdot \left(a \cdot x\right) - \color{blue}{\left(-1 \cdot b\right) \cdot i}\right) \]
      2. neg-mul-168.3%

        \[\leadsto t \cdot \left(-1 \cdot \left(a \cdot x\right) - \color{blue}{\left(-b\right)} \cdot i\right) \]
      3. cancel-sign-sub68.3%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      4. +-commutative68.3%

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i + -1 \cdot \left(a \cdot x\right)\right)} \]
      5. mul-1-neg68.3%

        \[\leadsto t \cdot \left(b \cdot i + \color{blue}{\left(-a \cdot x\right)}\right) \]
      6. unsub-neg68.3%

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i - a \cdot x\right)} \]
    7. Simplified68.3%

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

    if -2.4e76 < t < 1.22000000000000005e-200

    1. Initial program 83.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. sub-neg83.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. distribute-rgt-in82.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(\left(c \cdot z\right) \cdot b + \left(-\color{blue}{i \cdot t}\right) \cdot b\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. distribute-rgt-neg-in82.0%

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

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

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

    if 1.22000000000000005e-200 < t < 9.6000000000000004e90

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

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

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

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

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

Alternative 16: 29.3% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;c \leq -3.8 \cdot 10^{+35}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 2 \cdot 10^{-122}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;c \leq 6600000:\\ \;\;\;\;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 (* c (* a j))))
   (if (<= c -3.8e+35)
     t_1
     (if (<= c 2e-122)
       (* y (* x z))
       (if (<= c 6600000.0) (* 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 = c * (a * j);
	double tmp;
	if (c <= -3.8e+35) {
		tmp = t_1;
	} else if (c <= 2e-122) {
		tmp = y * (x * z);
	} else if (c <= 6600000.0) {
		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 = c * (a * j)
    if (c <= (-3.8d+35)) then
        tmp = t_1
    else if (c <= 2d-122) then
        tmp = y * (x * z)
    else if (c <= 6600000.0d0) 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 = c * (a * j);
	double tmp;
	if (c <= -3.8e+35) {
		tmp = t_1;
	} else if (c <= 2e-122) {
		tmp = y * (x * z);
	} else if (c <= 6600000.0) {
		tmp = b * (t * i);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * (a * j)
	tmp = 0
	if c <= -3.8e+35:
		tmp = t_1
	elif c <= 2e-122:
		tmp = y * (x * z)
	elif c <= 6600000.0:
		tmp = b * (t * i)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (c <= -3.8e+35)
		tmp = t_1;
	elseif (c <= 2e-122)
		tmp = Float64(y * Float64(x * z));
	elseif (c <= 6600000.0)
		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 = c * (a * j);
	tmp = 0.0;
	if (c <= -3.8e+35)
		tmp = t_1;
	elseif (c <= 2e-122)
		tmp = y * (x * z);
	elseif (c <= 6600000.0)
		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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+35], t$95$1, If[LessEqual[c, 2e-122], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6600000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 2 \cdot 10^{-122}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;c \leq 6600000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -3.8e35 or 6.6e6 < c

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 42.0%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified42.0%

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

    if -3.8e35 < c < 2.00000000000000012e-122

    1. Initial program 79.1%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg51.3%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg51.3%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative51.3%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative51.3%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified51.3%

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

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      2. associate-*l*27.9%

        \[\leadsto \color{blue}{\left(x \cdot z\right) \cdot y} \]
      3. *-commutative27.9%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    8. Simplified27.9%

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

    if 2.00000000000000012e-122 < c < 6.6e6

    1. Initial program 84.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 54.9%

      \[\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. distribute-lft-out--54.9%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified54.9%

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

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

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

Alternative 17: 39.5% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{-140} \lor \neg \left(t \leq 1.95 \cdot 10^{-220}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= t -4e-140) (not (<= t 1.95e-220)))
   (* a (- (* c j) (* x t)))
   (* i (* y (- j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((t <= -4e-140) || !(t <= 1.95e-220)) {
		tmp = a * ((c * j) - (x * t));
	} else {
		tmp = i * (y * -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 ((t <= (-4d-140)) .or. (.not. (t <= 1.95d-220))) then
        tmp = a * ((c * j) - (x * t))
    else
        tmp = i * (y * -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 ((t <= -4e-140) || !(t <= 1.95e-220)) {
		tmp = a * ((c * j) - (x * t));
	} else {
		tmp = i * (y * -j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (t <= -4e-140) or not (t <= 1.95e-220):
		tmp = a * ((c * j) - (x * t))
	else:
		tmp = i * (y * -j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((t <= -4e-140) || !(t <= 1.95e-220))
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	else
		tmp = Float64(i * Float64(y * Float64(-j)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((t <= -4e-140) || ~((t <= 1.95e-220)))
		tmp = a * ((c * j) - (x * t));
	else
		tmp = i * (y * -j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4e-140], N[Not[LessEqual[t, 1.95e-220]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{-140} \lor \neg \left(t \leq 1.95 \cdot 10^{-220}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -3.9999999999999999e-140 or 1.95000000000000001e-220 < t

    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 a around inf 47.9%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. +-commutative47.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg47.9%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg47.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative47.9%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified47.9%

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

    if -3.9999999999999999e-140 < t < 1.95000000000000001e-220

    1. Initial program 86.4%

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

      \[\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. distribute-lft-out--46.5%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified46.5%

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

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*44.7%

        \[\leadsto \color{blue}{\left(-1 \cdot i\right) \cdot \left(j \cdot y\right)} \]
      2. mul-1-neg44.7%

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(j \cdot y\right) \]
    8. Simplified44.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4 \cdot 10^{-140} \lor \neg \left(t \leq 1.95 \cdot 10^{-220}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 29.5% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3.6 \cdot 10^{+34} \lor \neg \left(t \leq 3.4 \cdot 10^{+133}\right):\\ \;\;\;\;b \cdot \left(t \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 (or (<= t -3.6e+34) (not (<= t 3.4e+133))) (* b (* t 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 ((t <= -3.6e+34) || !(t <= 3.4e+133)) {
		tmp = b * (t * 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 ((t <= (-3.6d+34)) .or. (.not. (t <= 3.4d+133))) then
        tmp = b * (t * 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 ((t <= -3.6e+34) || !(t <= 3.4e+133)) {
		tmp = b * (t * i);
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (t <= -3.6e+34) or not (t <= 3.4e+133):
		tmp = b * (t * i)
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((t <= -3.6e+34) || !(t <= 3.4e+133))
		tmp = Float64(b * Float64(t * 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 ((t <= -3.6e+34) || ~((t <= 3.4e+133)))
		tmp = b * (t * i);
	else
		tmp = a * (c * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3.6e+34], N[Not[LessEqual[t, 3.4e+133]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.6 \cdot 10^{+34} \lor \neg \left(t \leq 3.4 \cdot 10^{+133}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -3.6e34 or 3.39999999999999987e133 < t

    1. Initial program 69.4%

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

      \[\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. distribute-lft-out--46.8%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified46.8%

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

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

    if -3.6e34 < t < 3.39999999999999987e133

    1. Initial program 80.6%

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. +-commutative38.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg38.9%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg38.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
      4. *-commutative38.9%

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
    5. Simplified38.9%

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

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

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    8. Simplified30.6%

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification31.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.6 \cdot 10^{+34} \lor \neg \left(t \leq 3.4 \cdot 10^{+133}\right):\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 29.1% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -8.4 \cdot 10^{+106} \lor \neg \left(b \leq 3.2 \cdot 10^{+50}\right):\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= b -8.4e+106) (not (<= b 3.2e+50))) (* b (* t i)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((b <= -8.4e+106) || !(b <= 3.2e+50)) {
		tmp = b * (t * i);
	} else {
		tmp = c * (a * 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 ((b <= (-8.4d+106)) .or. (.not. (b <= 3.2d+50))) then
        tmp = b * (t * i)
    else
        tmp = c * (a * 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 ((b <= -8.4e+106) || !(b <= 3.2e+50)) {
		tmp = b * (t * i);
	} else {
		tmp = c * (a * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (b <= -8.4e+106) or not (b <= 3.2e+50):
		tmp = b * (t * i)
	else:
		tmp = c * (a * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((b <= -8.4e+106) || !(b <= 3.2e+50))
		tmp = Float64(b * Float64(t * i));
	else
		tmp = Float64(c * Float64(a * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((b <= -8.4e+106) || ~((b <= 3.2e+50)))
		tmp = b * (t * i);
	else
		tmp = c * (a * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -8.4e+106], N[Not[LessEqual[b, 3.2e+50]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.4 \cdot 10^{+106} \lor \neg \left(b \leq 3.2 \cdot 10^{+50}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -8.40000000000000019e106 or 3.19999999999999983e50 < b

    1. Initial program 79.1%

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

      \[\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. distribute-lft-out--49.8%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y - b \cdot t\right)\right)} \]
    5. Simplified49.8%

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

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

    if -8.40000000000000019e106 < b < 3.19999999999999983e50

    1. Initial program 75.5%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 29.2%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified29.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -8.4 \cdot 10^{+106} \lor \neg \left(b \leq 3.2 \cdot 10^{+50}\right):\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 30.7% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -6.6 \cdot 10^{+49} \lor \neg \left(j \leq 3.3 \cdot 10^{-55}\right):\\ \;\;\;\;c \cdot \left(a \cdot j\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 (or (<= j -6.6e+49) (not (<= j 3.3e-55))) (* c (* a j)) (* 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 ((j <= -6.6e+49) || !(j <= 3.3e-55)) {
		tmp = c * (a * j);
	} 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 ((j <= (-6.6d+49)) .or. (.not. (j <= 3.3d-55))) then
        tmp = c * (a * j)
    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 ((j <= -6.6e+49) || !(j <= 3.3e-55)) {
		tmp = c * (a * j);
	} else {
		tmp = x * (y * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (j <= -6.6e+49) or not (j <= 3.3e-55):
		tmp = c * (a * j)
	else:
		tmp = x * (y * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((j <= -6.6e+49) || !(j <= 3.3e-55))
		tmp = Float64(c * Float64(a * j));
	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 ((j <= -6.6e+49) || ~((j <= 3.3e-55)))
		tmp = c * (a * j);
	else
		tmp = x * (y * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.6e+49], N[Not[LessEqual[j, 3.3e-55]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.6 \cdot 10^{+49} \lor \neg \left(j \leq 3.3 \cdot 10^{-55}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -6.5999999999999997e49 or 3.2999999999999999e-55 < j

    1. Initial program 77.8%

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]
    6. Taylor expanded in j around inf 42.9%

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

        \[\leadsto c \cdot \color{blue}{\left(j \cdot a\right)} \]
    8. Simplified42.9%

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

    if -6.5999999999999997e49 < j < 3.2999999999999999e-55

    1. Initial program 75.7%

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg39.9%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg39.9%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
      4. *-commutative39.9%

        \[\leadsto y \cdot \left(\color{blue}{z \cdot x} - i \cdot j\right) \]
      5. *-commutative39.9%

        \[\leadsto y \cdot \left(z \cdot x - \color{blue}{j \cdot i}\right) \]
    5. Simplified39.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -6.6 \cdot 10^{+49} \lor \neg \left(j \leq 3.3 \cdot 10^{-55}\right):\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 22.7% accurate, 5.8× speedup?

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

\\
a \cdot \left(c \cdot j\right)
\end{array}
Derivation
  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 a around inf 42.2%

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
  4. Step-by-step derivation
    1. +-commutative42.2%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
    2. mul-1-neg42.2%

      \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
    3. unsub-neg42.2%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    4. *-commutative42.2%

      \[\leadsto a \cdot \left(\color{blue}{j \cdot c} - t \cdot x\right) \]
  5. Simplified42.2%

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

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

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
  8. Simplified24.4%

    \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
  9. Final simplification24.4%

    \[\leadsto a \cdot \left(c \cdot j\right) \]
  10. Add Preprocessing

Developer target: 58.7% accurate, 0.1× 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 2024054 
(FPCore (x y z t a b c i j)
  :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
  :precision binary64

  :alt
  (if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))