Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.3% → 81.0%
Time: 35.3s
Alternatives: 29
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - 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 29 alternatives:

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

Initial Program: 73.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - 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: 81.0% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \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 91.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. *-commutative91.7%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative91.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative91.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} - y \cdot i\right) \]
    3. Simplified91.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. Step-by-step derivation
      1. cancel-sign-sub-inv91.7%

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

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

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

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

    if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 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. *-commutative0.0%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j - b \cdot a\right)\right)} \]
      6. mul-1-neg57.9%

        \[\leadsto i \cdot \color{blue}{\left(-\left(y \cdot j - b \cdot a\right)\right)} \]
      7. sub-neg57.9%

        \[\leadsto i \cdot \left(-\color{blue}{\left(y \cdot j + \left(-b \cdot a\right)\right)}\right) \]
      8. distribute-rgt-neg-out57.9%

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

        \[\leadsto i \cdot \left(-\color{blue}{\left(b \cdot \left(-a\right) + y \cdot j\right)}\right) \]
      10. distribute-neg-in57.9%

        \[\leadsto i \cdot \color{blue}{\left(\left(-b \cdot \left(-a\right)\right) + \left(-y \cdot j\right)\right)} \]
      11. distribute-rgt-neg-out57.9%

        \[\leadsto i \cdot \left(\left(-\color{blue}{\left(-b \cdot a\right)}\right) + \left(-y \cdot j\right)\right) \]
      12. remove-double-neg57.9%

        \[\leadsto i \cdot \left(\color{blue}{b \cdot a} + \left(-y \cdot j\right)\right) \]
      13. unsub-neg57.9%

        \[\leadsto i \cdot \color{blue}{\left(b \cdot a - y \cdot j\right)} \]
      14. *-commutative57.9%

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

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

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

Alternative 2: 81.9% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \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 91.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) \]

    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. *-commutative0.0%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j - b \cdot a\right)\right)} \]
      6. mul-1-neg57.9%

        \[\leadsto i \cdot \color{blue}{\left(-\left(y \cdot j - b \cdot a\right)\right)} \]
      7. sub-neg57.9%

        \[\leadsto i \cdot \left(-\color{blue}{\left(y \cdot j + \left(-b \cdot a\right)\right)}\right) \]
      8. distribute-rgt-neg-out57.9%

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

        \[\leadsto i \cdot \left(-\color{blue}{\left(b \cdot \left(-a\right) + y \cdot j\right)}\right) \]
      10. distribute-neg-in57.9%

        \[\leadsto i \cdot \color{blue}{\left(\left(-b \cdot \left(-a\right)\right) + \left(-y \cdot j\right)\right)} \]
      11. distribute-rgt-neg-out57.9%

        \[\leadsto i \cdot \left(\left(-\color{blue}{\left(-b \cdot a\right)}\right) + \left(-y \cdot j\right)\right) \]
      12. remove-double-neg57.9%

        \[\leadsto i \cdot \left(\color{blue}{b \cdot a} + \left(-y \cdot j\right)\right) \]
      13. unsub-neg57.9%

        \[\leadsto i \cdot \color{blue}{\left(b \cdot a - y \cdot j\right)} \]
      14. *-commutative57.9%

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

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

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

Alternative 3: 60.7% accurate, 1.1× speedup?

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

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

\mathbf{elif}\;x \leq -1.18 \cdot 10^{-30}:\\
\;\;\;\;t_3\\

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

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

\mathbf{elif}\;x \leq 2.6 \cdot 10^{+96}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -4.59999999999999975e160

    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. *-commutative68.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \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(z \cdot c - a \cdot i\right)\right) + j \cdot \left(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-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} - 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 0 68.3%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + x \cdot \left(y \cdot z\right)} \]
    8. Simplified76.9%

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

    if -4.59999999999999975e160 < x < -1.18000000000000006e-30 or 2.6e96 < x

    1. Initial program 88.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. *-commutative88.6%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative88.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative88.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} - y \cdot i\right) \]
    3. Simplified88.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 0 77.9%

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

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

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

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

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

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

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

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

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

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

    if -1.18000000000000006e-30 < x < 1.30000000000000007e-169 or 6.1999999999999998e-140 < x < 2.6e96

    1. Initial program 73.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. *-commutative73.1%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative73.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative73.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} - y \cdot i\right) \]
    3. Simplified73.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 71.3%

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

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

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

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

    if 1.30000000000000007e-169 < x < 6.1999999999999998e-140

    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. *-commutative72.8%

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

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

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

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

        \[\leadsto z \cdot \left(y \cdot x - \color{blue}{c \cdot b}\right) \]
    6. Simplified67.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.6 \cdot 10^{+160}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq -1.18 \cdot 10^{-30}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-169}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 6.2 \cdot 10^{-140}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{+96}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\ \end{array} \]

Alternative 4: 67.6% accurate, 1.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.55e9

    1. Initial program 83.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. *-commutative83.2%

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

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

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

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

    if -1.55e9 < b < 9e-130

    1. Initial program 71.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. *-commutative71.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative71.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative71.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} - y \cdot i\right) \]
    3. Simplified71.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 0 77.3%

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

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

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

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

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

    if 9e-130 < b

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 0 75.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(j \cdot c - a \cdot x\right) + b \cdot \color{blue}{\left(0 - \left(c \cdot z - i \cdot a\right)\right)} \]
      15. associate--r-71.8%

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

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

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

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

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

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

Alternative 5: 59.0% accurate, 1.2× speedup?

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

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

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

\mathbf{elif}\;i \leq 8.2 \cdot 10^{+15} \lor \neg \left(i \leq 1.45 \cdot 10^{+61}\right):\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -6.00000000000000043e-109 or 1.1e-81 < i < 8.2e15 or 1.45e61 < i

    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. *-commutative72.7%

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

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

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

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

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

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

    if -6.00000000000000043e-109 < i < 1.1e-81

    1. Initial program 83.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. *-commutative83.4%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.4%

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

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

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

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

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

    if 8.2e15 < i < 1.45e61

    1. Initial program 78.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. *-commutative78.8%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative78.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative78.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} - y \cdot i\right) \]
    3. Simplified78.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 0 78.8%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -6 \cdot 10^{-109}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;i \leq 1.1 \cdot 10^{-81}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;i \leq 8.2 \cdot 10^{+15} \lor \neg \left(i \leq 1.45 \cdot 10^{+61}\right):\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\ \end{array} \]

Alternative 6: 57.9% accurate, 1.2× speedup?

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

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

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

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

\mathbf{elif}\;x \leq 4.2 \cdot 10^{+115}:\\
\;\;\;\;t_1\\

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


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

    1. Initial program 77.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. *-commutative77.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative77.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative77.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} - y \cdot i\right) \]
    3. Simplified77.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 0 73.8%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + x \cdot \left(y \cdot z\right)} \]
    8. Simplified72.0%

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

    if -85000 < x < 1.59999999999999997e-169 or 1.84999999999999989e-140 < x < 4.20000000000000007e115

    1. Initial program 74.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. *-commutative74.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative74.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative74.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} - y \cdot i\right) \]
    3. Simplified74.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 68.3%

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

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

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

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

    if 1.59999999999999997e-169 < x < 1.84999999999999989e-140

    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. *-commutative72.8%

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

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

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

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

        \[\leadsto z \cdot \left(y \cdot x - \color{blue}{c \cdot b}\right) \]
    6. Simplified67.9%

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

    if 4.20000000000000007e115 < x

    1. Initial program 90.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. *-commutative90.1%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative90.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative90.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} - y \cdot i\right) \]
    3. Simplified90.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 0 81.2%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -85000:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq 1.6 \cdot 10^{-169}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 1.85 \cdot 10^{-140}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;x \leq 4.2 \cdot 10^{+115}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right) - a \cdot \left(x \cdot t\right)\\ \end{array} \]

