Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.8% → 76.1%
Time: 26.9s
Alternatives: 24
Speedup: 0.5×

Specification

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

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 24 alternatives:

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

Initial Program: 73.8% accurate, 1.0× speedup?

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

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

Alternative 1: 76.1% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot x - c \cdot b\\ \mathbf{if}\;z \leq -6 \cdot 10^{+175}:\\ \;\;\;\;z \cdot t_1\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+158}:\\ \;\;\;\;\left(\left(c \cdot \left(j \cdot t\right) - x \cdot \left(a \cdot t - z \cdot y\right)\right) + i \cdot \left(b \cdot a - y \cdot j\right)\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, t_1, i \cdot \left(b \cdot a\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* y x) (* c b))))
   (if (<= z -6e+175)
     (* z t_1)
     (if (<= z 2.2e+158)
       (-
        (+
         (- (* c (* j t)) (* x (- (* a t) (* z y))))
         (* i (- (* b a) (* y j))))
        (* c (* z b)))
       (fma z t_1 (* i (* b a)))))))
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) - (c * b);
	double tmp;
	if (z <= -6e+175) {
		tmp = z * t_1;
	} else if (z <= 2.2e+158) {
		tmp = (((c * (j * t)) - (x * ((a * t) - (z * y)))) + (i * ((b * a) - (y * j)))) - (c * (z * b));
	} else {
		tmp = fma(z, t_1, (i * (b * a)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(y * x) - Float64(c * b))
	tmp = 0.0
	if (z <= -6e+175)
		tmp = Float64(z * t_1);
	elseif (z <= 2.2e+158)
		tmp = Float64(Float64(Float64(Float64(c * Float64(j * t)) - Float64(x * Float64(Float64(a * t) - Float64(z * y)))) + Float64(i * Float64(Float64(b * a) - Float64(y * j)))) - Float64(c * Float64(z * b)));
	else
		tmp = fma(z, t_1, Float64(i * Float64(b * a)));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e+175], N[(z * t$95$1), $MachinePrecision], If[LessEqual[z, 2.2e+158], N[(N[(N[(N[(c * N[(j * t), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * t$95$1 + N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot x - c \cdot b\\
\mathbf{if}\;z \leq -6 \cdot 10^{+175}:\\
\;\;\;\;z \cdot t_1\\

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

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z, t_1, i \cdot \left(b \cdot a\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -6.0000000000000003e175

    1. Initial program 52.9%

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

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

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

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

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

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

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

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

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

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

    if -6.0000000000000003e175 < z < 2.2000000000000001e158

    1. Initial program 73.4%

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

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

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

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

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

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

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

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

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

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

    if 2.2000000000000001e158 < z

    1. Initial program 57.2%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6 \cdot 10^{+175}:\\ \;\;\;\;z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+158}:\\ \;\;\;\;\left(\left(c \cdot \left(j \cdot t\right) - x \cdot \left(a \cdot t - z \cdot y\right)\right) + i \cdot \left(b \cdot a - y \cdot j\right)\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, y \cdot x - c \cdot b, i \cdot \left(b \cdot a\right)\right)\\ \end{array} \]

Alternative 2: 77.5% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 88.8%

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative0.0%

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

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

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in i around -inf 29.3%

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 82.9% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 88.8%

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

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

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative0.0%

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

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

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in i around -inf 29.3%

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 64.7% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ t_2 := i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\ t_3 := z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{if}\;z \leq -1.4 \cdot 10^{+176}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;z \leq -4.4 \cdot 10^{+158}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -2.1 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+50}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{+84}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq 5.9 \cdot 10^{+187}:\\ \;\;\;\;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 (- (* j (- (* c t) (* y i))) (* c (* z b))))
        (t_2 (- (* i (- (* b a) (* y j))) (* t (- (* x a) (* c j)))))
        (t_3 (* z (- (* y x) (* c b)))))
   (if (<= z -1.4e+176)
     t_3
     (if (<= z -4.4e+158)
       t_1
       (if (<= z -2.1e+109)
         (* c (* z (- b)))
         (if (<= z 2.2e+50)
           t_2
           (if (<= z 1.3e+84) t_1 (if (<= z 5.9e+187) 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 = (j * ((c * t) - (y * i))) - (c * (z * b));
	double t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
	double t_3 = z * ((y * x) - (c * b));
	double tmp;
	if (z <= -1.4e+176) {
		tmp = t_3;
	} else if (z <= -4.4e+158) {
		tmp = t_1;
	} else if (z <= -2.1e+109) {
		tmp = c * (z * -b);
	} else if (z <= 2.2e+50) {
		tmp = t_2;
	} else if (z <= 1.3e+84) {
		tmp = t_1;
	} else if (z <= 5.9e+187) {
		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 = (j * ((c * t) - (y * i))) - (c * (z * b))
    t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)))
    t_3 = z * ((y * x) - (c * b))
    if (z <= (-1.4d+176)) then
        tmp = t_3
    else if (z <= (-4.4d+158)) then
        tmp = t_1
    else if (z <= (-2.1d+109)) then
        tmp = c * (z * -b)
    else if (z <= 2.2d+50) then
        tmp = t_2
    else if (z <= 1.3d+84) then
        tmp = t_1
    else if (z <= 5.9d+187) 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 = (j * ((c * t) - (y * i))) - (c * (z * b));
	double t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
	double t_3 = z * ((y * x) - (c * b));
	double tmp;
	if (z <= -1.4e+176) {
		tmp = t_3;
	} else if (z <= -4.4e+158) {
		tmp = t_1;
	} else if (z <= -2.1e+109) {
		tmp = c * (z * -b);
	} else if (z <= 2.2e+50) {
		tmp = t_2;
	} else if (z <= 1.3e+84) {
		tmp = t_1;
	} else if (z <= 5.9e+187) {
		tmp = t_2;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (j * ((c * t) - (y * i))) - (c * (z * b))
	t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)))
	t_3 = z * ((y * x) - (c * b))
	tmp = 0
	if z <= -1.4e+176:
		tmp = t_3
	elif z <= -4.4e+158:
		tmp = t_1
	elif z <= -2.1e+109:
		tmp = c * (z * -b)
	elif z <= 2.2e+50:
		tmp = t_2
	elif z <= 1.3e+84:
		tmp = t_1
	elif z <= 5.9e+187:
		tmp = t_2
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(j * Float64(Float64(c * t) - Float64(y * i))) - Float64(c * Float64(z * b)))
	t_2 = Float64(Float64(i * Float64(Float64(b * a) - Float64(y * j))) - Float64(t * Float64(Float64(x * a) - Float64(c * j))))
	t_3 = Float64(z * Float64(Float64(y * x) - Float64(c * b)))
	tmp = 0.0
	if (z <= -1.4e+176)
		tmp = t_3;
	elseif (z <= -4.4e+158)
		tmp = t_1;
	elseif (z <= -2.1e+109)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (z <= 2.2e+50)
		tmp = t_2;
	elseif (z <= 1.3e+84)
		tmp = t_1;
	elseif (z <= 5.9e+187)
		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 = (j * ((c * t) - (y * i))) - (c * (z * b));
	t_2 = (i * ((b * a) - (y * j))) - (t * ((x * a) - (c * j)));
	t_3 = z * ((y * x) - (c * b));
	tmp = 0.0;
	if (z <= -1.4e+176)
		tmp = t_3;
	elseif (z <= -4.4e+158)
		tmp = t_1;
	elseif (z <= -2.1e+109)
		tmp = c * (z * -b);
	elseif (z <= 2.2e+50)
		tmp = t_2;
	elseif (z <= 1.3e+84)
		tmp = t_1;
	elseif (z <= 5.9e+187)
		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[(N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+176], t$95$3, If[LessEqual[z, -4.4e+158], t$95$1, If[LessEqual[z, -2.1e+109], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+50], t$95$2, If[LessEqual[z, 1.3e+84], t$95$1, If[LessEqual[z, 5.9e+187], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -4.4 \cdot 10^{+158}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;z \leq 2.2 \cdot 10^{+50}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;z \leq 1.3 \cdot 10^{+84}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq 5.9 \cdot 10^{+187}:\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.4000000000000001e176 or 5.9e187 < z

    1. Initial program 54.8%

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

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

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

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

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

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

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

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

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

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

    if -1.4000000000000001e176 < z < -4.4000000000000002e158 or 2.20000000000000017e50 < z < 1.3000000000000001e84

    1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(c \cdot \left(b \cdot z\right)\right) \cdot -1} + j \cdot \left(t \cdot c - y \cdot i\right) \]
      2. associate-*r*99.7%

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-z \cdot b\right)} + j \cdot \left(t \cdot c - y \cdot i\right) \]
      6. distribute-rgt-neg-in99.7%

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

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

    if -4.4000000000000002e158 < z < -2.1000000000000001e109

    1. Initial program 77.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(-1 \cdot c\right) \cdot \color{blue}{\left(z \cdot b\right)} \]
      3. associate-*r*89.4%

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

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

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

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

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

    if -2.1000000000000001e109 < z < 2.20000000000000017e50 or 1.3000000000000001e84 < z < 5.9e187

    1. Initial program 72.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative72.6%

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

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

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in i around -inf 83.0%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.4 \cdot 10^{+176}:\\ \;\;\;\;z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{elif}\;z \leq -4.4 \cdot 10^{+158}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;z \leq -2.1 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{+50}:\\ \;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\ \mathbf{elif}\;z \leq 1.3 \cdot 10^{+84}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;z \leq 5.9 \cdot 10^{+187}:\\ \;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(y \cdot x - c \cdot b\right)\\ \end{array} \]

Alternative 5: 57.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{if}\;x \leq -3.6 \cdot 10^{+50}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{+24}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -4.2 \cdot 10^{-81}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.95 \cdot 10^{-233}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-298}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{-288}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+70}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t_3\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* j (- (* c t) (* y i))) (* c (* z b))))
        (t_2 (+ (* x (* z y)) (* b (- (* i a) (* z c)))))
        (t_3 (* x (- (* z y) (* a t)))))
   (if (<= x -3.6e+50)
     t_3
     (if (<= x -2.3e+24)
       t_2
       (if (<= x -4.2e-81)
         t_1
         (if (<= x -1.95e-233)
           t_2
           (if (<= x 3e-298)
             t_1
             (if (<= x 3.3e-288)
               (* b (* i a))
               (if (<= x 2.8e+70)
                 (+ (* t (* c j)) (* i (- (* b a) (* y j))))
                 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
	double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -3.6e+50) {
		tmp = t_3;
	} else if (x <= -2.3e+24) {
		tmp = t_2;
	} else if (x <= -4.2e-81) {
		tmp = t_1;
	} else if (x <= -1.95e-233) {
		tmp = t_2;
	} else if (x <= 3e-298) {
		tmp = t_1;
	} else if (x <= 3.3e-288) {
		tmp = b * (i * a);
	} else if (x <= 2.8e+70) {
		tmp = (t * (c * j)) + (i * ((b * a) - (y * j)));
	} else {
		tmp = t_3;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (j * ((c * t) - (y * i))) - (c * (z * b))
    t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
    t_3 = x * ((z * y) - (a * t))
    if (x <= (-3.6d+50)) then
        tmp = t_3
    else if (x <= (-2.3d+24)) then
        tmp = t_2
    else if (x <= (-4.2d-81)) then
        tmp = t_1
    else if (x <= (-1.95d-233)) then
        tmp = t_2
    else if (x <= 3d-298) then
        tmp = t_1
    else if (x <= 3.3d-288) then
        tmp = b * (i * a)
    else if (x <= 2.8d+70) then
        tmp = (t * (c * j)) + (i * ((b * a) - (y * j)))
    else
        tmp = t_3
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
	double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -3.6e+50) {
		tmp = t_3;
	} else if (x <= -2.3e+24) {
		tmp = t_2;
	} else if (x <= -4.2e-81) {
		tmp = t_1;
	} else if (x <= -1.95e-233) {
		tmp = t_2;
	} else if (x <= 3e-298) {
		tmp = t_1;
	} else if (x <= 3.3e-288) {
		tmp = b * (i * a);
	} else if (x <= 2.8e+70) {
		tmp = (t * (c * j)) + (i * ((b * a) - (y * j)));
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (j * ((c * t) - (y * i))) - (c * (z * b))
	t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
	t_3 = x * ((z * y) - (a * t))
	tmp = 0
	if x <= -3.6e+50:
		tmp = t_3
	elif x <= -2.3e+24:
		tmp = t_2
	elif x <= -4.2e-81:
		tmp = t_1
	elif x <= -1.95e-233:
		tmp = t_2
	elif x <= 3e-298:
		tmp = t_1
	elif x <= 3.3e-288:
		tmp = b * (i * a)
	elif x <= 2.8e+70:
		tmp = (t * (c * j)) + (i * ((b * a) - (y * j)))
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(j * Float64(Float64(c * t) - Float64(y * i))) - Float64(c * Float64(z * b)))
	t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(i * a) - Float64(z * c))))
	t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t)))
	tmp = 0.0
	if (x <= -3.6e+50)
		tmp = t_3;
	elseif (x <= -2.3e+24)
		tmp = t_2;
	elseif (x <= -4.2e-81)
		tmp = t_1;
	elseif (x <= -1.95e-233)
		tmp = t_2;
	elseif (x <= 3e-298)
		tmp = t_1;
	elseif (x <= 3.3e-288)
		tmp = Float64(b * Float64(i * a));
	elseif (x <= 2.8e+70)
		tmp = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j))));
	else
		tmp = t_3;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (j * ((c * t) - (y * i))) - (c * (z * b));
	t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	t_3 = x * ((z * y) - (a * t));
	tmp = 0.0;
	if (x <= -3.6e+50)
		tmp = t_3;
	elseif (x <= -2.3e+24)
		tmp = t_2;
	elseif (x <= -4.2e-81)
		tmp = t_1;
	elseif (x <= -1.95e-233)
		tmp = t_2;
	elseif (x <= 3e-298)
		tmp = t_1;
	elseif (x <= 3.3e-288)
		tmp = b * (i * a);
	elseif (x <= 2.8e+70)
		tmp = (t * (c * j)) + (i * ((b * a) - (y * j)));
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.6e+50], t$95$3, If[LessEqual[x, -2.3e+24], t$95$2, If[LessEqual[x, -4.2e-81], t$95$1, If[LessEqual[x, -1.95e-233], t$95$2, If[LessEqual[x, 3e-298], t$95$1, If[LessEqual[x, 3.3e-288], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e+70], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -2.3 \cdot 10^{+24}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;x \leq -1.95 \cdot 10^{-233}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;x \leq 3.3 \cdot 10^{-288}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -3.59999999999999986e50 or 2.7999999999999999e70 < x

    1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

    if -3.59999999999999986e50 < x < -2.2999999999999999e24 or -4.1999999999999998e-81 < x < -1.9500000000000001e-233

    1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

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

    if -2.2999999999999999e24 < x < -4.1999999999999998e-81 or -1.9500000000000001e-233 < x < 2.9999999999999999e-298

    1. Initial program 79.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(c \cdot \left(b \cdot z\right)\right) \cdot -1} + j \cdot \left(t \cdot c - y \cdot i\right) \]
      2. associate-*r*85.5%

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

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

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

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

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

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

    if 2.9999999999999999e-298 < x < 3.29999999999999988e-288

    1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

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

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

    if 3.29999999999999988e-288 < x < 2.7999999999999999e70

    1. Initial program 67.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative67.9%

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

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

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in i around -inf 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.6 \cdot 10^{+50}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{+24}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq -4.2 \cdot 10^{-81}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;x \leq -1.95 \cdot 10^{-233}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-298}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{-288}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+70}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \end{array} \]

