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

Percentage Accurate: 73.3% → 82.1%
Time: 23.0s
Alternatives: 20
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 20 alternatives:

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

Initial Program: 73.3% accurate, 1.0× speedup?

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

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

Alternative 1: 82.1% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\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.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) \]

    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. Step-by-step derivation
      1. cancel-sign-sub0.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv0.0%

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 56.4% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ t_2 := \left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{if}\;x \leq -21000000000000:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -2.2 \cdot 10^{-44}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;x \leq -1.15 \cdot 10^{-57}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;x \leq -2.55 \cdot 10^{-124}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{-193}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-98}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{-8}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 1.6 \cdot 10^{+23}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \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 (* b i))))
        (t_2 (- (* (* z b) (- c)) (* x (* t a))))
        (t_3 (* x (- (* y z) (* t a)))))
   (if (<= x -21000000000000.0)
     t_3
     (if (<= x -2.2e-44)
       (* b (- (* t i) (* z c)))
       (if (<= x -1.15e-57)
         (* y (- (* x z) (* i j)))
         (if (<= x -2.55e-124)
           (* i (- (* t b) (* y j)))
           (if (<= x -8.2e-193)
             t_1
             (if (<= x -1.8e-222)
               t_2
               (if (<= x 1.35e-98)
                 t_1
                 (if (<= x 5.8e-8) t_2 (if (<= x 1.6e+23) t_1 t_3)))))))))))
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))) + (t * (b * i));
	double t_2 = ((z * b) * -c) - (x * (t * a));
	double t_3 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -21000000000000.0) {
		tmp = t_3;
	} else if (x <= -2.2e-44) {
		tmp = b * ((t * i) - (z * c));
	} else if (x <= -1.15e-57) {
		tmp = y * ((x * z) - (i * j));
	} else if (x <= -2.55e-124) {
		tmp = i * ((t * b) - (y * j));
	} else if (x <= -8.2e-193) {
		tmp = t_1;
	} else if (x <= -1.8e-222) {
		tmp = t_2;
	} else if (x <= 1.35e-98) {
		tmp = t_1;
	} else if (x <= 5.8e-8) {
		tmp = t_2;
	} else if (x <= 1.6e+23) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	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 = (j * ((a * c) - (y * i))) + (t * (b * i))
    t_2 = ((z * b) * -c) - (x * (t * a))
    t_3 = x * ((y * z) - (t * a))
    if (x <= (-21000000000000.0d0)) then
        tmp = t_3
    else if (x <= (-2.2d-44)) then
        tmp = b * ((t * i) - (z * c))
    else if (x <= (-1.15d-57)) then
        tmp = y * ((x * z) - (i * j))
    else if (x <= (-2.55d-124)) then
        tmp = i * ((t * b) - (y * j))
    else if (x <= (-8.2d-193)) then
        tmp = t_1
    else if (x <= (-1.8d-222)) then
        tmp = t_2
    else if (x <= 1.35d-98) then
        tmp = t_1
    else if (x <= 5.8d-8) then
        tmp = t_2
    else if (x <= 1.6d+23) then
        tmp = t_1
    else
        tmp = t_3
    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))) + (t * (b * i));
	double t_2 = ((z * b) * -c) - (x * (t * a));
	double t_3 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -21000000000000.0) {
		tmp = t_3;
	} else if (x <= -2.2e-44) {
		tmp = b * ((t * i) - (z * c));
	} else if (x <= -1.15e-57) {
		tmp = y * ((x * z) - (i * j));
	} else if (x <= -2.55e-124) {
		tmp = i * ((t * b) - (y * j));
	} else if (x <= -8.2e-193) {
		tmp = t_1;
	} else if (x <= -1.8e-222) {
		tmp = t_2;
	} else if (x <= 1.35e-98) {
		tmp = t_1;
	} else if (x <= 5.8e-8) {
		tmp = t_2;
	} else if (x <= 1.6e+23) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (j * ((a * c) - (y * i))) + (t * (b * i))
	t_2 = ((z * b) * -c) - (x * (t * a))
	t_3 = x * ((y * z) - (t * a))
	tmp = 0
	if x <= -21000000000000.0:
		tmp = t_3
	elif x <= -2.2e-44:
		tmp = b * ((t * i) - (z * c))
	elif x <= -1.15e-57:
		tmp = y * ((x * z) - (i * j))
	elif x <= -2.55e-124:
		tmp = i * ((t * b) - (y * j))
	elif x <= -8.2e-193:
		tmp = t_1
	elif x <= -1.8e-222:
		tmp = t_2
	elif x <= 1.35e-98:
		tmp = t_1
	elif x <= 5.8e-8:
		tmp = t_2
	elif x <= 1.6e+23:
		tmp = t_1
	else:
		tmp = t_3
	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(t * Float64(b * i)))
	t_2 = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a)))
	t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	tmp = 0.0
	if (x <= -21000000000000.0)
		tmp = t_3;
	elseif (x <= -2.2e-44)
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	elseif (x <= -1.15e-57)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (x <= -2.55e-124)
		tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j)));
	elseif (x <= -8.2e-193)
		tmp = t_1;
	elseif (x <= -1.8e-222)
		tmp = t_2;
	elseif (x <= 1.35e-98)
		tmp = t_1;
	elseif (x <= 5.8e-8)
		tmp = t_2;
	elseif (x <= 1.6e+23)
		tmp = t_1;
	else
		tmp = t_3;
	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 * (b * i));
	t_2 = ((z * b) * -c) - (x * (t * a));
	t_3 = x * ((y * z) - (t * a));
	tmp = 0.0;
	if (x <= -21000000000000.0)
		tmp = t_3;
	elseif (x <= -2.2e-44)
		tmp = b * ((t * i) - (z * c));
	elseif (x <= -1.15e-57)
		tmp = y * ((x * z) - (i * j));
	elseif (x <= -2.55e-124)
		tmp = i * ((t * b) - (y * j));
	elseif (x <= -8.2e-193)
		tmp = t_1;
	elseif (x <= -1.8e-222)
		tmp = t_2;
	elseif (x <= 1.35e-98)
		tmp = t_1;
	elseif (x <= 5.8e-8)
		tmp = t_2;
	elseif (x <= 1.6e+23)
		tmp = t_1;
	else
		tmp = t_3;
	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[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -21000000000000.0], t$95$3, If[LessEqual[x, -2.2e-44], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e-57], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.55e-124], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.2e-193], t$95$1, If[LessEqual[x, -1.8e-222], t$95$2, If[LessEqual[x, 1.35e-98], t$95$1, If[LessEqual[x, 5.8e-8], t$95$2, If[LessEqual[x, 1.6e+23], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -2.2 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\

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

\mathbf{elif}\;x \leq -2.55 \cdot 10^{-124}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\

\mathbf{elif}\;x \leq -8.2 \cdot 10^{-193}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;x \leq 1.35 \cdot 10^{-98}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 5.8 \cdot 10^{-8}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;x \leq 1.6 \cdot 10^{+23}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_3\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if x < -2.1e13 or 1.6e23 < x

    1. Initial program 72.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. Step-by-step derivation
      1. cancel-sign-sub72.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.3%

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

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

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

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

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

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

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

    if -2.1e13 < x < -2.20000000000000012e-44

    1. Initial program 88.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. Step-by-step derivation
      1. cancel-sign-sub88.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv88.4%

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

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

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

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

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

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

    if -2.20000000000000012e-44 < x < -1.15e-57

    1. Initial program 99.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. Step-by-step derivation
      1. cancel-sign-sub99.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv99.6%

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

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

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

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

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

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

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

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

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

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

    if -1.15e-57 < x < -2.5500000000000001e-124

    1. Initial program 87.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. Step-by-step derivation
      1. sub-neg87.8%

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg87.9%

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

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

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

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

    if -2.5500000000000001e-124 < x < -8.20000000000000005e-193 or -1.79999999999999987e-222 < x < 1.3499999999999999e-98 or 5.8000000000000003e-8 < x < 1.6e23

    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. Step-by-step derivation
      1. cancel-sign-sub76.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.2%

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

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

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

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

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

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

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

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

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

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

    if -8.20000000000000005e-193 < x < -1.79999999999999987e-222 or 1.3499999999999999e-98 < x < 5.8000000000000003e-8

    1. Initial program 58.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. Step-by-step derivation
      1. cancel-sign-sub58.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv58.6%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(-a\right) \cdot t\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
      3. *-commutative74.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -21000000000000:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq -2.2 \cdot 10^{-44}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;x \leq -1.15 \cdot 10^{-57}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;x \leq -2.55 \cdot 10^{-124}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{-193}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-98}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{-8}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;x \leq 1.6 \cdot 10^{+23}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \end{array} \]

Alternative 3: 59.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ t_2 := x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\ t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{if}\;x \leq -0.04:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-196}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-97}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq 6.5 \cdot 10^{-10}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+23}:\\ \;\;\;\;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 (- (* (* z b) (- c)) (* x (* t a))))
        (t_2 (- (* x (- (* y z) (* t a))) (* c (* z b))))
        (t_3 (+ (* j (- (* a c) (* y i))) (* t (* b i)))))
   (if (<= x -0.04)
     t_2
     (if (<= x -1.8e-196)
       t_3
       (if (<= x -1.8e-222)
         t_1
         (if (<= x 3.8e-97)
           t_3
           (if (<= x 6.5e-10) t_1 (if (<= x 1.45e+23) 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 = ((z * b) * -c) - (x * (t * a));
	double t_2 = (x * ((y * z) - (t * a))) - (c * (z * b));
	double t_3 = (j * ((a * c) - (y * i))) + (t * (b * i));
	double tmp;
	if (x <= -0.04) {
		tmp = t_2;
	} else if (x <= -1.8e-196) {
		tmp = t_3;
	} else if (x <= -1.8e-222) {
		tmp = t_1;
	} else if (x <= 3.8e-97) {
		tmp = t_3;
	} else if (x <= 6.5e-10) {
		tmp = t_1;
	} else if (x <= 1.45e+23) {
		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 = ((z * b) * -c) - (x * (t * a))
    t_2 = (x * ((y * z) - (t * a))) - (c * (z * b))
    t_3 = (j * ((a * c) - (y * i))) + (t * (b * i))
    if (x <= (-0.04d0)) then
        tmp = t_2
    else if (x <= (-1.8d-196)) then
        tmp = t_3
    else if (x <= (-1.8d-222)) then
        tmp = t_1
    else if (x <= 3.8d-97) then
        tmp = t_3
    else if (x <= 6.5d-10) then
        tmp = t_1
    else if (x <= 1.45d+23) 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 = ((z * b) * -c) - (x * (t * a));
	double t_2 = (x * ((y * z) - (t * a))) - (c * (z * b));
	double t_3 = (j * ((a * c) - (y * i))) + (t * (b * i));
	double tmp;
	if (x <= -0.04) {
		tmp = t_2;
	} else if (x <= -1.8e-196) {
		tmp = t_3;
	} else if (x <= -1.8e-222) {
		tmp = t_1;
	} else if (x <= 3.8e-97) {
		tmp = t_3;
	} else if (x <= 6.5e-10) {
		tmp = t_1;
	} else if (x <= 1.45e+23) {
		tmp = t_3;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = ((z * b) * -c) - (x * (t * a))
	t_2 = (x * ((y * z) - (t * a))) - (c * (z * b))
	t_3 = (j * ((a * c) - (y * i))) + (t * (b * i))
	tmp = 0
	if x <= -0.04:
		tmp = t_2
	elif x <= -1.8e-196:
		tmp = t_3
	elif x <= -1.8e-222:
		tmp = t_1
	elif x <= 3.8e-97:
		tmp = t_3
	elif x <= 6.5e-10:
		tmp = t_1
	elif x <= 1.45e+23:
		tmp = t_3
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a)))
	t_2 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b)))
	t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i)))
	tmp = 0.0
	if (x <= -0.04)
		tmp = t_2;
	elseif (x <= -1.8e-196)
		tmp = t_3;
	elseif (x <= -1.8e-222)
		tmp = t_1;
	elseif (x <= 3.8e-97)
		tmp = t_3;
	elseif (x <= 6.5e-10)
		tmp = t_1;
	elseif (x <= 1.45e+23)
		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 = ((z * b) * -c) - (x * (t * a));
	t_2 = (x * ((y * z) - (t * a))) - (c * (z * b));
	t_3 = (j * ((a * c) - (y * i))) + (t * (b * i));
	tmp = 0.0;
	if (x <= -0.04)
		tmp = t_2;
	elseif (x <= -1.8e-196)
		tmp = t_3;
	elseif (x <= -1.8e-222)
		tmp = t_1;
	elseif (x <= 3.8e-97)
		tmp = t_3;
	elseif (x <= 6.5e-10)
		tmp = t_1;
	elseif (x <= 1.45e+23)
		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[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.04], t$95$2, If[LessEqual[x, -1.8e-196], t$95$3, If[LessEqual[x, -1.8e-222], t$95$1, If[LessEqual[x, 3.8e-97], t$95$3, If[LessEqual[x, 6.5e-10], t$95$1, If[LessEqual[x, 1.45e+23], t$95$3, t$95$2]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -1.8 \cdot 10^{-196}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 3.8 \cdot 10^{-97}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;x \leq 6.5 \cdot 10^{-10}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 1.45 \cdot 10^{+23}:\\
\;\;\;\;t_3\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -0.0400000000000000008 or 1.45000000000000006e23 < x

    1. Initial program 72.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub72.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.6%

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

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

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

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

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

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

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

    if -0.0400000000000000008 < x < -1.8e-196 or -1.79999999999999987e-222 < x < 3.8000000000000001e-97 or 6.5000000000000003e-10 < x < 1.45000000000000006e23

    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. Step-by-step derivation
      1. cancel-sign-sub79.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv79.2%

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

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

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

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

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

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

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

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

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

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

    if -1.8e-196 < x < -1.79999999999999987e-222 or 3.8000000000000001e-97 < x < 6.5000000000000003e-10

    1. Initial program 58.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. Step-by-step derivation
      1. cancel-sign-sub58.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv58.6%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(\left(-a\right) \cdot t\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
      3. *-commutative74.7%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -0.04:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-196}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq -1.8 \cdot 10^{-222}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-97}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 6.5 \cdot 10^{-10}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+23}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\\ \end{array} \]

Alternative 4: 65.6% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.7 \cdot 10^{+123} \lor \neg \left(j \leq 6.6 \cdot 10^{-81}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.70000000000000001e123 or 6.59999999999999975e-81 < j

    1. Initial program 71.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub71.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv71.0%

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

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

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

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

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

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

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

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

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

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

    if -1.70000000000000001e123 < j < 6.59999999999999975e-81

    1. Initial program 77.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. Step-by-step derivation
      1. cancel-sign-sub77.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv77.4%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.7 \cdot 10^{+123} \lor \neg \left(j \leq 6.6 \cdot 10^{-81}\right):\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\ \end{array} \]

Alternative 5: 52.7% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{if}\;y \leq -3.2 \cdot 10^{+25}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -1.56 \cdot 10^{-25}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -4 \cdot 10^{-87}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq -3.9 \cdot 10^{-224}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 3.1 \cdot 10^{+78}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
   (if (<= y -3.2e+25)
     t_2
     (if (<= y -1.56e-25)
       t_1
       (if (<= y -4e-87)
         (* b (- (* t i) (* z c)))
         (if (<= y -3.9e-224)
           t_1
           (if (<= y 3.5e-244)
             (* c (- (* a j) (* z b)))
             (if (<= y 3.1e+78) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -3.2e+25) {
		tmp = t_2;
	} else if (y <= -1.56e-25) {
		tmp = t_1;
	} else if (y <= -4e-87) {
		tmp = b * ((t * i) - (z * c));
	} else if (y <= -3.9e-224) {
		tmp = t_1;
	} else if (y <= 3.5e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 3.1e+78) {
		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 = t * ((b * i) - (x * a))
    t_2 = y * ((x * z) - (i * j))
    if (y <= (-3.2d+25)) then
        tmp = t_2
    else if (y <= (-1.56d-25)) then
        tmp = t_1
    else if (y <= (-4d-87)) then
        tmp = b * ((t * i) - (z * c))
    else if (y <= (-3.9d-224)) then
        tmp = t_1
    else if (y <= 3.5d-244) then
        tmp = c * ((a * j) - (z * b))
    else if (y <= 3.1d+78) 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 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -3.2e+25) {
		tmp = t_2;
	} else if (y <= -1.56e-25) {
		tmp = t_1;
	} else if (y <= -4e-87) {
		tmp = b * ((t * i) - (z * c));
	} else if (y <= -3.9e-224) {
		tmp = t_1;
	} else if (y <= 3.5e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 3.1e+78) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = y * ((x * z) - (i * j))
	tmp = 0
	if y <= -3.2e+25:
		tmp = t_2
	elif y <= -1.56e-25:
		tmp = t_1
	elif y <= -4e-87:
		tmp = b * ((t * i) - (z * c))
	elif y <= -3.9e-224:
		tmp = t_1
	elif y <= 3.5e-244:
		tmp = c * ((a * j) - (z * b))
	elif y <= 3.1e+78:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j)))
	tmp = 0.0
	if (y <= -3.2e+25)
		tmp = t_2;
	elseif (y <= -1.56e-25)
		tmp = t_1;
	elseif (y <= -4e-87)
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	elseif (y <= -3.9e-224)
		tmp = t_1;
	elseif (y <= 3.5e-244)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (y <= 3.1e+78)
		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 = t * ((b * i) - (x * a));
	t_2 = y * ((x * z) - (i * j));
	tmp = 0.0;
	if (y <= -3.2e+25)
		tmp = t_2;
	elseif (y <= -1.56e-25)
		tmp = t_1;
	elseif (y <= -4e-87)
		tmp = b * ((t * i) - (z * c));
	elseif (y <= -3.9e-224)
		tmp = t_1;
	elseif (y <= 3.5e-244)
		tmp = c * ((a * j) - (z * b));
	elseif (y <= 3.1e+78)
		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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.2e+25], t$95$2, If[LessEqual[y, -1.56e-25], t$95$1, If[LessEqual[y, -4e-87], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.9e-224], t$95$1, If[LessEqual[y, 3.5e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e+78], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -1.56 \cdot 10^{-25}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq -4 \cdot 10^{-87}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\

\mathbf{elif}\;y \leq -3.9 \cdot 10^{-224}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 3.5 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;y \leq 3.1 \cdot 10^{+78}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -3.1999999999999999e25 or 3.1e78 < y

    1. Initial program 60.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub60.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv60.9%

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

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

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

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

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

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

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

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

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

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

    if -3.1999999999999999e25 < y < -1.55999999999999995e-25 or -4.00000000000000007e-87 < y < -3.8999999999999998e-224 or 3.49999999999999992e-244 < y < 3.1e78

    1. Initial program 83.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub83.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv83.6%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative57.0%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--57.0%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg57.0%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in57.0%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg57.0%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg57.0%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot b - a \cdot x\right)} \]
    6. Simplified57.0%

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

    if -1.55999999999999995e-25 < y < -4.00000000000000007e-87

    1. Initial program 80.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub80.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv80.0%

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

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

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

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

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

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

    if -3.8999999999999998e-224 < y < 3.49999999999999992e-244

    1. Initial program 85.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. Step-by-step derivation
      1. cancel-sign-sub85.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv85.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.2 \cdot 10^{+25}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -1.56 \cdot 10^{-25}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;y \leq -4 \cdot 10^{-87}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq -3.9 \cdot 10^{-224}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 3.1 \cdot 10^{+78}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]