Alternative 7: 66.9% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.7 \cdot 10^{+44} \lor \neg \left(b \leq 1.2 \cdot 10^{+100}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -6.70000000000000035e44 or 1.20000000000000006e100 < b

    1. Initial program 80.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. *-commutative80.6%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative80.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative80.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} - y \cdot i\right) \]
    3. Simplified80.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 69.4%

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

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

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

    if -6.70000000000000035e44 < b < 1.20000000000000006e100

    1. Initial program 75.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. *-commutative75.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative75.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative75.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} - y \cdot i\right) \]
    3. Simplified75.5%

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

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

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

Alternative 8: 68.1% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.5 \cdot 10^{+44} \lor \neg \left(b \leq 3.45 \cdot 10^{-130}\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -6.50000000000000018e44 or 3.45000000000000018e-130 < b

    1. Initial program 82.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. *-commutative82.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 y around 0 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(j \cdot c - a \cdot x\right) + b \cdot \color{blue}{\left(0 - \left(c \cdot z - i \cdot a\right)\right)} \]
      15. associate--r-73.8%

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

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

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

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

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

    if -6.50000000000000018e44 < b < 3.45000000000000018e-130

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

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

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

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

Alternative 9: 68.0% accurate, 1.3× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.45e10

    1. Initial program 83.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. *-commutative83.2%

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

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

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

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

    if -1.45e10 < b < 9.2000000000000005e-130

    1. Initial program 71.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. *-commutative71.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative71.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative71.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} - y \cdot i\right) \]
    3. Simplified71.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 0 77.3%

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

    if 9.2000000000000005e-130 < b

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 0 75.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(j \cdot c - a \cdot x\right) + b \cdot \color{blue}{\left(0 - \left(c \cdot z - i \cdot a\right)\right)} \]
      15. associate--r-71.8%

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

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

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

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

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

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

Alternative 10: 58.5% accurate, 1.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -5.9999999999999994e-107 or 6.1999999999999998e61 < i

    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. *-commutative70.5%

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

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

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

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

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

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

    if -5.9999999999999994e-107 < i < 1.59999999999999988e-162

    1. Initial program 86.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. *-commutative86.4%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative86.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative86.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} - y \cdot i\right) \]
    3. Simplified86.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 j around 0 78.5%

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

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

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

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

    if 1.59999999999999988e-162 < i < 6.1999999999999998e61

    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. *-commutative78.1%

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

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

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

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

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

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

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

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

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

        \[\leadsto -1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(x \cdot \left(y \cdot z\right) + \color{blue}{\left(-a\right) \cdot \left(t \cdot x\right)}\right) \]
      7. distribute-lft-neg-out54.2%

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

        \[\leadsto -1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot \left(y \cdot z\right) - a \cdot \left(t \cdot x\right)\right)} \]
      9. associate-+r-54.2%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -6 \cdot 10^{-107}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;i \leq 1.6 \cdot 10^{-162}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;i \leq 6.2 \cdot 10^{+61}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \end{array} \]

Alternative 11: 42.3% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{if}\;b \leq -5.5 \cdot 10^{-10}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-130}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 10^{-170}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 8000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (- (* a i) (* z c)))))
   (if (<= b -5.5e-10)
     t_1
     (if (<= b -3.2e-130)
       (* y (* i (- j)))
       (if (<= b -2.2e-235)
         (* z (* x y))
         (if (<= b 1e-170)
           (* i (* y (- j)))
           (if (<= b 8000.0) (* t (* x (- 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 = b * ((a * i) - (z * c));
	double tmp;
	if (b <= -5.5e-10) {
		tmp = t_1;
	} else if (b <= -3.2e-130) {
		tmp = y * (i * -j);
	} else if (b <= -2.2e-235) {
		tmp = z * (x * y);
	} else if (b <= 1e-170) {
		tmp = i * (y * -j);
	} else if (b <= 8000.0) {
		tmp = t * (x * -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 = b * ((a * i) - (z * c))
    if (b <= (-5.5d-10)) then
        tmp = t_1
    else if (b <= (-3.2d-130)) then
        tmp = y * (i * -j)
    else if (b <= (-2.2d-235)) then
        tmp = z * (x * y)
    else if (b <= 1d-170) then
        tmp = i * (y * -j)
    else if (b <= 8000.0d0) then
        tmp = t * (x * -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 = b * ((a * i) - (z * c));
	double tmp;
	if (b <= -5.5e-10) {
		tmp = t_1;
	} else if (b <= -3.2e-130) {
		tmp = y * (i * -j);
	} else if (b <= -2.2e-235) {
		tmp = z * (x * y);
	} else if (b <= 1e-170) {
		tmp = i * (y * -j);
	} else if (b <= 8000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * ((a * i) - (z * c))
	tmp = 0
	if b <= -5.5e-10:
		tmp = t_1
	elif b <= -3.2e-130:
		tmp = y * (i * -j)
	elif b <= -2.2e-235:
		tmp = z * (x * y)
	elif b <= 1e-170:
		tmp = i * (y * -j)
	elif b <= 8000.0:
		tmp = t * (x * -a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c)))
	tmp = 0.0
	if (b <= -5.5e-10)
		tmp = t_1;
	elseif (b <= -3.2e-130)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (b <= -2.2e-235)
		tmp = Float64(z * Float64(x * y));
	elseif (b <= 1e-170)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (b <= 8000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * ((a * i) - (z * c));
	tmp = 0.0;
	if (b <= -5.5e-10)
		tmp = t_1;
	elseif (b <= -3.2e-130)
		tmp = y * (i * -j);
	elseif (b <= -2.2e-235)
		tmp = z * (x * y);
	elseif (b <= 1e-170)
		tmp = i * (y * -j);
	elseif (b <= 8000.0)
		tmp = t * (x * -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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.5e-10], t$95$1, If[LessEqual[b, -3.2e-130], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.2e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-170], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;b \leq -2.2 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -5.4999999999999996e-10 or 8e3 < b

    1. Initial program 83.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. *-commutative83.0%

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

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

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

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

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

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

    if -5.4999999999999996e-10 < b < -3.2e-130

    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. *-commutative72.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.2e-130 < b < -2.19999999999999984e-235

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if -2.19999999999999984e-235 < b < 9.99999999999999983e-171

    1. Initial program 65.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. *-commutative65.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative65.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative65.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} - y \cdot i\right) \]
    3. Simplified65.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 0 72.8%

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

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

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

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

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

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

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

    if 9.99999999999999983e-171 < b < 8e3

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.5 \cdot 10^{-10}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -3.2 \cdot 10^{-130}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 10^{-170}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 8000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \end{array} \]

Alternative 12: 50.0% accurate, 1.5× speedup?

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

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

\mathbf{elif}\;b \leq -9.2 \cdot 10^{-292}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;b \leq 9 \cdot 10^{-167}:\\
\;\;\;\;t_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -2.54999999999999986e36 or 1.38e17 < b

    1. Initial program 81.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. *-commutative81.8%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 64.4%

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

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

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

    if -2.54999999999999986e36 < b < -9.1999999999999996e-292 or 4.80000000000000025e-291 < b < 9.0000000000000002e-167

    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. *-commutative73.4%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(y \cdot \left(-i\right)\right) \cdot j} + x \cdot \left(y \cdot z\right) \]
      6. associate-*l*54.5%

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

        \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right)} \cdot j\right) + x \cdot \left(y \cdot z\right) \]
      8. associate-*r*54.5%

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

        \[\leadsto y \cdot \left(-1 \cdot \left(i \cdot j\right)\right) + \color{blue}{\left(y \cdot z\right) \cdot x} \]
      10. associate-*l*57.2%

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

        \[\leadsto y \cdot \left(-1 \cdot \left(i \cdot j\right)\right) + y \cdot \color{blue}{\left(x \cdot z\right)} \]
      12. distribute-lft-in59.1%

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

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

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

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

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

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

    if -9.1999999999999996e-292 < b < 4.80000000000000025e-291

    1. Initial program 75.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. *-commutative75.2%

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

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

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

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

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

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

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

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

    if 9.0000000000000002e-167 < b < 1.38e17

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.55 \cdot 10^{+36}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -9.2 \cdot 10^{-292}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;b \leq 4.8 \cdot 10^{-291}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;b \leq 9 \cdot 10^{-167}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;b \leq 1.38 \cdot 10^{+17}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \end{array} \]