Alternative 6: 54.1% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(b \cdot a\right) - j \cdot \left(y \cdot i - c \cdot t\right)\\ t_2 := z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{if}\;j \leq -3.5 \cdot 10^{-88}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;j \leq 8 \cdot 10^{-302}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq 3.3 \cdot 10^{-171}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a\right)\\ \mathbf{elif}\;j \leq 1.1 \cdot 10^{-50}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;j \leq 4.5 \cdot 10^{+42} \lor \neg \left(j \leq 1.95 \cdot 10^{+108}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* i (* b a)) (* j (- (* y i) (* c t)))))
        (t_2 (* z (- (* y x) (* c b)))))
   (if (<= j -3.5e-88)
     t_1
     (if (<= j 8e-302)
       t_2
       (if (<= j 3.3e-171)
         (+ (* x (* z y)) (* b (* i a)))
         (if (<= j 1.1e-50)
           t_2
           (if (or (<= j 4.5e+42) (not (<= j 1.95e+108)))
             t_1
             (* b (- (* i a) (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)));
	double t_2 = z * ((y * x) - (c * b));
	double tmp;
	if (j <= -3.5e-88) {
		tmp = t_1;
	} else if (j <= 8e-302) {
		tmp = t_2;
	} else if (j <= 3.3e-171) {
		tmp = (x * (z * y)) + (b * (i * a));
	} else if (j <= 1.1e-50) {
		tmp = t_2;
	} else if ((j <= 4.5e+42) || !(j <= 1.95e+108)) {
		tmp = t_1;
	} else {
		tmp = b * ((i * a) - (z * c));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)))
    t_2 = z * ((y * x) - (c * b))
    if (j <= (-3.5d-88)) then
        tmp = t_1
    else if (j <= 8d-302) then
        tmp = t_2
    else if (j <= 3.3d-171) then
        tmp = (x * (z * y)) + (b * (i * a))
    else if (j <= 1.1d-50) then
        tmp = t_2
    else if ((j <= 4.5d+42) .or. (.not. (j <= 1.95d+108))) then
        tmp = t_1
    else
        tmp = b * ((i * a) - (z * c))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)));
	double t_2 = z * ((y * x) - (c * b));
	double tmp;
	if (j <= -3.5e-88) {
		tmp = t_1;
	} else if (j <= 8e-302) {
		tmp = t_2;
	} else if (j <= 3.3e-171) {
		tmp = (x * (z * y)) + (b * (i * a));
	} else if (j <= 1.1e-50) {
		tmp = t_2;
	} else if ((j <= 4.5e+42) || !(j <= 1.95e+108)) {
		tmp = t_1;
	} else {
		tmp = b * ((i * a) - (z * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)))
	t_2 = z * ((y * x) - (c * b))
	tmp = 0
	if j <= -3.5e-88:
		tmp = t_1
	elif j <= 8e-302:
		tmp = t_2
	elif j <= 3.3e-171:
		tmp = (x * (z * y)) + (b * (i * a))
	elif j <= 1.1e-50:
		tmp = t_2
	elif (j <= 4.5e+42) or not (j <= 1.95e+108):
		tmp = t_1
	else:
		tmp = b * ((i * a) - (z * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(i * Float64(b * a)) - Float64(j * Float64(Float64(y * i) - Float64(c * t))))
	t_2 = Float64(z * Float64(Float64(y * x) - Float64(c * b)))
	tmp = 0.0
	if (j <= -3.5e-88)
		tmp = t_1;
	elseif (j <= 8e-302)
		tmp = t_2;
	elseif (j <= 3.3e-171)
		tmp = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(i * a)));
	elseif (j <= 1.1e-50)
		tmp = t_2;
	elseif ((j <= 4.5e+42) || !(j <= 1.95e+108))
		tmp = t_1;
	else
		tmp = Float64(b * Float64(Float64(i * a) - Float64(z * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (i * (b * a)) - (j * ((y * i) - (c * t)));
	t_2 = z * ((y * x) - (c * b));
	tmp = 0.0;
	if (j <= -3.5e-88)
		tmp = t_1;
	elseif (j <= 8e-302)
		tmp = t_2;
	elseif (j <= 3.3e-171)
		tmp = (x * (z * y)) + (b * (i * a));
	elseif (j <= 1.1e-50)
		tmp = t_2;
	elseif ((j <= 4.5e+42) || ~((j <= 1.95e+108)))
		tmp = t_1;
	else
		tmp = b * ((i * a) - (z * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(y * x), $MachinePrecision] - N[(c * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.5e-88], t$95$1, If[LessEqual[j, 8e-302], t$95$2, If[LessEqual[j, 3.3e-171], N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.1e-50], t$95$2, If[Or[LessEqual[j, 4.5e+42], N[Not[LessEqual[j, 1.95e+108]], $MachinePrecision]], t$95$1, N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;j \leq 8 \cdot 10^{-302}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;j \leq 3.3 \cdot 10^{-171}:\\
\;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a\right)\\

\mathbf{elif}\;j \leq 1.1 \cdot 10^{-50}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;j \leq 4.5 \cdot 10^{+42} \lor \neg \left(j \leq 1.95 \cdot 10^{+108}\right):\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -3.5000000000000001e-88 or 1.0999999999999999e-50 < j < 4.50000000000000012e42 or 1.94999999999999992e108 < j

    1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.5000000000000001e-88 < j < 7.9999999999999997e-302 or 3.3000000000000002e-171 < j < 1.0999999999999999e-50

    1. Initial program 63.7%

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

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

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

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

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

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

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

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

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

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

    if 7.9999999999999997e-302 < j < 3.3000000000000002e-171

    1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \left(y \cdot z\right) \cdot x - \color{blue}{\left(-1 \cdot \left(a \cdot i\right)\right)} \cdot b \]
    7. Step-by-step derivation
      1. neg-mul-160.7%

        \[\leadsto \left(y \cdot z\right) \cdot x - \color{blue}{\left(-a \cdot i\right)} \cdot b \]
      2. distribute-rgt-neg-in60.7%

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

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

    if 4.50000000000000012e42 < j < 1.94999999999999992e108

    1. Initial program 69.1%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.5 \cdot 10^{-88}:\\ \;\;\;\;i \cdot \left(b \cdot a\right) - j \cdot \left(y \cdot i - c \cdot t\right)\\ \mathbf{elif}\;j \leq 8 \cdot 10^{-302}:\\ \;\;\;\;z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{elif}\;j \leq 3.3 \cdot 10^{-171}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a\right)\\ \mathbf{elif}\;j \leq 1.1 \cdot 10^{-50}:\\ \;\;\;\;z \cdot \left(y \cdot x - c \cdot b\right)\\ \mathbf{elif}\;j \leq 4.5 \cdot 10^{+42} \lor \neg \left(j \leq 1.95 \cdot 10^{+108}\right):\\ \;\;\;\;i \cdot \left(b \cdot a\right) - j \cdot \left(y \cdot i - c \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \end{array} \]

Alternative 7: 56.7% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ t_2 := x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{if}\;x \leq -1.45 \cdot 10^{+51}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -3 \cdot 10^{+24}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.65 \cdot 10^{-74}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -4.9 \cdot 10^{-296}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 8.1 \cdot 10^{+65}:\\ \;\;\;\;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 (+ (* t (* c j)) (* i (- (* b a) (* y j)))))
        (t_2 (+ (* x (* z y)) (* b (- (* i a) (* z c)))))
        (t_3 (* x (- (* z y) (* a t)))))
   (if (<= x -1.45e+51)
     t_3
     (if (<= x -3e+24)
       t_2
       (if (<= x -1.65e-74)
         t_1
         (if (<= x -4.9e-296) t_2 (if (<= x 8.1e+65) 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 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -1.45e+51) {
		tmp = t_3;
	} else if (x <= -3e+24) {
		tmp = t_2;
	} else if (x <= -1.65e-74) {
		tmp = t_1;
	} else if (x <= -4.9e-296) {
		tmp = t_2;
	} else if (x <= 8.1e+65) {
		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 = (t * (c * j)) + (i * ((b * a) - (y * j)))
    t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
    t_3 = x * ((z * y) - (a * t))
    if (x <= (-1.45d+51)) then
        tmp = t_3
    else if (x <= (-3d+24)) then
        tmp = t_2
    else if (x <= (-1.65d-74)) then
        tmp = t_1
    else if (x <= (-4.9d-296)) then
        tmp = t_2
    else if (x <= 8.1d+65) 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 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	double t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -1.45e+51) {
		tmp = t_3;
	} else if (x <= -3e+24) {
		tmp = t_2;
	} else if (x <= -1.65e-74) {
		tmp = t_1;
	} else if (x <= -4.9e-296) {
		tmp = t_2;
	} else if (x <= 8.1e+65) {
		tmp = t_1;
	} else {
		tmp = t_3;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)))
	t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)))
	t_3 = x * ((z * y) - (a * t))
	tmp = 0
	if x <= -1.45e+51:
		tmp = t_3
	elif x <= -3e+24:
		tmp = t_2
	elif x <= -1.65e-74:
		tmp = t_1
	elif x <= -4.9e-296:
		tmp = t_2
	elif x <= 8.1e+65:
		tmp = t_1
	else:
		tmp = t_3
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j))))
	t_2 = Float64(Float64(x * Float64(z * y)) + Float64(b * Float64(Float64(i * a) - Float64(z * c))))
	t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t)))
	tmp = 0.0
	if (x <= -1.45e+51)
		tmp = t_3;
	elseif (x <= -3e+24)
		tmp = t_2;
	elseif (x <= -1.65e-74)
		tmp = t_1;
	elseif (x <= -4.9e-296)
		tmp = t_2;
	elseif (x <= 8.1e+65)
		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 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	t_2 = (x * (z * y)) + (b * ((i * a) - (z * c)));
	t_3 = x * ((z * y) - (a * t));
	tmp = 0.0;
	if (x <= -1.45e+51)
		tmp = t_3;
	elseif (x <= -3e+24)
		tmp = t_2;
	elseif (x <= -1.65e-74)
		tmp = t_1;
	elseif (x <= -4.9e-296)
		tmp = t_2;
	elseif (x <= 8.1e+65)
		tmp = t_1;
	else
		tmp = t_3;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.45e+51], t$95$3, If[LessEqual[x, -3e+24], t$95$2, If[LessEqual[x, -1.65e-74], t$95$1, If[LessEqual[x, -4.9e-296], t$95$2, If[LessEqual[x, 8.1e+65], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -3 \cdot 10^{+24}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;x \leq -4.9 \cdot 10^{-296}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;x \leq 8.1 \cdot 10^{+65}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.4499999999999999e51 or 8.1000000000000001e65 < x

    1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

    if -1.4499999999999999e51 < x < -2.99999999999999995e24 or -1.64999999999999998e-74 < x < -4.8999999999999998e-296

    1. Initial program 71.6%

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

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

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

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

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

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

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

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

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

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

    if -2.99999999999999995e24 < x < -1.64999999999999998e-74 or -4.8999999999999998e-296 < x < 8.1000000000000001e65

    1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{c \cdot \left(t \cdot j\right)} - i \cdot \left(y \cdot j - a \cdot b\right) \]
    9. Step-by-step derivation
      1. *-commutative65.8%

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

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

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j\right)} - i \cdot \left(y \cdot j - a \cdot b\right) \]
    10. Simplified68.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.45 \cdot 10^{+51}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{elif}\;x \leq -3 \cdot 10^{+24}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq -1.65 \cdot 10^{-74}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{elif}\;x \leq -4.9 \cdot 10^{-296}:\\ \;\;\;\;x \cdot \left(z \cdot y\right) + b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq 8.1 \cdot 10^{+65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \end{array} \]

