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

Percentage Accurate: 72.6% → 82.8%
Time: 25.7s
Alternatives: 21
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 21 alternatives:

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

Initial Program: 72.6% 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.8% accurate, 0.2× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \sqrt[3]{\left(x \cdot z - i \cdot j\right) \cdot \left(t_1 \cdot t_1\right)}\\


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

    1. Initial program 89.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]

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

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

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

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

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

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

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - j \cdot i\right)} \]
    7. Step-by-step derivation
      1. add-cbrt-cube57.1%

        \[\leadsto y \cdot \color{blue}{\sqrt[3]{\left(\left(z \cdot x - j \cdot i\right) \cdot \left(z \cdot x - j \cdot i\right)\right) \cdot \left(z \cdot x - j \cdot i\right)}} \]
    8. Applied egg-rr57.1%

      \[\leadsto y \cdot \color{blue}{\sqrt[3]{\left(\left(z \cdot x - j \cdot i\right) \cdot \left(z \cdot x - j \cdot i\right)\right) \cdot \left(z \cdot x - j \cdot i\right)}} \]
    9. Step-by-step derivation
      1. associate-*l*57.1%

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

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

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

        \[\leadsto y \cdot \sqrt[3]{\left(x \cdot z - j \cdot i\right) \cdot \left(\left(x \cdot z - j \cdot i\right) \cdot \left(\color{blue}{x \cdot z} - j \cdot i\right)\right)} \]
    10. Simplified57.1%

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

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

Alternative 2: 81.3% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 89.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]

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

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

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

Alternative 3: 62.9% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.5 \cdot 10^{+200} \lor \neg \left(c \leq -1.4 \cdot 10^{-19}\right) \land c \leq 2.1 \cdot 10^{+105}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -6.49999999999999963e200 or -1.40000000000000001e-19 < c < 2.1000000000000001e105

    1. Initial program 75.7%

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

        \[\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. +-commutative75.7%

        \[\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+75.7%

        \[\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-in75.7%

        \[\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. +-commutative75.7%

        \[\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.5%

        \[\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.5%

        \[\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.5%

        \[\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.5%

        \[\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.5%

        \[\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.5%

        \[\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.5%

        \[\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. Simplified78.1%

      \[\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 c around 0 73.9%

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

    if -6.49999999999999963e200 < c < -1.40000000000000001e-19 or 2.1000000000000001e105 < c

    1. Initial program 62.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-sub62.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-inv62.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. *-commutative62.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-neg62.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. *-commutative62.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. Simplified62.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 71.7%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.5 \cdot 10^{+200} \lor \neg \left(c \leq -1.4 \cdot 10^{-19}\right) \land c \leq 2.1 \cdot 10^{+105}:\\ \;\;\;\;i \cdot \left(t \cdot b\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - y \cdot \left(i \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \end{array} \]

Alternative 4: 67.2% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.85 \cdot 10^{-73} \lor \neg \left(c \leq 3.1 \cdot 10^{+102}\right):\\
\;\;\;\;\left(y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\right) + c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -2.8499999999999999e-73 or 3.09999999999999987e102 < c

    1. Initial program 61.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-sub61.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-inv61.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. *-commutative61.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-neg61.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. *-commutative61.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. Simplified61.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 c around -inf 68.1%

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

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

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

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

    if -2.8499999999999999e-73 < c < 3.09999999999999987e102

    1. Initial program 81.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-neg81.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. +-commutative81.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+81.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-in81.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. +-commutative81.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.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-neg83.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. +-commutative83.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-in83.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-neg83.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-neg83.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. *-commutative83.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. Simplified83.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 c around 0 75.7%

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

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

Alternative 5: 53.8% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\ t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\ t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{if}\;t \leq -1.75 \cdot 10^{+52}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-233}:\\ \;\;\;\;t_2 - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-292}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-248}:\\ \;\;\;\;i \cdot \left(t \cdot b\right) + t_2\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{-85}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* z (- (* x y) (* b c))))
        (t_2 (* j (- (* a c) (* y i))))
        (t_3 (* t (- (* b i) (* x a)))))
   (if (<= t -1.75e+52)
     t_3
     (if (<= t -5.2e-233)
       (- t_2 (* c (* z b)))
       (if (<= t -2.9e-292)
         t_1
         (if (<= t 1.75e-248)
           (+ (* i (* t b)) t_2)
           (if (<= t 3.9e-85)
             t_1
             (if (<= t 1.05e+90) (* a (- (* c j) (* x t))) 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 = z * ((x * y) - (b * c));
	double t_2 = j * ((a * c) - (y * i));
	double t_3 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -1.75e+52) {
		tmp = t_3;
	} else if (t <= -5.2e-233) {
		tmp = t_2 - (c * (z * b));
	} else if (t <= -2.9e-292) {
		tmp = t_1;
	} else if (t <= 1.75e-248) {
		tmp = (i * (t * b)) + t_2;
	} else if (t <= 3.9e-85) {
		tmp = t_1;
	} else if (t <= 1.05e+90) {
		tmp = a * ((c * j) - (x * t));
	} 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 = z * ((x * y) - (b * c))
    t_2 = j * ((a * c) - (y * i))
    t_3 = t * ((b * i) - (x * a))
    if (t <= (-1.75d+52)) then
        tmp = t_3
    else if (t <= (-5.2d-233)) then
        tmp = t_2 - (c * (z * b))
    else if (t <= (-2.9d-292)) then
        tmp = t_1
    else if (t <= 1.75d-248) then
        tmp = (i * (t * b)) + t_2
    else if (t <= 3.9d-85) then
        tmp = t_1
    else if (t <= 1.05d+90) then
        tmp = a * ((c * j) - (x * t))
    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 = z * ((x * y) - (b * c));
	double t_2 = j * ((a * c) - (y * i));
	double t_3 = t * ((b * i) - (x * a));
	double tmp;
	if (t <= -1.75e+52) {
		tmp = t_3;
	} else if (t <= -5.2e-233) {
		tmp = t_2 - (c * (z * b));
	} else if (t <= -2.9e-292) {
		tmp = t_1;
	} else if (t <= 1.75e-248) {
		tmp = (i * (t * b)) + t_2;
	} else if (t <= 3.9e-85) {
		tmp = t_1;
	} else if (t <= 1.05e+90) {
		tmp = a * ((c * j) - (x * t));
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = z * ((x * y) - (b * c))
	t_2 = j * ((a * c) - (y * i))
	t_3 = t * ((b * i) - (x * a))
	tmp = 0
	if t <= -1.75e+52:
		tmp = t_3
	elif t <= -5.2e-233:
		tmp = t_2 - (c * (z * b))
	elif t <= -2.9e-292:
		tmp = t_1
	elif t <= 1.75e-248:
		tmp = (i * (t * b)) + t_2
	elif t <= 3.9e-85:
		tmp = t_1
	elif t <= 1.05e+90:
		tmp = a * ((c * j) - (x * t))
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c)))
	t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	tmp = 0.0
	if (t <= -1.75e+52)
		tmp = t_3;
	elseif (t <= -5.2e-233)
		tmp = Float64(t_2 - Float64(c * Float64(z * b)));
	elseif (t <= -2.9e-292)
		tmp = t_1;
	elseif (t <= 1.75e-248)
		tmp = Float64(Float64(i * Float64(t * b)) + t_2);
	elseif (t <= 3.9e-85)
		tmp = t_1;
	elseif (t <= 1.05e+90)
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = z * ((x * y) - (b * c));
	t_2 = j * ((a * c) - (y * i));
	t_3 = t * ((b * i) - (x * a));
	tmp = 0.0;
	if (t <= -1.75e+52)
		tmp = t_3;
	elseif (t <= -5.2e-233)
		tmp = t_2 - (c * (z * b));
	elseif (t <= -2.9e-292)
		tmp = t_1;
	elseif (t <= 1.75e-248)
		tmp = (i * (t * b)) + t_2;
	elseif (t <= 3.9e-85)
		tmp = t_1;
	elseif (t <= 1.05e+90)
		tmp = a * ((c * j) - (x * t));
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+52], t$95$3, If[LessEqual[t, -5.2e-233], N[(t$95$2 - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.9e-292], t$95$1, If[LessEqual[t, 1.75e-248], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[t, 3.9e-85], t$95$1, If[LessEqual[t, 1.05e+90], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t \leq -5.2 \cdot 10^{-233}:\\
\;\;\;\;t_2 - c \cdot \left(z \cdot b\right)\\

\mathbf{elif}\;t \leq -2.9 \cdot 10^{-292}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;t \leq 3.9 \cdot 10^{-85}:\\
\;\;\;\;t_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -1.75e52 or 1.0499999999999999e90 < t

    1. Initial program 60.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub60.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-inv60.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. *-commutative60.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-neg60.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. *-commutative60.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. Simplified60.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 70.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. *-commutative70.0%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. associate-*r*70.0%

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

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

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

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

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

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

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

    if -1.75e52 < t < -5.1999999999999996e-233

    1. Initial program 75.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub75.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-inv75.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. *-commutative75.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-neg75.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. *-commutative75.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. Simplified75.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 64.7%

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

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

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

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

    if -5.1999999999999996e-233 < t < -2.89999999999999993e-292 or 1.74999999999999991e-248 < t < 3.89999999999999988e-85

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

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

    if -2.89999999999999993e-292 < t < 1.74999999999999991e-248

    1. Initial program 83.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-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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 i around inf 79.0%

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

    if 3.89999999999999988e-85 < t < 1.0499999999999999e90

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.75 \cdot 10^{+52}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;t \leq -5.2 \cdot 10^{-233}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-292}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{-248}:\\ \;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;t \leq 3.9 \cdot 10^{-85}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]

Alternative 6: 51.9% 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)\\ t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -0.06:\\ \;\;\;\;t_3\\ \mathbf{elif}\;c \leq -1.7 \cdot 10^{-92}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;c \leq -3.35 \cdot 10^{-195}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq -7.6 \cdot 10^{-248}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;c \leq 7.2 \cdot 10^{-158}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;c \leq 8.4 \cdot 10^{+110}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \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))))
        (t_3 (* c (- (* a j) (* z b)))))
   (if (<= c -0.06)
     t_3
     (if (<= c -1.7e-92)
       t_2
       (if (<= c -3.35e-195)
         t_1
         (if (<= c -7.6e-248)
           (* i (- (* t b) (* y j)))
           (if (<= c 7.2e-158) t_1 (if (<= c 8.4e+110) t_2 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 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double t_3 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -0.06) {
		tmp = t_3;
	} else if (c <= -1.7e-92) {
		tmp = t_2;
	} else if (c <= -3.35e-195) {
		tmp = t_1;
	} else if (c <= -7.6e-248) {
		tmp = i * ((t * b) - (y * j));
	} else if (c <= 7.2e-158) {
		tmp = t_1;
	} else if (c <= 8.4e+110) {
		tmp = t_2;
	} 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 = t * ((b * i) - (x * a))
    t_2 = y * ((x * z) - (i * j))
    t_3 = c * ((a * j) - (z * b))
    if (c <= (-0.06d0)) then
        tmp = t_3
    else if (c <= (-1.7d-92)) then
        tmp = t_2
    else if (c <= (-3.35d-195)) then
        tmp = t_1
    else if (c <= (-7.6d-248)) then
        tmp = i * ((t * b) - (y * j))
    else if (c <= 7.2d-158) then
        tmp = t_1
    else if (c <= 8.4d+110) then
        tmp = t_2
    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 = t * ((b * i) - (x * a));
	double t_2 = y * ((x * z) - (i * j));
	double t_3 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -0.06) {
		tmp = t_3;
	} else if (c <= -1.7e-92) {
		tmp = t_2;
	} else if (c <= -3.35e-195) {
		tmp = t_1;
	} else if (c <= -7.6e-248) {
		tmp = i * ((t * b) - (y * j));
	} else if (c <= 7.2e-158) {
		tmp = t_1;
	} else if (c <= 8.4e+110) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	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))
	t_3 = c * ((a * j) - (z * b))
	tmp = 0
	if c <= -0.06:
		tmp = t_3
	elif c <= -1.7e-92:
		tmp = t_2
	elif c <= -3.35e-195:
		tmp = t_1
	elif c <= -7.6e-248:
		tmp = i * ((t * b) - (y * j))
	elif c <= 7.2e-158:
		tmp = t_1
	elif c <= 8.4e+110:
		tmp = t_2
	else:
		tmp = t_3
	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)))
	t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -0.06)
		tmp = t_3;
	elseif (c <= -1.7e-92)
		tmp = t_2;
	elseif (c <= -3.35e-195)
		tmp = t_1;
	elseif (c <= -7.6e-248)
		tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j)));
	elseif (c <= 7.2e-158)
		tmp = t_1;
	elseif (c <= 8.4e+110)
		tmp = t_2;
	else
		tmp = t_3;
	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));
	t_3 = c * ((a * j) - (z * b));
	tmp = 0.0;
	if (c <= -0.06)
		tmp = t_3;
	elseif (c <= -1.7e-92)
		tmp = t_2;
	elseif (c <= -3.35e-195)
		tmp = t_1;
	elseif (c <= -7.6e-248)
		tmp = i * ((t * b) - (y * j));
	elseif (c <= 7.2e-158)
		tmp = t_1;
	elseif (c <= 8.4e+110)
		tmp = t_2;
	else
		tmp = t_3;
	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]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -0.06], t$95$3, If[LessEqual[c, -1.7e-92], t$95$2, If[LessEqual[c, -3.35e-195], t$95$1, If[LessEqual[c, -7.6e-248], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.2e-158], t$95$1, If[LessEqual[c, 8.4e+110], t$95$2, t$95$3]]]]]]]]]