Alternative 13: 55.5% accurate, 1.5× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.57999999999999993e44 or 1.75e17 < b

    1. Initial program 81.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. *-commutative81.6%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 64.9%

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

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

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

    if -1.57999999999999993e44 < b < 7.49999999999999947e-166

    1. Initial program 73.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. *-commutative73.8%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative73.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative73.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} - y \cdot i\right) \]
    3. Simplified73.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 0 75.7%

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

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

    if 7.49999999999999947e-166 < b < 1.75e17

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.58 \cdot 10^{+44}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq 7.5 \cdot 10^{-166}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;b \leq 1.75 \cdot 10^{+17}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \end{array} \]

Alternative 14: 28.4% accurate, 1.6× speedup?

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

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

\mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -1.8 \cdot 10^{-130}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -1.55 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;b \leq 6 \cdot 10^{-154}:\\
\;\;\;\;t_2\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -1.49999999999999989e93

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 67.6%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified45.5%

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

    if -1.49999999999999989e93 < b < -1.32e29 or 1.95e17 < b

    1. Initial program 83.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. *-commutative83.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.3%

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

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

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

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

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

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

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

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

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

    if -1.32e29 < b < -1.8000000000000001e-130 or -1.5500000000000001e-234 < b < 6.0000000000000005e-154

    1. Initial program 69.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. *-commutative69.0%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative69.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative69.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} - y \cdot i\right) \]
    3. Simplified69.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 0 74.2%

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

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

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

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

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

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

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

    if -1.8000000000000001e-130 < b < -1.5500000000000001e-234

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if 6.0000000000000005e-154 < b < 1.95e17

    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. *-commutative84.2%

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

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

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified26.0%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    10. Taylor expanded in b around 0 30.3%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    11. Simplified30.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.5 \cdot 10^{+93}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -1.8 \cdot 10^{-130}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -1.55 \cdot 10^{-234}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 6 \cdot 10^{-154}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 1.95 \cdot 10^{+17}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \end{array} \]