Alternative 6: 52.1% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{if}\;y \leq -4.6 \cdot 10^{+83}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -0.00032:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;y \leq -6.5 \cdot 10^{-88}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq -3.6 \cdot 10^{-228}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+79}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
   (if (<= y -4.6e+83)
     t_2
     (if (<= y -0.00032)
       (- (* (* z b) (- c)) (* x (* t a)))
       (if (<= y -6.5e-88)
         (* b (- (* t i) (* z c)))
         (if (<= y -3.6e-228)
           t_1
           (if (<= y 5.5e-244)
             (* c (- (* a j) (* z b)))
             (if (<= y 3.9e+79) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -4.6e+83) {
		tmp = t_2;
	} else if (y <= -0.00032) {
		tmp = ((z * b) * -c) - (x * (t * a));
	} else if (y <= -6.5e-88) {
		tmp = b * ((t * i) - (z * c));
	} else if (y <= -3.6e-228) {
		tmp = t_1;
	} else if (y <= 5.5e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 3.9e+79) {
		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 = t * ((b * i) - (x * a))
    t_2 = y * ((x * z) - (i * j))
    if (y <= (-4.6d+83)) then
        tmp = t_2
    else if (y <= (-0.00032d0)) then
        tmp = ((z * b) * -c) - (x * (t * a))
    else if (y <= (-6.5d-88)) then
        tmp = b * ((t * i) - (z * c))
    else if (y <= (-3.6d-228)) then
        tmp = t_1
    else if (y <= 5.5d-244) then
        tmp = c * ((a * j) - (z * b))
    else if (y <= 3.9d+79) 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 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -4.6e+83) {
		tmp = t_2;
	} else if (y <= -0.00032) {
		tmp = ((z * b) * -c) - (x * (t * a));
	} else if (y <= -6.5e-88) {
		tmp = b * ((t * i) - (z * c));
	} else if (y <= -3.6e-228) {
		tmp = t_1;
	} else if (y <= 5.5e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 3.9e+79) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = y * ((x * z) - (i * j))
	tmp = 0
	if y <= -4.6e+83:
		tmp = t_2
	elif y <= -0.00032:
		tmp = ((z * b) * -c) - (x * (t * a))
	elif y <= -6.5e-88:
		tmp = b * ((t * i) - (z * c))
	elif y <= -3.6e-228:
		tmp = t_1
	elif y <= 5.5e-244:
		tmp = c * ((a * j) - (z * b))
	elif y <= 3.9e+79:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j)))
	tmp = 0.0
	if (y <= -4.6e+83)
		tmp = t_2;
	elseif (y <= -0.00032)
		tmp = Float64(Float64(Float64(z * b) * Float64(-c)) - Float64(x * Float64(t * a)));
	elseif (y <= -6.5e-88)
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	elseif (y <= -3.6e-228)
		tmp = t_1;
	elseif (y <= 5.5e-244)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (y <= 3.9e+79)
		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 = t * ((b * i) - (x * a));
	t_2 = y * ((x * z) - (i * j));
	tmp = 0.0;
	if (y <= -4.6e+83)
		tmp = t_2;
	elseif (y <= -0.00032)
		tmp = ((z * b) * -c) - (x * (t * a));
	elseif (y <= -6.5e-88)
		tmp = b * ((t * i) - (z * c));
	elseif (y <= -3.6e-228)
		tmp = t_1;
	elseif (y <= 5.5e-244)
		tmp = c * ((a * j) - (z * b));
	elseif (y <= 3.9e+79)
		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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.6e+83], t$95$2, If[LessEqual[y, -0.00032], N[(N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision] - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.5e-88], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.6e-228], t$95$1, If[LessEqual[y, 5.5e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e+79], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -0.00032:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\

\mathbf{elif}\;y \leq -6.5 \cdot 10^{-88}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\

\mathbf{elif}\;y \leq -3.6 \cdot 10^{-228}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 5.5 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;y \leq 3.9 \cdot 10^{+79}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y < -4.5999999999999999e83 or 3.8999999999999997e79 < y

    1. Initial program 58.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. Step-by-step derivation
      1. cancel-sign-sub58.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv58.2%

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

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

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

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

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

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

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

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

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

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

    if -4.5999999999999999e83 < y < -3.20000000000000026e-4

    1. Initial program 89.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. Step-by-step derivation
      1. cancel-sign-sub89.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv89.1%

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot t\right)\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
    7. Step-by-step derivation
      1. mul-1-neg72.9%

        \[\leadsto \color{blue}{\left(-a \cdot t\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
      2. distribute-lft-neg-out72.9%

        \[\leadsto \color{blue}{\left(\left(-a\right) \cdot t\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
      3. *-commutative72.9%

        \[\leadsto \color{blue}{\left(t \cdot \left(-a\right)\right)} \cdot x - c \cdot \left(z \cdot b\right) \]
    8. Simplified72.9%

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

    if -3.20000000000000026e-4 < y < -6.50000000000000006e-88

    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. Step-by-step derivation
      1. cancel-sign-sub81.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv81.0%

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

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

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

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

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

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

    if -6.50000000000000006e-88 < y < -3.6000000000000002e-228 or 5.4999999999999998e-244 < y < 3.8999999999999997e79

    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. Step-by-step derivation
      1. cancel-sign-sub83.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv83.1%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative56.2%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--56.2%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg56.2%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in56.2%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg56.2%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg56.2%

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

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

    if -3.6000000000000002e-228 < y < 5.4999999999999998e-244

    1. Initial program 85.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. Step-by-step derivation
      1. cancel-sign-sub85.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv85.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4.6 \cdot 10^{+83}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -0.00032:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right) - x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;y \leq -6.5 \cdot 10^{-88}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq -3.6 \cdot 10^{-228}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;y \leq 5.5 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 3.9 \cdot 10^{+79}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]

Alternative 7: 30.8% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\ t_2 := \left(i \cdot j\right) \cdot \left(-y\right)\\ t_3 := t \cdot \left(-x \cdot a\right)\\ \mathbf{if}\;j \leq -4.6 \cdot 10^{+233}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -3.3 \cdot 10^{+116}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq -9.2 \cdot 10^{-14}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-290}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;j \leq 1.05 \cdot 10^{-197}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 1.7 \cdot 10^{+65}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;j \leq 1.42 \cdot 10^{+231}:\\ \;\;\;\;t_2\\ \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
 (let* ((t_1 (* (* z b) (- c)))
        (t_2 (* (* i j) (- y)))
        (t_3 (* t (- (* x a)))))
   (if (<= j -4.6e+233)
     (* c (* a j))
     (if (<= j -3.3e+116)
       t_2
       (if (<= j -9.2e-14)
         t_1
         (if (<= j -3.4e-290)
           t_3
           (if (<= j 1.05e-197)
             t_1
             (if (<= j 1.7e+65)
               t_3
               (if (<= j 1.42e+231) t_2 (* a (* c j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (z * b) * -c;
	double t_2 = (i * j) * -y;
	double t_3 = t * -(x * a);
	double tmp;
	if (j <= -4.6e+233) {
		tmp = c * (a * j);
	} else if (j <= -3.3e+116) {
		tmp = t_2;
	} else if (j <= -9.2e-14) {
		tmp = t_1;
	} else if (j <= -3.4e-290) {
		tmp = t_3;
	} else if (j <= 1.05e-197) {
		tmp = t_1;
	} else if (j <= 1.7e+65) {
		tmp = t_3;
	} else if (j <= 1.42e+231) {
		tmp = t_2;
	} 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) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (z * b) * -c
    t_2 = (i * j) * -y
    t_3 = t * -(x * a)
    if (j <= (-4.6d+233)) then
        tmp = c * (a * j)
    else if (j <= (-3.3d+116)) then
        tmp = t_2
    else if (j <= (-9.2d-14)) then
        tmp = t_1
    else if (j <= (-3.4d-290)) then
        tmp = t_3
    else if (j <= 1.05d-197) then
        tmp = t_1
    else if (j <= 1.7d+65) then
        tmp = t_3
    else if (j <= 1.42d+231) then
        tmp = t_2
    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 t_1 = (z * b) * -c;
	double t_2 = (i * j) * -y;
	double t_3 = t * -(x * a);
	double tmp;
	if (j <= -4.6e+233) {
		tmp = c * (a * j);
	} else if (j <= -3.3e+116) {
		tmp = t_2;
	} else if (j <= -9.2e-14) {
		tmp = t_1;
	} else if (j <= -3.4e-290) {
		tmp = t_3;
	} else if (j <= 1.05e-197) {
		tmp = t_1;
	} else if (j <= 1.7e+65) {
		tmp = t_3;
	} else if (j <= 1.42e+231) {
		tmp = t_2;
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (z * b) * -c
	t_2 = (i * j) * -y
	t_3 = t * -(x * a)
	tmp = 0
	if j <= -4.6e+233:
		tmp = c * (a * j)
	elif j <= -3.3e+116:
		tmp = t_2
	elif j <= -9.2e-14:
		tmp = t_1
	elif j <= -3.4e-290:
		tmp = t_3
	elif j <= 1.05e-197:
		tmp = t_1
	elif j <= 1.7e+65:
		tmp = t_3
	elif j <= 1.42e+231:
		tmp = t_2
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(z * b) * Float64(-c))
	t_2 = Float64(Float64(i * j) * Float64(-y))
	t_3 = Float64(t * Float64(-Float64(x * a)))
	tmp = 0.0
	if (j <= -4.6e+233)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= -3.3e+116)
		tmp = t_2;
	elseif (j <= -9.2e-14)
		tmp = t_1;
	elseif (j <= -3.4e-290)
		tmp = t_3;
	elseif (j <= 1.05e-197)
		tmp = t_1;
	elseif (j <= 1.7e+65)
		tmp = t_3;
	elseif (j <= 1.42e+231)
		tmp = t_2;
	else
		tmp = Float64(a * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (z * b) * -c;
	t_2 = (i * j) * -y;
	t_3 = t * -(x * a);
	tmp = 0.0;
	if (j <= -4.6e+233)
		tmp = c * (a * j);
	elseif (j <= -3.3e+116)
		tmp = t_2;
	elseif (j <= -9.2e-14)
		tmp = t_1;
	elseif (j <= -3.4e-290)
		tmp = t_3;
	elseif (j <= 1.05e-197)
		tmp = t_1;
	elseif (j <= 1.7e+65)
		tmp = t_3;
	elseif (j <= 1.42e+231)
		tmp = t_2;
	else
		tmp = a * (c * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]}, Block[{t$95$3 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[j, -4.6e+233], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.3e+116], t$95$2, If[LessEqual[j, -9.2e-14], t$95$1, If[LessEqual[j, -3.4e-290], t$95$3, If[LessEqual[j, 1.05e-197], t$95$1, If[LessEqual[j, 1.7e+65], t$95$3, If[LessEqual[j, 1.42e+231], t$95$2, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -3.3 \cdot 10^{+116}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;j \leq -9.2 \cdot 10^{-14}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;j \leq -3.4 \cdot 10^{-290}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;j \leq 1.05 \cdot 10^{-197}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;j \leq 1.7 \cdot 10^{+65}:\\
\;\;\;\;t_3\\

\mathbf{elif}\;j \leq 1.42 \cdot 10^{+231}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if j < -4.60000000000000001e233

    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. Step-by-step derivation
      1. cancel-sign-sub68.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv68.7%

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

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

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

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

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

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

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

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

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

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

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

    if -4.60000000000000001e233 < j < -3.2999999999999998e116 or 1.7e65 < j < 1.42e231

    1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg77.2%

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-y \cdot j\right)} \]
      3. distribute-lft-neg-in49.5%

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

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

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

        \[\leadsto \color{blue}{-i \cdot \left(y \cdot j\right)} \]
      2. associate-*r*53.0%

        \[\leadsto -\color{blue}{\left(i \cdot y\right) \cdot j} \]
      3. *-commutative53.0%

        \[\leadsto -\color{blue}{\left(y \cdot i\right)} \cdot j \]
      4. associate-*r*54.9%

        \[\leadsto -\color{blue}{y \cdot \left(i \cdot j\right)} \]
      5. distribute-rgt-neg-in54.9%

        \[\leadsto \color{blue}{y \cdot \left(-i \cdot j\right)} \]
      6. distribute-rgt-neg-in54.9%

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

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

    if -3.2999999999999998e116 < j < -9.19999999999999993e-14 or -3.39999999999999984e-290 < j < 1.05e-197

    1. Initial program 79.3%

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

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv79.3%

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

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(b \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*41.1%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(b \cdot z\right)} \]
      2. neg-mul-141.1%

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

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

    if -9.19999999999999993e-14 < j < -3.39999999999999984e-290 or 1.05e-197 < j < 1.7e65

    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. Step-by-step derivation
      1. cancel-sign-sub75.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv75.5%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative57.2%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--57.2%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg57.2%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in57.2%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg57.2%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg57.2%

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

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    7. Taylor expanded in i around 0 39.2%

      \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-139.2%

        \[\leadsto t \cdot \color{blue}{\left(-a \cdot x\right)} \]
      2. distribute-rgt-neg-in39.2%

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

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

    if 1.42e231 < j

    1. Initial program 65.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. Step-by-step derivation
      1. cancel-sign-sub65.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv65.5%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*62.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.6 \cdot 10^{+233}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -3.3 \cdot 10^{+116}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;j \leq -9.2 \cdot 10^{-14}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-290}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;j \leq 1.05 \cdot 10^{-197}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\ \mathbf{elif}\;j \leq 1.7 \cdot 10^{+65}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;j \leq 1.42 \cdot 10^{+231}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 8: 30.4% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(-x \cdot a\right)\\ t_2 := \left(z \cdot b\right) \cdot \left(-c\right)\\ \mathbf{if}\;j \leq -1.2 \cdot 10^{+233}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -3.2 \cdot 10^{+116}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;j \leq -1.75 \cdot 10^{-16}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-289}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 7.2 \cdot 10^{-198}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq 1.3 \cdot 10^{+65}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 4.6 \cdot 10^{+235}:\\ \;\;\;\;\left(y \cdot i\right) \cdot \left(-j\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
 (let* ((t_1 (* t (- (* x a)))) (t_2 (* (* z b) (- c))))
   (if (<= j -1.2e+233)
     (* c (* a j))
     (if (<= j -3.2e+116)
       (* (* i j) (- y))
       (if (<= j -1.75e-16)
         t_2
         (if (<= j -3.4e-289)
           t_1
           (if (<= j 7.2e-198)
             t_2
             (if (<= j 1.3e+65)
               t_1
               (if (<= j 4.6e+235) (* (* y i) (- j)) (* a (* c j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * -(x * a);
	double t_2 = (z * b) * -c;
	double tmp;
	if (j <= -1.2e+233) {
		tmp = c * (a * j);
	} else if (j <= -3.2e+116) {
		tmp = (i * j) * -y;
	} else if (j <= -1.75e-16) {
		tmp = t_2;
	} else if (j <= -3.4e-289) {
		tmp = t_1;
	} else if (j <= 7.2e-198) {
		tmp = t_2;
	} else if (j <= 1.3e+65) {
		tmp = t_1;
	} else if (j <= 4.6e+235) {
		tmp = (y * i) * -j;
	} 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) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = t * -(x * a)
    t_2 = (z * b) * -c
    if (j <= (-1.2d+233)) then
        tmp = c * (a * j)
    else if (j <= (-3.2d+116)) then
        tmp = (i * j) * -y
    else if (j <= (-1.75d-16)) then
        tmp = t_2
    else if (j <= (-3.4d-289)) then
        tmp = t_1
    else if (j <= 7.2d-198) then
        tmp = t_2
    else if (j <= 1.3d+65) then
        tmp = t_1
    else if (j <= 4.6d+235) then
        tmp = (y * i) * -j
    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 t_1 = t * -(x * a);
	double t_2 = (z * b) * -c;
	double tmp;
	if (j <= -1.2e+233) {
		tmp = c * (a * j);
	} else if (j <= -3.2e+116) {
		tmp = (i * j) * -y;
	} else if (j <= -1.75e-16) {
		tmp = t_2;
	} else if (j <= -3.4e-289) {
		tmp = t_1;
	} else if (j <= 7.2e-198) {
		tmp = t_2;
	} else if (j <= 1.3e+65) {
		tmp = t_1;
	} else if (j <= 4.6e+235) {
		tmp = (y * i) * -j;
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * -(x * a)
	t_2 = (z * b) * -c
	tmp = 0
	if j <= -1.2e+233:
		tmp = c * (a * j)
	elif j <= -3.2e+116:
		tmp = (i * j) * -y
	elif j <= -1.75e-16:
		tmp = t_2
	elif j <= -3.4e-289:
		tmp = t_1
	elif j <= 7.2e-198:
		tmp = t_2
	elif j <= 1.3e+65:
		tmp = t_1
	elif j <= 4.6e+235:
		tmp = (y * i) * -j
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(-Float64(x * a)))
	t_2 = Float64(Float64(z * b) * Float64(-c))
	tmp = 0.0
	if (j <= -1.2e+233)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= -3.2e+116)
		tmp = Float64(Float64(i * j) * Float64(-y));
	elseif (j <= -1.75e-16)
		tmp = t_2;
	elseif (j <= -3.4e-289)
		tmp = t_1;
	elseif (j <= 7.2e-198)
		tmp = t_2;
	elseif (j <= 1.3e+65)
		tmp = t_1;
	elseif (j <= 4.6e+235)
		tmp = Float64(Float64(y * i) * Float64(-j));
	else
		tmp = Float64(a * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = t * -(x * a);
	t_2 = (z * b) * -c;
	tmp = 0.0;
	if (j <= -1.2e+233)
		tmp = c * (a * j);
	elseif (j <= -3.2e+116)
		tmp = (i * j) * -y;
	elseif (j <= -1.75e-16)
		tmp = t_2;
	elseif (j <= -3.4e-289)
		tmp = t_1;
	elseif (j <= 7.2e-198)
		tmp = t_2;
	elseif (j <= 1.3e+65)
		tmp = t_1;
	elseif (j <= 4.6e+235)
		tmp = (y * i) * -j;
	else
		tmp = a * (c * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, If[LessEqual[j, -1.2e+233], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.2e+116], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[j, -1.75e-16], t$95$2, If[LessEqual[j, -3.4e-289], t$95$1, If[LessEqual[j, 7.2e-198], t$95$2, If[LessEqual[j, 1.3e+65], t$95$1, If[LessEqual[j, 4.6e+235], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;j \leq -1.75 \cdot 10^{-16}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;j \leq -3.4 \cdot 10^{-289}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;j \leq 7.2 \cdot 10^{-198}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;j \leq 1.3 \cdot 10^{+65}:\\
\;\;\;\;t_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if j < -1.20000000000000001e233

    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. Step-by-step derivation
      1. cancel-sign-sub68.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv68.7%

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

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

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

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

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

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

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

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

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

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

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

    if -1.20000000000000001e233 < j < -3.2e116

    1. Initial program 59.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. Step-by-step derivation
      1. sub-neg59.5%

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in68.6%

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg68.6%

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-y \cdot j\right)} \]
      3. distribute-lft-neg-in47.3%

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

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

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

        \[\leadsto \color{blue}{-i \cdot \left(y \cdot j\right)} \]
      2. associate-*r*51.4%

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

        \[\leadsto -\color{blue}{\left(y \cdot i\right)} \cdot j \]
      4. associate-*r*59.9%

        \[\leadsto -\color{blue}{y \cdot \left(i \cdot j\right)} \]
      5. distribute-rgt-neg-in59.9%

        \[\leadsto \color{blue}{y \cdot \left(-i \cdot j\right)} \]
      6. distribute-rgt-neg-in59.9%

        \[\leadsto y \cdot \color{blue}{\left(i \cdot \left(-j\right)\right)} \]
    10. Simplified59.9%

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

    if -3.2e116 < j < -1.75000000000000009e-16 or -3.40000000000000018e-289 < j < 7.19999999999999996e-198

    1. Initial program 79.3%

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

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv79.3%

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

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(b \cdot z\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*41.1%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(b \cdot z\right)} \]
      2. neg-mul-141.1%

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

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

    if -1.75000000000000009e-16 < j < -3.40000000000000018e-289 or 7.19999999999999996e-198 < j < 1.30000000000000001e65

    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. Step-by-step derivation
      1. cancel-sign-sub75.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv75.5%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative57.2%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--57.2%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg57.2%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in57.2%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg57.2%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg57.2%

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

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    7. Taylor expanded in i around 0 39.2%

      \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-139.2%

        \[\leadsto t \cdot \color{blue}{\left(-a \cdot x\right)} \]
      2. distribute-rgt-neg-in39.2%

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

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

    if 1.30000000000000001e65 < j < 4.6e235

    1. Initial program 83.4%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in83.4%

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg83.4%

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

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

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

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

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(y \cdot j\right) \cdot i\right)} \]
      2. associate-*r*51.2%

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

        \[\leadsto -1 \cdot \left(y \cdot \color{blue}{\left(i \cdot j\right)}\right) \]
      4. associate-*r*51.2%

        \[\leadsto \color{blue}{\left(-1 \cdot y\right) \cdot \left(i \cdot j\right)} \]
      5. associate-*r*54.2%

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

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

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

    if 4.6e235 < j

    1. Initial program 65.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. Step-by-step derivation
      1. cancel-sign-sub65.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv65.5%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*62.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.2 \cdot 10^{+233}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -3.2 \cdot 10^{+116}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;j \leq -1.75 \cdot 10^{-16}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\ \mathbf{elif}\;j \leq -3.4 \cdot 10^{-289}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;j \leq 7.2 \cdot 10^{-198}:\\ \;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\ \mathbf{elif}\;j \leq 1.3 \cdot 10^{+65}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;j \leq 4.6 \cdot 10^{+235}:\\ \;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 9: 45.6% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{if}\;a \leq -9 \cdot 10^{-37}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq -1.62 \cdot 10^{-285}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{-286}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 5 \cdot 10^{-163}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-74}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (* x z))) (t_2 (* a (- (* c j) (* x t)))))
   (if (<= a -9e-37)
     t_2
     (if (<= a -1.62e-285)
       (* c (- (* a j) (* z b)))
       (if (<= a 4.2e-286)
         t_1
         (if (<= a 5e-163) (* i (* t b)) (if (<= a 8.5e-74) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -9e-37) {
		tmp = t_2;
	} else if (a <= -1.62e-285) {
		tmp = c * ((a * j) - (z * b));
	} else if (a <= 4.2e-286) {
		tmp = t_1;
	} else if (a <= 5e-163) {
		tmp = i * (t * b);
	} else if (a <= 8.5e-74) {
		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 = a * ((c * j) - (x * t))
    if (a <= (-9d-37)) then
        tmp = t_2
    else if (a <= (-1.62d-285)) then
        tmp = c * ((a * j) - (z * b))
    else if (a <= 4.2d-286) then
        tmp = t_1
    else if (a <= 5d-163) then
        tmp = i * (t * b)
    else if (a <= 8.5d-74) 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 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -9e-37) {
		tmp = t_2;
	} else if (a <= -1.62e-285) {
		tmp = c * ((a * j) - (z * b));
	} else if (a <= 4.2e-286) {
		tmp = t_1;
	} else if (a <= 5e-163) {
		tmp = i * (t * b);
	} else if (a <= 8.5e-74) {
		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 = a * ((c * j) - (x * t))
	tmp = 0
	if a <= -9e-37:
		tmp = t_2
	elif a <= -1.62e-285:
		tmp = c * ((a * j) - (z * b))
	elif a <= 4.2e-286:
		tmp = t_1
	elif a <= 5e-163:
		tmp = i * (t * b)
	elif a <= 8.5e-74:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	tmp = 0.0
	if (a <= -9e-37)
		tmp = t_2;
	elseif (a <= -1.62e-285)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (a <= 4.2e-286)
		tmp = t_1;
	elseif (a <= 5e-163)
		tmp = Float64(i * Float64(t * b));
	elseif (a <= 8.5e-74)
		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 = a * ((c * j) - (x * t));
	tmp = 0.0;
	if (a <= -9e-37)
		tmp = t_2;
	elseif (a <= -1.62e-285)
		tmp = c * ((a * j) - (z * b));
	elseif (a <= 4.2e-286)
		tmp = t_1;
	elseif (a <= 5e-163)
		tmp = i * (t * b);
	elseif (a <= 8.5e-74)
		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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e-37], t$95$2, If[LessEqual[a, -1.62e-285], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.2e-286], t$95$1, If[LessEqual[a, 5e-163], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-74], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;a \leq 4.2 \cdot 10^{-286}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 5 \cdot 10^{-163}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

\mathbf{elif}\;a \leq 8.5 \cdot 10^{-74}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -9.00000000000000081e-37 or 8.50000000000000052e-74 < a

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub71.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv71.4%

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

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

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

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

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

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

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

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

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

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

    if -9.00000000000000081e-37 < a < -1.61999999999999994e-285

    1. Initial program 79.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. Step-by-step derivation
      1. cancel-sign-sub79.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv79.6%

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

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

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

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

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

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

    if -1.61999999999999994e-285 < a < 4.19999999999999977e-286 or 4.99999999999999977e-163 < a < 8.50000000000000052e-74

    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. Step-by-step derivation
      1. cancel-sign-sub85.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv85.7%

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

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

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

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

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

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

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

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

    if 4.19999999999999977e-286 < a < 4.99999999999999977e-163

    1. Initial program 72.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub72.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.0%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9 \cdot 10^{-37}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.62 \cdot 10^{-285}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;a \leq 4.2 \cdot 10^{-286}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 5 \cdot 10^{-163}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;a \leq 8.5 \cdot 10^{-74}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 10: 29.5% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ \mathbf{if}\;j \leq -1.55 \cdot 10^{+18}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -1.6 \cdot 10^{-254}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 2.3 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{-84}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 8.5 \cdot 10^{+38}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 1.62 \cdot 10^{+156}:\\ \;\;\;\;t_1\\ \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
 (let* ((t_1 (* y (* x z))))
   (if (<= j -1.55e+18)
     (* c (* a j))
     (if (<= j -1.6e-254)
       t_1
       (if (<= j 2.3e-261)
         (* i (* t b))
         (if (<= j 1.15e-84)
           t_1
           (if (<= j 8.5e+38)
             (* b (* t i))
             (if (<= j 1.62e+156) t_1 (* a (* c j))))))))))
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 tmp;
	if (j <= -1.55e+18) {
		tmp = c * (a * j);
	} else if (j <= -1.6e-254) {
		tmp = t_1;
	} else if (j <= 2.3e-261) {
		tmp = i * (t * b);
	} else if (j <= 1.15e-84) {
		tmp = t_1;
	} else if (j <= 8.5e+38) {
		tmp = b * (t * i);
	} else if (j <= 1.62e+156) {
		tmp = t_1;
	} 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) :: t_1
    real(8) :: tmp
    t_1 = y * (x * z)
    if (j <= (-1.55d+18)) then
        tmp = c * (a * j)
    else if (j <= (-1.6d-254)) then
        tmp = t_1
    else if (j <= 2.3d-261) then
        tmp = i * (t * b)
    else if (j <= 1.15d-84) then
        tmp = t_1
    else if (j <= 8.5d+38) then
        tmp = b * (t * i)
    else if (j <= 1.62d+156) then
        tmp = t_1
    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 t_1 = y * (x * z);
	double tmp;
	if (j <= -1.55e+18) {
		tmp = c * (a * j);
	} else if (j <= -1.6e-254) {
		tmp = t_1;
	} else if (j <= 2.3e-261) {
		tmp = i * (t * b);
	} else if (j <= 1.15e-84) {
		tmp = t_1;
	} else if (j <= 8.5e+38) {
		tmp = b * (t * i);
	} else if (j <= 1.62e+156) {
		tmp = t_1;
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	tmp = 0
	if j <= -1.55e+18:
		tmp = c * (a * j)
	elif j <= -1.6e-254:
		tmp = t_1
	elif j <= 2.3e-261:
		tmp = i * (t * b)
	elif j <= 1.15e-84:
		tmp = t_1
	elif j <= 8.5e+38:
		tmp = b * (t * i)
	elif j <= 1.62e+156:
		tmp = t_1
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	tmp = 0.0
	if (j <= -1.55e+18)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= -1.6e-254)
		tmp = t_1;
	elseif (j <= 2.3e-261)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= 1.15e-84)
		tmp = t_1;
	elseif (j <= 8.5e+38)
		tmp = Float64(b * Float64(t * i));
	elseif (j <= 1.62e+156)
		tmp = t_1;
	else
		tmp = Float64(a * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	tmp = 0.0;
	if (j <= -1.55e+18)
		tmp = c * (a * j);
	elseif (j <= -1.6e-254)
		tmp = t_1;
	elseif (j <= 2.3e-261)
		tmp = i * (t * b);
	elseif (j <= 1.15e-84)
		tmp = t_1;
	elseif (j <= 8.5e+38)
		tmp = b * (t * i);
	elseif (j <= 1.62e+156)
		tmp = t_1;
	else
		tmp = a * (c * j);
	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]}, If[LessEqual[j, -1.55e+18], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.6e-254], t$95$1, If[LessEqual[j, 2.3e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e-84], t$95$1, If[LessEqual[j, 8.5e+38], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.62e+156], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -1.6 \cdot 10^{-254}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;j \leq 1.15 \cdot 10^{-84}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;j \leq 8.5 \cdot 10^{+38}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{elif}\;j \leq 1.62 \cdot 10^{+156}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if j < -1.55e18

    1. Initial program 70.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub70.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv70.4%

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

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

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

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

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

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

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

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

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

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

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

    if -1.55e18 < j < -1.6e-254 or 2.3e-261 < j < 1.1499999999999999e-84 or 8.4999999999999997e38 < j < 1.62000000000000006e156

    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. Step-by-step derivation
      1. cancel-sign-sub77.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv77.1%

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

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

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

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

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

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

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

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

    if -1.6e-254 < j < 2.3e-261

    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. Step-by-step derivation
      1. cancel-sign-sub76.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.2%

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

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

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

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

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

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

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

    if 1.1499999999999999e-84 < j < 8.4999999999999997e38

    1. Initial program 72.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub72.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.5%

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

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

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

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

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

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

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

    if 1.62000000000000006e156 < j

    1. Initial program 72.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. Step-by-step derivation
      1. cancel-sign-sub72.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.4%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*53.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.55 \cdot 10^{+18}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -1.6 \cdot 10^{-254}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2.3 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 1.15 \cdot 10^{-84}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 8.5 \cdot 10^{+38}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 1.62 \cdot 10^{+156}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 11: 29.5% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ \mathbf{if}\;j \leq -3.6 \cdot 10^{+22}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -2.95 \cdot 10^{-254}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 5.1 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 4.3 \cdot 10^{-88}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 2.95 \cdot 10^{+38}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 5.4 \cdot 10^{+156}:\\ \;\;\;\;z \cdot \left(x \cdot y\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
 (let* ((t_1 (* y (* x z))))
   (if (<= j -3.6e+22)
     (* c (* a j))
     (if (<= j -2.95e-254)
       t_1
       (if (<= j 5.1e-261)
         (* i (* t b))
         (if (<= j 4.3e-88)
           t_1
           (if (<= j 2.95e+38)
             (* b (* t i))
             (if (<= j 5.4e+156) (* z (* x y)) (* a (* c j))))))))))
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 tmp;
	if (j <= -3.6e+22) {
		tmp = c * (a * j);
	} else if (j <= -2.95e-254) {
		tmp = t_1;
	} else if (j <= 5.1e-261) {
		tmp = i * (t * b);
	} else if (j <= 4.3e-88) {
		tmp = t_1;
	} else if (j <= 2.95e+38) {
		tmp = b * (t * i);
	} else if (j <= 5.4e+156) {
		tmp = z * (x * y);
	} 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) :: t_1
    real(8) :: tmp
    t_1 = y * (x * z)
    if (j <= (-3.6d+22)) then
        tmp = c * (a * j)
    else if (j <= (-2.95d-254)) then
        tmp = t_1
    else if (j <= 5.1d-261) then
        tmp = i * (t * b)
    else if (j <= 4.3d-88) then
        tmp = t_1
    else if (j <= 2.95d+38) then
        tmp = b * (t * i)
    else if (j <= 5.4d+156) then
        tmp = z * (x * y)
    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 t_1 = y * (x * z);
	double tmp;
	if (j <= -3.6e+22) {
		tmp = c * (a * j);
	} else if (j <= -2.95e-254) {
		tmp = t_1;
	} else if (j <= 5.1e-261) {
		tmp = i * (t * b);
	} else if (j <= 4.3e-88) {
		tmp = t_1;
	} else if (j <= 2.95e+38) {
		tmp = b * (t * i);
	} else if (j <= 5.4e+156) {
		tmp = z * (x * y);
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	tmp = 0
	if j <= -3.6e+22:
		tmp = c * (a * j)
	elif j <= -2.95e-254:
		tmp = t_1
	elif j <= 5.1e-261:
		tmp = i * (t * b)
	elif j <= 4.3e-88:
		tmp = t_1
	elif j <= 2.95e+38:
		tmp = b * (t * i)
	elif j <= 5.4e+156:
		tmp = z * (x * y)
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	tmp = 0.0
	if (j <= -3.6e+22)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= -2.95e-254)
		tmp = t_1;
	elseif (j <= 5.1e-261)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= 4.3e-88)
		tmp = t_1;
	elseif (j <= 2.95e+38)
		tmp = Float64(b * Float64(t * i));
	elseif (j <= 5.4e+156)
		tmp = Float64(z * Float64(x * y));
	else
		tmp = Float64(a * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	tmp = 0.0;
	if (j <= -3.6e+22)
		tmp = c * (a * j);
	elseif (j <= -2.95e-254)
		tmp = t_1;
	elseif (j <= 5.1e-261)
		tmp = i * (t * b);
	elseif (j <= 4.3e-88)
		tmp = t_1;
	elseif (j <= 2.95e+38)
		tmp = b * (t * i);
	elseif (j <= 5.4e+156)
		tmp = z * (x * y);
	else
		tmp = a * (c * j);
	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]}, If[LessEqual[j, -3.6e+22], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.95e-254], t$95$1, If[LessEqual[j, 5.1e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.3e-88], t$95$1, If[LessEqual[j, 2.95e+38], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e+156], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -2.95 \cdot 10^{-254}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;j \leq 4.3 \cdot 10^{-88}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;j \leq 2.95 \cdot 10^{+38}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{elif}\;j \leq 5.4 \cdot 10^{+156}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if j < -3.6e22

    1. Initial program 70.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub70.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv70.4%

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

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

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

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

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

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

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

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

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

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

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

    if -3.6e22 < j < -2.9499999999999999e-254 or 5.09999999999999957e-261 < j < 4.2999999999999997e-88

    1. Initial program 76.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.0%

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

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

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

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

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

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

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

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

    if -2.9499999999999999e-254 < j < 5.09999999999999957e-261

    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. Step-by-step derivation
      1. cancel-sign-sub76.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.2%

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

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

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

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

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

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

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

    if 4.2999999999999997e-88 < j < 2.94999999999999991e38

    1. Initial program 72.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub72.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.5%

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

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

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

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

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

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

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

    if 2.94999999999999991e38 < j < 5.4000000000000001e156

    1. Initial program 81.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. Step-by-step derivation
      1. cancel-sign-sub81.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv81.9%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 42.5%

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

    if 5.4000000000000001e156 < j

    1. Initial program 72.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. Step-by-step derivation
      1. cancel-sign-sub72.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.4%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*53.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.6 \cdot 10^{+22}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -2.95 \cdot 10^{-254}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 5.1 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 4.3 \cdot 10^{-88}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 2.95 \cdot 10^{+38}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;j \leq 5.4 \cdot 10^{+156}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 12: 47.8% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -2.25 \cdot 10^{+61} \lor \neg \left(c \leq 8.5 \cdot 10^{-121} \lor \neg \left(c \leq 6.2 \cdot 10^{+85}\right) \land c \leq 1.5 \cdot 10^{+211}\right):\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= c -2.25e+61)
         (not (or (<= c 8.5e-121) (and (not (<= c 6.2e+85)) (<= c 1.5e+211)))))
   (* c (- (* a j) (* z b)))
   (* t (- (* b i) (* x a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211)))) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t * ((b * i) - (x * a));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((c <= (-2.25d+61)) .or. (.not. (c <= 8.5d-121) .or. (.not. (c <= 6.2d+85)) .and. (c <= 1.5d+211))) then
        tmp = c * ((a * j) - (z * b))
    else
        tmp = t * ((b * i) - (x * a))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211)))) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t * ((b * i) - (x * a));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (c <= -2.25e+61) or not ((c <= 8.5e-121) or (not (c <= 6.2e+85) and (c <= 1.5e+211))):
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t * ((b * i) - (x * a))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((c <= -2.25e+61) || !((c <= 8.5e-121) || (!(c <= 6.2e+85) && (c <= 1.5e+211))))
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((c <= -2.25e+61) || ~(((c <= 8.5e-121) || (~((c <= 6.2e+85)) && (c <= 1.5e+211)))))
		tmp = c * ((a * j) - (z * b));
	else
		tmp = t * ((b * i) - (x * a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.25e+61], N[Not[Or[LessEqual[c, 8.5e-121], And[N[Not[LessEqual[c, 6.2e+85]], $MachinePrecision], LessEqual[c, 1.5e+211]]]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.25 \cdot 10^{+61} \lor \neg \left(c \leq 8.5 \cdot 10^{-121} \lor \neg \left(c \leq 6.2 \cdot 10^{+85}\right) \land c \leq 1.5 \cdot 10^{+211}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -2.25e61 or 8.50000000000000025e-121 < c < 6.20000000000000023e85 or 1.5e211 < c

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub71.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv71.4%

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

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

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

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

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

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

    if -2.25e61 < c < 8.50000000000000025e-121 or 6.20000000000000023e85 < c < 1.5e211

    1. Initial program 76.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.9%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative56.2%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--56.2%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg56.2%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in56.2%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg56.2%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg56.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -2.25 \cdot 10^{+61} \lor \neg \left(c \leq 8.5 \cdot 10^{-121} \lor \neg \left(c \leq 6.2 \cdot 10^{+85}\right) \land c \leq 1.5 \cdot 10^{+211}\right):\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]

Alternative 13: 52.7% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{if}\;y \leq -1.1 \cdot 10^{+27}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;y \leq -1.7 \cdot 10^{-229}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{+79}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
   (if (<= y -1.1e+27)
     t_2
     (if (<= y -1.7e-229)
       t_1
       (if (<= y 4.2e-244)
         (* c (- (* a j) (* z b)))
         (if (<= y 2.2e+79) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -1.1e+27) {
		tmp = t_2;
	} else if (y <= -1.7e-229) {
		tmp = t_1;
	} else if (y <= 4.2e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 2.2e+79) {
		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 = t * ((b * i) - (x * a))
    t_2 = y * ((x * z) - (i * j))
    if (y <= (-1.1d+27)) then
        tmp = t_2
    else if (y <= (-1.7d-229)) then
        tmp = t_1
    else if (y <= 4.2d-244) then
        tmp = c * ((a * j) - (z * b))
    else if (y <= 2.2d+79) 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 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -1.1e+27) {
		tmp = t_2;
	} else if (y <= -1.7e-229) {
		tmp = t_1;
	} else if (y <= 4.2e-244) {
		tmp = c * ((a * j) - (z * b));
	} else if (y <= 2.2e+79) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = y * ((x * z) - (i * j))
	tmp = 0
	if y <= -1.1e+27:
		tmp = t_2
	elif y <= -1.7e-229:
		tmp = t_1
	elif y <= 4.2e-244:
		tmp = c * ((a * j) - (z * b))
	elif y <= 2.2e+79:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j)))
	tmp = 0.0
	if (y <= -1.1e+27)
		tmp = t_2;
	elseif (y <= -1.7e-229)
		tmp = t_1;
	elseif (y <= 4.2e-244)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (y <= 2.2e+79)
		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 = t * ((b * i) - (x * a));
	t_2 = y * ((x * z) - (i * j));
	tmp = 0.0;
	if (y <= -1.1e+27)
		tmp = t_2;
	elseif (y <= -1.7e-229)
		tmp = t_1;
	elseif (y <= 4.2e-244)
		tmp = c * ((a * j) - (z * b));
	elseif (y <= 2.2e+79)
		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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+27], t$95$2, If[LessEqual[y, -1.7e-229], t$95$1, If[LessEqual[y, 4.2e-244], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e+79], t$95$1, t$95$2]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -1.7 \cdot 10^{-229}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 4.2 \cdot 10^{-244}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;y \leq 2.2 \cdot 10^{+79}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.0999999999999999e27 or 2.1999999999999999e79 < y

    1. Initial program 60.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub60.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv60.9%

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

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

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

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

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

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

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

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

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

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

    if -1.0999999999999999e27 < y < -1.7e-229 or 4.20000000000000003e-244 < y < 2.1999999999999999e79

    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. Step-by-step derivation
      1. cancel-sign-sub83.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv83.2%

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

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

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

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

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

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

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--54.5%

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

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in54.5%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg54.5%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg54.5%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot b - a \cdot x\right)} \]
    6. Simplified54.5%

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

    if -1.7e-229 < y < 4.20000000000000003e-244

    1. Initial program 85.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. Step-by-step derivation
      1. cancel-sign-sub85.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv85.5%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.1 \cdot 10^{+27}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -1.7 \cdot 10^{-229}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;y \leq 4.2 \cdot 10^{-244}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{+79}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]

Alternative 14: 29.3% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;i \leq -1.55 \cdot 10^{+23}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -1.5 \cdot 10^{-98}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-285}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;i \leq 6.2 \cdot 10^{-47}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 2.4 \cdot 10^{+161}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (* x z))) (t_2 (* i (* t b))))
   (if (<= i -1.55e+23)
     t_2
     (if (<= i -1.5e-98)
       t_1
       (if (<= i 1.7e-285)
         (* j (* a c))
         (if (<= i 6.2e-47)
           t_1
           (if (<= i 2.4e+161) t_2 (* (* y j) (- i)))))))))
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 = i * (t * b);
	double tmp;
	if (i <= -1.55e+23) {
		tmp = t_2;
	} else if (i <= -1.5e-98) {
		tmp = t_1;
	} else if (i <= 1.7e-285) {
		tmp = j * (a * c);
	} else if (i <= 6.2e-47) {
		tmp = t_1;
	} else if (i <= 2.4e+161) {
		tmp = t_2;
	} else {
		tmp = (y * j) * -i;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = y * (x * z)
    t_2 = i * (t * b)
    if (i <= (-1.55d+23)) then
        tmp = t_2
    else if (i <= (-1.5d-98)) then
        tmp = t_1
    else if (i <= 1.7d-285) then
        tmp = j * (a * c)
    else if (i <= 6.2d-47) then
        tmp = t_1
    else if (i <= 2.4d+161) then
        tmp = t_2
    else
        tmp = (y * j) * -i
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = i * (t * b);
	double tmp;
	if (i <= -1.55e+23) {
		tmp = t_2;
	} else if (i <= -1.5e-98) {
		tmp = t_1;
	} else if (i <= 1.7e-285) {
		tmp = j * (a * c);
	} else if (i <= 6.2e-47) {
		tmp = t_1;
	} else if (i <= 2.4e+161) {
		tmp = t_2;
	} else {
		tmp = (y * j) * -i;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	t_2 = i * (t * b)
	tmp = 0
	if i <= -1.55e+23:
		tmp = t_2
	elif i <= -1.5e-98:
		tmp = t_1
	elif i <= 1.7e-285:
		tmp = j * (a * c)
	elif i <= 6.2e-47:
		tmp = t_1
	elif i <= 2.4e+161:
		tmp = t_2
	else:
		tmp = (y * j) * -i
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(i * Float64(t * b))
	tmp = 0.0
	if (i <= -1.55e+23)
		tmp = t_2;
	elseif (i <= -1.5e-98)
		tmp = t_1;
	elseif (i <= 1.7e-285)
		tmp = Float64(j * Float64(a * c));
	elseif (i <= 6.2e-47)
		tmp = t_1;
	elseif (i <= 2.4e+161)
		tmp = t_2;
	else
		tmp = Float64(Float64(y * j) * Float64(-i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	t_2 = i * (t * b);
	tmp = 0.0;
	if (i <= -1.55e+23)
		tmp = t_2;
	elseif (i <= -1.5e-98)
		tmp = t_1;
	elseif (i <= 1.7e-285)
		tmp = j * (a * c);
	elseif (i <= 6.2e-47)
		tmp = t_1;
	elseif (i <= 2.4e+161)
		tmp = t_2;
	else
		tmp = (y * j) * -i;
	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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.55e+23], t$95$2, If[LessEqual[i, -1.5e-98], t$95$1, If[LessEqual[i, 1.7e-285], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.2e-47], t$95$1, If[LessEqual[i, 2.4e+161], t$95$2, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;i \leq -1.55 \cdot 10^{+23}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;i \leq -1.5 \cdot 10^{-98}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;i \leq 6.2 \cdot 10^{-47}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 2.4 \cdot 10^{+161}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -1.54999999999999985e23 or 6.1999999999999996e-47 < i < 2.3999999999999999e161

    1. Initial program 69.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub69.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv69.6%

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

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

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

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

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

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

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

    if -1.54999999999999985e23 < i < -1.5e-98 or 1.7e-285 < i < 6.1999999999999996e-47

    1. Initial program 82.3%

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

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv82.3%

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

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

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

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

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

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

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

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

    if -1.5e-98 < i < 1.7e-285

    1. Initial program 81.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. Step-by-step derivation
      1. cancel-sign-sub81.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv81.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.3999999999999999e161 < i

    1. Initial program 60.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. Step-by-step derivation
      1. sub-neg60.8%

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in60.8%

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg60.8%

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-y \cdot j\right)} \]
      3. distribute-lft-neg-in62.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.55 \cdot 10^{+23}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;i \leq -1.5 \cdot 10^{-98}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-285}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;i \leq 6.2 \cdot 10^{-47}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 2.4 \cdot 10^{+161}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \end{array} \]