\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)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -0.06:\\
\;\;\;\;t_3\\

\mathbf{elif}\;c \leq -1.7 \cdot 10^{-92}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;c \leq -3.35 \cdot 10^{-195}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;c \leq -7.6 \cdot 10^{-248}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\

\mathbf{elif}\;c \leq 7.2 \cdot 10^{-158}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;c \leq 8.4 \cdot 10^{+110}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -0.059999999999999998 or 8.4000000000000006e110 < c

    1. Initial program 62.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-sub62.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-inv62.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. *-commutative62.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-neg62.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. *-commutative62.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. Simplified62.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 c around inf 63.5%

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

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

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

    if -0.059999999999999998 < c < -1.7000000000000001e-92 or 7.19999999999999982e-158 < c < 8.4000000000000006e110

    1. Initial program 73.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub73.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-inv73.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. *-commutative73.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-neg73.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. *-commutative73.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. Simplified73.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 54.7%

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

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

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

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

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

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

    if -1.7000000000000001e-92 < c < -3.3500000000000001e-195 or -7.5999999999999998e-248 < c < 7.19999999999999982e-158

    1. Initial program 83.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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 t around inf 67.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. *-commutative67.5%

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      2. associate-*r*67.5%

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

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

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

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

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      7. unsub-neg67.5%

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

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

    if -3.3500000000000001e-195 < c < -7.5999999999999998e-248

    1. Initial program 80.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub80.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-inv80.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. *-commutative80.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-neg80.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. *-commutative80.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. Simplified80.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 80.1%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j\right) - -1 \cdot \left(t \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv80.1%

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

        \[\leadsto i \cdot \left(-1 \cdot \left(y \cdot j\right) + \color{blue}{1} \cdot \left(t \cdot b\right)\right) \]
      3. *-lft-identity80.1%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -0.06:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.7 \cdot 10^{-92}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;c \leq -3.35 \cdot 10^{-195}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq -7.6 \cdot 10^{-248}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;c \leq 7.2 \cdot 10^{-158}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq 8.4 \cdot 10^{+110}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]