Alternative 15: 29.7% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\ t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{if}\;b \leq -6.5 \cdot 10^{+93}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -1.3 \cdot 10^{-129}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq -1.08 \cdot 10^{-234}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 5.2 \cdot 10^{-172}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;b \leq 820000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\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 (* (* z c) (- b))) (t_2 (* i (* y (- j)))))
   (if (<= b -6.5e+93)
     (* b (* a i))
     (if (<= b -1.32e+29)
       t_1
       (if (<= b -1.3e-129)
         t_2
         (if (<= b -1.08e-234)
           (* z (* x y))
           (if (<= b 5.2e-172)
             t_2
             (if (<= b 820000000.0) (* t (* x (- 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 = (z * c) * -b;
	double t_2 = i * (y * -j);
	double tmp;
	if (b <= -6.5e+93) {
		tmp = b * (a * i);
	} else if (b <= -1.32e+29) {
		tmp = t_1;
	} else if (b <= -1.3e-129) {
		tmp = t_2;
	} else if (b <= -1.08e-234) {
		tmp = z * (x * y);
	} else if (b <= 5.2e-172) {
		tmp = t_2;
	} else if (b <= 820000000.0) {
		tmp = t * (x * -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) :: t_2
    real(8) :: tmp
    t_1 = (z * c) * -b
    t_2 = i * (y * -j)
    if (b <= (-6.5d+93)) then
        tmp = b * (a * i)
    else if (b <= (-1.32d+29)) then
        tmp = t_1
    else if (b <= (-1.3d-129)) then
        tmp = t_2
    else if (b <= (-1.08d-234)) then
        tmp = z * (x * y)
    else if (b <= 5.2d-172) then
        tmp = t_2
    else if (b <= 820000000.0d0) then
        tmp = t * (x * -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 = (z * c) * -b;
	double t_2 = i * (y * -j);
	double tmp;
	if (b <= -6.5e+93) {
		tmp = b * (a * i);
	} else if (b <= -1.32e+29) {
		tmp = t_1;
	} else if (b <= -1.3e-129) {
		tmp = t_2;
	} else if (b <= -1.08e-234) {
		tmp = z * (x * y);
	} else if (b <= 5.2e-172) {
		tmp = t_2;
	} else if (b <= 820000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (z * c) * -b
	t_2 = i * (y * -j)
	tmp = 0
	if b <= -6.5e+93:
		tmp = b * (a * i)
	elif b <= -1.32e+29:
		tmp = t_1
	elif b <= -1.3e-129:
		tmp = t_2
	elif b <= -1.08e-234:
		tmp = z * (x * y)
	elif b <= 5.2e-172:
		tmp = t_2
	elif b <= 820000000.0:
		tmp = t * (x * -a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(z * c) * Float64(-b))
	t_2 = Float64(i * Float64(y * Float64(-j)))
	tmp = 0.0
	if (b <= -6.5e+93)
		tmp = Float64(b * Float64(a * i));
	elseif (b <= -1.32e+29)
		tmp = t_1;
	elseif (b <= -1.3e-129)
		tmp = t_2;
	elseif (b <= -1.08e-234)
		tmp = Float64(z * Float64(x * y));
	elseif (b <= 5.2e-172)
		tmp = t_2;
	elseif (b <= 820000000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (z * c) * -b;
	t_2 = i * (y * -j);
	tmp = 0.0;
	if (b <= -6.5e+93)
		tmp = b * (a * i);
	elseif (b <= -1.32e+29)
		tmp = t_1;
	elseif (b <= -1.3e-129)
		tmp = t_2;
	elseif (b <= -1.08e-234)
		tmp = z * (x * y);
	elseif (b <= 5.2e-172)
		tmp = t_2;
	elseif (b <= 820000000.0)
		tmp = t * (x * -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[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+93], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.32e+29], t$95$1, If[LessEqual[b, -1.3e-129], t$95$2, If[LessEqual[b, -1.08e-234], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e-172], t$95$2, If[LessEqual[b, 820000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -1.3 \cdot 10^{-129}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;b \leq -1.08 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;b \leq 5.2 \cdot 10^{-172}:\\
\;\;\;\;t_2\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -6.4999999999999998e93

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 67.6%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified45.5%

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

    if -6.4999999999999998e93 < b < -1.32e29 or 8.2e8 < b

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 59.4%

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

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

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

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

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

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

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

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

    if -1.32e29 < b < -1.3e-129 or -1.0800000000000001e-234 < b < 5.1999999999999996e-172

    1. Initial program 69.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. *-commutative69.8%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative69.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative69.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} - y \cdot i\right) \]
    3. Simplified69.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 0 73.2%

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

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

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

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

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

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

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

    if -1.3e-129 < b < -1.0800000000000001e-234

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if 5.1999999999999996e-172 < b < 8.2e8

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -6.5 \cdot 10^{+93}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -1.32 \cdot 10^{+29}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -1.3 \cdot 10^{-129}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -1.08 \cdot 10^{-234}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 5.2 \cdot 10^{-172}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 820000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \end{array} \]

Alternative 16: 29.4% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{if}\;b \leq -1.26 \cdot 10^{+95}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -2.7 \cdot 10^{-17}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{-129}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.1 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 7.2 \cdot 10^{-174}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 5200000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\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 (* (* z c) (- b))))
   (if (<= b -1.26e+95)
     (* b (* a i))
     (if (<= b -2.7e-17)
       t_1
       (if (<= b -2.2e-129)
         (* y (* i (- j)))
         (if (<= b -2.1e-235)
           (* z (* x y))
           (if (<= b 7.2e-174)
             (* i (* y (- j)))
             (if (<= b 5200000.0) (* t (* x (- 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 = (z * c) * -b;
	double tmp;
	if (b <= -1.26e+95) {
		tmp = b * (a * i);
	} else if (b <= -2.7e-17) {
		tmp = t_1;
	} else if (b <= -2.2e-129) {
		tmp = y * (i * -j);
	} else if (b <= -2.1e-235) {
		tmp = z * (x * y);
	} else if (b <= 7.2e-174) {
		tmp = i * (y * -j);
	} else if (b <= 5200000.0) {
		tmp = t * (x * -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 = (z * c) * -b
    if (b <= (-1.26d+95)) then
        tmp = b * (a * i)
    else if (b <= (-2.7d-17)) then
        tmp = t_1
    else if (b <= (-2.2d-129)) then
        tmp = y * (i * -j)
    else if (b <= (-2.1d-235)) then
        tmp = z * (x * y)
    else if (b <= 7.2d-174) then
        tmp = i * (y * -j)
    else if (b <= 5200000.0d0) then
        tmp = t * (x * -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 = (z * c) * -b;
	double tmp;
	if (b <= -1.26e+95) {
		tmp = b * (a * i);
	} else if (b <= -2.7e-17) {
		tmp = t_1;
	} else if (b <= -2.2e-129) {
		tmp = y * (i * -j);
	} else if (b <= -2.1e-235) {
		tmp = z * (x * y);
	} else if (b <= 7.2e-174) {
		tmp = i * (y * -j);
	} else if (b <= 5200000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (z * c) * -b
	tmp = 0
	if b <= -1.26e+95:
		tmp = b * (a * i)
	elif b <= -2.7e-17:
		tmp = t_1
	elif b <= -2.2e-129:
		tmp = y * (i * -j)
	elif b <= -2.1e-235:
		tmp = z * (x * y)
	elif b <= 7.2e-174:
		tmp = i * (y * -j)
	elif b <= 5200000.0:
		tmp = t * (x * -a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(z * c) * Float64(-b))
	tmp = 0.0
	if (b <= -1.26e+95)
		tmp = Float64(b * Float64(a * i));
	elseif (b <= -2.7e-17)
		tmp = t_1;
	elseif (b <= -2.2e-129)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (b <= -2.1e-235)
		tmp = Float64(z * Float64(x * y));
	elseif (b <= 7.2e-174)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (b <= 5200000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (z * c) * -b;
	tmp = 0.0;
	if (b <= -1.26e+95)
		tmp = b * (a * i);
	elseif (b <= -2.7e-17)
		tmp = t_1;
	elseif (b <= -2.2e-129)
		tmp = y * (i * -j);
	elseif (b <= -2.1e-235)
		tmp = z * (x * y);
	elseif (b <= 7.2e-174)
		tmp = i * (y * -j);
	elseif (b <= 5200000.0)
		tmp = t * (x * -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[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision]}, If[LessEqual[b, -1.26e+95], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.7e-17], t$95$1, If[LessEqual[b, -2.2e-129], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.1e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e-174], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5200000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -2.7 \cdot 10^{-17}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -2.2 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

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

\mathbf{elif}\;b \leq 7.2 \cdot 10^{-174}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if b < -1.26e95

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 67.6%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified45.5%

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

    if -1.26e95 < b < -2.7000000000000001e-17 or 5.2e6 < b

    1. Initial program 82.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. *-commutative82.9%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 55.3%

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

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

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

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

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

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

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

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

    if -2.7000000000000001e-17 < b < -2.20000000000000003e-129

    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. *-commutative75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.20000000000000003e-129 < b < -2.1000000000000001e-235

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if -2.1000000000000001e-235 < b < 7.19999999999999997e-174

    1. Initial program 65.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. *-commutative65.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative65.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative65.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} - y \cdot i\right) \]
    3. Simplified65.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 0 72.8%

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

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

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

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

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

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

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

    if 7.19999999999999997e-174 < b < 5.2e6

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.26 \cdot 10^{+95}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -2.7 \cdot 10^{-17}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{-129}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.1 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 7.2 \cdot 10^{-174}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 5200000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \end{array} \]

Alternative 17: 29.9% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -9.5 \cdot 10^{+93}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -8.5 \cdot 10^{-16}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -9.6 \cdot 10^{-129}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -4.5 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 1.85 \cdot 10^{-171}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 580000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= b -9.5e+93)
   (* b (* a i))
   (if (<= b -8.5e-16)
     (* (* z c) (- b))
     (if (<= b -9.6e-129)
       (* y (* i (- j)))
       (if (<= b -4.5e-235)
         (* z (* x y))
         (if (<= b 1.85e-171)
           (* i (* y (- j)))
           (if (<= b 580000000000.0) (* t (* x (- a))) (* z (* b (- c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (b <= -9.5e+93) {
		tmp = b * (a * i);
	} else if (b <= -8.5e-16) {
		tmp = (z * c) * -b;
	} else if (b <= -9.6e-129) {
		tmp = y * (i * -j);
	} else if (b <= -4.5e-235) {
		tmp = z * (x * y);
	} else if (b <= 1.85e-171) {
		tmp = i * (y * -j);
	} else if (b <= 580000000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = z * (b * -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 (b <= (-9.5d+93)) then
        tmp = b * (a * i)
    else if (b <= (-8.5d-16)) then
        tmp = (z * c) * -b
    else if (b <= (-9.6d-129)) then
        tmp = y * (i * -j)
    else if (b <= (-4.5d-235)) then
        tmp = z * (x * y)
    else if (b <= 1.85d-171) then
        tmp = i * (y * -j)
    else if (b <= 580000000000.0d0) then
        tmp = t * (x * -a)
    else
        tmp = z * (b * -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 (b <= -9.5e+93) {
		tmp = b * (a * i);
	} else if (b <= -8.5e-16) {
		tmp = (z * c) * -b;
	} else if (b <= -9.6e-129) {
		tmp = y * (i * -j);
	} else if (b <= -4.5e-235) {
		tmp = z * (x * y);
	} else if (b <= 1.85e-171) {
		tmp = i * (y * -j);
	} else if (b <= 580000000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = z * (b * -c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if b <= -9.5e+93:
		tmp = b * (a * i)
	elif b <= -8.5e-16:
		tmp = (z * c) * -b
	elif b <= -9.6e-129:
		tmp = y * (i * -j)
	elif b <= -4.5e-235:
		tmp = z * (x * y)
	elif b <= 1.85e-171:
		tmp = i * (y * -j)
	elif b <= 580000000000.0:
		tmp = t * (x * -a)
	else:
		tmp = z * (b * -c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (b <= -9.5e+93)
		tmp = Float64(b * Float64(a * i));
	elseif (b <= -8.5e-16)
		tmp = Float64(Float64(z * c) * Float64(-b));
	elseif (b <= -9.6e-129)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (b <= -4.5e-235)
		tmp = Float64(z * Float64(x * y));
	elseif (b <= 1.85e-171)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (b <= 580000000000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = Float64(z * Float64(b * Float64(-c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (b <= -9.5e+93)
		tmp = b * (a * i);
	elseif (b <= -8.5e-16)
		tmp = (z * c) * -b;
	elseif (b <= -9.6e-129)
		tmp = y * (i * -j);
	elseif (b <= -4.5e-235)
		tmp = z * (x * y);
	elseif (b <= 1.85e-171)
		tmp = i * (y * -j);
	elseif (b <= 580000000000.0)
		tmp = t * (x * -a);
	else
		tmp = z * (b * -c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -9.5e+93], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-16], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, -9.6e-129], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.5e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e-171], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 580000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+93}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{elif}\;b \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\

\mathbf{elif}\;b \leq -9.6 \cdot 10^{-129}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

\mathbf{elif}\;b \leq -4.5 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;b \leq 1.85 \cdot 10^{-171}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if b < -9.4999999999999991e93

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 67.6%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified45.5%

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

    if -9.4999999999999991e93 < b < -8.5000000000000001e-16

    1. Initial program 86.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. *-commutative86.1%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative86.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative86.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} - y \cdot i\right) \]
    3. Simplified86.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 45.2%

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

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

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

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

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

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

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

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

    if -8.5000000000000001e-16 < b < -9.59999999999999954e-129

    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. *-commutative75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9.59999999999999954e-129 < b < -4.4999999999999998e-235

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if -4.4999999999999998e-235 < b < 1.85000000000000006e-171

    1. Initial program 65.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. *-commutative65.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative65.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative65.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} - y \cdot i\right) \]
    3. Simplified65.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 0 72.8%

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

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

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

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

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

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

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

    if 1.85000000000000006e-171 < b < 5.8e11

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.8e11 < b

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 j around 0 69.3%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(0 - c\right)} \cdot \left(z \cdot b\right) \]
      7. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{\left(-1 + 1\right)} - c\right) \cdot \left(z \cdot b\right) \]
      8. unsub-neg37.3%

        \[\leadsto \color{blue}{\left(\left(-1 + 1\right) + \left(-c\right)\right)} \cdot \left(z \cdot b\right) \]
      9. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{0} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      10. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{2 \cdot 0} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      11. mul0-lft37.3%

        \[\leadsto \left(2 \cdot \color{blue}{\left(0 \cdot c\right)} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      12. metadata-eval37.3%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(-1 + 1\right)} \cdot c\right) + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      13. distribute-rgt1-in37.3%

        \[\leadsto \left(2 \cdot \color{blue}{\left(c + -1 \cdot c\right)} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      14. mul-1-neg37.3%

        \[\leadsto \left(2 \cdot \left(c + -1 \cdot c\right) + \color{blue}{-1 \cdot c}\right) \cdot \left(z \cdot b\right) \]
      15. +-commutative37.3%

        \[\leadsto \color{blue}{\left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right)} \cdot \left(z \cdot b\right) \]
      16. associate-*l*42.0%

        \[\leadsto \color{blue}{\left(\left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right) \cdot z\right) \cdot b} \]
      17. *-commutative42.0%

        \[\leadsto \color{blue}{\left(z \cdot \left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right)\right)} \cdot b \]
      18. associate-*l*43.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -9.5 \cdot 10^{+93}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -8.5 \cdot 10^{-16}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -9.6 \cdot 10^{-129}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -4.5 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 1.85 \cdot 10^{-171}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 580000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \end{array} \]

Alternative 18: 30.1% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -1 \cdot 10^{+95}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-18}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -9 \cdot 10^{-130}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 6.7 \cdot 10^{-175}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 5300000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= b -1e+95)
   (* i (* a b))
   (if (<= b -2.9e-18)
     (* (* z c) (- b))
     (if (<= b -9e-130)
       (* y (* i (- j)))
       (if (<= b -2.45e-235)
         (* z (* x y))
         (if (<= b 6.7e-175)
           (* i (* y (- j)))
           (if (<= b 5300000000000.0)
             (* t (* x (- a)))
             (* z (* b (- c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (b <= -1e+95) {
		tmp = i * (a * b);
	} else if (b <= -2.9e-18) {
		tmp = (z * c) * -b;
	} else if (b <= -9e-130) {
		tmp = y * (i * -j);
	} else if (b <= -2.45e-235) {
		tmp = z * (x * y);
	} else if (b <= 6.7e-175) {
		tmp = i * (y * -j);
	} else if (b <= 5300000000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = z * (b * -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 (b <= (-1d+95)) then
        tmp = i * (a * b)
    else if (b <= (-2.9d-18)) then
        tmp = (z * c) * -b
    else if (b <= (-9d-130)) then
        tmp = y * (i * -j)
    else if (b <= (-2.45d-235)) then
        tmp = z * (x * y)
    else if (b <= 6.7d-175) then
        tmp = i * (y * -j)
    else if (b <= 5300000000000.0d0) then
        tmp = t * (x * -a)
    else
        tmp = z * (b * -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 (b <= -1e+95) {
		tmp = i * (a * b);
	} else if (b <= -2.9e-18) {
		tmp = (z * c) * -b;
	} else if (b <= -9e-130) {
		tmp = y * (i * -j);
	} else if (b <= -2.45e-235) {
		tmp = z * (x * y);
	} else if (b <= 6.7e-175) {
		tmp = i * (y * -j);
	} else if (b <= 5300000000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = z * (b * -c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if b <= -1e+95:
		tmp = i * (a * b)
	elif b <= -2.9e-18:
		tmp = (z * c) * -b
	elif b <= -9e-130:
		tmp = y * (i * -j)
	elif b <= -2.45e-235:
		tmp = z * (x * y)
	elif b <= 6.7e-175:
		tmp = i * (y * -j)
	elif b <= 5300000000000.0:
		tmp = t * (x * -a)
	else:
		tmp = z * (b * -c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (b <= -1e+95)
		tmp = Float64(i * Float64(a * b));
	elseif (b <= -2.9e-18)
		tmp = Float64(Float64(z * c) * Float64(-b));
	elseif (b <= -9e-130)
		tmp = Float64(y * Float64(i * Float64(-j)));
	elseif (b <= -2.45e-235)
		tmp = Float64(z * Float64(x * y));
	elseif (b <= 6.7e-175)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (b <= 5300000000000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = Float64(z * Float64(b * Float64(-c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (b <= -1e+95)
		tmp = i * (a * b);
	elseif (b <= -2.9e-18)
		tmp = (z * c) * -b;
	elseif (b <= -9e-130)
		tmp = y * (i * -j);
	elseif (b <= -2.45e-235)
		tmp = z * (x * y);
	elseif (b <= 6.7e-175)
		tmp = i * (y * -j);
	elseif (b <= 5300000000000.0)
		tmp = t * (x * -a);
	else
		tmp = z * (b * -c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1e+95], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9e-18], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[b, -9e-130], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.45e-235], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.7e-175], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5300000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+95}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\

\mathbf{elif}\;b \leq -2.9 \cdot 10^{-18}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\

\mathbf{elif}\;b \leq -9 \cdot 10^{-130}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

\mathbf{elif}\;b \leq -2.45 \cdot 10^{-235}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;b \leq 6.7 \cdot 10^{-175}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if b < -1.00000000000000002e95

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 54.8%

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

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

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

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

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

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

        \[\leadsto i \cdot \left(-1 \cdot \left(\color{blue}{\left(-a\right)} \cdot b\right)\right) \]
      3. *-commutative50.0%

        \[\leadsto i \cdot \left(-1 \cdot \color{blue}{\left(b \cdot \left(-a\right)\right)}\right) \]
    9. Simplified50.0%

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

    if -1.00000000000000002e95 < b < -2.9e-18

    1. Initial program 86.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. *-commutative86.1%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative86.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative86.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} - y \cdot i\right) \]
    3. Simplified86.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 45.2%

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

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

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

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

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

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

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

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

    if -2.9e-18 < b < -9e-130

    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. *-commutative75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9e-130 < b < -2.44999999999999983e-235

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if -2.44999999999999983e-235 < b < 6.70000000000000053e-175

    1. Initial program 65.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. *-commutative65.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative65.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative65.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} - y \cdot i\right) \]
    3. Simplified65.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 0 72.8%

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

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

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

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

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

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

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

    if 6.70000000000000053e-175 < b < 5.3e12

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.3e12 < b

    1. Initial program 81.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. *-commutative81.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 j around 0 69.3%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(0 - c\right)} \cdot \left(z \cdot b\right) \]
      7. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{\left(-1 + 1\right)} - c\right) \cdot \left(z \cdot b\right) \]
      8. unsub-neg37.3%

        \[\leadsto \color{blue}{\left(\left(-1 + 1\right) + \left(-c\right)\right)} \cdot \left(z \cdot b\right) \]
      9. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{0} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      10. metadata-eval37.3%

        \[\leadsto \left(\color{blue}{2 \cdot 0} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      11. mul0-lft37.3%

        \[\leadsto \left(2 \cdot \color{blue}{\left(0 \cdot c\right)} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      12. metadata-eval37.3%

        \[\leadsto \left(2 \cdot \left(\color{blue}{\left(-1 + 1\right)} \cdot c\right) + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      13. distribute-rgt1-in37.3%

        \[\leadsto \left(2 \cdot \color{blue}{\left(c + -1 \cdot c\right)} + \left(-c\right)\right) \cdot \left(z \cdot b\right) \]
      14. mul-1-neg37.3%

        \[\leadsto \left(2 \cdot \left(c + -1 \cdot c\right) + \color{blue}{-1 \cdot c}\right) \cdot \left(z \cdot b\right) \]
      15. +-commutative37.3%

        \[\leadsto \color{blue}{\left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right)} \cdot \left(z \cdot b\right) \]
      16. associate-*l*42.0%

        \[\leadsto \color{blue}{\left(\left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right) \cdot z\right) \cdot b} \]
      17. *-commutative42.0%

        \[\leadsto \color{blue}{\left(z \cdot \left(-1 \cdot c + 2 \cdot \left(c + -1 \cdot c\right)\right)\right)} \cdot b \]
      18. associate-*l*43.6%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1 \cdot 10^{+95}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq -2.9 \cdot 10^{-18}:\\ \;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\ \mathbf{elif}\;b \leq -9 \cdot 10^{-130}:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -2.45 \cdot 10^{-235}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 6.7 \cdot 10^{-175}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq 5300000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \end{array} \]

Alternative 19: 46.6% accurate, 1.7× speedup?

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

\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.05 \cdot 10^{-35}:\\
\;\;\;\;t_1\\

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

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

\mathbf{elif}\;i \leq 1.2 \cdot 10^{-164}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -1.05e-35 or 1.19999999999999992e-164 < i

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(y \cdot j - b \cdot a\right)\right)} \]
      6. mul-1-neg58.7%

        \[\leadsto i \cdot \color{blue}{\left(-\left(y \cdot j - b \cdot a\right)\right)} \]
      7. sub-neg58.7%

        \[\leadsto i \cdot \left(-\color{blue}{\left(y \cdot j + \left(-b \cdot a\right)\right)}\right) \]
      8. distribute-rgt-neg-out58.7%

        \[\leadsto i \cdot \left(-\left(y \cdot j + \color{blue}{b \cdot \left(-a\right)}\right)\right) \]
      9. +-commutative58.7%

        \[\leadsto i \cdot \left(-\color{blue}{\left(b \cdot \left(-a\right) + y \cdot j\right)}\right) \]
      10. distribute-neg-in58.7%

        \[\leadsto i \cdot \color{blue}{\left(\left(-b \cdot \left(-a\right)\right) + \left(-y \cdot j\right)\right)} \]
      11. distribute-rgt-neg-out58.7%

        \[\leadsto i \cdot \left(\left(-\color{blue}{\left(-b \cdot a\right)}\right) + \left(-y \cdot j\right)\right) \]
      12. remove-double-neg58.7%

        \[\leadsto i \cdot \left(\color{blue}{b \cdot a} + \left(-y \cdot j\right)\right) \]
      13. unsub-neg58.7%

        \[\leadsto i \cdot \color{blue}{\left(b \cdot a - y \cdot j\right)} \]
      14. *-commutative58.7%

        \[\leadsto i \cdot \left(\color{blue}{a \cdot b} - y \cdot j\right) \]
    9. Simplified58.7%

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

    if -1.05e-35 < i < -8.20000000000000028e-212

    1. Initial program 81.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. *-commutative81.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 53.2%

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

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

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

    if -8.20000000000000028e-212 < i < 8.49999999999999957e-298

    1. Initial program 80.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. *-commutative80.9%

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

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

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

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

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

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

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

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

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

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

    if 8.49999999999999957e-298 < i < 1.19999999999999992e-164

    1. Initial program 91.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. *-commutative91.1%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.05 \cdot 10^{-35}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq -8.2 \cdot 10^{-212}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;i \leq 8.5 \cdot 10^{-298}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;i \leq 1.2 \cdot 10^{-164}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \end{array} \]

Alternative 20: 48.7% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{if}\;b \leq -1.9 \cdot 10^{+42}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;b \leq 3.4 \cdot 10^{-170}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\ \mathbf{elif}\;b \leq 2150000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (- (* a i) (* z c)))))
   (if (<= b -1.9e+42)
     t_1
     (if (<= b 3.4e-170)
       (* j (- (* t c) (* y i)))
       (if (<= b 2150000000000.0) (* t (* x (- 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 = b * ((a * i) - (z * c));
	double tmp;
	if (b <= -1.9e+42) {
		tmp = t_1;
	} else if (b <= 3.4e-170) {
		tmp = j * ((t * c) - (y * i));
	} else if (b <= 2150000000000.0) {
		tmp = t * (x * -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 = b * ((a * i) - (z * c))
    if (b <= (-1.9d+42)) then
        tmp = t_1
    else if (b <= 3.4d-170) then
        tmp = j * ((t * c) - (y * i))
    else if (b <= 2150000000000.0d0) then
        tmp = t * (x * -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 = b * ((a * i) - (z * c));
	double tmp;
	if (b <= -1.9e+42) {
		tmp = t_1;
	} else if (b <= 3.4e-170) {
		tmp = j * ((t * c) - (y * i));
	} else if (b <= 2150000000000.0) {
		tmp = t * (x * -a);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * ((a * i) - (z * c))
	tmp = 0
	if b <= -1.9e+42:
		tmp = t_1
	elif b <= 3.4e-170:
		tmp = j * ((t * c) - (y * i))
	elif b <= 2150000000000.0:
		tmp = t * (x * -a)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c)))
	tmp = 0.0
	if (b <= -1.9e+42)
		tmp = t_1;
	elseif (b <= 3.4e-170)
		tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i)));
	elseif (b <= 2150000000000.0)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * ((a * i) - (z * c));
	tmp = 0.0;
	if (b <= -1.9e+42)
		tmp = t_1;
	elseif (b <= 3.4e-170)
		tmp = j * ((t * c) - (y * i));
	elseif (b <= 2150000000000.0)
		tmp = t * (x * -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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+42], t$95$1, If[LessEqual[b, 3.4e-170], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2150000000000.0], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.8999999999999999e42 or 2.15e12 < b

    1. Initial program 81.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. *-commutative81.9%

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

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

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

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

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

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

    if -1.8999999999999999e42 < b < 3.40000000000000013e-170

    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. *-commutative73.4%

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

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

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

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

    if 3.40000000000000013e-170 < b < 2.15e12

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.9 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq 3.4 \cdot 10^{-170}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\ \mathbf{elif}\;b \leq 2150000000000:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \end{array} \]

Alternative 21: 51.1% accurate, 1.9× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.8999999999999999e42 or 6.4000000000000003e93 < b

    1. Initial program 80.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. *-commutative80.6%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative80.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative80.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} - y \cdot i\right) \]
    3. Simplified80.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 69.4%

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

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

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

    if -1.8999999999999999e42 < b < 1.6e-170

    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. *-commutative73.4%

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

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

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

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

    if 1.6e-170 < b < 6.4000000000000003e93

    1. Initial program 81.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. *-commutative81.1%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.9 \cdot 10^{+42}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq 1.6 \cdot 10^{-170}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\ \mathbf{elif}\;b \leq 6.4 \cdot 10^{+93}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \end{array} \]

Alternative 22: 51.8% accurate, 1.9× speedup?

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

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

\mathbf{elif}\;x \leq 4.7 \cdot 10^{-215}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\

\mathbf{elif}\;x \leq 2.9 \cdot 10^{+77}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -5.80000000000000009e-37 or 2.9000000000000002e77 < x

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 0 74.9%

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + x \cdot \left(y \cdot z\right)} \]
    8. Simplified66.9%

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

    if -5.80000000000000009e-37 < x < 4.6999999999999995e-215

    1. Initial program 69.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. *-commutative69.8%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative69.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative69.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} - y \cdot i\right) \]
    3. Simplified69.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 0 56.5%

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

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

    if 4.6999999999999995e-215 < x < 2.9000000000000002e77

    1. Initial program 75.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. *-commutative75.3%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative75.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative75.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} - y \cdot i\right) \]
    3. Simplified75.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 53.8%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.8 \cdot 10^{-37}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq 4.7 \cdot 10^{-215}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+77}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \end{array} \]

Alternative 23: 28.8% accurate, 2.0× speedup?

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

\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+111}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{elif}\;b \leq -1.12 \cdot 10^{-128}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;b \leq -3.1 \cdot 10^{-234}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;b \leq 7.2 \cdot 10^{-154}:\\
\;\;\;\;t_1\\

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


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

    1. Initial program 81.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. *-commutative81.9%

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

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

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

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified47.5%

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

    if -5.5999999999999999e111 < b < -1.12e-128 or -3.1000000000000001e-234 < b < 7.2000000000000006e-154

    1. Initial program 72.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. *-commutative72.2%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative72.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative72.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} - y \cdot i\right) \]
    3. Simplified72.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 0 70.1%

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

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

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

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

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

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

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

    if -1.12e-128 < b < -3.1000000000000001e-234

    1. Initial program 83.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. *-commutative83.5%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative83.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative83.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} - y \cdot i\right) \]
    3. Simplified83.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 j around 0 50.9%

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

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

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

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

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

    if 7.2000000000000006e-154 < b

    1. Initial program 81.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. *-commutative81.6%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative81.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative81.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} - y \cdot i\right) \]
    3. Simplified81.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 52.4%

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

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified26.1%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    10. Taylor expanded in b around 0 27.7%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    11. Simplified27.7%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5.6 \cdot 10^{+111}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;b \leq -1.12 \cdot 10^{-128}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;b \leq -3.1 \cdot 10^{-234}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 7.2 \cdot 10^{-154}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]

