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

Percentage Accurate: 73.7% → 82.5%
Time: 18.6s
Alternatives: 21
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 21 alternatives:

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

Initial Program: 73.7% accurate, 1.0× speedup?

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

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

Alternative 1: 82.5% accurate, 0.5× speedup?

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

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

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

    1. Initial program 89.2%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

Alternative 2: 66.2% accurate, 0.8× speedup?

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

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

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

\mathbf{elif}\;c \leq 1.32 \cdot 10^{+147}:\\
\;\;\;\;\left(t\_1 - i \cdot \left(y \cdot j\right)\right) + b \cdot \left(t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -1.50000000000000008e109 or 1.32000000000000006e147 < c

    1. Initial program 49.7%

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

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

    if -1.50000000000000008e109 < c < -4.19999999999999962e-15

    1. Initial program 68.5%

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

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

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

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

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

    if -4.19999999999999962e-15 < c < 1.32000000000000006e147

    1. Initial program 77.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.5 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -4.2 \cdot 10^{-15}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\ \mathbf{elif}\;c \leq 1.32 \cdot 10^{+147}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\right) + b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 64.7% accurate, 0.9× speedup?

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

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

\mathbf{elif}\;c \leq -1.65 \cdot 10^{-22}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c - t \cdot i\right)\\