Alternative 7: 53.7% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\ t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{if}\;i \leq -4.2 \cdot 10^{+205}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -2.6 \cdot 10^{-8}:\\ \;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;i \leq -4.4 \cdot 10^{-293}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{-281}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 1.45 \cdot 10^{-179}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 8.7 \cdot 10^{+15}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
   (if (<= i -4.2e+205)
     t_2
     (if (<= i -2.6e-8)
       (+ (* i (* t b)) (* j (- (* a c) (* y i))))
       (if (<= i -4.4e-293)
         t_1
         (if (<= i 4.6e-281)
           (* z (- (* x y) (* b c)))
           (if (<= i 1.45e-179)
             t_1
             (if (<= i 8.7e+15) (* c (- (* a j) (* z b))) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -4.2e+205) {
		tmp = t_2;
	} else if (i <= -2.6e-8) {
		tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
	} else if (i <= -4.4e-293) {
		tmp = t_1;
	} else if (i <= 4.6e-281) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 1.45e-179) {
		tmp = t_1;
	} else if (i <= 8.7e+15) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x * ((y * z) - (t * a))
    t_2 = i * ((t * b) - (y * j))
    if (i <= (-4.2d+205)) then
        tmp = t_2
    else if (i <= (-2.6d-8)) then
        tmp = (i * (t * b)) + (j * ((a * c) - (y * i)))
    else if (i <= (-4.4d-293)) then
        tmp = t_1
    else if (i <= 4.6d-281) then
        tmp = z * ((x * y) - (b * c))
    else if (i <= 1.45d-179) then
        tmp = t_1
    else if (i <= 8.7d+15) then
        tmp = c * ((a * j) - (z * b))
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -4.2e+205) {
		tmp = t_2;
	} else if (i <= -2.6e-8) {
		tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
	} else if (i <= -4.4e-293) {
		tmp = t_1;
	} else if (i <= 4.6e-281) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 1.45e-179) {
		tmp = t_1;
	} else if (i <= 8.7e+15) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = x * ((y * z) - (t * a))
	t_2 = i * ((t * b) - (y * j))
	tmp = 0
	if i <= -4.2e+205:
		tmp = t_2
	elif i <= -2.6e-8:
		tmp = (i * (t * b)) + (j * ((a * c) - (y * i)))
	elif i <= -4.4e-293:
		tmp = t_1
	elif i <= 4.6e-281:
		tmp = z * ((x * y) - (b * c))
	elif i <= 1.45e-179:
		tmp = t_1
	elif i <= 8.7e+15:
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j)))
	tmp = 0.0
	if (i <= -4.2e+205)
		tmp = t_2;
	elseif (i <= -2.6e-8)
		tmp = Float64(Float64(i * Float64(t * b)) + Float64(j * Float64(Float64(a * c) - Float64(y * i))));
	elseif (i <= -4.4e-293)
		tmp = t_1;
	elseif (i <= 4.6e-281)
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	elseif (i <= 1.45e-179)
		tmp = t_1;
	elseif (i <= 8.7e+15)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = x * ((y * z) - (t * a));
	t_2 = i * ((t * b) - (y * j));
	tmp = 0.0;
	if (i <= -4.2e+205)
		tmp = t_2;
	elseif (i <= -2.6e-8)
		tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
	elseif (i <= -4.4e-293)
		tmp = t_1;
	elseif (i <= 4.6e-281)
		tmp = z * ((x * y) - (b * c));
	elseif (i <= 1.45e-179)
		tmp = t_1;
	elseif (i <= 8.7e+15)
		tmp = c * ((a * j) - (z * b));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.2e+205], t$95$2, If[LessEqual[i, -2.6e-8], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.4e-293], t$95$1, If[LessEqual[i, 4.6e-281], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.45e-179], t$95$1, If[LessEqual[i, 8.7e+15], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -2.6 \cdot 10^{-8}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\

\mathbf{elif}\;i \leq -4.4 \cdot 10^{-293}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 4.6 \cdot 10^{-281}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\

\mathbf{elif}\;i \leq 1.45 \cdot 10^{-179}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 8.7 \cdot 10^{+15}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if i < -4.2000000000000001e205 or 8.7e15 < i

    1. Initial program 46.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-sub46.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-inv46.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. *-commutative46.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-neg46.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. *-commutative46.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. Simplified46.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 74.2%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j\right) - -1 \cdot \left(t \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv74.2%

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

        \[\leadsto i \cdot \left(-1 \cdot \left(y \cdot j\right) + \color{blue}{1} \cdot \left(t \cdot b\right)\right) \]
      3. *-lft-identity74.2%

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

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

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

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

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

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

    if -4.2000000000000001e205 < i < -2.6000000000000001e-8

    1. Initial program 72.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub72.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-inv72.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. *-commutative72.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-neg72.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. *-commutative72.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. Simplified72.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 i around inf 69.9%

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

    if -2.6000000000000001e-8 < i < -4.4e-293 or 4.59999999999999978e-281 < i < 1.4499999999999999e-179

    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. cancel-sign-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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 x around inf 61.5%

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

    if -4.4e-293 < i < 4.59999999999999978e-281

    1. Initial program 100.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-sub100.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-inv100.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. *-commutative100.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-neg100.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. *-commutative100.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. Simplified100.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 z around inf 89.7%

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

    if 1.4499999999999999e-179 < i < 8.7e15

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -4.2 \cdot 10^{+205}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq -2.6 \cdot 10^{-8}:\\ \;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;i \leq -4.4 \cdot 10^{-293}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{-281}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 1.45 \cdot 10^{-179}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;i \leq 8.7 \cdot 10^{+15}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]