Alternative 8: 51.3% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot t - y \cdot i\right)\\ t_2 := b \cdot \left(i \cdot a - z \cdot c\right)\\ t_3 := x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{if}\;x \leq -4.3 \cdot 10^{+50}:\\ \;\;\;\;t_3\\ \mathbf{elif}\;x \leq -1.15 \cdot 10^{+29}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -2.75 \cdot 10^{-36}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3.1 \cdot 10^{-287}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{-35}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a\right)\\ \mathbf{elif}\;x \leq 9.5 \cdot 10^{+28} \lor \neg \left(x \leq 8.4 \cdot 10^{+80}\right):\\ \;\;\;\;t_3\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* j (- (* c t) (* y i))))
        (t_2 (* b (- (* i a) (* z c))))
        (t_3 (* x (- (* z y) (* a t)))))
   (if (<= x -4.3e+50)
     t_3
     (if (<= x -1.15e+29)
       t_2
       (if (<= x -2.75e-36)
         t_1
         (if (<= x 3.1e-287)
           t_2
           (if (<= x 3.3e-35)
             (+ (* t (* c j)) (* i (* b a)))
             (if (or (<= x 9.5e+28) (not (<= x 8.4e+80))) t_3 t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * t) - (y * i));
	double t_2 = b * ((i * a) - (z * c));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -4.3e+50) {
		tmp = t_3;
	} else if (x <= -1.15e+29) {
		tmp = t_2;
	} else if (x <= -2.75e-36) {
		tmp = t_1;
	} else if (x <= 3.1e-287) {
		tmp = t_2;
	} else if (x <= 3.3e-35) {
		tmp = (t * (c * j)) + (i * (b * a));
	} else if ((x <= 9.5e+28) || !(x <= 8.4e+80)) {
		tmp = t_3;
	} 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) :: t_3
    real(8) :: tmp
    t_1 = j * ((c * t) - (y * i))
    t_2 = b * ((i * a) - (z * c))
    t_3 = x * ((z * y) - (a * t))
    if (x <= (-4.3d+50)) then
        tmp = t_3
    else if (x <= (-1.15d+29)) then
        tmp = t_2
    else if (x <= (-2.75d-36)) then
        tmp = t_1
    else if (x <= 3.1d-287) then
        tmp = t_2
    else if (x <= 3.3d-35) then
        tmp = (t * (c * j)) + (i * (b * a))
    else if ((x <= 9.5d+28) .or. (.not. (x <= 8.4d+80))) then
        tmp = t_3
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * t) - (y * i));
	double t_2 = b * ((i * a) - (z * c));
	double t_3 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -4.3e+50) {
		tmp = t_3;
	} else if (x <= -1.15e+29) {
		tmp = t_2;
	} else if (x <= -2.75e-36) {
		tmp = t_1;
	} else if (x <= 3.1e-287) {
		tmp = t_2;
	} else if (x <= 3.3e-35) {
		tmp = (t * (c * j)) + (i * (b * a));
	} else if ((x <= 9.5e+28) || !(x <= 8.4e+80)) {
		tmp = t_3;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * ((c * t) - (y * i))
	t_2 = b * ((i * a) - (z * c))
	t_3 = x * ((z * y) - (a * t))
	tmp = 0
	if x <= -4.3e+50:
		tmp = t_3
	elif x <= -1.15e+29:
		tmp = t_2
	elif x <= -2.75e-36:
		tmp = t_1
	elif x <= 3.1e-287:
		tmp = t_2
	elif x <= 3.3e-35:
		tmp = (t * (c * j)) + (i * (b * a))
	elif (x <= 9.5e+28) or not (x <= 8.4e+80):
		tmp = t_3
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(Float64(c * t) - Float64(y * i)))
	t_2 = Float64(b * Float64(Float64(i * a) - Float64(z * c)))
	t_3 = Float64(x * Float64(Float64(z * y) - Float64(a * t)))
	tmp = 0.0
	if (x <= -4.3e+50)
		tmp = t_3;
	elseif (x <= -1.15e+29)
		tmp = t_2;
	elseif (x <= -2.75e-36)
		tmp = t_1;
	elseif (x <= 3.1e-287)
		tmp = t_2;
	elseif (x <= 3.3e-35)
		tmp = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(b * a)));
	elseif ((x <= 9.5e+28) || !(x <= 8.4e+80))
		tmp = t_3;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = j * ((c * t) - (y * i));
	t_2 = b * ((i * a) - (z * c));
	t_3 = x * ((z * y) - (a * t));
	tmp = 0.0;
	if (x <= -4.3e+50)
		tmp = t_3;
	elseif (x <= -1.15e+29)
		tmp = t_2;
	elseif (x <= -2.75e-36)
		tmp = t_1;
	elseif (x <= 3.1e-287)
		tmp = t_2;
	elseif (x <= 3.3e-35)
		tmp = (t * (c * j)) + (i * (b * a));
	elseif ((x <= 9.5e+28) || ~((x <= 8.4e+80)))
		tmp = t_3;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(i * a), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.3e+50], t$95$3, If[LessEqual[x, -1.15e+29], t$95$2, If[LessEqual[x, -2.75e-36], t$95$1, If[LessEqual[x, 3.1e-287], t$95$2, If[LessEqual[x, 3.3e-35], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 9.5e+28], N[Not[LessEqual[x, 8.4e+80]], $MachinePrecision]], t$95$3, t$95$1]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -1.15 \cdot 10^{+29}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;x \leq 3.1 \cdot 10^{-287}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;x \leq 9.5 \cdot 10^{+28} \lor \neg \left(x \leq 8.4 \cdot 10^{+80}\right):\\
\;\;\;\;t_3\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -4.2999999999999997e50 or 3.3e-35 < x < 9.49999999999999927e28 or 8.40000000000000005e80 < x

    1. Initial program 64.1%

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

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

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

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

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

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

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

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

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

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

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

    if -4.2999999999999997e50 < x < -1.1500000000000001e29 or -2.74999999999999992e-36 < x < 3.1000000000000001e-287

    1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

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

    if -1.1500000000000001e29 < x < -2.74999999999999992e-36 or 9.49999999999999927e28 < x < 8.40000000000000005e80

    1. Initial program 78.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.1000000000000001e-287 < x < 3.3e-35

    1. Initial program 63.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.3 \cdot 10^{+50}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{elif}\;x \leq -1.15 \cdot 10^{+29}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq -2.75 \cdot 10^{-36}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right)\\ \mathbf{elif}\;x \leq 3.1 \cdot 10^{-287}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;x \leq 3.3 \cdot 10^{-35}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a\right)\\ \mathbf{elif}\;x \leq 9.5 \cdot 10^{+28} \lor \neg \left(x \leq 8.4 \cdot 10^{+80}\right):\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right)\\ \end{array} \]