Alternative 24: 31.2% accurate, 3.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.5 \cdot 10^{+25} \lor \neg \left(j \leq 550000000\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -4.5000000000000003e25 or 5.5e8 < j

    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. *-commutative76.2%

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

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

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

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

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

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

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

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

    if -4.5000000000000003e25 < j < 5.5e8

    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. *-commutative78.3%

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

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

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

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

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

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
    8. Step-by-step derivation
      1. *-commutative29.3%

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified29.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -4.5 \cdot 10^{+25} \lor \neg \left(j \leq 550000000\right):\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]

Alternative 25: 29.8% accurate, 3.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-20} \lor \neg \left(x \leq 1.4 \cdot 10^{+93}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -7.00000000000000007e-20 or 1.39999999999999994e93 < x

    1. Initial program 82.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. *-commutative82.9%

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 j around 0 77.6%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    5. Taylor expanded in y around inf 36.1%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    6. Step-by-step derivation
      1. *-commutative36.1%

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    7. Simplified36.1%

      \[\leadsto \color{blue}{x \cdot \left(z \cdot y\right)} \]

    if -7.00000000000000007e-20 < x < 1.39999999999999994e93

    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 \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative72.6%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \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(z \cdot c - a \cdot i\right)\right) + j \cdot \left(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-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} - 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 b around inf 43.5%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    5. Step-by-step derivation
      1. *-commutative43.5%

        \[\leadsto b \cdot \left(\color{blue}{i \cdot a} - c \cdot z\right) \]
    6. Simplified43.5%

      \[\leadsto \color{blue}{b \cdot \left(i \cdot a - c \cdot z\right)} \]
    7. Taylor expanded in i around inf 28.6%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
    8. Step-by-step derivation
      1. *-commutative28.6%

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified28.6%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    10. Taylor expanded in b around 0 28.7%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    11. Simplified28.7%

      \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification32.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -7 \cdot 10^{-20} \lor \neg \left(x \leq 1.4 \cdot 10^{+93}\right):\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]