Alternative 8: 52.4% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\ t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\ t_3 := i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{if}\;i \leq -1.9 \cdot 10^{+53}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;i \leq -2.9 \cdot 10^{-137}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-281}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{-185}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 5.2 \cdot 10^{+18}:\\ \;\;\;\;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 (* c (- (* a j) (* z b))))
        (t_2 (* a (- (* c j) (* x t))))
        (t_3 (* i (- (* t b) (* y j)))))
   (if (<= i -1.9e+53)
     t_3
     (if (<= i -2.9e-137)
       t_2
       (if (<= i 1.7e-281)
         t_1
         (if (<= i 1.05e-185) t_2 (if (<= i 5.2e+18) 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 = c * ((a * j) - (z * b));
	double t_2 = a * ((c * j) - (x * t));
	double t_3 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -1.9e+53) {
		tmp = t_3;
	} else if (i <= -2.9e-137) {
		tmp = t_2;
	} else if (i <= 1.7e-281) {
		tmp = t_1;
	} else if (i <= 1.05e-185) {
		tmp = t_2;
	} else if (i <= 5.2e+18) {
		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 = c * ((a * j) - (z * b))
    t_2 = a * ((c * j) - (x * t))
    t_3 = i * ((t * b) - (y * j))
    if (i <= (-1.9d+53)) then
        tmp = t_3
    else if (i <= (-2.9d-137)) then
        tmp = t_2
    else if (i <= 1.7d-281) then
        tmp = t_1
    else if (i <= 1.05d-185) then
        tmp = t_2
    else if (i <= 5.2d+18) 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 = c * ((a * j) - (z * b));
	double t_2 = a * ((c * j) - (x * t));
	double t_3 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -1.9e+53) {
		tmp = t_3;
	} else if (i <= -2.9e-137) {
		tmp = t_2;
	} else if (i <= 1.7e-281) {
		tmp = t_1;
	} else if (i <= 1.05e-185) {
		tmp = t_2;
	} else if (i <= 5.2e+18) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * ((a * j) - (z * b))
	t_2 = a * ((c * j) - (x * t))
	t_3 = i * ((t * b) - (y * j))
	tmp = 0
	if i <= -1.9e+53:
		tmp = t_3
	elif i <= -2.9e-137:
		tmp = t_2
	elif i <= 1.7e-281:
		tmp = t_1
	elif i <= 1.05e-185:
		tmp = t_2
	elif i <= 5.2e+18:
		tmp = t_1
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	t_3 = Float64(i * Float64(Float64(t * b) - Float64(y * j)))
	tmp = 0.0
	if (i <= -1.9e+53)
		tmp = t_3;
	elseif (i <= -2.9e-137)
		tmp = t_2;
	elseif (i <= 1.7e-281)
		tmp = t_1;
	elseif (i <= 1.05e-185)
		tmp = t_2;
	elseif (i <= 5.2e+18)
		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 = c * ((a * j) - (z * b));
	t_2 = a * ((c * j) - (x * t));
	t_3 = i * ((t * b) - (y * j));
	tmp = 0.0;
	if (i <= -1.9e+53)
		tmp = t_3;
	elseif (i <= -2.9e-137)
		tmp = t_2;
	elseif (i <= 1.7e-281)
		tmp = t_1;
	elseif (i <= 1.05e-185)
		tmp = t_2;
	elseif (i <= 5.2e+18)
		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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+53], t$95$3, If[LessEqual[i, -2.9e-137], t$95$2, If[LessEqual[i, 1.7e-281], t$95$1, If[LessEqual[i, 1.05e-185], t$95$2, If[LessEqual[i, 5.2e+18], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -2.9 \cdot 10^{-137}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;i \leq 1.7 \cdot 10^{-281}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 1.05 \cdot 10^{-185}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;i \leq 5.2 \cdot 10^{+18}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -1.89999999999999999e53 or 5.2e18 < i

    1. Initial program 53.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-sub53.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-inv53.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. *-commutative53.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-neg53.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. *-commutative53.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. Simplified53.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 i around inf 70.5%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j\right) - -1 \cdot \left(t \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv70.5%

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

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

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

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

        \[\leadsto i \cdot \left(t \cdot b + \color{blue}{\left(-y \cdot j\right)}\right) \]
      6. unsub-neg70.5%

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

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

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

    if -1.89999999999999999e53 < i < -2.89999999999999985e-137 or 1.7e-281 < i < 1.05e-185

    1. Initial program 79.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-sub79.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-inv79.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. *-commutative79.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-neg79.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. *-commutative79.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. Simplified79.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 54.1%

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

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

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

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

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

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

    if -2.89999999999999985e-137 < i < 1.7e-281 or 1.05e-185 < i < 5.2e18

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.9 \cdot 10^{+53}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq -2.9 \cdot 10^{-137}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-281}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{-185}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;i \leq 5.2 \cdot 10^{+18}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]

Alternative 9: 52.6% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\ t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{if}\;i \leq -2.6 \cdot 10^{+63}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq 8.2 \cdot 10^{-280}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 8.8 \cdot 10^{-181}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 3.5 \cdot 10^{-19}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{+22}:\\ \;\;\;\;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 (* a (- (* c j) (* x t)))) (t_2 (* i (- (* t b) (* y j)))))
   (if (<= i -2.6e+63)
     t_2
     (if (<= i 8.2e-280)
       (* z (- (* x y) (* b c)))
       (if (<= i 8.8e-181)
         t_1
         (if (<= i 3.5e-19)
           (* c (- (* a j) (* z b)))
           (if (<= i 4.6e+22) 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 = a * ((c * j) - (x * t));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -2.6e+63) {
		tmp = t_2;
	} else if (i <= 8.2e-280) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 8.8e-181) {
		tmp = t_1;
	} else if (i <= 3.5e-19) {
		tmp = c * ((a * j) - (z * b));
	} else if (i <= 4.6e+22) {
		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 = a * ((c * j) - (x * t))
    t_2 = i * ((t * b) - (y * j))
    if (i <= (-2.6d+63)) then
        tmp = t_2
    else if (i <= 8.2d-280) then
        tmp = z * ((x * y) - (b * c))
    else if (i <= 8.8d-181) then
        tmp = t_1
    else if (i <= 3.5d-19) then
        tmp = c * ((a * j) - (z * b))
    else if (i <= 4.6d+22) 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 = a * ((c * j) - (x * t));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -2.6e+63) {
		tmp = t_2;
	} else if (i <= 8.2e-280) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 8.8e-181) {
		tmp = t_1;
	} else if (i <= 3.5e-19) {
		tmp = c * ((a * j) - (z * b));
	} else if (i <= 4.6e+22) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * ((c * j) - (x * t))
	t_2 = i * ((t * b) - (y * j))
	tmp = 0
	if i <= -2.6e+63:
		tmp = t_2
	elif i <= 8.2e-280:
		tmp = z * ((x * y) - (b * c))
	elif i <= 8.8e-181:
		tmp = t_1
	elif i <= 3.5e-19:
		tmp = c * ((a * j) - (z * b))
	elif i <= 4.6e+22:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j)))
	tmp = 0.0
	if (i <= -2.6e+63)
		tmp = t_2;
	elseif (i <= 8.2e-280)
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	elseif (i <= 8.8e-181)
		tmp = t_1;
	elseif (i <= 3.5e-19)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (i <= 4.6e+22)
		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 = a * ((c * j) - (x * t));
	t_2 = i * ((t * b) - (y * j));
	tmp = 0.0;
	if (i <= -2.6e+63)
		tmp = t_2;
	elseif (i <= 8.2e-280)
		tmp = z * ((x * y) - (b * c));
	elseif (i <= 8.8e-181)
		tmp = t_1;
	elseif (i <= 3.5e-19)
		tmp = c * ((a * j) - (z * b));
	elseif (i <= 4.6e+22)
		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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+63], t$95$2, If[LessEqual[i, 8.2e-280], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.8e-181], t$95$1, If[LessEqual[i, 3.5e-19], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.6e+22], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq 8.2 \cdot 10^{-280}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\

\mathbf{elif}\;i \leq 8.8 \cdot 10^{-181}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;i \leq 4.6 \cdot 10^{+22}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -2.6000000000000001e63 or 4.6000000000000004e22 < i

    1. Initial program 56.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub56.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-inv56.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. *-commutative56.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-neg56.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. *-commutative56.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. Simplified56.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 i around inf 72.5%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j\right) - -1 \cdot \left(t \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv72.5%

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

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

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

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

        \[\leadsto i \cdot \left(t \cdot b + \color{blue}{\left(-y \cdot j\right)}\right) \]
      6. unsub-neg72.5%

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

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

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

    if -2.6000000000000001e63 < i < 8.2000000000000003e-280

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

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

    if 8.2000000000000003e-280 < i < 8.79999999999999988e-181 or 3.50000000000000015e-19 < i < 4.6000000000000004e22

    1. Initial program 84.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-sub84.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-inv84.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. *-commutative84.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-neg84.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. *-commutative84.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. Simplified84.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 a around inf 65.9%

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

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

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

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

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

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

    if 8.79999999999999988e-181 < i < 3.50000000000000015e-19

    1. Initial program 80.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub80.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-inv80.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. *-commutative80.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-neg80.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. *-commutative80.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. Simplified80.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 c around inf 57.9%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.6 \cdot 10^{+63}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq 8.2 \cdot 10^{-280}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 8.8 \cdot 10^{-181}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;i \leq 3.5 \cdot 10^{-19}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{+22}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]