Alternative 9: 58.7% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{if}\;x \leq -1.2 \cdot 10^{+44}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -1.1 \cdot 10^{-242}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-295}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{+70}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (+ (* t (* c j)) (* i (- (* b a) (* y j)))))
        (t_2 (* x (- (* z y) (* a t)))))
   (if (<= x -1.2e+44)
     t_2
     (if (<= x -1.1e-242)
       t_1
       (if (<= x -1.75e-295)
         (* c (- (* j t) (* z b)))
         (if (<= x 1.9e+70) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	double t_2 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -1.2e+44) {
		tmp = t_2;
	} else if (x <= -1.1e-242) {
		tmp = t_1;
	} else if (x <= -1.75e-295) {
		tmp = c * ((j * t) - (z * b));
	} else if (x <= 1.9e+70) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)))
    t_2 = x * ((z * y) - (a * t))
    if (x <= (-1.2d+44)) then
        tmp = t_2
    else if (x <= (-1.1d-242)) then
        tmp = t_1
    else if (x <= (-1.75d-295)) then
        tmp = c * ((j * t) - (z * b))
    else if (x <= 1.9d+70) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	double t_2 = x * ((z * y) - (a * t));
	double tmp;
	if (x <= -1.2e+44) {
		tmp = t_2;
	} else if (x <= -1.1e-242) {
		tmp = t_1;
	} else if (x <= -1.75e-295) {
		tmp = c * ((j * t) - (z * b));
	} else if (x <= 1.9e+70) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)))
	t_2 = x * ((z * y) - (a * t))
	tmp = 0
	if x <= -1.2e+44:
		tmp = t_2
	elif x <= -1.1e-242:
		tmp = t_1
	elif x <= -1.75e-295:
		tmp = c * ((j * t) - (z * b))
	elif x <= 1.9e+70:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(t * Float64(c * j)) + Float64(i * Float64(Float64(b * a) - Float64(y * j))))
	t_2 = Float64(x * Float64(Float64(z * y) - Float64(a * t)))
	tmp = 0.0
	if (x <= -1.2e+44)
		tmp = t_2;
	elseif (x <= -1.1e-242)
		tmp = t_1;
	elseif (x <= -1.75e-295)
		tmp = Float64(c * Float64(Float64(j * t) - Float64(z * b)));
	elseif (x <= 1.9e+70)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (t * (c * j)) + (i * ((b * a) - (y * j)));
	t_2 = x * ((z * y) - (a * t));
	tmp = 0.0;
	if (x <= -1.2e+44)
		tmp = t_2;
	elseif (x <= -1.1e-242)
		tmp = t_1;
	elseif (x <= -1.75e-295)
		tmp = c * ((j * t) - (z * b));
	elseif (x <= 1.9e+70)
		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[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(i * N[(N[(b * a), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.2e+44], t$95$2, If[LessEqual[x, -1.1e-242], t$95$1, If[LessEqual[x, -1.75e-295], N[(c * N[(N[(j * t), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+70], t$95$1, t$95$2]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;x \leq -1.75 \cdot 10^{-295}:\\
\;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\

\mathbf{elif}\;x \leq 1.9 \cdot 10^{+70}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.20000000000000007e44 or 1.8999999999999999e70 < x

    1. Initial program 64.7%

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

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

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

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

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

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

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

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

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

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

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

    if -1.20000000000000007e44 < x < -1.10000000000000001e-242 or -1.74999999999999994e-295 < x < 1.8999999999999999e70

    1. Initial program 70.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.10000000000000001e-242 < x < -1.74999999999999994e-295

    1. Initial program 84.2%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.2 \cdot 10^{+44}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \mathbf{elif}\;x \leq -1.1 \cdot 10^{-242}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-295}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;x \leq 1.9 \cdot 10^{+70}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right)\\ \end{array} \]

Alternative 10: 67.7% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{-76} \lor \neg \left(j \leq 7 \cdot 10^{-16}\right):\\
\;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.40000000000000005e-76 or 7.00000000000000035e-16 < j

    1. Initial program 69.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.40000000000000005e-76 < j < 7.00000000000000035e-16

    1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.4 \cdot 10^{-76} \lor \neg \left(j \leq 7 \cdot 10^{-16}\right):\\ \;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right) - t \cdot \left(x \cdot a - c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right) - x \cdot \left(a \cdot t - z \cdot y\right)\\ \end{array} \]

Alternative 11: 51.9% accurate, 1.5× speedup?

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

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

\mathbf{elif}\;a \leq -1.16 \cdot 10^{-55}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;a \leq 0.026:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 7.2 \cdot 10^{+21}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;a \leq 1.2 \cdot 10^{+108}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -3.80000000000000002e125 or 1.20000000000000009e108 < a

    1. Initial program 57.8%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--76.5%

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

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

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

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

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

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

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

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

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

    if -3.80000000000000002e125 < a < -1.15999999999999996e-55 or 0.0259999999999999988 < a < 7.2e21

    1. Initial program 72.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.15999999999999996e-55 < a < 0.0259999999999999988 or 7.2e21 < a < 1.20000000000000009e108

    1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.8 \cdot 10^{+125}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.16 \cdot 10^{-55}:\\ \;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{elif}\;a \leq 0.026:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+21}:\\ \;\;\;\;i \cdot \left(b \cdot a - y \cdot j\right)\\ \mathbf{elif}\;a \leq 1.2 \cdot 10^{+108}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]

Alternative 12: 51.0% accurate, 1.5× speedup?

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

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

\mathbf{elif}\;a \leq -1.72 \cdot 10^{-15}:\\
\;\;\;\;t_1\\

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

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

\mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -1.5199999999999999e94 or 4.40000000000000001e70 < a

    1. Initial program 57.4%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--71.3%

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

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

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

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

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

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

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

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

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

    if -1.5199999999999999e94 < a < -1.7199999999999999e-15 or 3.09999999999999988e-60 < a < 4.40000000000000001e70

    1. Initial program 72.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.7199999999999999e-15 < a < -1.15e-135

    1. Initial program 79.9%

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

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

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

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

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

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

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

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

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

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

    if -1.15e-135 < a < 3.09999999999999988e-60

    1. Initial program 76.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative76.2%

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

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

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in c around inf 59.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.52 \cdot 10^{+94}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.72 \cdot 10^{-15}:\\ \;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\ \mathbf{elif}\;a \leq -1.15 \cdot 10^{-135}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;a \leq 3.1 \cdot 10^{-60}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\ \;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]

Alternative 13: 51.6% accurate, 1.5× speedup?

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

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -1.5199999999999999e94 or 1850 < a

    1. Initial program 61.6%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--66.3%

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

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

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

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

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

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

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

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

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

    if -1.5199999999999999e94 < a < -2.9000000000000003e-14

    1. Initial program 71.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.9000000000000003e-14 < a < -7.90000000000000034e-137

    1. Initial program 79.9%

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

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

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

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

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

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

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

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

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

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

    if -7.90000000000000034e-137 < a < 3.5000000000000001e-27

    1. Initial program 74.6%

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

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

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

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

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

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

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

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

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

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

    if 3.5000000000000001e-27 < a < 1850

    1. Initial program 66.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative66.7%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.52 \cdot 10^{+94}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq -2.9 \cdot 10^{-14}:\\ \;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\ \mathbf{elif}\;a \leq -7.9 \cdot 10^{-137}:\\ \;\;\;\;b \cdot \left(i \cdot a - z \cdot c\right)\\ \mathbf{elif}\;a \leq 3.5 \cdot 10^{-27}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;a \leq 1850:\\ \;\;\;\;j \cdot \left(c \cdot t - y \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]

Alternative 14: 51.8% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.08 \cdot 10^{-51} \lor \neg \left(a \leq 0.012 \lor \neg \left(a \leq 2.35 \cdot 10^{+36}\right) \land a \leq 8.8 \cdot 10^{+107}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.08000000000000004e-51 or 0.012 < a < 2.34999999999999994e36 or 8.8e107 < a

    1. Initial program 64.8%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--62.8%

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

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

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

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

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

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

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

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

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

    if -1.08000000000000004e-51 < a < 0.012 or 2.34999999999999994e36 < a < 8.8e107

    1. Initial program 72.7%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.08 \cdot 10^{-51} \lor \neg \left(a \leq 0.012 \lor \neg \left(a \leq 2.35 \cdot 10^{+36}\right) \land a \leq 8.8 \cdot 10^{+107}\right):\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \end{array} \]

Alternative 15: 42.6% accurate, 1.7× speedup?

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

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

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

\mathbf{elif}\;a \leq 2.1 \cdot 10^{-24}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;a \leq 2050:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -6.4999999999999997e-56 or 2050 < a

    1. Initial program 63.8%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--60.5%

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

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

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

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

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

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

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

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

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

    if -6.4999999999999997e-56 < a < 4.8999999999999998e-107

    1. Initial program 76.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.8999999999999998e-107 < a < 2.0999999999999999e-24

    1. Initial program 62.0%

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

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

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

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

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

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

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

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

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

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

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

    if 2.0999999999999999e-24 < a < 2050

    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-56}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq 4.9 \cdot 10^{-107}:\\ \;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{-24}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;a \leq 2050:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]