Alternative 15: 29.3% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := t \cdot \left(-x \cdot a\right)\\ \mathbf{if}\;i \leq -1.5 \cdot 10^{+42}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;i \leq -2.25 \cdot 10^{-76}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 3.4 \cdot 10^{-264}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 4.1 \cdot 10^{-49}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 2.4 \cdot 10^{+155}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (* x z))) (t_2 (* t (- (* x a)))))
   (if (<= i -1.5e+42)
     (* i (* t b))
     (if (<= i -2.25e-76)
       t_1
       (if (<= i 3.4e-264)
         t_2
         (if (<= i 4.1e-49)
           t_1
           (if (<= i 2.4e+155) t_2 (* (* y j) (- i)))))))))
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 = t * -(x * a);
	double tmp;
	if (i <= -1.5e+42) {
		tmp = i * (t * b);
	} else if (i <= -2.25e-76) {
		tmp = t_1;
	} else if (i <= 3.4e-264) {
		tmp = t_2;
	} else if (i <= 4.1e-49) {
		tmp = t_1;
	} else if (i <= 2.4e+155) {
		tmp = t_2;
	} else {
		tmp = (y * j) * -i;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = y * (x * z)
    t_2 = t * -(x * a)
    if (i <= (-1.5d+42)) then
        tmp = i * (t * b)
    else if (i <= (-2.25d-76)) then
        tmp = t_1
    else if (i <= 3.4d-264) then
        tmp = t_2
    else if (i <= 4.1d-49) then
        tmp = t_1
    else if (i <= 2.4d+155) then
        tmp = t_2
    else
        tmp = (y * j) * -i
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = t * -(x * a);
	double tmp;
	if (i <= -1.5e+42) {
		tmp = i * (t * b);
	} else if (i <= -2.25e-76) {
		tmp = t_1;
	} else if (i <= 3.4e-264) {
		tmp = t_2;
	} else if (i <= 4.1e-49) {
		tmp = t_1;
	} else if (i <= 2.4e+155) {
		tmp = t_2;
	} else {
		tmp = (y * j) * -i;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	t_2 = t * -(x * a)
	tmp = 0
	if i <= -1.5e+42:
		tmp = i * (t * b)
	elif i <= -2.25e-76:
		tmp = t_1
	elif i <= 3.4e-264:
		tmp = t_2
	elif i <= 4.1e-49:
		tmp = t_1
	elif i <= 2.4e+155:
		tmp = t_2
	else:
		tmp = (y * j) * -i
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(t * Float64(-Float64(x * a)))
	tmp = 0.0
	if (i <= -1.5e+42)
		tmp = Float64(i * Float64(t * b));
	elseif (i <= -2.25e-76)
		tmp = t_1;
	elseif (i <= 3.4e-264)
		tmp = t_2;
	elseif (i <= 4.1e-49)
		tmp = t_1;
	elseif (i <= 2.4e+155)
		tmp = t_2;
	else
		tmp = Float64(Float64(y * j) * Float64(-i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	t_2 = t * -(x * a);
	tmp = 0.0;
	if (i <= -1.5e+42)
		tmp = i * (t * b);
	elseif (i <= -2.25e-76)
		tmp = t_1;
	elseif (i <= 3.4e-264)
		tmp = t_2;
	elseif (i <= 4.1e-49)
		tmp = t_1;
	elseif (i <= 2.4e+155)
		tmp = t_2;
	else
		tmp = (y * j) * -i;
	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[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[i, -1.5e+42], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.25e-76], t$95$1, If[LessEqual[i, 3.4e-264], t$95$2, If[LessEqual[i, 4.1e-49], t$95$1, If[LessEqual[i, 2.4e+155], t$95$2, N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -2.25 \cdot 10^{-76}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 3.4 \cdot 10^{-264}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;i \leq 4.1 \cdot 10^{-49}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 2.4 \cdot 10^{+155}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -1.50000000000000014e42

    1. Initial program 59.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. Step-by-step derivation
      1. cancel-sign-sub59.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv59.1%

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

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

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

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

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

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

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

    if -1.50000000000000014e42 < i < -2.25e-76 or 3.3999999999999999e-264 < i < 4.1000000000000001e-49

    1. Initial program 82.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv82.5%

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

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

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

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

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

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

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

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

    if -2.25e-76 < i < 3.3999999999999999e-264 or 4.1000000000000001e-49 < i < 2.40000000000000021e155

    1. Initial program 82.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv82.6%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative53.8%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--53.8%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg53.8%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in53.8%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg53.8%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg53.8%

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

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    7. Taylor expanded in i around 0 43.7%

      \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-143.7%

        \[\leadsto t \cdot \color{blue}{\left(-a \cdot x\right)} \]
      2. distribute-rgt-neg-in43.7%

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

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

    if 2.40000000000000021e155 < i

    1. Initial program 63.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in63.0%

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg63.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-y \cdot j\right)} \]
      3. distribute-lft-neg-in61.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.5 \cdot 10^{+42}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;i \leq -2.25 \cdot 10^{-76}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.4 \cdot 10^{-264}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;i \leq 4.1 \cdot 10^{-49}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 2.4 \cdot 10^{+155}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \end{array} \]

Alternative 16: 29.5% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := t \cdot \left(-x \cdot a\right)\\ \mathbf{if}\;i \leq -7.2 \cdot 10^{+27}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;i \leq -1.9 \cdot 10^{-76}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 5.2 \cdot 10^{-263}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 2.15 \cdot 10^{-50}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 3.4 \cdot 10^{+155}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (* x z))) (t_2 (* t (- (* x a)))))
   (if (<= i -7.2e+27)
     (* i (* t b))
     (if (<= i -1.9e-76)
       t_1
       (if (<= i 5.2e-263)
         t_2
         (if (<= i 2.15e-50)
           t_1
           (if (<= i 3.4e+155) t_2 (* (* i j) (- y)))))))))
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 = t * -(x * a);
	double tmp;
	if (i <= -7.2e+27) {
		tmp = i * (t * b);
	} else if (i <= -1.9e-76) {
		tmp = t_1;
	} else if (i <= 5.2e-263) {
		tmp = t_2;
	} else if (i <= 2.15e-50) {
		tmp = t_1;
	} else if (i <= 3.4e+155) {
		tmp = t_2;
	} else {
		tmp = (i * j) * -y;
	}
	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 = t * -(x * a)
    if (i <= (-7.2d+27)) then
        tmp = i * (t * b)
    else if (i <= (-1.9d-76)) then
        tmp = t_1
    else if (i <= 5.2d-263) then
        tmp = t_2
    else if (i <= 2.15d-50) then
        tmp = t_1
    else if (i <= 3.4d+155) then
        tmp = t_2
    else
        tmp = (i * j) * -y
    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 = t * -(x * a);
	double tmp;
	if (i <= -7.2e+27) {
		tmp = i * (t * b);
	} else if (i <= -1.9e-76) {
		tmp = t_1;
	} else if (i <= 5.2e-263) {
		tmp = t_2;
	} else if (i <= 2.15e-50) {
		tmp = t_1;
	} else if (i <= 3.4e+155) {
		tmp = t_2;
	} else {
		tmp = (i * j) * -y;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	t_2 = t * -(x * a)
	tmp = 0
	if i <= -7.2e+27:
		tmp = i * (t * b)
	elif i <= -1.9e-76:
		tmp = t_1
	elif i <= 5.2e-263:
		tmp = t_2
	elif i <= 2.15e-50:
		tmp = t_1
	elif i <= 3.4e+155:
		tmp = t_2
	else:
		tmp = (i * j) * -y
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(t * Float64(-Float64(x * a)))
	tmp = 0.0
	if (i <= -7.2e+27)
		tmp = Float64(i * Float64(t * b));
	elseif (i <= -1.9e-76)
		tmp = t_1;
	elseif (i <= 5.2e-263)
		tmp = t_2;
	elseif (i <= 2.15e-50)
		tmp = t_1;
	elseif (i <= 3.4e+155)
		tmp = t_2;
	else
		tmp = Float64(Float64(i * j) * Float64(-y));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	t_2 = t * -(x * a);
	tmp = 0.0;
	if (i <= -7.2e+27)
		tmp = i * (t * b);
	elseif (i <= -1.9e-76)
		tmp = t_1;
	elseif (i <= 5.2e-263)
		tmp = t_2;
	elseif (i <= 2.15e-50)
		tmp = t_1;
	elseif (i <= 3.4e+155)
		tmp = t_2;
	else
		tmp = (i * j) * -y;
	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[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[i, -7.2e+27], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.9e-76], t$95$1, If[LessEqual[i, 5.2e-263], t$95$2, If[LessEqual[i, 2.15e-50], t$95$1, If[LessEqual[i, 3.4e+155], t$95$2, N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -1.9 \cdot 10^{-76}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 5.2 \cdot 10^{-263}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;i \leq 2.15 \cdot 10^{-50}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 3.4 \cdot 10^{+155}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -7.19999999999999966e27

    1. Initial program 59.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. Step-by-step derivation
      1. cancel-sign-sub59.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv59.1%

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

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

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

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

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

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

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

    if -7.19999999999999966e27 < i < -1.9000000000000001e-76 or 5.2000000000000001e-263 < i < 2.14999999999999999e-50

    1. Initial program 82.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv82.5%

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

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

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

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

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

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

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

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

    if -1.9000000000000001e-76 < i < 5.2000000000000001e-263 or 2.14999999999999999e-50 < i < 3.4000000000000001e155

    1. Initial program 82.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv82.6%

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right) \cdot t} \]
    5. Step-by-step derivation
      1. *-commutative53.8%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. distribute-lft-out--53.8%

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - i \cdot b\right)\right)} \]
      3. sub-neg53.8%

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

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

        \[\leadsto t \cdot \left(-1 \cdot \color{blue}{\left(-1 \cdot \left(i \cdot b\right) + a \cdot x\right)}\right) \]
      6. distribute-lft-in53.8%

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

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

        \[\leadsto t \cdot \left(\left(-\color{blue}{\left(-i \cdot b\right)}\right) + -1 \cdot \left(a \cdot x\right)\right) \]
      9. remove-double-neg53.8%

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      11. unsub-neg53.8%

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

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    7. Taylor expanded in i around 0 43.7%

      \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-143.7%

        \[\leadsto t \cdot \color{blue}{\left(-a \cdot x\right)} \]
      2. distribute-rgt-neg-in43.7%

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

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

    if 3.4000000000000001e155 < i

    1. Initial program 63.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in63.0%

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

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg63.0%

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-y \cdot j\right)} \]
      3. distribute-lft-neg-in61.3%

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

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

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

        \[\leadsto \color{blue}{-i \cdot \left(y \cdot j\right)} \]
      2. associate-*r*61.3%

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

        \[\leadsto -\color{blue}{\left(y \cdot i\right)} \cdot j \]
      4. associate-*r*63.7%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -7.2 \cdot 10^{+27}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;i \leq -1.9 \cdot 10^{-76}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 5.2 \cdot 10^{-263}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;i \leq 2.15 \cdot 10^{-50}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 3.4 \cdot 10^{+155}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \end{array} \]