Alternative 10: 52.3% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\ t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{if}\;i \leq -4.7 \cdot 10^{+64}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-293}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 1.85 \cdot 10^{-279}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-178}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq 1.45 \cdot 10^{+21}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* t b) (* y j)))))
   (if (<= i -4.7e+64)
     t_2
     (if (<= i -3.8e-293)
       t_1
       (if (<= i 1.85e-279)
         (* z (- (* x y) (* b c)))
         (if (<= i 1.7e-178)
           t_1
           (if (<= i 1.45e+21) (* c (- (* a j) (* z b))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -4.7e+64) {
		tmp = t_2;
	} else if (i <= -3.8e-293) {
		tmp = t_1;
	} else if (i <= 1.85e-279) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 1.7e-178) {
		tmp = t_1;
	} else if (i <= 1.45e+21) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = x * ((y * z) - (t * a))
    t_2 = i * ((t * b) - (y * j))
    if (i <= (-4.7d+64)) then
        tmp = t_2
    else if (i <= (-3.8d-293)) then
        tmp = t_1
    else if (i <= 1.85d-279) then
        tmp = z * ((x * y) - (b * c))
    else if (i <= 1.7d-178) then
        tmp = t_1
    else if (i <= 1.45d+21) then
        tmp = c * ((a * j) - (z * b))
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = i * ((t * b) - (y * j));
	double tmp;
	if (i <= -4.7e+64) {
		tmp = t_2;
	} else if (i <= -3.8e-293) {
		tmp = t_1;
	} else if (i <= 1.85e-279) {
		tmp = z * ((x * y) - (b * c));
	} else if (i <= 1.7e-178) {
		tmp = t_1;
	} else if (i <= 1.45e+21) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = x * ((y * z) - (t * a))
	t_2 = i * ((t * b) - (y * j))
	tmp = 0
	if i <= -4.7e+64:
		tmp = t_2
	elif i <= -3.8e-293:
		tmp = t_1
	elif i <= 1.85e-279:
		tmp = z * ((x * y) - (b * c))
	elif i <= 1.7e-178:
		tmp = t_1
	elif i <= 1.45e+21:
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j)))
	tmp = 0.0
	if (i <= -4.7e+64)
		tmp = t_2;
	elseif (i <= -3.8e-293)
		tmp = t_1;
	elseif (i <= 1.85e-279)
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	elseif (i <= 1.7e-178)
		tmp = t_1;
	elseif (i <= 1.45e+21)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = x * ((y * z) - (t * a));
	t_2 = i * ((t * b) - (y * j));
	tmp = 0.0;
	if (i <= -4.7e+64)
		tmp = t_2;
	elseif (i <= -3.8e-293)
		tmp = t_1;
	elseif (i <= 1.85e-279)
		tmp = z * ((x * y) - (b * c));
	elseif (i <= 1.7e-178)
		tmp = t_1;
	elseif (i <= 1.45e+21)
		tmp = c * ((a * j) - (z * b));
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.7e+64], t$95$2, If[LessEqual[i, -3.8e-293], t$95$1, If[LessEqual[i, 1.85e-279], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.7e-178], t$95$1, If[LessEqual[i, 1.45e+21], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -3.8 \cdot 10^{-293}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 1.85 \cdot 10^{-279}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\

\mathbf{elif}\;i \leq 1.7 \cdot 10^{-178}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;i \leq 1.45 \cdot 10^{+21}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -4.70000000000000029e64 or 1.45e21 < i

    1. Initial program 56.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub56.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-inv56.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. *-commutative56.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-neg56.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. *-commutative56.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. Simplified56.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 i around inf 72.5%

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j\right) - -1 \cdot \left(t \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv72.5%

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

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

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

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

        \[\leadsto i \cdot \left(t \cdot b + \color{blue}{\left(-y \cdot j\right)}\right) \]
      6. unsub-neg72.5%

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

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

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

    if -4.70000000000000029e64 < i < -3.8e-293 or 1.85000000000000019e-279 < i < 1.69999999999999986e-178

    1. Initial program 79.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub79.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-inv79.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. *-commutative79.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-neg79.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. *-commutative79.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. Simplified79.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 x around inf 56.7%

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

    if -3.8e-293 < i < 1.85000000000000019e-279

    1. Initial program 100.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-sub100.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-inv100.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. *-commutative100.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-neg100.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. *-commutative100.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. Simplified100.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 z around inf 89.7%

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

    if 1.69999999999999986e-178 < i < 1.45e21

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -4.7 \cdot 10^{+64}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq -3.8 \cdot 10^{-293}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;i \leq 1.85 \cdot 10^{-279}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 1.7 \cdot 10^{-178}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;i \leq 1.45 \cdot 10^{+21}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]

Alternative 11: 30.4% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;i \leq -1.2 \cdot 10^{+142}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -5.1 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -5 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -4.3 \cdot 10^{-266}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 1.95 \cdot 10^{+17}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;i \leq 1.62 \cdot 10^{+143}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (* t i))))
   (if (<= i -1.2e+142)
     t_1
     (if (<= i -5.1e+73)
       (* j (* y (- i)))
       (if (<= i -5e+27)
         t_1
         (if (<= i -4.3e-266)
           (* x (* y z))
           (if (<= i 1.95e+17)
             (* a (* x (- t)))
             (if (<= i 1.62e+143) t_1 (* y (* 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 = b * (t * i);
	double tmp;
	if (i <= -1.2e+142) {
		tmp = t_1;
	} else if (i <= -5.1e+73) {
		tmp = j * (y * -i);
	} else if (i <= -5e+27) {
		tmp = t_1;
	} else if (i <= -4.3e-266) {
		tmp = x * (y * z);
	} else if (i <= 1.95e+17) {
		tmp = a * (x * -t);
	} else if (i <= 1.62e+143) {
		tmp = t_1;
	} else {
		tmp = y * (i * -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 = b * (t * i)
    if (i <= (-1.2d+142)) then
        tmp = t_1
    else if (i <= (-5.1d+73)) then
        tmp = j * (y * -i)
    else if (i <= (-5d+27)) then
        tmp = t_1
    else if (i <= (-4.3d-266)) then
        tmp = x * (y * z)
    else if (i <= 1.95d+17) then
        tmp = a * (x * -t)
    else if (i <= 1.62d+143) then
        tmp = t_1
    else
        tmp = y * (i * -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 = b * (t * i);
	double tmp;
	if (i <= -1.2e+142) {
		tmp = t_1;
	} else if (i <= -5.1e+73) {
		tmp = j * (y * -i);
	} else if (i <= -5e+27) {
		tmp = t_1;
	} else if (i <= -4.3e-266) {
		tmp = x * (y * z);
	} else if (i <= 1.95e+17) {
		tmp = a * (x * -t);
	} else if (i <= 1.62e+143) {
		tmp = t_1;
	} else {
		tmp = y * (i * -j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (t * i)
	tmp = 0
	if i <= -1.2e+142:
		tmp = t_1
	elif i <= -5.1e+73:
		tmp = j * (y * -i)
	elif i <= -5e+27:
		tmp = t_1
	elif i <= -4.3e-266:
		tmp = x * (y * z)
	elif i <= 1.95e+17:
		tmp = a * (x * -t)
	elif i <= 1.62e+143:
		tmp = t_1
	else:
		tmp = y * (i * -j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(t * i))
	tmp = 0.0
	if (i <= -1.2e+142)
		tmp = t_1;
	elseif (i <= -5.1e+73)
		tmp = Float64(j * Float64(y * Float64(-i)));
	elseif (i <= -5e+27)
		tmp = t_1;
	elseif (i <= -4.3e-266)
		tmp = Float64(x * Float64(y * z));
	elseif (i <= 1.95e+17)
		tmp = Float64(a * Float64(x * Float64(-t)));
	elseif (i <= 1.62e+143)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(i * Float64(-j)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * (t * i);
	tmp = 0.0;
	if (i <= -1.2e+142)
		tmp = t_1;
	elseif (i <= -5.1e+73)
		tmp = j * (y * -i);
	elseif (i <= -5e+27)
		tmp = t_1;
	elseif (i <= -4.3e-266)
		tmp = x * (y * z);
	elseif (i <= 1.95e+17)
		tmp = a * (x * -t);
	elseif (i <= 1.62e+143)
		tmp = t_1;
	else
		tmp = y * (i * -j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.2e+142], t$95$1, If[LessEqual[i, -5.1e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5e+27], t$95$1, If[LessEqual[i, -4.3e-266], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.95e+17], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.62e+143], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;i \leq -5 \cdot 10^{+27}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;i \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;i \leq 1.62 \cdot 10^{+143}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if i < -1.2e142 or -5.10000000000000024e73 < i < -4.99999999999999979e27 or 1.95e17 < i < 1.62e143

    1. Initial program 58.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-sub58.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-inv58.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. *-commutative58.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-neg58.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. *-commutative58.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. Simplified58.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 b around inf 57.2%

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

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

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

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

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

    if -1.2e142 < i < -5.10000000000000024e73

    1. Initial program 84.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub84.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-inv84.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. *-commutative84.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-neg84.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. *-commutative84.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. Simplified84.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 63.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(-\color{blue}{j \cdot i}\right) \]
      4. distribute-rgt-neg-out41.1%

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

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

        \[\leadsto \color{blue}{\left(j \cdot y\right)} \cdot \left(-i\right) \]
      7. associate-*l*55.1%

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

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

    if -4.99999999999999979e27 < i < -4.30000000000000028e-266

    1. Initial program 77.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub77.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-inv77.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. *-commutative77.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-neg77.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. *-commutative77.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. Simplified77.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 y around inf 44.4%

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

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

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

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

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

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

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

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

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

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

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

    if -4.30000000000000028e-266 < i < 1.95e17

    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. cancel-sign-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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.9%

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

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

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

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

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

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

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

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

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

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

    if 1.62e143 < i

    1. Initial program 41.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-sub41.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-inv41.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. *-commutative41.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-neg41.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. *-commutative41.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. Simplified41.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 y around inf 60.7%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.2 \cdot 10^{+142}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -5.1 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -5 \cdot 10^{+27}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -4.3 \cdot 10^{-266}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 1.95 \cdot 10^{+17}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;i \leq 1.62 \cdot 10^{+143}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \end{array} \]

Alternative 12: 30.5% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;i \leq -2.1 \cdot 10^{+142}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -8.8 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -4.8 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -8 \cdot 10^{-269}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 1.08 \cdot 10^{+18}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;i \leq 3.45 \cdot 10^{+137}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (* t i))))
   (if (<= i -2.1e+142)
     t_1
     (if (<= i -8.8e+73)
       (* j (* y (- i)))
       (if (<= i -4.8e+27)
         t_1
         (if (<= i -8e-269)
           (* x (* y z))
           (if (<= i 1.08e+18)
             (* x (* t (- a)))
             (if (<= i 3.45e+137) t_1 (* y (* 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 = b * (t * i);
	double tmp;
	if (i <= -2.1e+142) {
		tmp = t_1;
	} else if (i <= -8.8e+73) {
		tmp = j * (y * -i);
	} else if (i <= -4.8e+27) {
		tmp = t_1;
	} else if (i <= -8e-269) {
		tmp = x * (y * z);
	} else if (i <= 1.08e+18) {
		tmp = x * (t * -a);
	} else if (i <= 3.45e+137) {
		tmp = t_1;
	} else {
		tmp = y * (i * -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 = b * (t * i)
    if (i <= (-2.1d+142)) then
        tmp = t_1
    else if (i <= (-8.8d+73)) then
        tmp = j * (y * -i)
    else if (i <= (-4.8d+27)) then
        tmp = t_1
    else if (i <= (-8d-269)) then
        tmp = x * (y * z)
    else if (i <= 1.08d+18) then
        tmp = x * (t * -a)
    else if (i <= 3.45d+137) then
        tmp = t_1
    else
        tmp = y * (i * -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 = b * (t * i);
	double tmp;
	if (i <= -2.1e+142) {
		tmp = t_1;
	} else if (i <= -8.8e+73) {
		tmp = j * (y * -i);
	} else if (i <= -4.8e+27) {
		tmp = t_1;
	} else if (i <= -8e-269) {
		tmp = x * (y * z);
	} else if (i <= 1.08e+18) {
		tmp = x * (t * -a);
	} else if (i <= 3.45e+137) {
		tmp = t_1;
	} else {
		tmp = y * (i * -j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (t * i)
	tmp = 0
	if i <= -2.1e+142:
		tmp = t_1
	elif i <= -8.8e+73:
		tmp = j * (y * -i)
	elif i <= -4.8e+27:
		tmp = t_1
	elif i <= -8e-269:
		tmp = x * (y * z)
	elif i <= 1.08e+18:
		tmp = x * (t * -a)
	elif i <= 3.45e+137:
		tmp = t_1
	else:
		tmp = y * (i * -j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(t * i))
	tmp = 0.0
	if (i <= -2.1e+142)
		tmp = t_1;
	elseif (i <= -8.8e+73)
		tmp = Float64(j * Float64(y * Float64(-i)));
	elseif (i <= -4.8e+27)
		tmp = t_1;
	elseif (i <= -8e-269)
		tmp = Float64(x * Float64(y * z));
	elseif (i <= 1.08e+18)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif (i <= 3.45e+137)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(i * Float64(-j)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * (t * i);
	tmp = 0.0;
	if (i <= -2.1e+142)
		tmp = t_1;
	elseif (i <= -8.8e+73)
		tmp = j * (y * -i);
	elseif (i <= -4.8e+27)
		tmp = t_1;
	elseif (i <= -8e-269)
		tmp = x * (y * z);
	elseif (i <= 1.08e+18)
		tmp = x * (t * -a);
	elseif (i <= 3.45e+137)
		tmp = t_1;
	else
		tmp = y * (i * -j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.1e+142], t$95$1, If[LessEqual[i, -8.8e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.8e+27], t$95$1, If[LessEqual[i, -8e-269], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.08e+18], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.45e+137], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;i \leq -4.8 \cdot 10^{+27}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;i \leq 1.08 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;i \leq 3.45 \cdot 10^{+137}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if i < -2.1e142 or -8.8e73 < i < -4.79999999999999995e27 or 1.08e18 < i < 3.4500000000000002e137

    1. Initial program 58.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-sub58.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-inv58.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. *-commutative58.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-neg58.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. *-commutative58.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. Simplified58.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 b around inf 57.2%

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

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

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

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

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

    if -2.1e142 < i < -8.8e73

    1. Initial program 84.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub84.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-inv84.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. *-commutative84.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-neg84.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. *-commutative84.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. Simplified84.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 63.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(-\color{blue}{j \cdot i}\right) \]
      4. distribute-rgt-neg-out41.1%

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

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

        \[\leadsto \color{blue}{\left(j \cdot y\right)} \cdot \left(-i\right) \]
      7. associate-*l*55.1%

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

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

    if -4.79999999999999995e27 < i < -7.9999999999999997e-269

    1. Initial program 77.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub77.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-inv77.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. *-commutative77.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-neg77.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. *-commutative77.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. Simplified77.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 y around inf 44.4%

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

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

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

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

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

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

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

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

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

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

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

    if -7.9999999999999997e-269 < i < 1.08e18

    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. cancel-sign-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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 78.9%

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

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

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

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

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

        \[\leadsto \color{blue}{-a \cdot \left(t \cdot x\right)} \]
      2. associate-*r*34.2%

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

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

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

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

    if 3.4500000000000002e137 < i

    1. Initial program 41.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-sub41.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-inv41.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. *-commutative41.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-neg41.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. *-commutative41.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. Simplified41.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 y around inf 60.7%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.1 \cdot 10^{+142}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -8.8 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -4.8 \cdot 10^{+27}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -8 \cdot 10^{-269}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 1.08 \cdot 10^{+18}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;i \leq 3.45 \cdot 10^{+137}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \end{array} \]

Alternative 13: 30.5% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;i \leq -4.5 \cdot 10^{+142}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -7.8 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -7.5 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;i \leq -1.6 \cdot 10^{-265}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 69000000000000:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;i \leq 6.4 \cdot 10^{+137}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (* t i))))
   (if (<= i -4.5e+142)
     t_1
     (if (<= i -7.8e+73)
       (* j (* y (- i)))
       (if (<= i -7.5e+27)
         t_1
         (if (<= i -1.6e-265)
           (* x (* y z))
           (if (<= i 69000000000000.0)
             (* x (* t (- a)))
             (if (<= i 6.4e+137) t_1 (* i (* y (- j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * (t * i);
	double tmp;
	if (i <= -4.5e+142) {
		tmp = t_1;
	} else if (i <= -7.8e+73) {
		tmp = j * (y * -i);
	} else if (i <= -7.5e+27) {
		tmp = t_1;
	} else if (i <= -1.6e-265) {
		tmp = x * (y * z);
	} else if (i <= 69000000000000.0) {
		tmp = x * (t * -a);
	} else if (i <= 6.4e+137) {
		tmp = t_1;
	} else {
		tmp = i * (y * -j);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = b * (t * i)
    if (i <= (-4.5d+142)) then
        tmp = t_1
    else if (i <= (-7.8d+73)) then
        tmp = j * (y * -i)
    else if (i <= (-7.5d+27)) then
        tmp = t_1
    else if (i <= (-1.6d-265)) then
        tmp = x * (y * z)
    else if (i <= 69000000000000.0d0) then
        tmp = x * (t * -a)
    else if (i <= 6.4d+137) then
        tmp = t_1
    else
        tmp = i * (y * -j)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * (t * i);
	double tmp;
	if (i <= -4.5e+142) {
		tmp = t_1;
	} else if (i <= -7.8e+73) {
		tmp = j * (y * -i);
	} else if (i <= -7.5e+27) {
		tmp = t_1;
	} else if (i <= -1.6e-265) {
		tmp = x * (y * z);
	} else if (i <= 69000000000000.0) {
		tmp = x * (t * -a);
	} else if (i <= 6.4e+137) {
		tmp = t_1;
	} else {
		tmp = i * (y * -j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (t * i)
	tmp = 0
	if i <= -4.5e+142:
		tmp = t_1
	elif i <= -7.8e+73:
		tmp = j * (y * -i)
	elif i <= -7.5e+27:
		tmp = t_1
	elif i <= -1.6e-265:
		tmp = x * (y * z)
	elif i <= 69000000000000.0:
		tmp = x * (t * -a)
	elif i <= 6.4e+137:
		tmp = t_1
	else:
		tmp = i * (y * -j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(t * i))
	tmp = 0.0
	if (i <= -4.5e+142)
		tmp = t_1;
	elseif (i <= -7.8e+73)
		tmp = Float64(j * Float64(y * Float64(-i)));
	elseif (i <= -7.5e+27)
		tmp = t_1;
	elseif (i <= -1.6e-265)
		tmp = Float64(x * Float64(y * z));
	elseif (i <= 69000000000000.0)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif (i <= 6.4e+137)
		tmp = t_1;
	else
		tmp = Float64(i * Float64(y * Float64(-j)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * (t * i);
	tmp = 0.0;
	if (i <= -4.5e+142)
		tmp = t_1;
	elseif (i <= -7.8e+73)
		tmp = j * (y * -i);
	elseif (i <= -7.5e+27)
		tmp = t_1;
	elseif (i <= -1.6e-265)
		tmp = x * (y * z);
	elseif (i <= 69000000000000.0)
		tmp = x * (t * -a);
	elseif (i <= 6.4e+137)
		tmp = t_1;
	else
		tmp = i * (y * -j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.5e+142], t$95$1, If[LessEqual[i, -7.8e+73], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.5e+27], t$95$1, If[LessEqual[i, -1.6e-265], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 69000000000000.0], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.4e+137], t$95$1, N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;i \leq -7.5 \cdot 10^{+27}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;i \leq 69000000000000:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;i \leq 6.4 \cdot 10^{+137}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if i < -4.4999999999999999e142 or -7.8000000000000002e73 < i < -7.5000000000000002e27 or 6.9e13 < i < 6.40000000000000038e137

    1. Initial program 58.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-sub58.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-inv58.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. *-commutative58.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-neg58.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. *-commutative58.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. Simplified58.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 b around inf 57.2%

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

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

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

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

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

    if -4.4999999999999999e142 < i < -7.8000000000000002e73

    1. Initial program 84.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub84.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-inv84.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. *-commutative84.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-neg84.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. *-commutative84.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. Simplified84.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 63.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(-\color{blue}{j \cdot i}\right) \]
      4. distribute-rgt-neg-out41.1%

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

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

        \[\leadsto \color{blue}{\left(j \cdot y\right)} \cdot \left(-i\right) \]
      7. associate-*l*55.1%

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

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

    if -7.5000000000000002e27 < i < -1.6e-265

    1. Initial program 77.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub77.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-inv77.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. *-commutative77.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-neg77.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. *-commutative77.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. Simplified77.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 y around inf 44.4%

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

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

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

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

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

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

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

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

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

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

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

    if -1.6e-265 < i < 6.9e13

    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. cancel-sign-sub83.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-inv83.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. *-commutative83.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-neg83.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. *-commutative83.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. Simplified83.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 78.9%

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

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

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

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

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

        \[\leadsto \color{blue}{-a \cdot \left(t \cdot x\right)} \]
      2. associate-*r*34.2%

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

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

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

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

    if 6.40000000000000038e137 < i

    1. Initial program 41.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-sub41.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-inv41.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. *-commutative41.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-neg41.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. *-commutative41.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. Simplified41.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 c around -inf 50.4%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -4.5 \cdot 10^{+142}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -7.8 \cdot 10^{+73}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq -7.5 \cdot 10^{+27}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;i \leq -1.6 \cdot 10^{-265}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;i \leq 69000000000000:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;i \leq 6.4 \cdot 10^{+137}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \end{array} \]

Alternative 14: 29.8% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ t_2 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;z \leq -1 \cdot 10^{+152}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;z \leq -3.9 \cdot 10^{-7}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-111}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{+16}:\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (* x z))) (t_2 (* c (* a j))))
   (if (<= z -1e+152)
     (* b (* z (- c)))
     (if (<= z -3.9e-7)
       t_1
       (if (<= z -3e-111)
         t_2
         (if (<= z -1.35e-223) (* b (* t i)) (if (<= z 8.2e+16) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = c * (a * j);
	double tmp;
	if (z <= -1e+152) {
		tmp = b * (z * -c);
	} else if (z <= -3.9e-7) {
		tmp = t_1;
	} else if (z <= -3e-111) {
		tmp = t_2;
	} else if (z <= -1.35e-223) {
		tmp = b * (t * i);
	} else if (z <= 8.2e+16) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = y * (x * z)
    t_2 = c * (a * j)
    if (z <= (-1d+152)) then
        tmp = b * (z * -c)
    else if (z <= (-3.9d-7)) then
        tmp = t_1
    else if (z <= (-3d-111)) then
        tmp = t_2
    else if (z <= (-1.35d-223)) then
        tmp = b * (t * i)
    else if (z <= 8.2d+16) then
        tmp = t_2
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * (x * z);
	double t_2 = c * (a * j);
	double tmp;
	if (z <= -1e+152) {
		tmp = b * (z * -c);
	} else if (z <= -3.9e-7) {
		tmp = t_1;
	} else if (z <= -3e-111) {
		tmp = t_2;
	} else if (z <= -1.35e-223) {
		tmp = b * (t * i);
	} else if (z <= 8.2e+16) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	t_2 = c * (a * j)
	tmp = 0
	if z <= -1e+152:
		tmp = b * (z * -c)
	elif z <= -3.9e-7:
		tmp = t_1
	elif z <= -3e-111:
		tmp = t_2
	elif z <= -1.35e-223:
		tmp = b * (t * i)
	elif z <= 8.2e+16:
		tmp = t_2
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	t_2 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (z <= -1e+152)
		tmp = Float64(b * Float64(z * Float64(-c)));
	elseif (z <= -3.9e-7)
		tmp = t_1;
	elseif (z <= -3e-111)
		tmp = t_2;
	elseif (z <= -1.35e-223)
		tmp = Float64(b * Float64(t * i));
	elseif (z <= 8.2e+16)
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	t_2 = c * (a * j);
	tmp = 0.0;
	if (z <= -1e+152)
		tmp = b * (z * -c);
	elseif (z <= -3.9e-7)
		tmp = t_1;
	elseif (z <= -3e-111)
		tmp = t_2;
	elseif (z <= -1.35e-223)
		tmp = b * (t * i);
	elseif (z <= 8.2e+16)
		tmp = t_2;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1e+152], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.9e-7], t$95$1, If[LessEqual[z, -3e-111], t$95$2, If[LessEqual[z, -1.35e-223], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+16], t$95$2, t$95$1]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -3.9 \cdot 10^{-7}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -3 \cdot 10^{-111}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{elif}\;z \leq 8.2 \cdot 10^{+16}:\\
\;\;\;\;t_2\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1e152

    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 b around inf 61.5%

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

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

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

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot z\right)} \cdot b \]
      3. *-commutative53.6%

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

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

    if -1e152 < z < -3.90000000000000025e-7 or 8.2e16 < z

    1. Initial program 68.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-sub68.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-inv68.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. *-commutative68.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-neg68.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. *-commutative68.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. Simplified68.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 y around inf 57.1%

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

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

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

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

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

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

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

    if -3.90000000000000025e-7 < z < -3.00000000000000008e-111 or -1.34999999999999994e-223 < z < 8.2e16

    1. Initial program 78.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-sub78.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-inv78.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. *-commutative78.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-neg78.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. *-commutative78.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. Simplified78.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 54.2%

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

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

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

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

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

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

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

    if -3.00000000000000008e-111 < z < -1.34999999999999994e-223

    1. Initial program 66.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-sub66.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-inv66.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. *-commutative66.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-neg66.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. *-commutative66.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. Simplified66.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 b around inf 41.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1 \cdot 10^{+152}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;z \leq -3.9 \cdot 10^{-7}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-111}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;z \leq -1.35 \cdot 10^{-223}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 8.2 \cdot 10^{+16}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]

Alternative 15: 41.7% accurate, 1.9× speedup?

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

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

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

\mathbf{elif}\;b \leq 2.1 \cdot 10^{+187}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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


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

    1. Initial program 50.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-sub50.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-inv50.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. *-commutative50.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-neg50.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. *-commutative50.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. Simplified50.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 55.0%

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

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

    if -3.1999999999999998e254 < b < -3.8000000000000001e157

    1. Initial program 86.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. cancel-sign-sub86.8%

        \[\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-inv86.8%

        \[\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. *-commutative86.8%

        \[\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-neg86.8%

        \[\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. *-commutative86.8%

        \[\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. Simplified86.8%

      \[\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 84.8%

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

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

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

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot z\right)} \cdot b \]
      3. *-commutative55.4%

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

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

    if -3.8000000000000001e157 < b < 2.1e187

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

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

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

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

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

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

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

    if 2.1e187 < b

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+254}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;b \leq -3.8 \cdot 10^{+157}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{+187}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]

Alternative 16: 29.9% accurate, 2.2× speedup?

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

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

\mathbf{elif}\;z \leq -4.5 \cdot 10^{-170}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -4.2 \cdot 10^{-223}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;z \leq 2.05 \cdot 10^{+17}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.35e-7 or 2.05e17 < z

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub65.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-inv65.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. *-commutative65.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-neg65.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. *-commutative65.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. Simplified65.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 54.4%

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

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

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

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

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

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

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

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

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

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

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

    if -2.35e-7 < z < -4.50000000000000002e-170 or -4.19999999999999965e-223 < z < 2.05e17

    1. Initial program 76.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.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-inv76.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. *-commutative76.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-neg76.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. *-commutative76.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. Simplified76.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 a around inf 52.7%

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

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

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

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

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

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

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

    if -4.50000000000000002e-170 < z < -4.19999999999999965e-223

    1. Initial program 74.8%

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

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

      \[\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 51.7%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.35 \cdot 10^{-7}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -4.5 \cdot 10^{-170}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;z \leq -4.2 \cdot 10^{-223}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;z \leq 2.05 \cdot 10^{+17}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]

Alternative 17: 29.6% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;z \leq -3.3 \cdot 10^{-7}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -1.55 \cdot 10^{-171}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -9.8 \cdot 10^{-226}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+16}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* c (* a j))))
   (if (<= z -3.3e-7)
     (* x (* y z))
     (if (<= z -1.55e-171)
       t_1
       (if (<= z -9.8e-226)
         (* t (* b i))
         (if (<= z 5.2e+16) t_1 (* y (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (a * j);
	double tmp;
	if (z <= -3.3e-7) {
		tmp = x * (y * z);
	} else if (z <= -1.55e-171) {
		tmp = t_1;
	} else if (z <= -9.8e-226) {
		tmp = t * (b * i);
	} else if (z <= 5.2e+16) {
		tmp = t_1;
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = c * (a * j)
    if (z <= (-3.3d-7)) then
        tmp = x * (y * z)
    else if (z <= (-1.55d-171)) then
        tmp = t_1
    else if (z <= (-9.8d-226)) then
        tmp = t * (b * i)
    else if (z <= 5.2d+16) then
        tmp = t_1
    else
        tmp = y * (x * z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (a * j);
	double tmp;
	if (z <= -3.3e-7) {
		tmp = x * (y * z);
	} else if (z <= -1.55e-171) {
		tmp = t_1;
	} else if (z <= -9.8e-226) {
		tmp = t * (b * i);
	} else if (z <= 5.2e+16) {
		tmp = t_1;
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * (a * j)
	tmp = 0
	if z <= -3.3e-7:
		tmp = x * (y * z)
	elif z <= -1.55e-171:
		tmp = t_1
	elif z <= -9.8e-226:
		tmp = t * (b * i)
	elif z <= 5.2e+16:
		tmp = t_1
	else:
		tmp = y * (x * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (z <= -3.3e-7)
		tmp = Float64(x * Float64(y * z));
	elseif (z <= -1.55e-171)
		tmp = t_1;
	elseif (z <= -9.8e-226)
		tmp = Float64(t * Float64(b * i));
	elseif (z <= 5.2e+16)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(x * z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = c * (a * j);
	tmp = 0.0;
	if (z <= -3.3e-7)
		tmp = x * (y * z);
	elseif (z <= -1.55e-171)
		tmp = t_1;
	elseif (z <= -9.8e-226)
		tmp = t * (b * i);
	elseif (z <= 5.2e+16)
		tmp = t_1;
	else
		tmp = y * (x * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e-7], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.55e-171], t$95$1, If[LessEqual[z, -9.8e-226], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+16], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -1.55 \cdot 10^{-171}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -9.8 \cdot 10^{-226}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;z \leq 5.2 \cdot 10^{+16}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -3.3000000000000002e-7

    1. Initial program 63.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-sub63.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-inv63.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. *-commutative63.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-neg63.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. *-commutative63.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. Simplified63.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 y around inf 57.4%

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

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

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

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

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

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

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

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

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

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

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

    if -3.3000000000000002e-7 < z < -1.55e-171 or -9.79999999999999972e-226 < z < 5.2e16

    1. Initial program 76.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.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-inv76.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. *-commutative76.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-neg76.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. *-commutative76.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. Simplified76.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 a around inf 52.7%

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

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

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

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

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

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

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

    if -1.55e-171 < z < -9.79999999999999972e-226

    1. Initial program 74.8%

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

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

      \[\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 51.7%

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

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

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

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

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

    if 5.2e16 < z

    1. Initial program 67.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-sub67.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-inv67.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. *-commutative67.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-neg67.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. *-commutative67.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. Simplified67.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 51.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.3 \cdot 10^{-7}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -1.55 \cdot 10^{-171}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;z \leq -9.8 \cdot 10^{-226}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+16}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]

Alternative 18: 29.8% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(a \cdot j\right)\\ \mathbf{if}\;z \leq -3.9 \cdot 10^{-7}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -6 \cdot 10^{-113}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{-226}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{+17}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* c (* a j))))
   (if (<= z -3.9e-7)
     (* x (* y z))
     (if (<= z -6e-113)
       t_1
       (if (<= z -1.7e-226)
         (* b (* t i))
         (if (<= z 1.8e+17) t_1 (* y (* x z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (a * j);
	double tmp;
	if (z <= -3.9e-7) {
		tmp = x * (y * z);
	} else if (z <= -6e-113) {
		tmp = t_1;
	} else if (z <= -1.7e-226) {
		tmp = b * (t * i);
	} else if (z <= 1.8e+17) {
		tmp = t_1;
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = c * (a * j)
    if (z <= (-3.9d-7)) then
        tmp = x * (y * z)
    else if (z <= (-6d-113)) then
        tmp = t_1
    else if (z <= (-1.7d-226)) then
        tmp = b * (t * i)
    else if (z <= 1.8d+17) then
        tmp = t_1
    else
        tmp = y * (x * z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (a * j);
	double tmp;
	if (z <= -3.9e-7) {
		tmp = x * (y * z);
	} else if (z <= -6e-113) {
		tmp = t_1;
	} else if (z <= -1.7e-226) {
		tmp = b * (t * i);
	} else if (z <= 1.8e+17) {
		tmp = t_1;
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * (a * j)
	tmp = 0
	if z <= -3.9e-7:
		tmp = x * (y * z)
	elif z <= -6e-113:
		tmp = t_1
	elif z <= -1.7e-226:
		tmp = b * (t * i)
	elif z <= 1.8e+17:
		tmp = t_1
	else:
		tmp = y * (x * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(a * j))
	tmp = 0.0
	if (z <= -3.9e-7)
		tmp = Float64(x * Float64(y * z));
	elseif (z <= -6e-113)
		tmp = t_1;
	elseif (z <= -1.7e-226)
		tmp = Float64(b * Float64(t * i));
	elseif (z <= 1.8e+17)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(x * z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = c * (a * j);
	tmp = 0.0;
	if (z <= -3.9e-7)
		tmp = x * (y * z);
	elseif (z <= -6e-113)
		tmp = t_1;
	elseif (z <= -1.7e-226)
		tmp = b * (t * i);
	elseif (z <= 1.8e+17)
		tmp = t_1;
	else
		tmp = y * (x * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e-7], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6e-113], t$95$1, If[LessEqual[z, -1.7e-226], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+17], t$95$1, N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -6 \cdot 10^{-113}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -1.7 \cdot 10^{-226}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

\mathbf{elif}\;z \leq 1.8 \cdot 10^{+17}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -3.90000000000000025e-7

    1. Initial program 63.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-sub63.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-inv63.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. *-commutative63.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-neg63.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. *-commutative63.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. Simplified63.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 y around inf 57.4%

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

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

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

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

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

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

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

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

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

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

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

    if -3.90000000000000025e-7 < z < -6.0000000000000002e-113 or -1.70000000000000004e-226 < z < 1.8e17

    1. Initial program 78.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-sub78.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-inv78.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. *-commutative78.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-neg78.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. *-commutative78.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. Simplified78.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 54.2%

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

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

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

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

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

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

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

    if -6.0000000000000002e-113 < z < -1.70000000000000004e-226

    1. Initial program 66.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-sub66.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-inv66.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. *-commutative66.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-neg66.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. *-commutative66.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. Simplified66.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 b around inf 41.0%

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

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

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

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

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

    if 1.8e17 < z

    1. Initial program 67.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-sub67.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-inv67.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. *-commutative67.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-neg67.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. *-commutative67.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. Simplified67.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 51.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.9 \cdot 10^{-7}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -6 \cdot 10^{-113}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;z \leq -1.7 \cdot 10^{-226}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{+17}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]

Alternative 19: 42.0% accurate, 2.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{+256} \lor \neg \left(t \leq 5.8 \cdot 10^{-86}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -7.4999999999999999e256 or 5.7999999999999998e-86 < t

    1. Initial program 68.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. cancel-sign-sub68.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

        \[\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.8%

      \[\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 57.7%

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

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

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

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

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

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

    if -7.4999999999999999e256 < t < 5.7999999999999998e-86

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7.5 \cdot 10^{+256} \lor \neg \left(t \leq 5.8 \cdot 10^{-86}\right):\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]

Alternative 20: 28.5% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.06 \cdot 10^{+171}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq 4 \cdot 10^{-105}:\\ \;\;\;\;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 -1.06e+171)
   (* c (* a j))
   (if (<= j 4e-105) (* 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 <= -1.06e+171) {
		tmp = c * (a * j);
	} else if (j <= 4e-105) {
		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 <= (-1.06d+171)) then
        tmp = c * (a * j)
    else if (j <= 4d-105) 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 <= -1.06e+171) {
		tmp = c * (a * j);
	} else if (j <= 4e-105) {
		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 <= -1.06e+171:
		tmp = c * (a * j)
	elif j <= 4e-105:
		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 <= -1.06e+171)
		tmp = Float64(c * Float64(a * j));
	elseif (j <= 4e-105)
		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 <= -1.06e+171)
		tmp = c * (a * j);
	elseif (j <= 4e-105)
		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, -1.06e+171], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4e-105], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.06 \cdot 10^{+171}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{elif}\;j \leq 4 \cdot 10^{-105}:\\
\;\;\;\;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 < -1.06000000000000001e171

    1. Initial program 66.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-sub66.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-inv66.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. *-commutative66.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-neg66.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. *-commutative66.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. Simplified66.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 53.2%

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

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

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

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

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

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

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

    if -1.06000000000000001e171 < j < 3.99999999999999986e-105

    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 i around inf 30.9%

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

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

    if 3.99999999999999986e-105 < j

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.06 \cdot 10^{+171}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;j \leq 4 \cdot 10^{-105}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 21: 22.3% 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 71.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-sub71.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-inv71.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. *-commutative71.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-neg71.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. *-commutative71.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. Simplified71.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 a around inf 40.9%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
    3. *-commutative23.3%

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

    \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
  10. Final simplification23.3%

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

Developer target: 60.1% 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 2023224 
(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)))))