Alternative 16: 51.8% accurate, 1.7× speedup?

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

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

\mathbf{elif}\;a \leq -1.96 \cdot 10^{-13}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2e94 or 4.40000000000000001e70 < a

    1. Initial program 57.4%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--71.3%

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

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

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

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

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

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

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

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

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

    if -2e94 < a < -1.95999999999999998e-13 or 7.20000000000000001e-59 < a < 4.40000000000000001e70

    1. Initial program 72.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.95999999999999998e-13 < a < 7.20000000000000001e-59

    1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2 \cdot 10^{+94}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.96 \cdot 10^{-13}:\\ \;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{-59}:\\ \;\;\;\;c \cdot \left(j \cdot t - z \cdot b\right)\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{+70}:\\ \;\;\;\;y \cdot \left(z \cdot x - i \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]

Alternative 17: 29.5% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;z \leq -6.2 \cdot 10^{+88}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -6200:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\

\mathbf{elif}\;z \leq -1.1 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;z \leq 8 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if z < -2.80000000000000015e170

    1. Initial program 57.2%

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

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

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

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

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

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

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

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

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

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

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

    if -2.80000000000000015e170 < z < -6.2000000000000003e88 or 8.0000000000000003e-62 < z

    1. Initial program 65.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(b \cdot z\right)} \]
      2. *-commutative39.5%

        \[\leadsto \left(-1 \cdot c\right) \cdot \color{blue}{\left(z \cdot b\right)} \]
      3. associate-*r*39.5%

        \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
      4. mul-1-neg39.5%

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

        \[\leadsto \color{blue}{c \cdot \left(-z \cdot b\right)} \]
      6. *-commutative39.5%

        \[\leadsto c \cdot \left(-\color{blue}{b \cdot z}\right) \]
    10. Simplified39.5%

      \[\leadsto \color{blue}{c \cdot \left(-b \cdot z\right)} \]

    if -6.2000000000000003e88 < z < -6200

    1. Initial program 82.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified82.5%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in y around inf 51.9%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + z \cdot x\right)} \]
    5. Step-by-step derivation
      1. +-commutative51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg51.9%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified51.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around 0 45.9%

      \[\leadsto y \cdot \color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg45.9%

        \[\leadsto y \cdot \color{blue}{\left(-i \cdot j\right)} \]
      2. distribute-lft-neg-out45.9%

        \[\leadsto y \cdot \color{blue}{\left(\left(-i\right) \cdot j\right)} \]
      3. *-commutative45.9%

        \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]
    9. Simplified45.9%

      \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]

    if -6200 < z < -1.0999999999999999e-207

    1. Initial program 68.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified68.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in a around inf 61.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg61.1%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified61.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around 0 45.4%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-145.4%

        \[\leadsto a \cdot \color{blue}{\left(-t \cdot x\right)} \]
      2. distribute-rgt-neg-in45.4%

        \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]
    9. Simplified45.4%

      \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]

    if -1.0999999999999999e-207 < z < 8.0000000000000003e-62

    1. Initial program 76.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified76.8%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 38.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around inf 34.0%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
  3. Recombined 5 regimes into one program.
  4. Final simplification41.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.8 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -6.2 \cdot 10^{+88}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq -6200:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-62}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \end{array} \]