Alternative 17: 29.7% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ \mathbf{if}\;j \leq -3.4 \cdot 10^{+15}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -8.6 \cdot 10^{-249}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 3.95 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 8.7 \cdot 10^{+157}:\\ \;\;\;\;t_1\\ \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
 (let* ((t_1 (* y (* x z))))
   (if (<= j -3.4e+15)
     (* c (* a j))
     (if (<= j -8.6e-249)
       t_1
       (if (<= j 3.95e-261)
         (* i (* t b))
         (if (<= j 8.7e+157) t_1 (* a (* c j))))))))
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 tmp;
	if (j <= -3.4e+15) {
		tmp = c * (a * j);
	} else if (j <= -8.6e-249) {
		tmp = t_1;
	} else if (j <= 3.95e-261) {
		tmp = i * (t * b);
	} else if (j <= 8.7e+157) {
		tmp = t_1;
	} 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) :: t_1
    real(8) :: tmp
    t_1 = y * (x * z)
    if (j <= (-3.4d+15)) then
        tmp = c * (a * j)
    else if (j <= (-8.6d-249)) then
        tmp = t_1
    else if (j <= 3.95d-261) then
        tmp = i * (t * b)
    else if (j <= 8.7d+157) then
        tmp = t_1
    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 t_1 = y * (x * z);
	double tmp;
	if (j <= -3.4e+15) {
		tmp = c * (a * j);
	} else if (j <= -8.6e-249) {
		tmp = t_1;
	} else if (j <= 3.95e-261) {
		tmp = i * (t * b);
	} else if (j <= 8.7e+157) {
		tmp = t_1;
	} else {
		tmp = a * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	tmp = 0
	if j <= -3.4e+15:
		tmp = c * (a * j)
	elif j <= -8.6e-249:
		tmp = t_1
	elif j <= 3.95e-261:
		tmp = i * (t * b)
	elif j <= 8.7e+157:
		tmp = t_1
	else:
		tmp = a * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	tmp = 0.0
	if (j <= -3.4e+15)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= -8.6e-249)
		tmp = t_1;
	elseif (j <= 3.95e-261)
		tmp = Float64(i * Float64(t * b));
	elseif (j <= 8.7e+157)
		tmp = t_1;
	else
		tmp = Float64(a * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	tmp = 0.0;
	if (j <= -3.4e+15)
		tmp = c * (a * j);
	elseif (j <= -8.6e-249)
		tmp = t_1;
	elseif (j <= 3.95e-261)
		tmp = i * (t * b);
	elseif (j <= 8.7e+157)
		tmp = t_1;
	else
		tmp = a * (c * j);
	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]}, If[LessEqual[j, -3.4e+15], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -8.6e-249], t$95$1, If[LessEqual[j, 3.95e-261], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.7e+157], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq -8.6 \cdot 10^{-249}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;j \leq 8.7 \cdot 10^{+157}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -3.4e15

    1. Initial program 70.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub70.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv70.4%

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

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

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

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

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

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

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

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

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

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

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

    if -3.4e15 < j < -8.6000000000000003e-249 or 3.95000000000000006e-261 < j < 8.7000000000000002e157

    1. Initial program 76.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.5%

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

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

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

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

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

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

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

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

    if -8.6000000000000003e-249 < j < 3.95000000000000006e-261

    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. Step-by-step derivation
      1. cancel-sign-sub76.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.2%

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

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

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

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

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

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

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

    if 8.7000000000000002e157 < j

    1. Initial program 72.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. Step-by-step derivation
      1. cancel-sign-sub72.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv72.4%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*53.9%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.4 \cdot 10^{+15}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq -8.6 \cdot 10^{-249}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;j \leq 3.95 \cdot 10^{-261}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;j \leq 8.7 \cdot 10^{+157}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 18: 43.3% accurate, 2.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+103} \lor \neg \left(z \leq 3.3 \cdot 10^{+187}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\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 z < -7.49999999999999922e103 or 3.3000000000000001e187 < z

    1. Initial program 64.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. Step-by-step derivation
      1. cancel-sign-sub64.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv64.6%

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

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

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

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

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

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

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

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

    if -7.49999999999999922e103 < z < 3.3000000000000001e187

    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. Step-by-step derivation
      1. cancel-sign-sub79.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv79.2%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.5 \cdot 10^{+103} \lor \neg \left(z \leq 3.3 \cdot 10^{+187}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 19: 30.3% accurate, 3.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -6000:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{elif}\;j \leq 4.4 \cdot 10^{+36}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -6e3

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub71.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv71.4%

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

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

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

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

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

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

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

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

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

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

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

    if -6e3 < j < 4.40000000000000001e36

    1. Initial program 75.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub75.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv75.1%

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

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

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

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

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

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

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

    if 4.40000000000000001e36 < j

    1. Initial program 76.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. Step-by-step derivation
      1. cancel-sign-sub76.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv76.4%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. associate-*l*42.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -6000:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq 4.4 \cdot 10^{+36}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 20: 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 74.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. Step-by-step derivation
    1. cancel-sign-sub74.6%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
    2. cancel-sign-sub-inv74.6%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
    2. associate-*l*21.7%

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

    \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
  10. Final simplification21.7%

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

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

  :herbie-target
  (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)))))