Alternative 26: 29.2% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.95 \cdot 10^{+31} \lor \neg \left(y \leq 6.5 \cdot 10^{-73}\right):\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= y -1.95e+31) (not (<= y 6.5e-73))) (* z (* x y)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((y <= -1.95e+31) || !(y <= 6.5e-73)) {
		tmp = z * (x * y);
	} else {
		tmp = c * (t * j);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((y <= (-1.95d+31)) .or. (.not. (y <= 6.5d-73))) then
        tmp = z * (x * y)
    else
        tmp = c * (t * j)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((y <= -1.95e+31) || !(y <= 6.5e-73)) {
		tmp = z * (x * y);
	} else {
		tmp = c * (t * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (y <= -1.95e+31) or not (y <= 6.5e-73):
		tmp = z * (x * y)
	else:
		tmp = c * (t * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((y <= -1.95e+31) || !(y <= 6.5e-73))
		tmp = Float64(z * Float64(x * y));
	else
		tmp = Float64(c * Float64(t * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((y <= -1.95e+31) || ~((y <= 6.5e-73)))
		tmp = z * (x * y);
	else
		tmp = c * (t * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.95e+31], N[Not[LessEqual[y, 6.5e-73]], $MachinePrecision]], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+31} \lor \neg \left(y \leq 6.5 \cdot 10^{-73}\right):\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < -1.95e31 or 6.4999999999999999e-73 < y

    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. *-commutative72.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative72.8%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \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(z \cdot c - a \cdot i\right)\right) + j \cdot \left(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-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} - 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 j around 0 63.3%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    5. Taylor expanded in y around inf 35.8%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    6. Step-by-step derivation
      1. associate-*r*38.2%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative38.2%

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y\right)} \]
    7. Simplified38.2%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y\right)} \]

    if -1.95e31 < y < 6.4999999999999999e-73

    1. Initial program 82.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. *-commutative82.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative82.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative82.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative82.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} - y \cdot i\right) \]
    3. Simplified82.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 0 63.2%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv63.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \color{blue}{\left(y \cdot z + \left(-a\right) \cdot t\right)} \]
      2. distribute-rgt-in63.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(\left(-a\right) \cdot t\right) \cdot x\right)} \]
      3. *-commutative63.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(y \cdot z\right) \cdot x + \color{blue}{\left(t \cdot \left(-a\right)\right)} \cdot x\right) \]
    6. Applied egg-rr63.2%

      \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(t \cdot \left(-a\right)\right) \cdot x\right)} \]
    7. Taylor expanded in c around inf 25.9%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification32.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.95 \cdot 10^{+31} \lor \neg \left(y \leq 6.5 \cdot 10^{-73}\right):\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \end{array} \]