Alternative 18: 29.4% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -8.1 \cdot 10^{+89}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq -66000:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{-62}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -7e+170)
   (* y (* z x))
   (if (<= z -8.1e+89)
     (* c (* z (- b)))
     (if (<= z -66000.0)
       (* y (* j (- i)))
       (if (<= z -8e-207)
         (* a (* x (- t)))
         (if (<= z 6.6e-62) (* b (* i a)) (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -7e+170) {
		tmp = y * (z * x);
	} else if (z <= -8.1e+89) {
		tmp = c * (z * -b);
	} else if (z <= -66000.0) {
		tmp = y * (j * -i);
	} else if (z <= -8e-207) {
		tmp = a * (x * -t);
	} else if (z <= 6.6e-62) {
		tmp = b * (i * a);
	} else {
		tmp = b * (z * -c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (z <= (-7d+170)) then
        tmp = y * (z * x)
    else if (z <= (-8.1d+89)) then
        tmp = c * (z * -b)
    else if (z <= (-66000.0d0)) then
        tmp = y * (j * -i)
    else if (z <= (-8d-207)) then
        tmp = a * (x * -t)
    else if (z <= 6.6d-62) then
        tmp = b * (i * a)
    else
        tmp = b * (z * -c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -7e+170) {
		tmp = y * (z * x);
	} else if (z <= -8.1e+89) {
		tmp = c * (z * -b);
	} else if (z <= -66000.0) {
		tmp = y * (j * -i);
	} else if (z <= -8e-207) {
		tmp = a * (x * -t);
	} else if (z <= 6.6e-62) {
		tmp = b * (i * a);
	} else {
		tmp = b * (z * -c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -7e+170:
		tmp = y * (z * x)
	elif z <= -8.1e+89:
		tmp = c * (z * -b)
	elif z <= -66000.0:
		tmp = y * (j * -i)
	elif z <= -8e-207:
		tmp = a * (x * -t)
	elif z <= 6.6e-62:
		tmp = b * (i * a)
	else:
		tmp = b * (z * -c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -7e+170)
		tmp = Float64(y * Float64(z * x));
	elseif (z <= -8.1e+89)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (z <= -66000.0)
		tmp = Float64(y * Float64(j * Float64(-i)));
	elseif (z <= -8e-207)
		tmp = Float64(a * Float64(x * Float64(-t)));
	elseif (z <= 6.6e-62)
		tmp = Float64(b * Float64(i * a));
	else
		tmp = Float64(b * Float64(z * Float64(-c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -7e+170)
		tmp = y * (z * x);
	elseif (z <= -8.1e+89)
		tmp = c * (z * -b);
	elseif (z <= -66000.0)
		tmp = y * (j * -i);
	elseif (z <= -8e-207)
		tmp = a * (x * -t);
	elseif (z <= 6.6e-62)
		tmp = b * (i * a);
	else
		tmp = b * (z * -c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.1e+89], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -66000.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-62], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;z \leq -8.1 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;z \leq -66000:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\

\mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;z \leq 6.6 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if z < -7.00000000000000011e170

    1. Initial program 57.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified57.2%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 75.3%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 50.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -7.00000000000000011e170 < z < -8.1e89

    1. Initial program 82.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 77.1%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around 0 71.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*71.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(z \cdot b\right)} \]
      2. neg-mul-171.8%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(z \cdot b\right) \]
      3. *-commutative71.8%

        \[\leadsto \left(-c\right) \cdot \color{blue}{\left(b \cdot z\right)} \]
      4. associate-*r*71.8%

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]
    7. Simplified71.8%

      \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]
    8. Taylor expanded in c around 0 71.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(b \cdot z\right)\right)} \]
    9. Step-by-step derivation
      1. associate-*r*71.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(b \cdot z\right)} \]
      2. *-commutative71.8%

        \[\leadsto \left(-1 \cdot c\right) \cdot \color{blue}{\left(z \cdot b\right)} \]
      3. associate-*r*71.8%

        \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
      4. mul-1-neg71.8%

        \[\leadsto \color{blue}{-c \cdot \left(z \cdot b\right)} \]
      5. distribute-rgt-neg-in71.8%

        \[\leadsto \color{blue}{c \cdot \left(-z \cdot b\right)} \]
      6. *-commutative71.8%

        \[\leadsto c \cdot \left(-\color{blue}{b \cdot z}\right) \]
    10. Simplified71.8%

      \[\leadsto \color{blue}{c \cdot \left(-b \cdot z\right)} \]

    if -8.1e89 < z < -66000

    1. Initial program 82.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified82.5%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in y around inf 51.9%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + z \cdot x\right)} \]
    5. Step-by-step derivation
      1. +-commutative51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg51.9%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified51.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around 0 45.9%

      \[\leadsto y \cdot \color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg45.9%

        \[\leadsto y \cdot \color{blue}{\left(-i \cdot j\right)} \]
      2. distribute-lft-neg-out45.9%

        \[\leadsto y \cdot \color{blue}{\left(\left(-i\right) \cdot j\right)} \]
      3. *-commutative45.9%

        \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]
    9. Simplified45.9%

      \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]

    if -66000 < z < -7.9999999999999994e-207

    1. Initial program 68.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified68.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in a around inf 61.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg61.1%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified61.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around 0 45.4%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-145.4%

        \[\leadsto a \cdot \color{blue}{\left(-t \cdot x\right)} \]
      2. distribute-rgt-neg-in45.4%

        \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]
    9. Simplified45.4%

      \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]

    if -7.9999999999999994e-207 < z < 6.60000000000000009e-62

    1. Initial program 76.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified76.8%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 38.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around inf 34.0%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]

    if 6.60000000000000009e-62 < z

    1. Initial program 61.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 45.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around 0 33.4%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z\right)\right)} \cdot b \]
    6. Step-by-step derivation
      1. neg-mul-133.4%

        \[\leadsto \color{blue}{\left(-c \cdot z\right)} \cdot b \]
      2. distribute-lft-neg-in33.4%

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot z\right)} \cdot b \]
      3. *-commutative33.4%

        \[\leadsto \color{blue}{\left(z \cdot \left(-c\right)\right)} \cdot b \]
    7. Simplified33.4%

      \[\leadsto \color{blue}{\left(z \cdot \left(-c\right)\right)} \cdot b \]
  3. Recombined 6 regimes into one program.
  4. Final simplification41.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -8.1 \cdot 10^{+89}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq -66000:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{-62}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \end{array} \]

Alternative 19: 29.3% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.8 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -5.5 \cdot 10^{+88}:\\ \;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\ \mathbf{elif}\;z \leq -11500:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 7.7 \cdot 10^{-62}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -5.8e+170)
   (* y (* z x))
   (if (<= z -5.5e+88)
     (* (* c b) (- z))
     (if (<= z -11500.0)
       (* y (* j (- i)))
       (if (<= z -8e-207)
         (* a (* x (- t)))
         (if (<= z 7.7e-62) (* b (* i a)) (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -5.8e+170) {
		tmp = y * (z * x);
	} else if (z <= -5.5e+88) {
		tmp = (c * b) * -z;
	} else if (z <= -11500.0) {
		tmp = y * (j * -i);
	} else if (z <= -8e-207) {
		tmp = a * (x * -t);
	} else if (z <= 7.7e-62) {
		tmp = b * (i * a);
	} else {
		tmp = b * (z * -c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (z <= (-5.8d+170)) then
        tmp = y * (z * x)
    else if (z <= (-5.5d+88)) then
        tmp = (c * b) * -z
    else if (z <= (-11500.0d0)) then
        tmp = y * (j * -i)
    else if (z <= (-8d-207)) then
        tmp = a * (x * -t)
    else if (z <= 7.7d-62) then
        tmp = b * (i * a)
    else
        tmp = b * (z * -c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -5.8e+170) {
		tmp = y * (z * x);
	} else if (z <= -5.5e+88) {
		tmp = (c * b) * -z;
	} else if (z <= -11500.0) {
		tmp = y * (j * -i);
	} else if (z <= -8e-207) {
		tmp = a * (x * -t);
	} else if (z <= 7.7e-62) {
		tmp = b * (i * a);
	} else {
		tmp = b * (z * -c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -5.8e+170:
		tmp = y * (z * x)
	elif z <= -5.5e+88:
		tmp = (c * b) * -z
	elif z <= -11500.0:
		tmp = y * (j * -i)
	elif z <= -8e-207:
		tmp = a * (x * -t)
	elif z <= 7.7e-62:
		tmp = b * (i * a)
	else:
		tmp = b * (z * -c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -5.8e+170)
		tmp = Float64(y * Float64(z * x));
	elseif (z <= -5.5e+88)
		tmp = Float64(Float64(c * b) * Float64(-z));
	elseif (z <= -11500.0)
		tmp = Float64(y * Float64(j * Float64(-i)));
	elseif (z <= -8e-207)
		tmp = Float64(a * Float64(x * Float64(-t)));
	elseif (z <= 7.7e-62)
		tmp = Float64(b * Float64(i * a));
	else
		tmp = Float64(b * Float64(z * Float64(-c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -5.8e+170)
		tmp = y * (z * x);
	elseif (z <= -5.5e+88)
		tmp = (c * b) * -z;
	elseif (z <= -11500.0)
		tmp = y * (j * -i);
	elseif (z <= -8e-207)
		tmp = a * (x * -t);
	elseif (z <= 7.7e-62)
		tmp = b * (i * a);
	else
		tmp = b * (z * -c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.8e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -5.5e+88], N[(N[(c * b), $MachinePrecision] * (-z)), $MachinePrecision], If[LessEqual[z, -11500.0], N[(y * N[(j * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.7e-62], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;z \leq -5.5 \cdot 10^{+88}:\\
\;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\

\mathbf{elif}\;z \leq -11500:\\
\;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\

\mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;z \leq 7.7 \cdot 10^{-62}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if z < -5.8000000000000001e170

    1. Initial program 57.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified57.2%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 75.3%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 50.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -5.8000000000000001e170 < z < -5.5e88

    1. Initial program 82.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative82.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 77.1%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around 0 71.8%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*71.8%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(z \cdot b\right)} \]
      2. neg-mul-171.8%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(z \cdot b\right) \]
      3. *-commutative71.8%

        \[\leadsto \left(-c\right) \cdot \color{blue}{\left(b \cdot z\right)} \]
      4. associate-*r*71.8%

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]
    7. Simplified71.8%

      \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]

    if -5.5e88 < z < -11500

    1. Initial program 82.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv82.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative82.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified82.5%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in y around inf 51.9%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + z \cdot x\right)} \]
    5. Step-by-step derivation
      1. +-commutative51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg51.9%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg51.9%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified51.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around 0 45.9%

      \[\leadsto y \cdot \color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg45.9%

        \[\leadsto y \cdot \color{blue}{\left(-i \cdot j\right)} \]
      2. distribute-lft-neg-out45.9%

        \[\leadsto y \cdot \color{blue}{\left(\left(-i\right) \cdot j\right)} \]
      3. *-commutative45.9%

        \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]
    9. Simplified45.9%

      \[\leadsto y \cdot \color{blue}{\left(j \cdot \left(-i\right)\right)} \]

    if -11500 < z < -7.9999999999999994e-207

    1. Initial program 68.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified68.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in a around inf 61.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg61.1%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified61.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around 0 45.4%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-145.4%

        \[\leadsto a \cdot \color{blue}{\left(-t \cdot x\right)} \]
      2. distribute-rgt-neg-in45.4%

        \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]
    9. Simplified45.4%

      \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]

    if -7.9999999999999994e-207 < z < 7.69999999999999996e-62

    1. Initial program 76.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified76.8%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 38.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around inf 34.0%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]

    if 7.69999999999999996e-62 < z

    1. Initial program 61.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative61.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 45.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around 0 33.4%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z\right)\right)} \cdot b \]
    6. Step-by-step derivation
      1. neg-mul-133.4%

        \[\leadsto \color{blue}{\left(-c \cdot z\right)} \cdot b \]
      2. distribute-lft-neg-in33.4%

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot z\right)} \cdot b \]
      3. *-commutative33.4%

        \[\leadsto \color{blue}{\left(z \cdot \left(-c\right)\right)} \cdot b \]
    7. Simplified33.4%

      \[\leadsto \color{blue}{\left(z \cdot \left(-c\right)\right)} \cdot b \]
  3. Recombined 6 regimes into one program.
  4. Final simplification41.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.8 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -5.5 \cdot 10^{+88}:\\ \;\;\;\;\left(c \cdot b\right) \cdot \left(-z\right)\\ \mathbf{elif}\;z \leq -11500:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;z \leq -8 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 7.7 \cdot 10^{-62}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \end{array} \]

