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

Percentage Accurate: 73.4% → 82.2%
Time: 21.3s
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.4% 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.2% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\left(c \cdot \frac{j}{x} - t\right) \cdot \left(x \cdot a\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 94.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

    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 x around inf 8.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 a around inf 49.4%

      \[\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*47.3%

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

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

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

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

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

Alternative 2: 52.4% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;y \leq 9 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 4.9 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 1.5 \cdot 10^{-63}:\\
\;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\

\mathbf{elif}\;y \leq 1.5 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -7.99999999999999968e-23 or 1.5e20 < y

    1. Initial program 73.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 y around inf 65.3%

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

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

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

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

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

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

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

    if -7.99999999999999968e-23 < y < 9.00000000000000018e-302 or 1.5e-196 < y < 4.8999999999999997e-87 or 1.4999999999999999e-63 < y < 1.5e20

    1. Initial program 81.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 a around inf 65.4%

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

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

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

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

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

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

    if 9.00000000000000018e-302 < y < 1.5e-196

    1. Initial program 76.4%

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

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

    if 4.8999999999999997e-87 < y < 1.4999999999999999e-63

    1. Initial program 99.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 x around inf 88.7%

      \[\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 b around inf 72.0%

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

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(\frac{i \cdot t}{x} - \frac{c \cdot z}{x}\right)} \]
      2. *-commutative72.0%

        \[\leadsto \color{blue}{\left(x \cdot b\right)} \cdot \left(\frac{i \cdot t}{x} - \frac{c \cdot z}{x}\right) \]
      3. associate-/l*72.2%

        \[\leadsto \left(x \cdot b\right) \cdot \left(\color{blue}{i \cdot \frac{t}{x}} - \frac{c \cdot z}{x}\right) \]
      4. associate-/l*72.2%

        \[\leadsto \left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - \color{blue}{c \cdot \frac{z}{x}}\right) \]
    6. Simplified72.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-23}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 9 \cdot 10^{-302}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 1.5 \cdot 10^{-196}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq 4.9 \cdot 10^{-87}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 1.5 \cdot 10^{-63}:\\ \;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\ \mathbf{elif}\;y \leq 1.5 \cdot 10^{+20}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 52.5% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;y \leq 6.4 \cdot 10^{-300}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq 9.6 \cdot 10^{-197}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 4.4 \cdot 10^{-87}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq 1.16 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 1.7 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -7.99999999999999939e-24 or 1.7e20 < y

    1. Initial program 73.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 y around inf 65.3%

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

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

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

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

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

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

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

    if -7.99999999999999939e-24 < y < 6.40000000000000043e-300 or 9.6000000000000003e-197 < y < 4.39999999999999976e-87 or 1.16e-63 < y < 1.7e20

    1. Initial program 81.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 a around inf 65.4%

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

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

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

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

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

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

    if 6.40000000000000043e-300 < y < 9.6000000000000003e-197 or 4.39999999999999976e-87 < y < 1.16e-63

    1. Initial program 83.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -8 \cdot 10^{-24}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 6.4 \cdot 10^{-300}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{-197}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq 4.4 \cdot 10^{-87}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 1.16 \cdot 10^{-63}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq 1.7 \cdot 10^{+20}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 29.4% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;z \leq -2.3 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 1.86 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 9.5 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.8999999999999998e94 or 9.4999999999999997e56 < z

    1. Initial program 70.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 y around inf 59.5%

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

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

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

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

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

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

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

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

    if -2.8999999999999998e94 < z < -2.3e-85 or 7.2000000000000002e-239 < z < 1.86e-118 or 6.6000000000000001e-12 < z < 9.4999999999999997e56

    1. Initial program 82.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 a around inf 54.9%

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

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

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

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

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

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

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

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

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

    if -2.3e-85 < z < 7.2000000000000002e-239

    1. Initial program 85.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 54.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--54.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative35.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*38.9%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr38.9%

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

        \[\leadsto \color{blue}{i \cdot \left(t \cdot b\right)} \]
    10. Simplified38.9%

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

    if 1.86e-118 < z < 6.6000000000000001e-12

    1. Initial program 71.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 64.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--64.8%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.9 \cdot 10^{+94}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -2.3 \cdot 10^{-85}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;z \leq 7.2 \cdot 10^{-239}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 1.86 \cdot 10^{-118}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;z \leq 6.6 \cdot 10^{-12}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+56}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 29.7% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j\right)\\ \mathbf{if}\;z \leq -6.3 \cdot 10^{+93}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{-84}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 6.7 \cdot 10^{-236}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 1.18 \cdot 10^{-116}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-11}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (* c j))))
   (if (<= z -6.3e+93)
     (* y (* x z))
     (if (<= z -1.1e-84)
       t_1
       (if (<= z 6.7e-236)
         (* i (* t b))
         (if (<= z 1.18e-116)
           t_1
           (if (<= z 1.5e-11)
             (* b (* t i))
             (if (<= z 7.8e+51) t_1 (* x (* y z))))))))))
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);
	double tmp;
	if (z <= -6.3e+93) {
		tmp = y * (x * z);
	} else if (z <= -1.1e-84) {
		tmp = t_1;
	} else if (z <= 6.7e-236) {
		tmp = i * (t * b);
	} else if (z <= 1.18e-116) {
		tmp = t_1;
	} else if (z <= 1.5e-11) {
		tmp = b * (t * i);
	} else if (z <= 7.8e+51) {
		tmp = t_1;
	} else {
		tmp = x * (y * z);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (c * j)
    if (z <= (-6.3d+93)) then
        tmp = y * (x * z)
    else if (z <= (-1.1d-84)) then
        tmp = t_1
    else if (z <= 6.7d-236) then
        tmp = i * (t * b)
    else if (z <= 1.18d-116) then
        tmp = t_1
    else if (z <= 1.5d-11) then
        tmp = b * (t * i)
    else if (z <= 7.8d+51) then
        tmp = t_1
    else
        tmp = x * (y * z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (c * j);
	double tmp;
	if (z <= -6.3e+93) {
		tmp = y * (x * z);
	} else if (z <= -1.1e-84) {
		tmp = t_1;
	} else if (z <= 6.7e-236) {
		tmp = i * (t * b);
	} else if (z <= 1.18e-116) {
		tmp = t_1;
	} else if (z <= 1.5e-11) {
		tmp = b * (t * i);
	} else if (z <= 7.8e+51) {
		tmp = t_1;
	} else {
		tmp = x * (y * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * (c * j)
	tmp = 0
	if z <= -6.3e+93:
		tmp = y * (x * z)
	elif z <= -1.1e-84:
		tmp = t_1
	elif z <= 6.7e-236:
		tmp = i * (t * b)
	elif z <= 1.18e-116:
		tmp = t_1
	elif z <= 1.5e-11:
		tmp = b * (t * i)
	elif z <= 7.8e+51:
		tmp = t_1
	else:
		tmp = x * (y * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(c * j))
	tmp = 0.0
	if (z <= -6.3e+93)
		tmp = Float64(y * Float64(x * z));
	elseif (z <= -1.1e-84)
		tmp = t_1;
	elseif (z <= 6.7e-236)
		tmp = Float64(i * Float64(t * b));
	elseif (z <= 1.18e-116)
		tmp = t_1;
	elseif (z <= 1.5e-11)
		tmp = Float64(b * Float64(t * i));
	elseif (z <= 7.8e+51)
		tmp = t_1;
	else
		tmp = Float64(x * Float64(y * z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * (c * j);
	tmp = 0.0;
	if (z <= -6.3e+93)
		tmp = y * (x * z);
	elseif (z <= -1.1e-84)
		tmp = t_1;
	elseif (z <= 6.7e-236)
		tmp = i * (t * b);
	elseif (z <= 1.18e-116)
		tmp = t_1;
	elseif (z <= 1.5e-11)
		tmp = b * (t * i);
	elseif (z <= 7.8e+51)
		tmp = t_1;
	else
		tmp = x * (y * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.3e+93], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e-84], t$95$1, If[LessEqual[z, 6.7e-236], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.18e-116], t$95$1, If[LessEqual[z, 1.5e-11], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e+51], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -1.1 \cdot 10^{-84}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 1.18 \cdot 10^{-116}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 7.8 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 76.2%

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

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

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

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

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

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

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

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

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

    if -6.29999999999999987e93 < z < -1.0999999999999999e-84 or 6.7000000000000003e-236 < z < 1.1800000000000001e-116 or 1.5e-11 < z < 7.79999999999999968e51

    1. Initial program 82.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 a around inf 54.9%

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

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

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

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

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

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

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

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

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

    if -1.0999999999999999e-84 < z < 6.7000000000000003e-236

    1. Initial program 85.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 54.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--54.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative35.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*38.9%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr38.9%

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

        \[\leadsto \color{blue}{i \cdot \left(t \cdot b\right)} \]
    10. Simplified38.9%

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

    if 1.1800000000000001e-116 < z < 1.5e-11

    1. Initial program 71.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 64.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--64.8%

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

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

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

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

    if 7.79999999999999968e51 < z

    1. Initial program 64.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 y around inf 60.3%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -6.3 \cdot 10^{+93}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq -1.1 \cdot 10^{-84}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;z \leq 6.7 \cdot 10^{-236}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 1.18 \cdot 10^{-116}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-11}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 7.8 \cdot 10^{+51}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 30.0% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;z \leq -1.5 \cdot 10^{-87}:\\
\;\;\;\;t\_1\\

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

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

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

\mathbf{elif}\;z \leq 9.2 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if z < -3.5500000000000002e93

    1. Initial program 76.2%

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

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

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

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

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

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

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

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

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

    if -3.5500000000000002e93 < z < -1.50000000000000008e-87 or 1.79999999999999992e-11 < z < 9.2000000000000002e51

    1. Initial program 78.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 a around inf 59.3%

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

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

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

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

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

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

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

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

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

    if -1.50000000000000008e-87 < z < 1.04999999999999989e-236

    1. Initial program 85.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 54.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--54.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative35.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*38.9%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr38.9%

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

        \[\leadsto \color{blue}{i \cdot \left(t \cdot b\right)} \]
    10. Simplified38.9%

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

    if 1.04999999999999989e-236 < z < 2.1999999999999999e-115

    1. Initial program 90.0%

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

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

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

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

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

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

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

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

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

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

    if 2.1999999999999999e-115 < z < 1.79999999999999992e-11

    1. Initial program 71.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 64.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--64.8%

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

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

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

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

    if 9.2000000000000002e51 < z

    1. Initial program 64.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 y around inf 60.3%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.55 \cdot 10^{+93}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq -1.5 \cdot 10^{-87}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;z \leq 1.05 \cdot 10^{-236}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-115}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-11}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{+51}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 57.7% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;t \leq -2.6 \cdot 10^{-291}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;t \leq 2.8 \cdot 10^{+136}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -1.24999999999999994e157 or 2.8000000000000002e136 < t

    1. Initial program 59.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 74.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--74.1%

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

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

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

    if -1.24999999999999994e157 < t < -2.5999999999999999e-291 or 1.70000000000000001e-215 < t < 2.8000000000000002e136

    1. Initial program 84.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 0 72.4%

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

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

    if -2.5999999999999999e-291 < t < 1.70000000000000001e-215

    1. Initial program 77.5%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.25 \cdot 10^{+157}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;t \leq -2.6 \cdot 10^{-291}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-215}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+136}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 70.1% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;x \leq 1.1 \cdot 10^{-108}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.05000000000000006e-41

    1. Initial program 79.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 b around 0 73.8%

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

    if -1.05000000000000006e-41 < x < 1.1000000000000001e-108

    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 x around 0 81.2%

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

    if 1.1000000000000001e-108 < x

    1. Initial program 75.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 c around 0 78.3%

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

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

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

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

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

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

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

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