\mathbf{elif}\;c \leq 1.38 \cdot 10^{+147}:\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -2.1999999999999999e109 or 1.37999999999999991e147 < c

    1. Initial program 49.7%

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

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

    if -2.1999999999999999e109 < c < -1.65e-22

    1. Initial program 65.7%

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

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

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

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

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

    if -1.65e-22 < c < 1.37999999999999991e147

    1. Initial program 78.0%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -2.2 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.65 \cdot 10^{-22}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\ \mathbf{elif}\;c \leq 1.38 \cdot 10^{+147}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 57.8% accurate, 1.0× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -3.79999999999999992e85 or 1.37999999999999991e147 < c

    1. Initial program 51.9%

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

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

    if -3.79999999999999992e85 < c < -4.80000000000000012e-57

    1. Initial program 63.2%

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

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

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

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

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

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

        \[\leadsto -t \cdot \left(a \cdot x - \color{blue}{i \cdot b}\right) \]
      3. distribute-rgt-neg-out60.5%

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

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

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

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

        \[\leadsto t \cdot \left(-1 \cdot \left(a \cdot x\right) - \color{blue}{\left(-b \cdot i\right)}\right) \]
      8. distribute-lft-neg-out60.5%

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

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

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

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

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

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

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

    if -4.80000000000000012e-57 < c < 1.37999999999999991e147

    1. Initial program 77.9%

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

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

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

        \[\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. associate-*r*60.6%

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

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

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

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

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

Alternative 5: 63.1% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;c \leq -4100000000 \lor \neg \left(c \leq 1.35 \cdot 10^{+147}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -4.1e9 or 1.34999999999999999e147 < c

    1. Initial program 53.2%

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

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

    if -4.1e9 < c < 1.34999999999999999e147

    1. Initial program 77.0%

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

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

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

Alternative 6: 51.9% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.45 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;i \leq 2.5 \cdot 10^{+69}:\\
\;\;\;\;\left(x \cdot a\right) \cdot \left(c \cdot \frac{j}{x} - t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -1.45000000000000009e40 or 2.50000000000000018e69 < i

    1. Initial program 58.1%

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

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

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

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

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

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

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

    if -1.45000000000000009e40 < i < 5.1e-57

    1. Initial program 77.3%

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

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

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

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

    if 5.1e-57 < i < 2.50000000000000018e69

    1. Initial program 62.6%

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

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

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

        \[\leadsto \color{blue}{\left(a \cdot x\right) \cdot \left(\frac{c \cdot j}{x} - t\right)} \]
      2. associate-/l*71.8%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.45 \cdot 10^{+40}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq 5.1 \cdot 10^{-57}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 2.5 \cdot 10^{+69}:\\ \;\;\;\;\left(x \cdot a\right) \cdot \left(c \cdot \frac{j}{x} - t\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 59.8% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.42 \cdot 10^{+106} \lor \neg \left(i \leq 7.5 \cdot 10^{+70}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -1.4200000000000001e106 or 7.50000000000000031e70 < i

    1. Initial program 60.5%

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

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

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

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

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

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

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

    if -1.4200000000000001e106 < i < 7.50000000000000031e70

    1. Initial program 71.2%

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

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

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

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

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

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

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

Alternative 8: 52.1% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.5 \cdot 10^{+39}:\\
\;\;\;\;t\_1\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -2.50000000000000008e39 or 1.55000000000000015e70 < i

    1. Initial program 58.1%

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

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

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

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

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

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

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

    if -2.50000000000000008e39 < i < 4.59999999999999984e-61

    1. Initial program 77.3%

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

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

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

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

    if 4.59999999999999984e-61 < i < 1.55000000000000015e70

    1. Initial program 62.6%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.5 \cdot 10^{+39}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \mathbf{elif}\;i \leq 4.6 \cdot 10^{-61}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;i \leq 1.55 \cdot 10^{+70}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 51.5% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -52000000:\\
\;\;\;\;t\_1\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -5.2e7 or 1.4500000000000001e44 < y

    1. Initial program 56.0%

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

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

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

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

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

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

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

    if -5.2e7 < y < 2.6000000000000001e-261

    1. Initial program 79.4%

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

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

    if 2.6000000000000001e-261 < y < 1.4500000000000001e44

    1. Initial program 69.2%

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

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

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

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

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

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

        \[\leadsto -t \cdot \left(a \cdot x - \color{blue}{i \cdot b}\right) \]
      3. distribute-rgt-neg-out53.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 10: 52.4% accurate, 1.2× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -5.3999999999999997e23 or 5.99999999999999996e53 < t

    1. Initial program 55.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.3999999999999997e23 < t < -8.8e-175

    1. Initial program 73.3%

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

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

    if -8.8e-175 < t < 5.99999999999999996e53

    1. Initial program 79.8%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -5.4 \cdot 10^{+23}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;t \leq -8.8 \cdot 10^{-175}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{+53}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 50.7% accurate, 1.2× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2e-14 or 3.3000000000000001e66 < a

    1. Initial program 62.8%

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

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

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

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

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

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

    if -2e-14 < a < -3.35e-124

    1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.35e-124 < a < 3.3000000000000001e66

    1. Initial program 71.4%

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

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

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

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

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

Alternative 12: 30.5% accurate, 1.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -2.99999999999999996e84

    1. Initial program 60.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.99999999999999996e84 < i < 7.5000000000000002e-106

    1. Initial program 72.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 7.5000000000000002e-106 < i < 1.59999999999999992e69

    1. Initial program 70.4%

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

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

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

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

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

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

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

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

    if 1.59999999999999992e69 < i

    1. Initial program 59.3%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3 \cdot 10^{+84}:\\ \;\;\;\;y \cdot \left(j \cdot \left(-i\right)\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{-106}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;i \leq 1.6 \cdot 10^{+69}:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 30.4% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -1.32 \cdot 10^{+84}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;i \leq 7.8 \cdot 10^{-106}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{+68}:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= i -1.32e+84)
   (* i (* y (- j)))
   (if (<= i 7.8e-106)
     (* c (* z (- b)))
     (if (<= i 7.5e+68) (* t (* x (- a))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (i <= -1.32e+84) {
		tmp = i * (y * -j);
	} else if (i <= 7.8e-106) {
		tmp = c * (z * -b);
	} else if (i <= 7.5e+68) {
		tmp = t * (x * -a);
	} else {
		tmp = t * (b * i);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (i <= (-1.32d+84)) then
        tmp = i * (y * -j)
    else if (i <= 7.8d-106) then
        tmp = c * (z * -b)
    else if (i <= 7.5d+68) then
        tmp = t * (x * -a)
    else
        tmp = t * (b * i)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (i <= -1.32e+84) {
		tmp = i * (y * -j);
	} else if (i <= 7.8e-106) {
		tmp = c * (z * -b);
	} else if (i <= 7.5e+68) {
		tmp = t * (x * -a);
	} else {
		tmp = t * (b * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if i <= -1.32e+84:
		tmp = i * (y * -j)
	elif i <= 7.8e-106:
		tmp = c * (z * -b)
	elif i <= 7.5e+68:
		tmp = t * (x * -a)
	else:
		tmp = t * (b * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (i <= -1.32e+84)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (i <= 7.8e-106)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (i <= 7.5e+68)
		tmp = Float64(t * Float64(x * Float64(-a)));
	else
		tmp = Float64(t * Float64(b * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (i <= -1.32e+84)
		tmp = i * (y * -j);
	elseif (i <= 7.8e-106)
		tmp = c * (z * -b);
	elseif (i <= 7.5e+68)
		tmp = t * (x * -a);
	else
		tmp = t * (b * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.32e+84], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.8e-106], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+68], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -1.31999999999999994e84

    1. Initial program 60.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.31999999999999994e84 < i < 7.80000000000000019e-106

    1. Initial program 72.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 7.80000000000000019e-106 < i < 7.49999999999999959e68

    1. Initial program 70.4%

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

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

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

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

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

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

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

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

    if 7.49999999999999959e68 < i

    1. Initial program 59.3%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.32 \cdot 10^{+84}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;i \leq 7.8 \cdot 10^{-106}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{+68}:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.2% accurate, 1.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -4.20000000000000005e83

    1. Initial program 60.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.20000000000000005e83 < i < 9.6000000000000003e-53

    1. Initial program 73.3%

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

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

        \[\leadsto b \cdot \left(\color{blue}{t \cdot i} - c \cdot z\right) \]
    5. Simplified37.1%

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

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

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

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

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

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

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

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

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

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

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

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

    if 9.6000000000000003e-53 < i < 1.39999999999999991e69

    1. Initial program 64.0%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(a \cdot c\right) \cdot j} \]
    9. Taylor expanded in a around 0 39.0%

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

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

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

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

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

    if 1.39999999999999991e69 < i

    1. Initial program 59.3%

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

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

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

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

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

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

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

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

Alternative 15: 30.0% accurate, 1.4× speedup?

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

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

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

\mathbf{elif}\;i \leq 4.5 \cdot 10^{+69}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -2e98 or 4.4999999999999999e69 < i

    1. Initial program 60.1%

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

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

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

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

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

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

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

    if -2e98 < i < 4.80000000000000015e-53

    1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.80000000000000015e-53 < i < 4.4999999999999999e69

    1. Initial program 64.0%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(a \cdot c\right) \cdot j} \]
    9. Taylor expanded in a around 0 39.0%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2 \cdot 10^{+98}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;i \leq 4.8 \cdot 10^{-53}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;i \leq 4.5 \cdot 10^{+69}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 29.7% accurate, 1.4× speedup?

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

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

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

\mathbf{elif}\;i \leq 8 \cdot 10^{+68}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -3.29999999999999992e31 or 7.99999999999999962e68 < i

    1. Initial program 58.7%

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

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

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

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

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

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

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

    if -3.29999999999999992e31 < i < 6.50000000000000026e-62

    1. Initial program 77.4%

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

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

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

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

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

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

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

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

    if 6.50000000000000026e-62 < i < 7.99999999999999962e68

    1. Initial program 62.6%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(a \cdot c\right) \cdot j} \]
    9. Taylor expanded in a around 0 35.5%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.3 \cdot 10^{+31}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;i \leq 6.5 \cdot 10^{-62}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 8 \cdot 10^{+68}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 52.9% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.75 \cdot 10^{+36} \lor \neg \left(j \leq 4.2 \cdot 10^{+46}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.7499999999999999e36 or 4.2e46 < j

    1. Initial program 67.6%

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

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

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

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

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

    if -1.7499999999999999e36 < j < 4.2e46

    1. Initial program 67.0%

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

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

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

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

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

Alternative 18: 44.1% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.5 \cdot 10^{-15} \lor \neg \left(a \leq 6.5 \cdot 10^{-97}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3.5000000000000001e-15 or 6.5000000000000004e-97 < a

    1. Initial program 64.3%

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

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

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

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

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

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

    if -3.5000000000000001e-15 < a < 6.5000000000000004e-97

    1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 19: 30.2% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.7 \cdot 10^{+36} \lor \neg \left(i \leq 9.2 \cdot 10^{+69}\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -4.69999999999999989e36 or 9.20000000000000067e69 < i

    1. Initial program 58.8%

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

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

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

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

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

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

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

    if -4.69999999999999989e36 < i < 9.20000000000000067e69

    1. Initial program 74.7%

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

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

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

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

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

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

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

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

Alternative 20: 30.7% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.1 \cdot 10^{+33} \lor \neg \left(i \leq 1.3 \cdot 10^{+68}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -3.1e33 or 1.2999999999999999e68 < i

    1. Initial program 58.8%

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

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

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

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

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

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

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

    if -3.1e33 < i < 1.2999999999999999e68

    1. Initial program 74.7%

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

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

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

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

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

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

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

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

Alternative 21: 22.6% accurate, 5.8× speedup?

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

\\
a \cdot \left(c \cdot j\right)
\end{array}
Derivation
  1. Initial program 67.2%

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

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

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

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

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

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

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

Developer Target 1: 59.3% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* j (- (* c a) (* y i))))
        (t_2
         (+
          (-
           (* x (- (* y z) (* t a)))
           (/
            (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
            (+ (* c z) (* t i))))
          t_1)))
   (if (< x -1.469694296777705e-64)
     t_2
     (if (< x 3.2113527362226803e-147)
       (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
       t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * a) - (y * i));
	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
	double tmp;
	if (x < -1.469694296777705e-64) {
		tmp = t_2;
	} else if (x < 3.2113527362226803e-147) {
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = j * ((c * a) - (y * i))
    t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
    if (x < (-1.469694296777705d-64)) then
        tmp = t_2
    else if (x < 3.2113527362226803d-147) then
        tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * a) - (y * i));
	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
	double tmp;
	if (x < -1.469694296777705e-64) {
		tmp = t_2;
	} else if (x < 3.2113527362226803e-147) {
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * ((c * a) - (y * i))
	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
	tmp = 0
	if x < -1.469694296777705e-64:
		tmp = t_2
	elif x < 3.2113527362226803e-147:
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
	tmp = 0.0
	if (x < -1.469694296777705e-64)
		tmp = t_2;
	elseif (x < 3.2113527362226803e-147)
		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = j * ((c * a) - (y * i));
	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
	tmp = 0.0;
	if (x < -1.469694296777705e-64)
		tmp = t_2;
	elseif (x < 3.2113527362226803e-147)
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\

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


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024184 
(FPCore (x y z t a b c i j)
  :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))

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