Alternative 20: 28.4% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{if}\;x \leq -5.2 \cdot 10^{+171}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -5.4 \cdot 10^{+42}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;x \leq -6.8 \cdot 10^{-36} \lor \neg \left(x \leq 3.5 \cdot 10^{-17}\right):\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (* x (- t)))))
   (if (<= x -5.2e+171)
     t_1
     (if (<= x -5.4e+42)
       (* y (* z x))
       (if (or (<= x -6.8e-36) (not (<= x 3.5e-17))) t_1 (* b (* i a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (x * -t);
	double tmp;
	if (x <= -5.2e+171) {
		tmp = t_1;
	} else if (x <= -5.4e+42) {
		tmp = y * (z * x);
	} else if ((x <= -6.8e-36) || !(x <= 3.5e-17)) {
		tmp = t_1;
	} else {
		tmp = b * (i * a);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (x * -t)
    if (x <= (-5.2d+171)) then
        tmp = t_1
    else if (x <= (-5.4d+42)) then
        tmp = y * (z * x)
    else if ((x <= (-6.8d-36)) .or. (.not. (x <= 3.5d-17))) then
        tmp = t_1
    else
        tmp = b * (i * a)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (x * -t);
	double tmp;
	if (x <= -5.2e+171) {
		tmp = t_1;
	} else if (x <= -5.4e+42) {
		tmp = y * (z * x);
	} else if ((x <= -6.8e-36) || !(x <= 3.5e-17)) {
		tmp = t_1;
	} else {
		tmp = b * (i * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * (x * -t)
	tmp = 0
	if x <= -5.2e+171:
		tmp = t_1
	elif x <= -5.4e+42:
		tmp = y * (z * x)
	elif (x <= -6.8e-36) or not (x <= 3.5e-17):
		tmp = t_1
	else:
		tmp = b * (i * a)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(x * Float64(-t)))
	tmp = 0.0
	if (x <= -5.2e+171)
		tmp = t_1;
	elseif (x <= -5.4e+42)
		tmp = Float64(y * Float64(z * x));
	elseif ((x <= -6.8e-36) || !(x <= 3.5e-17))
		tmp = t_1;
	else
		tmp = Float64(b * Float64(i * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * (x * -t);
	tmp = 0.0;
	if (x <= -5.2e+171)
		tmp = t_1;
	elseif (x <= -5.4e+42)
		tmp = y * (z * x);
	elseif ((x <= -6.8e-36) || ~((x <= 3.5e-17)))
		tmp = t_1;
	else
		tmp = b * (i * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+171], t$95$1, If[LessEqual[x, -5.4e+42], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -6.8e-36], N[Not[LessEqual[x, 3.5e-17]], $MachinePrecision]], t$95$1, N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+171}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq -5.4 \cdot 10^{+42}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;x \leq -6.8 \cdot 10^{-36} \lor \neg \left(x \leq 3.5 \cdot 10^{-17}\right):\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -5.2e171 or -5.4000000000000001e42 < x < -6.8000000000000005e-36 or 3.5000000000000002e-17 < x

    1. Initial program 65.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub65.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv65.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative65.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative65.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg65.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative65.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative65.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified65.3%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in a around inf 49.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--49.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--49.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg49.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg49.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg49.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative49.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg49.1%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg49.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified49.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around 0 42.8%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-142.8%

        \[\leadsto a \cdot \color{blue}{\left(-t \cdot x\right)} \]
      2. distribute-rgt-neg-in42.8%

        \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]
    9. Simplified42.8%

      \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]

    if -5.2e171 < x < -5.4000000000000001e42

    1. Initial program 78.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub78.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv78.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified78.3%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 49.9%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 47.3%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -6.8000000000000005e-36 < x < 3.5000000000000002e-17

    1. Initial program 69.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub69.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv69.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative69.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative69.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg69.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative69.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative69.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified69.3%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 50.3%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around inf 28.6%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
  3. Recombined 3 regimes into one program.
  4. Final simplification36.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.2 \cdot 10^{+171}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;x \leq -5.4 \cdot 10^{+42}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;x \leq -6.8 \cdot 10^{-36} \lor \neg \left(x \leq 3.5 \cdot 10^{-17}\right):\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \end{array} \]

Alternative 21: 29.6% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{if}\;z \leq -2.25 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -7000:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -1.45 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{-61}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* c (* z (- b)))))
   (if (<= z -2.25e+170)
     (* y (* z x))
     (if (<= z -7000.0)
       t_1
       (if (<= z -1.45e-207)
         (* a (* x (- t)))
         (if (<= z 1.4e-61) (* b (* i a)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (z * -b);
	double tmp;
	if (z <= -2.25e+170) {
		tmp = y * (z * x);
	} else if (z <= -7000.0) {
		tmp = t_1;
	} else if (z <= -1.45e-207) {
		tmp = a * (x * -t);
	} else if (z <= 1.4e-61) {
		tmp = b * (i * a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = c * (z * -b)
    if (z <= (-2.25d+170)) then
        tmp = y * (z * x)
    else if (z <= (-7000.0d0)) then
        tmp = t_1
    else if (z <= (-1.45d-207)) then
        tmp = a * (x * -t)
    else if (z <= 1.4d-61) then
        tmp = b * (i * a)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * (z * -b);
	double tmp;
	if (z <= -2.25e+170) {
		tmp = y * (z * x);
	} else if (z <= -7000.0) {
		tmp = t_1;
	} else if (z <= -1.45e-207) {
		tmp = a * (x * -t);
	} else if (z <= 1.4e-61) {
		tmp = b * (i * a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * (z * -b)
	tmp = 0
	if z <= -2.25e+170:
		tmp = y * (z * x)
	elif z <= -7000.0:
		tmp = t_1
	elif z <= -1.45e-207:
		tmp = a * (x * -t)
	elif z <= 1.4e-61:
		tmp = b * (i * a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(z * Float64(-b)))
	tmp = 0.0
	if (z <= -2.25e+170)
		tmp = Float64(y * Float64(z * x));
	elseif (z <= -7000.0)
		tmp = t_1;
	elseif (z <= -1.45e-207)
		tmp = Float64(a * Float64(x * Float64(-t)));
	elseif (z <= 1.4e-61)
		tmp = Float64(b * Float64(i * a));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = c * (z * -b);
	tmp = 0.0;
	if (z <= -2.25e+170)
		tmp = y * (z * x);
	elseif (z <= -7000.0)
		tmp = t_1;
	elseif (z <= -1.45e-207)
		tmp = a * (x * -t);
	elseif (z <= 1.4e-61)
		tmp = b * (i * a);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.25e+170], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7000.0], t$95$1, If[LessEqual[z, -1.45e-207], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-61], N[(b * N[(i * a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{if}\;z \leq -2.25 \cdot 10^{+170}:\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{elif}\;z \leq -7000:\\
\;\;\;\;t_1\\

\mathbf{elif}\;z \leq -1.45 \cdot 10^{-207}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

\mathbf{elif}\;z \leq 1.4 \cdot 10^{-61}:\\
\;\;\;\;b \cdot \left(i \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.25000000000000011e170

    1. Initial program 57.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv57.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative57.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified57.2%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 75.3%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 50.9%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -2.25000000000000011e170 < z < -7e3 or 1.4000000000000001e-61 < z

    1. Initial program 68.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub68.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv68.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative68.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative68.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg68.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative68.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative68.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified68.2%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 46.4%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around 0 36.4%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
    6. Step-by-step derivation
      1. associate-*r*36.4%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(z \cdot b\right)} \]
      2. neg-mul-136.4%

        \[\leadsto \color{blue}{\left(-c\right)} \cdot \left(z \cdot b\right) \]
      3. *-commutative36.4%

        \[\leadsto \left(-c\right) \cdot \color{blue}{\left(b \cdot z\right)} \]
      4. associate-*r*37.3%

        \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]
    7. Simplified37.3%

      \[\leadsto \color{blue}{\left(\left(-c\right) \cdot b\right) \cdot z} \]
    8. Taylor expanded in c around 0 36.4%

      \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(b \cdot z\right)\right)} \]
    9. Step-by-step derivation
      1. associate-*r*36.4%

        \[\leadsto \color{blue}{\left(-1 \cdot c\right) \cdot \left(b \cdot z\right)} \]
      2. *-commutative36.4%

        \[\leadsto \left(-1 \cdot c\right) \cdot \color{blue}{\left(z \cdot b\right)} \]
      3. associate-*r*36.4%

        \[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(z \cdot b\right)\right)} \]
      4. mul-1-neg36.4%

        \[\leadsto \color{blue}{-c \cdot \left(z \cdot b\right)} \]
      5. distribute-rgt-neg-in36.4%

        \[\leadsto \color{blue}{c \cdot \left(-z \cdot b\right)} \]
      6. *-commutative36.4%

        \[\leadsto c \cdot \left(-\color{blue}{b \cdot z}\right) \]
    10. Simplified36.4%

      \[\leadsto \color{blue}{c \cdot \left(-b \cdot z\right)} \]

    if -7e3 < z < -1.45000000000000006e-207

    1. Initial program 68.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv68.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative68.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified68.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in a around inf 61.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg61.1%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg61.1%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg61.1%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified61.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around 0 45.4%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. neg-mul-145.4%

        \[\leadsto a \cdot \color{blue}{\left(-t \cdot x\right)} \]
      2. distribute-rgt-neg-in45.4%

        \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]
    9. Simplified45.4%

      \[\leadsto a \cdot \color{blue}{\left(t \cdot \left(-x\right)\right)} \]

    if -1.45000000000000006e-207 < z < 1.4000000000000001e-61

    1. Initial program 76.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv76.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative76.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified76.8%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in b around inf 38.0%

      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
    5. Taylor expanded in a around inf 34.0%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
  3. Recombined 4 regimes into one program.
  4. Final simplification39.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.25 \cdot 10^{+170}:\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{elif}\;z \leq -7000:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;z \leq -1.45 \cdot 10^{-207}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;z \leq 1.4 \cdot 10^{-61}:\\ \;\;\;\;b \cdot \left(i \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \end{array} \]

Alternative 22: 29.7% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+91} \lor \neg \left(y \leq 5 \cdot 10^{+56}\right):\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(b \cdot a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= y -7e+91) (not (<= y 5e+56))) (* y (* z x)) (* i (* b a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((y <= -7e+91) || !(y <= 5e+56)) {
		tmp = y * (z * x);
	} else {
		tmp = i * (b * a);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((y <= (-7d+91)) .or. (.not. (y <= 5d+56))) then
        tmp = y * (z * x)
    else
        tmp = i * (b * a)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((y <= -7e+91) || !(y <= 5e+56)) {
		tmp = y * (z * x);
	} else {
		tmp = i * (b * a);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (y <= -7e+91) or not (y <= 5e+56):
		tmp = y * (z * x)
	else:
		tmp = i * (b * a)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((y <= -7e+91) || !(y <= 5e+56))
		tmp = Float64(y * Float64(z * x));
	else
		tmp = Float64(i * Float64(b * a));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((y <= -7e+91) || ~((y <= 5e+56)))
		tmp = y * (z * x);
	else
		tmp = i * (b * a);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -7e+91], N[Not[LessEqual[y, 5e+56]], $MachinePrecision]], N[(y * N[(z * x), $MachinePrecision]), $MachinePrecision], N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -7 \cdot 10^{+91} \lor \neg \left(y \leq 5 \cdot 10^{+56}\right):\\
\;\;\;\;y \cdot \left(z \cdot x\right)\\

\mathbf{else}:\\
\;\;\;\;i \cdot \left(b \cdot a\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -7.00000000000000001e91 or 5.00000000000000024e56 < y

    1. Initial program 64.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub64.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. cancel-sign-sub-inv64.3%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative64.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative64.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg64.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative64.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative64.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{y \cdot i}\right) \]
    3. Simplified64.3%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 45.8%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 41.7%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -7.00000000000000001e91 < y < 5.00000000000000024e56

    1. Initial program 71.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
      3. *-commutative71.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      4. *-commutative71.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
      5. remove-double-neg71.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
      6. *-commutative71.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
      7. *-commutative71.1%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \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) - -1 \cdot \left(i \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-lft-out--46.5%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
      2. distribute-lft-out--46.5%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
      3. sub-neg46.5%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
      4. mul-1-neg46.5%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
      5. remove-double-neg46.5%

        \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
      6. +-commutative46.5%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
      7. mul-1-neg46.5%

        \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
      8. unsub-neg46.5%

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
    6. Simplified46.5%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
    7. Taylor expanded in i around inf 23.1%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
    8. Step-by-step derivation
      1. associate-*r*24.2%

        \[\leadsto \color{blue}{\left(a \cdot i\right) \cdot b} \]
      2. *-commutative24.2%

        \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
      3. associate-*r*26.5%

        \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} \]
    9. Simplified26.5%

      \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification31.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7 \cdot 10^{+91} \lor \neg \left(y \leq 5 \cdot 10^{+56}\right):\\ \;\;\;\;y \cdot \left(z \cdot x\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(b \cdot a\right)\\ \end{array} \]

Alternative 23: 21.6% accurate, 5.8× speedup?

\[\begin{array}{l} \\ a \cdot \left(b \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j):
	return a * (b * i)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(a * Float64(b * i))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = a * (b * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(b \cdot i\right)
\end{array}
Derivation
  1. Initial program 68.7%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
    3. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
    4. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
    5. remove-double-neg68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
    6. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
    7. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
  4. Taylor expanded in a around inf 39.1%

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
  5. Step-by-step derivation
    1. distribute-lft-out--39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
    2. distribute-lft-out--39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    3. sub-neg39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
    4. mul-1-neg39.1%

      \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
    5. remove-double-neg39.1%

      \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
    6. +-commutative39.1%

      \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
    7. mul-1-neg39.1%

      \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
    8. unsub-neg39.1%

      \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
  6. Simplified39.1%

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
  7. Taylor expanded in i around inf 20.3%

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
  8. Final simplification20.3%

    \[\leadsto a \cdot \left(b \cdot i\right) \]

Alternative 24: 22.1% accurate, 5.8× speedup?

\[\begin{array}{l} \\ i \cdot \left(b \cdot a\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* i (* b a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return i * (b * a);
}
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 = i * (b * a)
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 i * (b * a);
}
def code(x, y, z, t, a, b, c, i, j):
	return i * (b * a)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(i * Float64(b * a))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = i * (b * a);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(b * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
i \cdot \left(b \cdot a\right)
\end{array}
Derivation
  1. Initial program 68.7%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) - \left(-j\right) \cdot \left(c \cdot t - i \cdot y\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 - i \cdot a\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right)} \]
    3. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - \color{blue}{a \cdot i}\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
    4. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot t - i \cdot y\right) \]
    5. remove-double-neg68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot t - i \cdot y\right) \]
    6. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(\color{blue}{t \cdot c} - i \cdot y\right) \]
    7. *-commutative68.7%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - \color{blue}{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 - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
  4. Taylor expanded in a around inf 39.1%

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
  5. Step-by-step derivation
    1. distribute-lft-out--39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x - i \cdot b\right)\right)} \]
    2. distribute-lft-out--39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(i \cdot b\right)\right)} \]
    3. sub-neg39.1%

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(--1 \cdot \left(i \cdot b\right)\right)\right)} \]
    4. mul-1-neg39.1%

      \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \left(-\color{blue}{\left(-i \cdot b\right)}\right)\right) \]
    5. remove-double-neg39.1%

      \[\leadsto a \cdot \left(-1 \cdot \left(t \cdot x\right) + \color{blue}{i \cdot b}\right) \]
    6. +-commutative39.1%

      \[\leadsto a \cdot \color{blue}{\left(i \cdot b + -1 \cdot \left(t \cdot x\right)\right)} \]
    7. mul-1-neg39.1%

      \[\leadsto a \cdot \left(i \cdot b + \color{blue}{\left(-t \cdot x\right)}\right) \]
    8. unsub-neg39.1%

      \[\leadsto a \cdot \color{blue}{\left(i \cdot b - t \cdot x\right)} \]
  6. Simplified39.1%

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b - t \cdot x\right)} \]
  7. Taylor expanded in i around inf 20.3%

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
  8. Step-by-step derivation
    1. associate-*r*21.8%

      \[\leadsto \color{blue}{\left(a \cdot i\right) \cdot b} \]
    2. *-commutative21.8%

      \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
    3. associate-*r*21.8%

      \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} \]
  9. Simplified21.8%

    \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} \]
  10. Final simplification21.8%

    \[\leadsto i \cdot \left(b \cdot a\right) \]

Developer target: 69.0% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;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
         (+
          (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
          (/
           (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
           (+ (* c t) (* i y)))))
        (t_2
         (-
          (* x (- (* z y) (* a t)))
          (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
   (if (< t -8.120978919195912e-33)
     t_2
     (if (< t -4.712553818218485e-169)
       t_1
       (if (< t -7.633533346031584e-308)
         t_2
         (if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
    t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
    if (t < (-8.120978919195912d-33)) then
        tmp = t_2
    else if (t < (-4.712553818218485d-169)) then
        tmp = t_1
    else if (t < (-7.633533346031584d-308)) then
        tmp = t_2
    else if (t < 1.0535888557455487d-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
	tmp = 0
	if t < -8.120978919195912e-33:
		tmp = t_2
	elif t < -4.712553818218485e-169:
		tmp = t_1
	elif t < -7.633533346031584e-308:
		tmp = t_2
	elif t < 1.0535888557455487e-139:
		tmp = t_1
	else:
		tmp = t_2
	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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
	tmp = 0.0
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	tmp = 0.0;
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		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[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2023200 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  :precision binary64

  :herbie-target
  (if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))