Alternative 9: 38.1% accurate, 0.9× speedup?

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

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

\mathbf{elif}\;y \leq 2.2 \cdot 10^{-296}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 1.85 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.15 \cdot 10^{+229}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.6e-23 or 2.14999999999999996e229 < y

    1. Initial program 74.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 y around inf 62.5%

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

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

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

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

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

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

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

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

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

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

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

    if -2.6e-23 < y < 2.20000000000000012e-296 or 9.6000000000000003e-197 < y < 1.85e20

    1. Initial program 82.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 a around inf 61.8%

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

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

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

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

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

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

    if 2.20000000000000012e-296 < y < 9.6000000000000003e-197

    1. Initial program 79.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 44.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--44.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative45.9%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*51.0%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr51.0%

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

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

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

    if 1.85e20 < y < 2.14999999999999996e229

    1. Initial program 71.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 71.6%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.6 \cdot 10^{-23}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;y \leq 2.2 \cdot 10^{-296}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 9.6 \cdot 10^{-197}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{+20}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 2.15 \cdot 10^{+229}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 50.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{if}\;b \leq -3.4 \cdot 10^{+118}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -3.6 \cdot 10^{+68}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;b \leq -1.45 \cdot 10^{-8} \lor \neg \left(b \leq 5 \cdot 10^{+99}\right):\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;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
 (let* ((t_1 (* b (- (* t i) (* z c)))))
   (if (<= b -3.4e+118)
     t_1
     (if (<= b -3.6e+68)
       (* a (- (* c j) (* x t)))
       (if (or (<= b -1.45e-8) (not (<= b 5e+99)))
         t_1
         (* 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 t_1 = b * ((t * i) - (z * c));
	double tmp;
	if (b <= -3.4e+118) {
		tmp = t_1;
	} else if (b <= -3.6e+68) {
		tmp = a * ((c * j) - (x * t));
	} else if ((b <= -1.45e-8) || !(b <= 5e+99)) {
		tmp = t_1;
	} else {
		tmp = 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) :: t_1
    real(8) :: tmp
    t_1 = b * ((t * i) - (z * c))
    if (b <= (-3.4d+118)) then
        tmp = t_1
    else if (b <= (-3.6d+68)) then
        tmp = a * ((c * j) - (x * t))
    else if ((b <= (-1.45d-8)) .or. (.not. (b <= 5d+99))) then
        tmp = t_1
    else
        tmp = 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 t_1 = b * ((t * i) - (z * c));
	double tmp;
	if (b <= -3.4e+118) {
		tmp = t_1;
	} else if (b <= -3.6e+68) {
		tmp = a * ((c * j) - (x * t));
	} else if ((b <= -1.45e-8) || !(b <= 5e+99)) {
		tmp = t_1;
	} else {
		tmp = j * ((a * c) - (y * i));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * ((t * i) - (z * c))
	tmp = 0
	if b <= -3.4e+118:
		tmp = t_1
	elif b <= -3.6e+68:
		tmp = a * ((c * j) - (x * t))
	elif (b <= -1.45e-8) or not (b <= 5e+99):
		tmp = t_1
	else:
		tmp = j * ((a * c) - (y * i))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c)))
	tmp = 0.0
	if (b <= -3.4e+118)
		tmp = t_1;
	elseif (b <= -3.6e+68)
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	elseif ((b <= -1.45e-8) || !(b <= 5e+99))
		tmp = t_1;
	else
		tmp = 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)
	t_1 = b * ((t * i) - (z * c));
	tmp = 0.0;
	if (b <= -3.4e+118)
		tmp = t_1;
	elseif (b <= -3.6e+68)
		tmp = a * ((c * j) - (x * t));
	elseif ((b <= -1.45e-8) || ~((b <= 5e+99)))
		tmp = t_1;
	else
		tmp = j * ((a * c) - (y * i));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+118], t$95$1, If[LessEqual[b, -3.6e+68], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -1.45e-8], N[Not[LessEqual[b, 5e+99]], $MachinePrecision]], t$95$1, N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;b \leq -1.45 \cdot 10^{-8} \lor \neg \left(b \leq 5 \cdot 10^{+99}\right):\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -3.39999999999999986e118 or -3.5999999999999999e68 < b < -1.4500000000000001e-8 or 5.00000000000000008e99 < b

    1. Initial program 75.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 b around inf 63.9%

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

    if -3.39999999999999986e118 < b < -3.5999999999999999e68

    1. Initial program 64.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 72.3%

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

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

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

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

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

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

    if -1.4500000000000001e-8 < b < 5.00000000000000008e99

    1. Initial program 80.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 x around inf 74.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.4 \cdot 10^{+118}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -3.6 \cdot 10^{+68}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;b \leq -1.45 \cdot 10^{-8} \lor \neg \left(b \leq 5 \cdot 10^{+99}\right):\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 49.9% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;a \leq -1.55 \cdot 10^{-180}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;a \leq 2.1 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -5.6000000000000003e-39 or 2.1000000000000001e40 < a

    1. Initial program 70.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 a around inf 62.9%

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

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

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

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

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

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

    if -5.6000000000000003e-39 < a < -1.5499999999999999e-180 or -6.7999999999999997e-264 < a < 2.1000000000000001e40

    1. Initial program 83.2%

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

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

    if -1.5499999999999999e-180 < a < -6.7999999999999997e-264

    1. Initial program 95.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 66.4%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.6 \cdot 10^{-39}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.55 \cdot 10^{-180}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq -6.8 \cdot 10^{-264}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{+40}:\\ \;\;\;\;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: 68.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{-53} \lor \neg \left(x \leq 2 \cdot 10^{+80}\right):\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_1 + 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
 (let* ((t_1 (* j (- (* a c) (* y i)))))
   (if (or (<= x -1.9e-53) (not (<= x 2e+80)))
     (+ (* x (- (* y z) (* t a))) t_1)
     (+ t_1 (* 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 t_1 = j * ((a * c) - (y * i));
	double tmp;
	if ((x <= -1.9e-53) || !(x <= 2e+80)) {
		tmp = (x * ((y * z) - (t * a))) + t_1;
	} else {
		tmp = t_1 + (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) :: t_1
    real(8) :: tmp
    t_1 = j * ((a * c) - (y * i))
    if ((x <= (-1.9d-53)) .or. (.not. (x <= 2d+80))) then
        tmp = (x * ((y * z) - (t * a))) + t_1
    else
        tmp = t_1 + (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 t_1 = j * ((a * c) - (y * i));
	double tmp;
	if ((x <= -1.9e-53) || !(x <= 2e+80)) {
		tmp = (x * ((y * z) - (t * a))) + t_1;
	} else {
		tmp = t_1 + (b * ((t * i) - (z * c)));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * ((a * c) - (y * i))
	tmp = 0
	if (x <= -1.9e-53) or not (x <= 2e+80):
		tmp = (x * ((y * z) - (t * a))) + t_1
	else:
		tmp = t_1 + (b * ((t * i) - (z * c)))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	tmp = 0.0
	if ((x <= -1.9e-53) || !(x <= 2e+80))
		tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1);
	else
		tmp = Float64(t_1 + 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)
	t_1 = j * ((a * c) - (y * i));
	tmp = 0.0;
	if ((x <= -1.9e-53) || ~((x <= 2e+80)))
		tmp = (x * ((y * z) - (t * a))) + t_1;
	else
		tmp = t_1 + (b * ((t * i) - (z * c)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -1.9e-53], N[Not[LessEqual[x, 2e+80]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.8999999999999999e-53 or 2e80 < x

    1. Initial program 80.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 0 77.0%

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

    if -1.8999999999999999e-53 < x < 2e80

    1. Initial program 74.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 x around 0 76.5%

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

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

Alternative 13: 65.2% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -5 \cdot 10^{+51}:\\ \;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\ \mathbf{elif}\;b \leq 2.5 \cdot 10^{+152}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\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 (<= b -5e+51)
   (* (* x b) (- (* i (/ t x)) (* c (/ z x))))
   (if (<= b 2.5e+152)
     (+ (* x (- (* y z) (* t a))) (* 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 (b <= -5e+51) {
		tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
	} else if (b <= 2.5e+152) {
		tmp = (x * ((y * z) - (t * a))) + (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 (b <= (-5d+51)) then
        tmp = (x * b) * ((i * (t / x)) - (c * (z / x)))
    else if (b <= 2.5d+152) then
        tmp = (x * ((y * z) - (t * a))) + (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 (b <= -5e+51) {
		tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
	} else if (b <= 2.5e+152) {
		tmp = (x * ((y * z) - (t * a))) + (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 b <= -5e+51:
		tmp = (x * b) * ((i * (t / x)) - (c * (z / x)))
	elif b <= 2.5e+152:
		tmp = (x * ((y * z) - (t * a))) + (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 (b <= -5e+51)
		tmp = Float64(Float64(x * b) * Float64(Float64(i * Float64(t / x)) - Float64(c * Float64(z / x))));
	elseif (b <= 2.5e+152)
		tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + 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 (b <= -5e+51)
		tmp = (x * b) * ((i * (t / x)) - (c * (z / x)));
	elseif (b <= 2.5e+152)
		tmp = (x * ((y * z) - (t * a))) + (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[LessEqual[b, -5e+51], N[(N[(x * b), $MachinePrecision] * N[(N[(i * N[(t / x), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e+152], 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], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{+51}:\\
\;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\

\mathbf{elif}\;b \leq 2.5 \cdot 10^{+152}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\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 3 regimes
  2. if b < -5e51

    1. Initial program 69.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 x around inf 62.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 b around inf 59.3%

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

        \[\leadsto \color{blue}{\left(b \cdot x\right) \cdot \left(\frac{i \cdot t}{x} - \frac{c \cdot z}{x}\right)} \]
      2. *-commutative64.9%

        \[\leadsto \color{blue}{\left(x \cdot b\right)} \cdot \left(\frac{i \cdot t}{x} - \frac{c \cdot z}{x}\right) \]
      3. associate-/l*62.9%

        \[\leadsto \left(x \cdot b\right) \cdot \left(\color{blue}{i \cdot \frac{t}{x}} - \frac{c \cdot z}{x}\right) \]
      4. associate-/l*62.8%

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

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

    if -5e51 < b < 2.5e152

    1. Initial program 80.0%

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

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

    if 2.5e152 < b

    1. Initial program 78.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 b around inf 72.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -5 \cdot 10^{+51}:\\ \;\;\;\;\left(x \cdot b\right) \cdot \left(i \cdot \frac{t}{x} - c \cdot \frac{z}{x}\right)\\ \mathbf{elif}\;b \leq 2.5 \cdot 10^{+152}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\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 14: 28.6% accurate, 1.1× speedup?

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

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

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

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

\mathbf{elif}\;a \leq 1.35 \cdot 10^{+45}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -1.55000000000000002e141 or 1.34999999999999992e45 < a

    1. Initial program 70.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 x around inf 59.2%

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

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

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

        \[\leadsto x \cdot \color{blue}{\left(\left(-a\right) \cdot t\right)} \]
      3. *-commutative53.0%

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

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

    if -1.55000000000000002e141 < a < -3e-284

    1. Initial program 81.0%

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

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

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

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

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

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

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

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

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

    if -3e-284 < a < 6.5000000000000004e-165

    1. Initial program 82.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 52.5%

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

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

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

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

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

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

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

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

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

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

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

    if 6.5000000000000004e-165 < a < 1.34999999999999992e45

    1. Initial program 84.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 39.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--39.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative37.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*37.5%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr37.5%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.55 \cdot 10^{+141}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -3 \cdot 10^{-284}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-165}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;a \leq 1.35 \cdot 10^{+45}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 28.8% accurate, 1.1× speedup?

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -6.9999999999999999e141 or 5.99999999999999974e44 < a

    1. Initial program 70.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 x around inf 59.2%

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

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

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

        \[\leadsto x \cdot \color{blue}{\left(\left(-a\right) \cdot t\right)} \]
      3. *-commutative53.0%

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

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

    if -6.9999999999999999e141 < a < -9.4999999999999997e-285

    1. Initial program 81.0%

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

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

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

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

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

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

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

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

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

    if -9.4999999999999997e-285 < a < 1.29999999999999995e-166

    1. Initial program 82.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 52.5%

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

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

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

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

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

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

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

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

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

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

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

    if 1.29999999999999995e-166 < a < 5.99999999999999974e44

    1. Initial program 84.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 39.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--39.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative37.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*37.5%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr37.5%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7 \cdot 10^{+141}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -9.5 \cdot 10^{-285}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 1.3 \cdot 10^{-166}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq 6 \cdot 10^{+44}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 29.4% accurate, 1.1× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+76}:\\
\;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\

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

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

\mathbf{elif}\;a \leq 2.5 \cdot 10^{+45}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if a < -1.6999999999999999e76

    1. Initial program 59.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 49.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--49.3%

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

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

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

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

    if -1.6999999999999999e76 < a < -4.0000000000000001e-282

    1. Initial program 85.5%

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

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

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

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

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

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

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

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

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

    if -4.0000000000000001e-282 < a < 4.2999999999999998e-164

    1. Initial program 82.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 52.5%

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

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

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

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

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

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

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

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

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

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

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

    if 4.2999999999999998e-164 < a < 2.5e45

    1. Initial program 84.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 39.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--39.3%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative37.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*37.5%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr37.5%

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

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

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

    if 2.5e45 < a

    1. Initial program 78.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 x around inf 58.8%

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.7 \cdot 10^{+76}:\\ \;\;\;\;t \cdot \left(a \cdot \left(-x\right)\right)\\ \mathbf{elif}\;a \leq -4 \cdot 10^{-282}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 4.3 \cdot 10^{-164}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;a \leq 2.5 \cdot 10^{+45}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 51.5% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{if}\;x \leq -3.7 \cdot 10^{+112}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-223}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;x \leq 650000:\\ \;\;\;\;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 (* x (- (* y z) (* t a)))))
   (if (<= x -3.7e+112)
     t_1
     (if (<= x 3.8e-223)
       (* c (- (* a j) (* z b)))
       (if (<= x 650000.0) (* 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 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -3.7e+112) {
		tmp = t_1;
	} else if (x <= 3.8e-223) {
		tmp = c * ((a * j) - (z * b));
	} else if (x <= 650000.0) {
		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 = x * ((y * z) - (t * a))
    if (x <= (-3.7d+112)) then
        tmp = t_1
    else if (x <= 3.8d-223) then
        tmp = c * ((a * j) - (z * b))
    else if (x <= 650000.0d0) 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 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -3.7e+112) {
		tmp = t_1;
	} else if (x <= 3.8e-223) {
		tmp = c * ((a * j) - (z * b));
	} else if (x <= 650000.0) {
		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 = x * ((y * z) - (t * a))
	tmp = 0
	if x <= -3.7e+112:
		tmp = t_1
	elif x <= 3.8e-223:
		tmp = c * ((a * j) - (z * b))
	elif x <= 650000.0:
		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(x * Float64(Float64(y * z) - Float64(t * a)))
	tmp = 0.0
	if (x <= -3.7e+112)
		tmp = t_1;
	elseif (x <= 3.8e-223)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (x <= 650000.0)
		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 = x * ((y * z) - (t * a));
	tmp = 0.0;
	if (x <= -3.7e+112)
		tmp = t_1;
	elseif (x <= 3.8e-223)
		tmp = c * ((a * j) - (z * b));
	elseif (x <= 650000.0)
		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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+112], t$95$1, If[LessEqual[x, 3.8e-223], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 650000.0], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+112}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;x \leq 650000:\\
\;\;\;\;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 x < -3.70000000000000004e112 or 6.5e5 < x

    1. Initial program 77.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 68.3%

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

    if -3.70000000000000004e112 < x < 3.80000000000000012e-223

    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 inf 53.4%

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

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

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

    if 3.80000000000000012e-223 < x < 6.5e5

    1. Initial program 77.1%

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

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

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

Alternative 18: 29.1% accurate, 1.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -1.8000000000000001e141 or 6.9999999999999998e44 < a

    1. Initial program 70.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 x around inf 59.2%

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

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

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

        \[\leadsto x \cdot \color{blue}{\left(\left(-a\right) \cdot t\right)} \]
      3. *-commutative53.0%

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

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

    if -1.8000000000000001e141 < a < 6.8e-169

    1. Initial program 81.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 y around inf 49.2%

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

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

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

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

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

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

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

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

    if 6.8e-169 < a < 6.9999999999999998e44

    1. Initial program 85.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 38.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--38.2%

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

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

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

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

        \[\leadsto \color{blue}{{\left(b \cdot \left(i \cdot t\right)\right)}^{1}} \]
      2. *-commutative36.4%

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*36.5%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr36.5%

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.8 \cdot 10^{+141}:\\ \;\;\;\;-x \cdot \left(t \cdot a\right)\\ \mathbf{elif}\;a \leq 6.8 \cdot 10^{-169}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 7 \cdot 10^{+44}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;-x \cdot \left(t \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 29.4% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{+43} \lor \neg \left(j \leq 2.7 \cdot 10^{-76}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -9.5000000000000004e43 or 2.7e-76 < j

    1. Initial program 79.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 51.8%

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

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

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

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

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

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

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

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

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

    if -9.5000000000000004e43 < j < 2.7e-76

    1. Initial program 76.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 42.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--42.8%

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

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

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

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

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

Alternative 20: 29.7% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.8 \cdot 10^{+43} \lor \neg \left(j \leq 5 \cdot 10^{-63}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -6.80000000000000024e43 or 5.0000000000000002e-63 < j

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

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

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

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

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

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

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

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

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

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

    if -6.80000000000000024e43 < j < 5.0000000000000002e-63

    1. Initial program 75.5%

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

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

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

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

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

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

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

        \[\leadsto {\color{blue}{\left(\left(i \cdot t\right) \cdot b\right)}}^{1} \]
      3. associate-*l*29.0%

        \[\leadsto {\color{blue}{\left(i \cdot \left(t \cdot b\right)\right)}}^{1} \]
    8. Applied egg-rr29.0%

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

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

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

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

Alternative 21: 22.3% accurate, 5.8× speedup?

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

\\
a \cdot \left(c \cdot j\right)
\end{array}
Derivation
  1. Initial program 77.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 41.1%

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

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

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

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

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

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

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

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

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

    \[\leadsto a \cdot \left(c \cdot j\right) \]
  10. Add Preprocessing

Developer target: 59.0% 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 2024089 
(FPCore (x y z t a b c i j)
  :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
  :precision binary64

  :alt
  (if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))

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