Alternative 27: 31.1% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -3.3 \cdot 10^{+25}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;j \leq 660000000:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= j -3.3e+25)
   (* c (* t j))
   (if (<= j 660000000.0) (* b (* a i)) (* t (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (j <= -3.3e+25) {
		tmp = c * (t * j);
	} else if (j <= 660000000.0) {
		tmp = b * (a * i);
	} else {
		tmp = t * (c * j);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (j <= (-3.3d+25)) then
        tmp = c * (t * j)
    else if (j <= 660000000.0d0) then
        tmp = b * (a * i)
    else
        tmp = t * (c * j)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (j <= -3.3e+25) {
		tmp = c * (t * j);
	} else if (j <= 660000000.0) {
		tmp = b * (a * i);
	} else {
		tmp = t * (c * j);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if j <= -3.3e+25:
		tmp = c * (t * j)
	elif j <= 660000000.0:
		tmp = b * (a * i)
	else:
		tmp = t * (c * j)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (j <= -3.3e+25)
		tmp = Float64(c * Float64(t * j));
	elseif (j <= 660000000.0)
		tmp = Float64(b * Float64(a * i));
	else
		tmp = Float64(t * Float64(c * j));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (j <= -3.3e+25)
		tmp = c * (t * j);
	elseif (j <= 660000000.0)
		tmp = b * (a * i);
	else
		tmp = t * (c * j);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -3.3e+25], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 660000000.0], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -3.3 \cdot 10^{+25}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

\mathbf{elif}\;j \leq 660000000:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -3.3000000000000001e25

    1. Initial program 72.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. *-commutative72.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative72.2%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative72.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative72.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} - y \cdot i\right) \]
    3. Simplified72.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 0 69.2%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv69.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \color{blue}{\left(y \cdot z + \left(-a\right) \cdot t\right)} \]
      2. distribute-rgt-in69.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(\left(-a\right) \cdot t\right) \cdot x\right)} \]
      3. *-commutative69.2%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(y \cdot z\right) \cdot x + \color{blue}{\left(t \cdot \left(-a\right)\right)} \cdot x\right) \]
    6. Applied egg-rr69.2%

      \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(t \cdot \left(-a\right)\right) \cdot x\right)} \]
    7. Taylor expanded in c around inf 27.7%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]

    if -3.3000000000000001e25 < j < 6.6e8

    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. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative78.3%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \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(z \cdot c - a \cdot i\right)\right) + j \cdot \left(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-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} - 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 b around inf 49.0%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    5. Step-by-step derivation
      1. *-commutative49.0%

        \[\leadsto b \cdot \left(\color{blue}{i \cdot a} - c \cdot z\right) \]
    6. Simplified49.0%

      \[\leadsto \color{blue}{b \cdot \left(i \cdot a - c \cdot z\right)} \]
    7. Taylor expanded in i around inf 29.3%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
    8. Step-by-step derivation
      1. *-commutative29.3%

        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
    9. Simplified29.3%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]

    if 6.6e8 < j

    1. Initial program 80.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. *-commutative80.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      2. *-commutative80.5%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. *-commutative80.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
      4. *-commutative80.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} - y \cdot i\right) \]
    3. Simplified80.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 0 81.3%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
    5. Step-by-step derivation
      1. cancel-sign-sub-inv81.3%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + x \cdot \color{blue}{\left(y \cdot z + \left(-a\right) \cdot t\right)} \]
      2. distribute-rgt-in81.3%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(\left(-a\right) \cdot t\right) \cdot x\right)} \]
      3. *-commutative81.3%

        \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \left(\left(y \cdot z\right) \cdot x + \color{blue}{\left(t \cdot \left(-a\right)\right)} \cdot x\right) \]
    6. Applied egg-rr81.3%

      \[\leadsto j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\left(y \cdot z\right) \cdot x + \left(t \cdot \left(-a\right)\right) \cdot x\right)} \]
    7. Taylor expanded in c around inf 32.7%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    8. Simplified34.6%

      \[\leadsto \color{blue}{t \cdot \left(j \cdot c\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification30.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -3.3 \cdot 10^{+25}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;j \leq 660000000:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \end{array} \]

Alternative 28: 22.7% 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 77.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. *-commutative77.4%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. *-commutative77.4%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    3. *-commutative77.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
    4. *-commutative77.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} - y \cdot i\right) \]
  3. Simplified77.4%

    \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
  4. Taylor expanded in b around inf 38.1%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
  5. Step-by-step derivation
    1. *-commutative38.1%

      \[\leadsto b \cdot \left(\color{blue}{i \cdot a} - c \cdot z\right) \]
  6. Simplified38.1%

    \[\leadsto \color{blue}{b \cdot \left(i \cdot a - c \cdot z\right)} \]
  7. Taylor expanded in i around inf 21.7%

    \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  8. Step-by-step derivation
    1. *-commutative21.7%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
  9. Simplified21.7%

    \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
  10. Taylor expanded in b around 0 20.7%

    \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  11. Simplified20.7%

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
  12. Final simplification20.7%

    \[\leadsto a \cdot \left(b \cdot i\right) \]

Alternative 29: 22.7% accurate, 5.8× speedup?

\[\begin{array}{l} \\ b \cdot \left(a \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j):
	return b * (a * i)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(b * Float64(a * i))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = b * (a * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
b \cdot \left(a \cdot i\right)
\end{array}
Derivation
  1. Initial program 77.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. *-commutative77.4%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. *-commutative77.4%

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    3. *-commutative77.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(c \cdot t - \color{blue}{y \cdot i}\right) \]
    4. *-commutative77.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} - y \cdot i\right) \]
  3. Simplified77.4%

    \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)} \]
  4. Taylor expanded in b around inf 38.1%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
  5. Step-by-step derivation
    1. *-commutative38.1%

      \[\leadsto b \cdot \left(\color{blue}{i \cdot a} - c \cdot z\right) \]
  6. Simplified38.1%

    \[\leadsto \color{blue}{b \cdot \left(i \cdot a - c \cdot z\right)} \]
  7. Taylor expanded in i around inf 21.7%

    \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  8. Step-by-step derivation
    1. *-commutative21.7%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
  9. Simplified21.7%

    \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
  10. Final simplification21.7%

    \[\leadsto b \cdot \left(a \cdot i\right) \]

Developer target: 68.9% 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 2023301 
(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)))))