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

Percentage Accurate: 73.0% → 82.7%
Time: 28.1s
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.0% 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.7% 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}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\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
     (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = ((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 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	}
	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 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	}
	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 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
	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(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t))));
	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 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\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 91.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) \]

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in14.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 63.2% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;x \leq -6.8 \cdot 10^{+99}:\\
\;\;\;\;t_1\\

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if x < -4.5000000000000004e258

    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.5000000000000004e258 < x < -6.79999999999999968e99 or 2.7e15 < x

    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. Step-by-step derivation
      1. sub-neg70.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.79999999999999968e99 < x < -1.6999999999999999e-87

    1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

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

    if -1.6999999999999999e-87 < x < -1.8999999999999999e-258

    1. Initial program 83.8%

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8999999999999999e-258 < x < 6.9999999999999995e-261

    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. Step-by-step derivation
      1. sub-neg71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 6.9999999999999995e-261 < x < 2.7e15

    1. Initial program 67.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+258}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;x \leq -6.8 \cdot 10^{+99}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-87}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\ \mathbf{elif}\;x \leq -1.9 \cdot 10^{-258}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-261}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\ \mathbf{elif}\;x \leq 2.7 \cdot 10^{+15}:\\ \;\;\;\;\left(i \cdot \left(t \cdot b - y \cdot j\right) + c \cdot \left(a \cdot j - z \cdot b\right)\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 3: 59.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\ t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\ t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;x \leq -1.9 \cdot 10^{+258}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;x \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -5.8 \cdot 10^{-86}:\\ \;\;\;\;t_3 - z \cdot \left(b \cdot c\right)\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-257}:\\ \;\;\;\;t_3 + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{-260}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3.4 \cdot 10^{-58}:\\ \;\;\;\;\left(i \cdot \left(t \cdot b\right) - c \cdot \left(z \cdot b - a \cdot j\right)\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;x \leq 1.02 \cdot 10^{+54} \lor \neg \left(x \leq 1.8 \cdot 10^{+117}\right):\\ \;\;\;\;t_2\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z)))))
        (t_2 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
        (t_3 (* j (- (* a c) (* y i)))))
   (if (<= x -1.9e+258)
     (* t (- (* b i) (* x a)))
     (if (<= x -1.9e+101)
       t_2
       (if (<= x -5.8e-86)
         (- t_3 (* z (* b c)))
         (if (<= x -3.1e-257)
           (+ t_3 (* t (* b i)))
           (if (<= x 1.8e-260)
             t_1
             (if (<= x 3.4e-58)
               (- (- (* i (* t b)) (* c (- (* z b) (* a j)))) (* a (* x t)))
               (if (or (<= x 1.02e+54) (not (<= x 1.8e+117))) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
	double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	double t_3 = j * ((a * c) - (y * i));
	double tmp;
	if (x <= -1.9e+258) {
		tmp = t * ((b * i) - (x * a));
	} else if (x <= -1.9e+101) {
		tmp = t_2;
	} else if (x <= -5.8e-86) {
		tmp = t_3 - (z * (b * c));
	} else if (x <= -3.1e-257) {
		tmp = t_3 + (t * (b * i));
	} else if (x <= 1.8e-260) {
		tmp = t_1;
	} else if (x <= 3.4e-58) {
		tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t));
	} else if ((x <= 1.02e+54) || !(x <= 1.8e+117)) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
    t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
    t_3 = j * ((a * c) - (y * i))
    if (x <= (-1.9d+258)) then
        tmp = t * ((b * i) - (x * a))
    else if (x <= (-1.9d+101)) then
        tmp = t_2
    else if (x <= (-5.8d-86)) then
        tmp = t_3 - (z * (b * c))
    else if (x <= (-3.1d-257)) then
        tmp = t_3 + (t * (b * i))
    else if (x <= 1.8d-260) then
        tmp = t_1
    else if (x <= 3.4d-58) then
        tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t))
    else if ((x <= 1.02d+54) .or. (.not. (x <= 1.8d+117))) then
        tmp = t_2
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
	double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	double t_3 = j * ((a * c) - (y * i));
	double tmp;
	if (x <= -1.9e+258) {
		tmp = t * ((b * i) - (x * a));
	} else if (x <= -1.9e+101) {
		tmp = t_2;
	} else if (x <= -5.8e-86) {
		tmp = t_3 - (z * (b * c));
	} else if (x <= -3.1e-257) {
		tmp = t_3 + (t * (b * i));
	} else if (x <= 1.8e-260) {
		tmp = t_1;
	} else if (x <= 3.4e-58) {
		tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t));
	} else if ((x <= 1.02e+54) || !(x <= 1.8e+117)) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
	t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
	t_3 = j * ((a * c) - (y * i))
	tmp = 0
	if x <= -1.9e+258:
		tmp = t * ((b * i) - (x * a))
	elif x <= -1.9e+101:
		tmp = t_2
	elif x <= -5.8e-86:
		tmp = t_3 - (z * (b * c))
	elif x <= -3.1e-257:
		tmp = t_3 + (t * (b * i))
	elif x <= 1.8e-260:
		tmp = t_1
	elif x <= 3.4e-58:
		tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t))
	elif (x <= 1.02e+54) or not (x <= 1.8e+117):
		tmp = t_2
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z))))
	t_2 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t))))
	t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i)))
	tmp = 0.0
	if (x <= -1.9e+258)
		tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a)));
	elseif (x <= -1.9e+101)
		tmp = t_2;
	elseif (x <= -5.8e-86)
		tmp = Float64(t_3 - Float64(z * Float64(b * c)));
	elseif (x <= -3.1e-257)
		tmp = Float64(t_3 + Float64(t * Float64(b * i)));
	elseif (x <= 1.8e-260)
		tmp = t_1;
	elseif (x <= 3.4e-58)
		tmp = Float64(Float64(Float64(i * Float64(t * b)) - Float64(c * Float64(Float64(z * b) - Float64(a * j)))) - Float64(a * Float64(x * t)));
	elseif ((x <= 1.02e+54) || !(x <= 1.8e+117))
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
	t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
	t_3 = j * ((a * c) - (y * i));
	tmp = 0.0;
	if (x <= -1.9e+258)
		tmp = t * ((b * i) - (x * a));
	elseif (x <= -1.9e+101)
		tmp = t_2;
	elseif (x <= -5.8e-86)
		tmp = t_3 - (z * (b * c));
	elseif (x <= -3.1e-257)
		tmp = t_3 + (t * (b * i));
	elseif (x <= 1.8e-260)
		tmp = t_1;
	elseif (x <= 3.4e-58)
		tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t));
	elseif ((x <= 1.02e+54) || ~((x <= 1.8e+117)))
		tmp = t_2;
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+258], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e+101], t$95$2, If[LessEqual[x, -5.8e-86], N[(t$95$3 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.1e-257], N[(t$95$3 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.8e-260], t$95$1, If[LessEqual[x, 3.4e-58], N[(N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(z * b), $MachinePrecision] - N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 1.02e+54], N[Not[LessEqual[x, 1.8e+117]], $MachinePrecision]], t$95$2, t$95$1]]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;x \leq -5.8 \cdot 10^{-86}:\\
\;\;\;\;t_3 - z \cdot \left(b \cdot c\right)\\

\mathbf{elif}\;x \leq -3.1 \cdot 10^{-257}:\\
\;\;\;\;t_3 + t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;x \leq 1.8 \cdot 10^{-260}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;x \leq 1.02 \cdot 10^{+54} \lor \neg \left(x \leq 1.8 \cdot 10^{+117}\right):\\
\;\;\;\;t_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if x < -1.90000000000000004e258

    1. Initial program 66.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.90000000000000004e258 < x < -1.8999999999999999e101 or 3.39999999999999973e-58 < x < 1.02e54 or 1.80000000000000006e117 < x

    1. Initial program 70.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8999999999999999e101 < x < -5.7999999999999998e-86

    1. Initial program 78.9%

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

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

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

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

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

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

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

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

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

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

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

    if -5.7999999999999998e-86 < x < -3.10000000000000008e-257

    1. Initial program 83.8%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.10000000000000008e-257 < x < 1.8e-260 or 1.02e54 < x < 1.80000000000000006e117

    1. Initial program 72.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.8e-260 < x < 3.39999999999999973e-58

    1. Initial program 62.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.9 \cdot 10^{+258}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;x \leq -1.9 \cdot 10^{+101}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;x \leq -5.8 \cdot 10^{-86}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-257}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{-260}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\ \mathbf{elif}\;x \leq 3.4 \cdot 10^{-58}:\\ \;\;\;\;\left(i \cdot \left(t \cdot b\right) - c \cdot \left(z \cdot b - a \cdot j\right)\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;x \leq 1.02 \cdot 10^{+54} \lor \neg \left(x \leq 1.8 \cdot 10^{+117}\right):\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\ \end{array} \]

Alternative 4: 57.4% accurate, 1.2× speedup?

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

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

\mathbf{elif}\;x \leq -1.65 \cdot 10^{-252}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;x \leq 1.2 \cdot 10^{-169}:\\
\;\;\;\;t_1 - z \cdot \left(b \cdot c\right)\\

\mathbf{elif}\;x \leq 1.06 \cdot 10^{+21}:\\
\;\;\;\;t_2\\

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


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

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in74.4%

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

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

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

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

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

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

    if -3.7e119 < x < -1.65000000000000004e-252 or 1.20000000000000005e-169 < x < 1.06e21

    1. Initial program 78.8%

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.65000000000000004e-252 < x < 1.20000000000000005e-169

    1. Initial program 67.9%

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

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

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

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

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

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

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

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

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

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

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

    if 1.06e21 < x

    1. Initial program 66.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.7 \cdot 10^{+119}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq -1.65 \cdot 10^{-252}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{-169}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\ \mathbf{elif}\;x \leq 1.06 \cdot 10^{+21}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\\ \end{array} \]

Alternative 5: 66.3% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+192} \lor \neg \left(a \leq 2 \cdot 10^{+99}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -3e192 or 1.9999999999999999e99 < a

    1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3e192 < a < 1.9999999999999999e99

    1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 67.7% accurate, 1.3× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{-85} \lor \neg \left(a \leq 1.6 \cdot 10^{+73}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.2e-85 or 1.59999999999999991e73 < a

    1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.2e-85 < a < 1.59999999999999991e73

    1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 52.0% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;t \leq -3.5 \cdot 10^{-151}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;t \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;t \leq 3.6 \cdot 10^{-173}:\\
\;\;\;\;t_2\\

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

\mathbf{elif}\;t \leq 1.05 \cdot 10^{+41}:\\
\;\;\;\;t_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.3e21 or 1.05e41 < t

    1. Initial program 68.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in71.7%

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

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

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

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

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

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

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

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

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

    if -3.3e21 < t < -3.49999999999999995e-151 or 4.7999999999999999e-226 < t < 3.59999999999999972e-173

    1. Initial program 68.2%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in70.7%

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

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

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

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

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

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

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

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

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

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

    if -3.49999999999999995e-151 < t < 4.7999999999999999e-226 or 6.5000000000000002e-131 < t < 1.05e41

    1. Initial program 76.8%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in79.8%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} + \left(-1 \cdot \left(z \cdot b\right)\right) \cdot c \]
      3. mul-1-neg53.1%

        \[\leadsto c \cdot \left(a \cdot j\right) + \color{blue}{\left(-z \cdot b\right)} \cdot c \]
      4. cancel-sign-sub-inv53.1%

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

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

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

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

    if 3.59999999999999972e-173 < t < 6.5000000000000002e-131

    1. Initial program 88.7%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in88.7%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.3 \cdot 10^{+21}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;t \leq -3.5 \cdot 10^{-151}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;t \leq 4.8 \cdot 10^{-226}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{-173}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;t \leq 6.5 \cdot 10^{-131}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;t \leq 1.05 \cdot 10^{+41}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]

Alternative 8: 57.7% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.52 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.52000000000000007e119

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in74.4%

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

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

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

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

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

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

    if -1.52000000000000007e119 < x < 5.5e20

    1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.5e20 < x

    1. Initial program 66.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 30.2% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c\right)\\ t_2 := a \cdot \left(-x \cdot t\right)\\ \mathbf{if}\;x \leq -1.7 \cdot 10^{+33}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -6.2 \cdot 10^{-165}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 4.2 \cdot 10^{+20}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+262} \lor \neg \left(x \leq 2.8 \cdot 10^{+302}\right):\\ \;\;\;\;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 (* j (* a c))) (t_2 (* a (- (* x t)))))
   (if (<= x -1.7e+33)
     t_2
     (if (<= x -6.2e-165)
       t_1
       (if (<= x 5.2e-271)
         (* t (* b i))
         (if (<= x 4.2e+20)
           t_1
           (if (or (<= x 7.5e+262) (not (<= x 2.8e+302)))
             (* 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 = j * (a * c);
	double t_2 = a * -(x * t);
	double tmp;
	if (x <= -1.7e+33) {
		tmp = t_2;
	} else if (x <= -6.2e-165) {
		tmp = t_1;
	} else if (x <= 5.2e-271) {
		tmp = t * (b * i);
	} else if (x <= 4.2e+20) {
		tmp = t_1;
	} else if ((x <= 7.5e+262) || !(x <= 2.8e+302)) {
		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 = j * (a * c)
    t_2 = a * -(x * t)
    if (x <= (-1.7d+33)) then
        tmp = t_2
    else if (x <= (-6.2d-165)) then
        tmp = t_1
    else if (x <= 5.2d-271) then
        tmp = t * (b * i)
    else if (x <= 4.2d+20) then
        tmp = t_1
    else if ((x <= 7.5d+262) .or. (.not. (x <= 2.8d+302))) 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 = j * (a * c);
	double t_2 = a * -(x * t);
	double tmp;
	if (x <= -1.7e+33) {
		tmp = t_2;
	} else if (x <= -6.2e-165) {
		tmp = t_1;
	} else if (x <= 5.2e-271) {
		tmp = t * (b * i);
	} else if (x <= 4.2e+20) {
		tmp = t_1;
	} else if ((x <= 7.5e+262) || !(x <= 2.8e+302)) {
		tmp = y * (x * z);
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * (a * c)
	t_2 = a * -(x * t)
	tmp = 0
	if x <= -1.7e+33:
		tmp = t_2
	elif x <= -6.2e-165:
		tmp = t_1
	elif x <= 5.2e-271:
		tmp = t * (b * i)
	elif x <= 4.2e+20:
		tmp = t_1
	elif (x <= 7.5e+262) or not (x <= 2.8e+302):
		tmp = y * (x * z)
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(a * c))
	t_2 = Float64(a * Float64(-Float64(x * t)))
	tmp = 0.0
	if (x <= -1.7e+33)
		tmp = t_2;
	elseif (x <= -6.2e-165)
		tmp = t_1;
	elseif (x <= 5.2e-271)
		tmp = Float64(t * Float64(b * i));
	elseif (x <= 4.2e+20)
		tmp = t_1;
	elseif ((x <= 7.5e+262) || !(x <= 2.8e+302))
		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 = j * (a * c);
	t_2 = a * -(x * t);
	tmp = 0.0;
	if (x <= -1.7e+33)
		tmp = t_2;
	elseif (x <= -6.2e-165)
		tmp = t_1;
	elseif (x <= 5.2e-271)
		tmp = t * (b * i);
	elseif (x <= 4.2e+20)
		tmp = t_1;
	elseif ((x <= 7.5e+262) || ~((x <= 2.8e+302)))
		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[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[x, -1.7e+33], t$95$2, If[LessEqual[x, -6.2e-165], t$95$1, If[LessEqual[x, 5.2e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+20], t$95$1, If[Or[LessEqual[x, 7.5e+262], N[Not[LessEqual[x, 2.8e+302]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -6.2 \cdot 10^{-165}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

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

\mathbf{elif}\;x \leq 7.5 \cdot 10^{+262} \lor \neg \left(x \leq 2.8 \cdot 10^{+302}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -1.7e33 or 7.49999999999999977e262 < x < 2.7999999999999999e302

    1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -a \cdot \color{blue}{\left(x \cdot t\right)} \]
      3. distribute-rgt-neg-in49.0%

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

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

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

    if -1.7e33 < x < -6.19999999999999992e-165 or 5.2e-271 < x < 4.2e20

    1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -6.19999999999999992e-165 < x < 5.2e-271

    1. Initial program 69.8%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in69.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 4.2e20 < x < 7.49999999999999977e262 or 2.7999999999999999e302 < x

    1. Initial program 68.8%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in73.5%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.7 \cdot 10^{+33}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;x \leq -6.2 \cdot 10^{-165}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 4.2 \cdot 10^{+20}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 7.5 \cdot 10^{+262} \lor \neg \left(x \leq 2.8 \cdot 10^{+302}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \end{array} \]

Alternative 10: 29.9% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c\right)\\ t_2 := a \cdot \left(-x \cdot t\right)\\ \mathbf{if}\;x \leq -1.35 \cdot 10^{+32}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;x \leq -7.8 \cdot 10^{-259}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-261}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+263} \lor \neg \left(x \leq 7.8 \cdot 10^{+299}\right):\\ \;\;\;\;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 (* j (* a c))) (t_2 (* a (- (* x t)))))
   (if (<= x -1.35e+32)
     t_2
     (if (<= x -7.8e-259)
       t_1
       (if (<= x 7e-261)
         (* b (* c (- z)))
         (if (<= x 8.5e+20)
           t_1
           (if (or (<= x 1.35e+263) (not (<= x 7.8e+299)))
             (* 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 = j * (a * c);
	double t_2 = a * -(x * t);
	double tmp;
	if (x <= -1.35e+32) {
		tmp = t_2;
	} else if (x <= -7.8e-259) {
		tmp = t_1;
	} else if (x <= 7e-261) {
		tmp = b * (c * -z);
	} else if (x <= 8.5e+20) {
		tmp = t_1;
	} else if ((x <= 1.35e+263) || !(x <= 7.8e+299)) {
		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 = j * (a * c)
    t_2 = a * -(x * t)
    if (x <= (-1.35d+32)) then
        tmp = t_2
    else if (x <= (-7.8d-259)) then
        tmp = t_1
    else if (x <= 7d-261) then
        tmp = b * (c * -z)
    else if (x <= 8.5d+20) then
        tmp = t_1
    else if ((x <= 1.35d+263) .or. (.not. (x <= 7.8d+299))) 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 = j * (a * c);
	double t_2 = a * -(x * t);
	double tmp;
	if (x <= -1.35e+32) {
		tmp = t_2;
	} else if (x <= -7.8e-259) {
		tmp = t_1;
	} else if (x <= 7e-261) {
		tmp = b * (c * -z);
	} else if (x <= 8.5e+20) {
		tmp = t_1;
	} else if ((x <= 1.35e+263) || !(x <= 7.8e+299)) {
		tmp = y * (x * z);
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * (a * c)
	t_2 = a * -(x * t)
	tmp = 0
	if x <= -1.35e+32:
		tmp = t_2
	elif x <= -7.8e-259:
		tmp = t_1
	elif x <= 7e-261:
		tmp = b * (c * -z)
	elif x <= 8.5e+20:
		tmp = t_1
	elif (x <= 1.35e+263) or not (x <= 7.8e+299):
		tmp = y * (x * z)
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(a * c))
	t_2 = Float64(a * Float64(-Float64(x * t)))
	tmp = 0.0
	if (x <= -1.35e+32)
		tmp = t_2;
	elseif (x <= -7.8e-259)
		tmp = t_1;
	elseif (x <= 7e-261)
		tmp = Float64(b * Float64(c * Float64(-z)));
	elseif (x <= 8.5e+20)
		tmp = t_1;
	elseif ((x <= 1.35e+263) || !(x <= 7.8e+299))
		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 = j * (a * c);
	t_2 = a * -(x * t);
	tmp = 0.0;
	if (x <= -1.35e+32)
		tmp = t_2;
	elseif (x <= -7.8e-259)
		tmp = t_1;
	elseif (x <= 7e-261)
		tmp = b * (c * -z);
	elseif (x <= 8.5e+20)
		tmp = t_1;
	elseif ((x <= 1.35e+263) || ~((x <= 7.8e+299)))
		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[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[x, -1.35e+32], t$95$2, If[LessEqual[x, -7.8e-259], t$95$1, If[LessEqual[x, 7e-261], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+20], t$95$1, If[Or[LessEqual[x, 1.35e+263], N[Not[LessEqual[x, 7.8e+299]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -7.8 \cdot 10^{-259}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 1.35 \cdot 10^{+263} \lor \neg \left(x \leq 7.8 \cdot 10^{+299}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -1.35000000000000006e32 or 1.35e263 < x < 7.80000000000000071e299

    1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -a \cdot \color{blue}{\left(x \cdot t\right)} \]
      3. distribute-rgt-neg-in49.0%

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

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

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

    if -1.35000000000000006e32 < x < -7.80000000000000031e-259 or 6.9999999999999995e-261 < x < 8.5e20

    1. Initial program 72.9%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in76.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.80000000000000031e-259 < x < 6.9999999999999995e-261

    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. Step-by-step derivation
      1. cancel-sign-sub71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 8.5e20 < x < 1.35e263 or 7.80000000000000071e299 < x

    1. Initial program 68.8%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in73.5%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.35 \cdot 10^{+32}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \mathbf{elif}\;x \leq -7.8 \cdot 10^{-259}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-261}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+263} \lor \neg \left(x \leq 7.8 \cdot 10^{+299}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \end{array} \]

Alternative 11: 29.8% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(a \cdot c\right)\\ \mathbf{if}\;x \leq -1.2 \cdot 10^{+32}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{-258}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-259}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+19}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{+261} \lor \neg \left(x \leq 1.05 \cdot 10^{+297}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* j (* a c))))
   (if (<= x -1.2e+32)
     (* t (- (* x a)))
     (if (<= x -8.2e-258)
       t_1
       (if (<= x 3e-259)
         (* b (* c (- z)))
         (if (<= x 2.9e+19)
           t_1
           (if (or (<= x 1.3e+261) (not (<= x 1.05e+297)))
             (* y (* x z))
             (* a (- (* x t))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * (a * c);
	double tmp;
	if (x <= -1.2e+32) {
		tmp = t * -(x * a);
	} else if (x <= -8.2e-258) {
		tmp = t_1;
	} else if (x <= 3e-259) {
		tmp = b * (c * -z);
	} else if (x <= 2.9e+19) {
		tmp = t_1;
	} else if ((x <= 1.3e+261) || !(x <= 1.05e+297)) {
		tmp = y * (x * z);
	} else {
		tmp = a * -(x * t);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = j * (a * c)
    if (x <= (-1.2d+32)) then
        tmp = t * -(x * a)
    else if (x <= (-8.2d-258)) then
        tmp = t_1
    else if (x <= 3d-259) then
        tmp = b * (c * -z)
    else if (x <= 2.9d+19) then
        tmp = t_1
    else if ((x <= 1.3d+261) .or. (.not. (x <= 1.05d+297))) then
        tmp = y * (x * z)
    else
        tmp = a * -(x * t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * (a * c);
	double tmp;
	if (x <= -1.2e+32) {
		tmp = t * -(x * a);
	} else if (x <= -8.2e-258) {
		tmp = t_1;
	} else if (x <= 3e-259) {
		tmp = b * (c * -z);
	} else if (x <= 2.9e+19) {
		tmp = t_1;
	} else if ((x <= 1.3e+261) || !(x <= 1.05e+297)) {
		tmp = y * (x * z);
	} else {
		tmp = a * -(x * t);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * (a * c)
	tmp = 0
	if x <= -1.2e+32:
		tmp = t * -(x * a)
	elif x <= -8.2e-258:
		tmp = t_1
	elif x <= 3e-259:
		tmp = b * (c * -z)
	elif x <= 2.9e+19:
		tmp = t_1
	elif (x <= 1.3e+261) or not (x <= 1.05e+297):
		tmp = y * (x * z)
	else:
		tmp = a * -(x * t)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(a * c))
	tmp = 0.0
	if (x <= -1.2e+32)
		tmp = Float64(t * Float64(-Float64(x * a)));
	elseif (x <= -8.2e-258)
		tmp = t_1;
	elseif (x <= 3e-259)
		tmp = Float64(b * Float64(c * Float64(-z)));
	elseif (x <= 2.9e+19)
		tmp = t_1;
	elseif ((x <= 1.3e+261) || !(x <= 1.05e+297))
		tmp = Float64(y * Float64(x * z));
	else
		tmp = Float64(a * Float64(-Float64(x * t)));
	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 (x <= -1.2e+32)
		tmp = t * -(x * a);
	elseif (x <= -8.2e-258)
		tmp = t_1;
	elseif (x <= 3e-259)
		tmp = b * (c * -z);
	elseif (x <= 2.9e+19)
		tmp = t_1;
	elseif ((x <= 1.3e+261) || ~((x <= 1.05e+297)))
		tmp = y * (x * z);
	else
		tmp = a * -(x * t);
	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[x, -1.2e+32], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, -8.2e-258], t$95$1, If[LessEqual[x, 3e-259], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+19], t$95$1, If[Or[LessEqual[x, 1.3e+261], N[Not[LessEqual[x, 1.05e+297]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -8.2 \cdot 10^{-258}:\\
\;\;\;\;t_1\\

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

\mathbf{elif}\;x \leq 2.9 \cdot 10^{+19}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 1.3 \cdot 10^{+261} \lor \neg \left(x \leq 1.05 \cdot 10^{+297}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -1.19999999999999996e32

    1. Initial program 77.2%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in78.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(-\color{blue}{x \cdot a}\right) \]
      3. distribute-rgt-neg-in50.0%

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

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

    if -1.19999999999999996e32 < x < -8.2000000000000001e-258 or 3.0000000000000002e-259 < x < 2.9e19

    1. Initial program 72.9%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in76.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.2000000000000001e-258 < x < 3.0000000000000002e-259

    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. Step-by-step derivation
      1. cancel-sign-sub71.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z\right)\right)} \]
      4. mul-1-neg41.6%

        \[\leadsto b \cdot \color{blue}{\left(-c \cdot z\right)} \]
      5. *-commutative41.6%

        \[\leadsto b \cdot \left(-\color{blue}{z \cdot c}\right) \]
      6. distribute-rgt-neg-in41.6%

        \[\leadsto b \cdot \color{blue}{\left(z \cdot \left(-c\right)\right)} \]
    8. Simplified41.6%

      \[\leadsto \color{blue}{b \cdot \left(z \cdot \left(-c\right)\right)} \]

    if 2.9e19 < x < 1.29999999999999991e261 or 1.0500000000000001e297 < x

    1. Initial program 68.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg68.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative68.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+68.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in68.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative68.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def73.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg73.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative73.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in73.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg73.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg73.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative73.5%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified76.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 61.3%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative61.3%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg61.3%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg61.3%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified61.3%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around inf 49.0%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if 1.29999999999999991e261 < x < 1.0500000000000001e297

    1. Initial program 50.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg50.0%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative50.0%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+50.0%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in50.0%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative50.0%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def62.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg62.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative62.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in62.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg62.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg62.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative62.5%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified62.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 75.3%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative75.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg75.3%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg75.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified75.3%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around 0 63.2%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]
    8. Step-by-step derivation
      1. mul-1-neg63.2%

        \[\leadsto \color{blue}{-a \cdot \left(t \cdot x\right)} \]
      2. *-commutative63.2%

        \[\leadsto -a \cdot \color{blue}{\left(x \cdot t\right)} \]
      3. distribute-rgt-neg-in63.2%

        \[\leadsto \color{blue}{a \cdot \left(-x \cdot t\right)} \]
      4. distribute-rgt-neg-in63.2%

        \[\leadsto a \cdot \color{blue}{\left(x \cdot \left(-t\right)\right)} \]
    9. Simplified63.2%

      \[\leadsto \color{blue}{a \cdot \left(x \cdot \left(-t\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification44.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.2 \cdot 10^{+32}:\\ \;\;\;\;t \cdot \left(-x \cdot a\right)\\ \mathbf{elif}\;x \leq -8.2 \cdot 10^{-258}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-259}:\\ \;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+19}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{+261} \lor \neg \left(x \leq 1.05 \cdot 10^{+297}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(-x \cdot t\right)\\ \end{array} \]

Alternative 12: 50.9% accurate, 1.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)\\ \mathbf{if}\;a \leq -2.3 \cdot 10^{-85}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;a \leq 3.1 \cdot 10^{-284}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-179}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;a \leq 1.36 \cdot 10^{+73}:\\ \;\;\;\;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 -2.3e-85)
     t_2
     (if (<= a 3.1e-284)
       t_1
       (if (<= a 4.4e-179)
         (* y (- (* x z) (* i j)))
         (if (<= a 1.36e+73) 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 <= -2.3e-85) {
		tmp = t_2;
	} else if (a <= 3.1e-284) {
		tmp = t_1;
	} else if (a <= 4.4e-179) {
		tmp = y * ((x * z) - (i * j));
	} else if (a <= 1.36e+73) {
		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 <= (-2.3d-85)) then
        tmp = t_2
    else if (a <= 3.1d-284) then
        tmp = t_1
    else if (a <= 4.4d-179) then
        tmp = y * ((x * z) - (i * j))
    else if (a <= 1.36d+73) 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 <= -2.3e-85) {
		tmp = t_2;
	} else if (a <= 3.1e-284) {
		tmp = t_1;
	} else if (a <= 4.4e-179) {
		tmp = y * ((x * z) - (i * j));
	} else if (a <= 1.36e+73) {
		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 <= -2.3e-85:
		tmp = t_2
	elif a <= 3.1e-284:
		tmp = t_1
	elif a <= 4.4e-179:
		tmp = y * ((x * z) - (i * j))
	elif a <= 1.36e+73:
		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 <= -2.3e-85)
		tmp = t_2;
	elseif (a <= 3.1e-284)
		tmp = t_1;
	elseif (a <= 4.4e-179)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (a <= 1.36e+73)
		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 <= -2.3e-85)
		tmp = t_2;
	elseif (a <= 3.1e-284)
		tmp = t_1;
	elseif (a <= 4.4e-179)
		tmp = y * ((x * z) - (i * j));
	elseif (a <= 1.36e+73)
		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, -2.3e-85], t$95$2, If[LessEqual[a, 3.1e-284], t$95$1, If[LessEqual[a, 4.4e-179], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.36e+73], 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 -2.3 \cdot 10^{-85}:\\
\;\;\;\;t_2\\

\mathbf{elif}\;a \leq 3.1 \cdot 10^{-284}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 4.4 \cdot 10^{-179}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;a \leq 1.36 \cdot 10^{+73}:\\
\;\;\;\;t_1\\

\mathbf{else}:\\
\;\;\;\;t_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.3e-85 or 1.3599999999999999e73 < a

    1. Initial program 70.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg70.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative70.1%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+70.1%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in70.1%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative70.1%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def72.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative72.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative72.3%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified73.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 63.4%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative63.4%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg63.4%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg63.4%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified63.4%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]

    if -2.3e-85 < a < 3.0999999999999998e-284 or 4.40000000000000009e-179 < a < 1.3599999999999999e73

    1. Initial program 76.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg76.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative76.9%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+76.9%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in76.9%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative76.9%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def80.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg80.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative80.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in80.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg80.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg80.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative80.0%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified80.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in b around inf 54.7%

      \[\leadsto \color{blue}{\left(i \cdot t - c \cdot z\right) \cdot b} \]

    if 3.0999999999999998e-284 < a < 4.40000000000000009e-179

    1. Initial program 62.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg62.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative62.4%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+62.4%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in62.4%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative62.4%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def71.9%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg71.9%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative71.9%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in71.9%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg71.9%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg71.9%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative71.9%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified76.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 62.7%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative62.7%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg62.7%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg62.7%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified62.7%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification60.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.3 \cdot 10^{-85}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq 3.1 \cdot 10^{-284}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-179}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;a \leq 1.36 \cdot 10^{+73}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 13: 42.9% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{if}\;a \leq -8.6 \cdot 10^{-162}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{-237}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{-154}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (- (* c j) (* x t)))))
   (if (<= a -8.6e-162)
     t_1
     (if (<= a 9.8e-237)
       (* t (* b i))
       (if (<= a 1.6e-154) (* y (* x z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -8.6e-162) {
		tmp = t_1;
	} else if (a <= 9.8e-237) {
		tmp = t * (b * i);
	} else if (a <= 1.6e-154) {
		tmp = y * (x * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * ((c * j) - (x * t))
    if (a <= (-8.6d-162)) then
        tmp = t_1
    else if (a <= 9.8d-237) then
        tmp = t * (b * i)
    else if (a <= 1.6d-154) then
        tmp = y * (x * z)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * ((c * j) - (x * t));
	double tmp;
	if (a <= -8.6e-162) {
		tmp = t_1;
	} else if (a <= 9.8e-237) {
		tmp = t * (b * i);
	} else if (a <= 1.6e-154) {
		tmp = y * (x * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * ((c * j) - (x * t))
	tmp = 0
	if a <= -8.6e-162:
		tmp = t_1
	elif a <= 9.8e-237:
		tmp = t * (b * i)
	elif a <= 1.6e-154:
		tmp = y * (x * z)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	tmp = 0.0
	if (a <= -8.6e-162)
		tmp = t_1;
	elseif (a <= 9.8e-237)
		tmp = Float64(t * Float64(b * i));
	elseif (a <= 1.6e-154)
		tmp = Float64(y * Float64(x * z));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * ((c * j) - (x * t));
	tmp = 0.0;
	if (a <= -8.6e-162)
		tmp = t_1;
	elseif (a <= 9.8e-237)
		tmp = t * (b * i);
	elseif (a <= 1.6e-154)
		tmp = y * (x * z);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.6e-162], t$95$1, If[LessEqual[a, 9.8e-237], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-154], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.6 \cdot 10^{-162}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;a \leq 9.8 \cdot 10^{-237}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;a \leq 1.6 \cdot 10^{-154}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -8.59999999999999993e-162 or 1.60000000000000002e-154 < a

    1. Initial program 71.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg71.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative71.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+71.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in71.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative71.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def74.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg74.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative74.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in74.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg74.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg74.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative74.4%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified74.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 53.8%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative53.8%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg53.8%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg53.8%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified53.8%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]

    if -8.59999999999999993e-162 < a < 9.8000000000000002e-237

    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. Step-by-step derivation
      1. sub-neg70.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative70.9%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+70.9%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in70.9%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative70.9%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def75.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg75.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative75.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in75.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg75.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg75.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative75.5%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified77.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around -inf 57.3%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + \left(y \cdot \left(z \cdot x\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. associate-+r+57.3%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \color{blue}{\left(\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)} \]
      2. +-commutative57.3%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(\color{blue}{\left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)} + \left(i \cdot t - c \cdot z\right) \cdot b\right) \]
      3. associate-+r+57.3%

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b} \]
    6. Simplified61.9%

      \[\leadsto \color{blue}{\left(y \cdot \left(z \cdot x - i \cdot j\right) - a \cdot \left(t \cdot x - c \cdot j\right)\right) + b \cdot \left(i \cdot t - c \cdot z\right)} \]
    7. Taylor expanded in t around inf 38.2%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative38.2%

        \[\leadsto t \cdot \left(i \cdot b - \color{blue}{x \cdot a}\right) \]
    9. Simplified38.2%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - x \cdot a\right)} \]
    10. Taylor expanded in i around inf 32.8%

      \[\leadsto t \cdot \color{blue}{\left(i \cdot b\right)} \]

    if 9.8000000000000002e-237 < a < 1.60000000000000002e-154

    1. Initial program 78.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg78.5%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative78.5%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+78.5%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in78.5%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative78.5%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def84.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg84.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative84.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in84.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg84.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg84.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative84.0%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified84.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 56.7%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative56.7%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg56.7%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg56.7%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified56.7%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around inf 51.2%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification50.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -8.6 \cdot 10^{-162}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq 9.8 \cdot 10^{-237}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;a \leq 1.6 \cdot 10^{-154}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 14: 42.8% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{if}\;x \leq -3.15 \cdot 10^{+25}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 4.8 \cdot 10^{+24}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{+262}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (- (* c j) (* x t)))))
   (if (<= x -3.15e+25)
     t_1
     (if (<= x 4.8e+24)
       (* c (- (* a j) (* z b)))
       (if (<= x 1.15e+262) (* y (* x z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * ((c * j) - (x * t));
	double tmp;
	if (x <= -3.15e+25) {
		tmp = t_1;
	} else if (x <= 4.8e+24) {
		tmp = c * ((a * j) - (z * b));
	} else if (x <= 1.15e+262) {
		tmp = y * (x * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * ((c * j) - (x * t))
    if (x <= (-3.15d+25)) then
        tmp = t_1
    else if (x <= 4.8d+24) then
        tmp = c * ((a * j) - (z * b))
    else if (x <= 1.15d+262) then
        tmp = y * (x * z)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * ((c * j) - (x * t));
	double tmp;
	if (x <= -3.15e+25) {
		tmp = t_1;
	} else if (x <= 4.8e+24) {
		tmp = c * ((a * j) - (z * b));
	} else if (x <= 1.15e+262) {
		tmp = y * (x * z);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * ((c * j) - (x * t))
	tmp = 0
	if x <= -3.15e+25:
		tmp = t_1
	elif x <= 4.8e+24:
		tmp = c * ((a * j) - (z * b))
	elif x <= 1.15e+262:
		tmp = y * (x * z)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t)))
	tmp = 0.0
	if (x <= -3.15e+25)
		tmp = t_1;
	elseif (x <= 4.8e+24)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (x <= 1.15e+262)
		tmp = Float64(y * Float64(x * z));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * ((c * j) - (x * t));
	tmp = 0.0;
	if (x <= -3.15e+25)
		tmp = t_1;
	elseif (x <= 4.8e+24)
		tmp = c * ((a * j) - (z * b));
	elseif (x <= 1.15e+262)
		tmp = y * (x * z);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.15e+25], t$95$1, If[LessEqual[x, 4.8e+24], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+262], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;x \leq -3.15 \cdot 10^{+25}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq 4.8 \cdot 10^{+24}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;x \leq 1.15 \cdot 10^{+262}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -3.14999999999999987e25 or 1.15e262 < x

    1. Initial program 73.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg73.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative73.6%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+73.6%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in73.6%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative73.6%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def76.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg76.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative76.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in76.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg76.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg76.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative76.3%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified76.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 57.9%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative57.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg57.9%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg57.9%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified57.9%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]

    if -3.14999999999999987e25 < x < 4.8000000000000001e24

    1. Initial program 72.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg72.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative72.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+72.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in72.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative72.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def75.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg75.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative75.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in75.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg75.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg75.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative75.3%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified75.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in c around inf 50.1%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j + -1 \cdot \left(z \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-rgt-in49.2%

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c + \left(-1 \cdot \left(z \cdot b\right)\right) \cdot c} \]
      2. *-commutative49.2%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} + \left(-1 \cdot \left(z \cdot b\right)\right) \cdot c \]
      3. mul-1-neg49.2%

        \[\leadsto c \cdot \left(a \cdot j\right) + \color{blue}{\left(-z \cdot b\right)} \cdot c \]
      4. cancel-sign-sub-inv49.2%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right) - \left(z \cdot b\right) \cdot c} \]
      5. *-commutative49.2%

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} - \left(z \cdot b\right) \cdot c \]
      6. distribute-rgt-out--50.1%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - z \cdot b\right)} \]
    6. Simplified50.1%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - z \cdot b\right)} \]

    if 4.8000000000000001e24 < x < 1.15e262

    1. Initial program 68.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg68.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative68.9%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+68.9%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in68.9%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative68.9%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def73.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg73.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative73.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in73.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg73.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg73.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative73.8%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified77.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 59.4%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative59.4%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg59.4%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg59.4%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified59.4%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around inf 48.0%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification51.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.15 \cdot 10^{+25}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;x \leq 4.8 \cdot 10^{+24}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;x \leq 1.15 \cdot 10^{+262}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]

Alternative 15: 51.8% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{if}\;y \leq -3.4 \cdot 10^{+27}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq 1.02 \cdot 10^{-137}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 8.5:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* y (- (* x z) (* i j)))))
   (if (<= y -3.4e+27)
     t_1
     (if (<= y 1.02e-137)
       (* a (- (* c j) (* x t)))
       (if (<= y 8.5) (* t (- (* b i) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -3.4e+27) {
		tmp = t_1;
	} else if (y <= 1.02e-137) {
		tmp = a * ((c * j) - (x * t));
	} else if (y <= 8.5) {
		tmp = t * ((b * i) - (x * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = y * ((x * z) - (i * j))
    if (y <= (-3.4d+27)) then
        tmp = t_1
    else if (y <= 1.02d-137) then
        tmp = a * ((c * j) - (x * t))
    else if (y <= 8.5d0) then
        tmp = t * ((b * i) - (x * a))
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -3.4e+27) {
		tmp = t_1;
	} else if (y <= 1.02e-137) {
		tmp = a * ((c * j) - (x * t));
	} else if (y <= 8.5) {
		tmp = t * ((b * i) - (x * a));
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * ((x * z) - (i * j))
	tmp = 0
	if y <= -3.4e+27:
		tmp = t_1
	elif y <= 1.02e-137:
		tmp = a * ((c * j) - (x * t))
	elif y <= 8.5:
		tmp = t * ((b * i) - (x * a))
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j)))
	tmp = 0.0
	if (y <= -3.4e+27)
		tmp = t_1;
	elseif (y <= 1.02e-137)
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	elseif (y <= 8.5)
		tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * ((x * z) - (i * j));
	tmp = 0.0;
	if (y <= -3.4e+27)
		tmp = t_1;
	elseif (y <= 1.02e-137)
		tmp = a * ((c * j) - (x * t));
	elseif (y <= 8.5)
		tmp = t * ((b * i) - (x * a));
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e+27], t$95$1, If[LessEqual[y, 1.02e-137], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+27}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;y \leq 1.02 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

\mathbf{elif}\;y \leq 8.5:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.4e27 or 8.5 < y

    1. Initial program 62.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg62.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative62.9%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+62.9%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in62.9%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative62.9%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def66.2%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg66.2%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative66.2%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in66.2%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg66.2%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg66.2%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative66.2%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified66.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 59.6%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative59.6%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg59.6%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg59.6%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified59.6%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]

    if -3.4e27 < y < 1.02e-137

    1. Initial program 83.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg83.9%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative83.9%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+83.9%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in83.9%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative83.9%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def86.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg86.7%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative86.7%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in86.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg86.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg86.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative86.7%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified88.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 55.2%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative55.2%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg55.2%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg55.2%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified55.2%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]

    if 1.02e-137 < y < 8.5

    1. Initial program 67.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg67.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative67.4%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+67.4%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in67.4%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative67.4%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def70.7%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg70.7%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative70.7%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in70.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg70.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg70.7%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative70.7%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified70.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in t around inf 61.3%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b + -1 \cdot \left(a \cdot x\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg61.3%

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      2. unsub-neg61.3%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot b - a \cdot x\right)} \]
    6. Simplified61.3%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification58.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.4 \cdot 10^{+27}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 1.02 \cdot 10^{-137}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 8.5:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]

Alternative 16: 28.5% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := y \cdot \left(x \cdot z\right)\\ \mathbf{if}\;x \leq -8.8 \cdot 10^{+201}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq -9.5 \cdot 10^{-165}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.1 \cdot 10^{+21}:\\ \;\;\;\;j \cdot \left(a \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 (* y (* x z))))
   (if (<= x -8.8e+201)
     t_1
     (if (<= x -9.5e-165)
       (* a (* c j))
       (if (<= x 2.6e-271)
         (* t (* b i))
         (if (<= x 1.1e+21) (* j (* a 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 = y * (x * z);
	double tmp;
	if (x <= -8.8e+201) {
		tmp = t_1;
	} else if (x <= -9.5e-165) {
		tmp = a * (c * j);
	} else if (x <= 2.6e-271) {
		tmp = t * (b * i);
	} else if (x <= 1.1e+21) {
		tmp = j * (a * 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 = y * (x * z)
    if (x <= (-8.8d+201)) then
        tmp = t_1
    else if (x <= (-9.5d-165)) then
        tmp = a * (c * j)
    else if (x <= 2.6d-271) then
        tmp = t * (b * i)
    else if (x <= 1.1d+21) then
        tmp = j * (a * 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 = y * (x * z);
	double tmp;
	if (x <= -8.8e+201) {
		tmp = t_1;
	} else if (x <= -9.5e-165) {
		tmp = a * (c * j);
	} else if (x <= 2.6e-271) {
		tmp = t * (b * i);
	} else if (x <= 1.1e+21) {
		tmp = j * (a * c);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = y * (x * z)
	tmp = 0
	if x <= -8.8e+201:
		tmp = t_1
	elif x <= -9.5e-165:
		tmp = a * (c * j)
	elif x <= 2.6e-271:
		tmp = t * (b * i)
	elif x <= 1.1e+21:
		tmp = j * (a * c)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(y * Float64(x * z))
	tmp = 0.0
	if (x <= -8.8e+201)
		tmp = t_1;
	elseif (x <= -9.5e-165)
		tmp = Float64(a * Float64(c * j));
	elseif (x <= 2.6e-271)
		tmp = Float64(t * Float64(b * i));
	elseif (x <= 1.1e+21)
		tmp = Float64(j * Float64(a * c));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = y * (x * z);
	tmp = 0.0;
	if (x <= -8.8e+201)
		tmp = t_1;
	elseif (x <= -9.5e-165)
		tmp = a * (c * j);
	elseif (x <= 2.6e-271)
		tmp = t * (b * i);
	elseif (x <= 1.1e+21)
		tmp = j * (a * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.8e+201], t$95$1, If[LessEqual[x, -9.5e-165], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+21], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{+201}:\\
\;\;\;\;t_1\\

\mathbf{elif}\;x \leq -9.5 \cdot 10^{-165}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

\mathbf{elif}\;x \leq 2.6 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;x \leq 1.1 \cdot 10^{+21}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;t_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -8.8e201 or 1.1e21 < x

    1. Initial program 65.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg65.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative65.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+65.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in65.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative65.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def70.5%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg70.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative70.5%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in70.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg70.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg70.5%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative70.5%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified72.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 53.2%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative53.2%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg53.2%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg53.2%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified53.2%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around inf 40.0%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -8.8e201 < x < -9.49999999999999973e-165

    1. Initial program 83.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg83.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative83.6%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+83.6%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in83.6%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative83.6%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def85.1%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative85.1%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative85.1%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified85.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 48.6%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative48.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg48.6%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg48.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified48.6%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around inf 36.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
    8. Step-by-step derivation
      1. *-commutative36.3%

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    9. Simplified36.3%

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]

    if -9.49999999999999973e-165 < x < 2.6e-271

    1. Initial program 69.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg69.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative69.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+69.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in69.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative69.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def69.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative69.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative69.8%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified69.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around -inf 83.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + \left(y \cdot \left(z \cdot x\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. associate-+r+83.0%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \color{blue}{\left(\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)} \]
      2. +-commutative83.0%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(\color{blue}{\left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)} + \left(i \cdot t - c \cdot z\right) \cdot b\right) \]
      3. associate-+r+83.0%

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b} \]
    6. Simplified83.0%

      \[\leadsto \color{blue}{\left(y \cdot \left(z \cdot x - i \cdot j\right) - a \cdot \left(t \cdot x - c \cdot j\right)\right) + b \cdot \left(i \cdot t - c \cdot z\right)} \]
    7. Taylor expanded in t around inf 39.8%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative39.8%

        \[\leadsto t \cdot \left(i \cdot b - \color{blue}{x \cdot a}\right) \]
    9. Simplified39.8%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - x \cdot a\right)} \]
    10. Taylor expanded in i around inf 36.5%

      \[\leadsto t \cdot \color{blue}{\left(i \cdot b\right)} \]

    if 2.6e-271 < x < 1.1e21

    1. Initial program 71.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg71.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative71.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+71.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in71.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative71.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def75.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative75.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative75.4%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified75.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 42.3%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative42.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg42.3%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg42.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified42.3%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around inf 32.0%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} \]
    8. Step-by-step derivation
      1. associate-*r*34.9%

        \[\leadsto \color{blue}{\left(c \cdot a\right) \cdot j} \]
      2. *-commutative34.9%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]
    9. Simplified34.9%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification37.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -8.8 \cdot 10^{+201}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;x \leq -9.5 \cdot 10^{-165}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.1 \cdot 10^{+21}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]

Alternative 17: 28.6% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.8 \cdot 10^{+202}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-168}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+20}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= x -4.8e+202)
   (* z (* x y))
   (if (<= x -1.02e-168)
     (* a (* c j))
     (if (<= x 5.2e-271)
       (* t (* b i))
       (if (<= x 6.8e+20) (* j (* a c)) (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -4.8e+202) {
		tmp = z * (x * y);
	} else if (x <= -1.02e-168) {
		tmp = a * (c * j);
	} else if (x <= 5.2e-271) {
		tmp = t * (b * i);
	} else if (x <= 6.8e+20) {
		tmp = j * (a * c);
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (x <= (-4.8d+202)) then
        tmp = z * (x * y)
    else if (x <= (-1.02d-168)) then
        tmp = a * (c * j)
    else if (x <= 5.2d-271) then
        tmp = t * (b * i)
    else if (x <= 6.8d+20) then
        tmp = j * (a * c)
    else
        tmp = y * (x * z)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -4.8e+202) {
		tmp = z * (x * y);
	} else if (x <= -1.02e-168) {
		tmp = a * (c * j);
	} else if (x <= 5.2e-271) {
		tmp = t * (b * i);
	} else if (x <= 6.8e+20) {
		tmp = j * (a * c);
	} else {
		tmp = y * (x * z);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if x <= -4.8e+202:
		tmp = z * (x * y)
	elif x <= -1.02e-168:
		tmp = a * (c * j)
	elif x <= 5.2e-271:
		tmp = t * (b * i)
	elif x <= 6.8e+20:
		tmp = j * (a * c)
	else:
		tmp = y * (x * z)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= -4.8e+202)
		tmp = Float64(z * Float64(x * y));
	elseif (x <= -1.02e-168)
		tmp = Float64(a * Float64(c * j));
	elseif (x <= 5.2e-271)
		tmp = Float64(t * Float64(b * i));
	elseif (x <= 6.8e+20)
		tmp = Float64(j * Float64(a * c));
	else
		tmp = Float64(y * Float64(x * z));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (x <= -4.8e+202)
		tmp = z * (x * y);
	elseif (x <= -1.02e-168)
		tmp = a * (c * j);
	elseif (x <= 5.2e-271)
		tmp = t * (b * i);
	elseif (x <= 6.8e+20)
		tmp = j * (a * c);
	else
		tmp = y * (x * z);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.8e+202], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.02e-168], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.8e+20], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{+202}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;x \leq -1.02 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

\mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;x \leq 6.8 \cdot 10^{+20}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -4.8000000000000004e202

    1. Initial program 63.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. cancel-sign-sub63.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) - \left(-j\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      2. cancel-sign-sub-inv63.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot a - y \cdot i\right)} \]
      3. *-commutative63.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - t \cdot i\right)\right) + \left(-\left(-j\right)\right) \cdot \left(c \cdot a - y \cdot i\right) \]
      4. remove-double-neg63.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{j} \cdot \left(c \cdot a - y \cdot i\right) \]
      5. *-commutative63.7%

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right) \]
    3. Simplified63.7%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)} \]
    4. Taylor expanded in z around inf 40.4%

      \[\leadsto \color{blue}{\left(y \cdot x - c \cdot b\right) \cdot z} \]
    5. Taylor expanded in y around inf 37.5%

      \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]

    if -4.8000000000000004e202 < x < -1.01999999999999999e-168

    1. Initial program 83.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg83.6%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative83.6%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+83.6%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in83.6%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative83.6%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def85.1%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative85.1%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg85.1%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative85.1%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified85.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 48.6%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative48.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg48.6%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg48.6%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified48.6%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around inf 36.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
    8. Step-by-step derivation
      1. *-commutative36.3%

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    9. Simplified36.3%

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]

    if -1.01999999999999999e-168 < x < 5.2e-271

    1. Initial program 69.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg69.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative69.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+69.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in69.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative69.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def69.8%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative69.8%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg69.8%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative69.8%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified69.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around -inf 83.0%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + \left(y \cdot \left(z \cdot x\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. associate-+r+83.0%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \color{blue}{\left(\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)} \]
      2. +-commutative83.0%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(\color{blue}{\left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)} + \left(i \cdot t - c \cdot z\right) \cdot b\right) \]
      3. associate-+r+83.0%

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b} \]
    6. Simplified83.0%

      \[\leadsto \color{blue}{\left(y \cdot \left(z \cdot x - i \cdot j\right) - a \cdot \left(t \cdot x - c \cdot j\right)\right) + b \cdot \left(i \cdot t - c \cdot z\right)} \]
    7. Taylor expanded in t around inf 39.8%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative39.8%

        \[\leadsto t \cdot \left(i \cdot b - \color{blue}{x \cdot a}\right) \]
    9. Simplified39.8%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - x \cdot a\right)} \]
    10. Taylor expanded in i around inf 36.5%

      \[\leadsto t \cdot \color{blue}{\left(i \cdot b\right)} \]

    if 5.2e-271 < x < 6.8e20

    1. Initial program 71.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg71.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative71.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+71.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in71.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative71.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def75.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative75.4%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg75.4%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative75.4%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified75.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 42.3%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative42.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg42.3%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg42.3%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified42.3%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around inf 32.0%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} \]
    8. Step-by-step derivation
      1. associate-*r*34.9%

        \[\leadsto \color{blue}{\left(c \cdot a\right) \cdot j} \]
      2. *-commutative34.9%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]
    9. Simplified34.9%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]

    if 6.8e20 < x

    1. Initial program 66.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg66.7%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative66.7%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+66.7%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in66.7%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative66.7%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def72.3%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative72.3%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg72.3%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative72.3%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified75.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in y around inf 56.1%

      \[\leadsto \color{blue}{\left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right) \cdot y} \]
    5. Step-by-step derivation
      1. *-commutative56.1%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg56.1%

        \[\leadsto y \cdot \left(z \cdot x + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg56.1%

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x - i \cdot j\right)} \]
    6. Simplified56.1%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x - i \cdot j\right)} \]
    7. Taylor expanded in z around inf 43.8%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification38.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.8 \cdot 10^{+202}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-168}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+20}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]

Alternative 18: 51.3% accurate, 2.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1.5 \cdot 10^{-55} \lor \neg \left(c \leq 8.2 \cdot 10^{+102}\right):\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= c -1.5e-55) (not (<= c 8.2e+102)))
   (* c (- (* a j) (* z b)))
   (* t (- (* b i) (* x a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -1.5e-55) || !(c <= 8.2e+102)) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t * ((b * i) - (x * 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 ((c <= (-1.5d-55)) .or. (.not. (c <= 8.2d+102))) then
        tmp = c * ((a * j) - (z * b))
    else
        tmp = t * ((b * i) - (x * 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 ((c <= -1.5e-55) || !(c <= 8.2e+102)) {
		tmp = c * ((a * j) - (z * b));
	} else {
		tmp = t * ((b * i) - (x * a));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (c <= -1.5e-55) or not (c <= 8.2e+102):
		tmp = c * ((a * j) - (z * b))
	else:
		tmp = t * ((b * i) - (x * a))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((c <= -1.5e-55) || !(c <= 8.2e+102))
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	else
		tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((c <= -1.5e-55) || ~((c <= 8.2e+102)))
		tmp = c * ((a * j) - (z * b));
	else
		tmp = t * ((b * i) - (x * a));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.5e-55], N[Not[LessEqual[c, 8.2e+102]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.5 \cdot 10^{-55} \lor \neg \left(c \leq 8.2 \cdot 10^{+102}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -1.50000000000000008e-55 or 8.1999999999999999e102 < c

    1. Initial program 65.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg65.2%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative65.2%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+65.2%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in65.2%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative65.2%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def68.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg68.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative68.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in68.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg68.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg68.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative68.6%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified69.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in c around inf 59.1%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j + -1 \cdot \left(z \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. distribute-rgt-in55.7%

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c + \left(-1 \cdot \left(z \cdot b\right)\right) \cdot c} \]
      2. *-commutative55.7%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} + \left(-1 \cdot \left(z \cdot b\right)\right) \cdot c \]
      3. mul-1-neg55.7%

        \[\leadsto c \cdot \left(a \cdot j\right) + \color{blue}{\left(-z \cdot b\right)} \cdot c \]
      4. cancel-sign-sub-inv55.7%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right) - \left(z \cdot b\right) \cdot c} \]
      5. *-commutative55.7%

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} - \left(z \cdot b\right) \cdot c \]
      6. distribute-rgt-out--59.1%

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - z \cdot b\right)} \]
    6. Simplified59.1%

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - z \cdot b\right)} \]

    if -1.50000000000000008e-55 < c < 8.1999999999999999e102

    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. Step-by-step derivation
      1. sub-neg78.1%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative78.1%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+78.1%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in78.1%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative78.1%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def81.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg81.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative81.0%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in81.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg81.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg81.0%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative81.0%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified81.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in t around inf 50.5%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b + -1 \cdot \left(a \cdot x\right)\right)} \]
    5. Step-by-step derivation
      1. mul-1-neg50.5%

        \[\leadsto t \cdot \left(i \cdot b + \color{blue}{\left(-a \cdot x\right)}\right) \]
      2. unsub-neg50.5%

        \[\leadsto t \cdot \color{blue}{\left(i \cdot b - a \cdot x\right)} \]
    6. Simplified50.5%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification54.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.5 \cdot 10^{-55} \lor \neg \left(c \leq 8.2 \cdot 10^{+102}\right):\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \end{array} \]

Alternative 19: 29.7% accurate, 3.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.32 \cdot 10^{-63} \lor \neg \left(j \leq 3.9 \cdot 10^{-16}\right):\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= j -1.32e-63) (not (<= j 3.9e-16))) (* a (* c j)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((j <= -1.32e-63) || !(j <= 3.9e-16)) {
		tmp = a * (c * j);
	} else {
		tmp = t * (b * i);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((j <= (-1.32d-63)) .or. (.not. (j <= 3.9d-16))) then
        tmp = a * (c * j)
    else
        tmp = t * (b * i)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((j <= -1.32e-63) || !(j <= 3.9e-16)) {
		tmp = a * (c * j);
	} else {
		tmp = t * (b * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (j <= -1.32e-63) or not (j <= 3.9e-16):
		tmp = a * (c * j)
	else:
		tmp = t * (b * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((j <= -1.32e-63) || !(j <= 3.9e-16))
		tmp = Float64(a * Float64(c * j));
	else
		tmp = Float64(t * Float64(b * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((j <= -1.32e-63) || ~((j <= 3.9e-16)))
		tmp = a * (c * j);
	else
		tmp = t * (b * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.32e-63], N[Not[LessEqual[j, 3.9e-16]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.32 \cdot 10^{-63} \lor \neg \left(j \leq 3.9 \cdot 10^{-16}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.32e-63 or 3.89999999999999977e-16 < j

    1. Initial program 72.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg72.4%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative72.4%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+72.4%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in72.4%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative72.4%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def76.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg76.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative76.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in76.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg76.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg76.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative76.6%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified78.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around inf 57.1%

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    5. Step-by-step derivation
      1. +-commutative57.1%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      2. mul-1-neg57.1%

        \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
      3. unsub-neg57.1%

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
    6. Simplified57.1%

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
    7. Taylor expanded in c around inf 42.4%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
    8. Step-by-step derivation
      1. *-commutative42.4%

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    9. Simplified42.4%

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]

    if -1.32e-63 < j < 3.89999999999999977e-16

    1. Initial program 71.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. sub-neg71.8%

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. +-commutative71.8%

        \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. associate-+l+71.8%

        \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
      4. distribute-rgt-neg-in71.8%

        \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
      5. +-commutative71.8%

        \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      6. fma-def73.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
      7. sub-neg73.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      8. +-commutative73.6%

        \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      9. distribute-neg-in73.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      10. unsub-neg73.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      11. remove-double-neg73.6%

        \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
      12. *-commutative73.6%

        \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    3. Simplified73.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
    4. Taylor expanded in a around -inf 80.2%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + \left(y \cdot \left(z \cdot x\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)\right)} \]
    5. Step-by-step derivation
      1. associate-+r+80.2%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \color{blue}{\left(\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b\right)} \]
      2. +-commutative80.2%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(\color{blue}{\left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)} + \left(i \cdot t - c \cdot z\right) \cdot b\right) \]
      3. associate-+r+80.2%

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x + -1 \cdot \left(c \cdot j\right)\right)\right) + \left(y \cdot \left(z \cdot x\right) + -1 \cdot \left(y \cdot \left(i \cdot j\right)\right)\right)\right) + \left(i \cdot t - c \cdot z\right) \cdot b} \]
    6. Simplified80.2%

      \[\leadsto \color{blue}{\left(y \cdot \left(z \cdot x - i \cdot j\right) - a \cdot \left(t \cdot x - c \cdot j\right)\right) + b \cdot \left(i \cdot t - c \cdot z\right)} \]
    7. Taylor expanded in t around inf 44.5%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - a \cdot x\right)} \]
    8. Step-by-step derivation
      1. *-commutative44.5%

        \[\leadsto t \cdot \left(i \cdot b - \color{blue}{x \cdot a}\right) \]
    9. Simplified44.5%

      \[\leadsto \color{blue}{t \cdot \left(i \cdot b - x \cdot a\right)} \]
    10. Taylor expanded in i around inf 28.3%

      \[\leadsto t \cdot \color{blue}{\left(i \cdot b\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification36.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.32 \cdot 10^{-63} \lor \neg \left(j \leq 3.9 \cdot 10^{-16}\right):\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]

Alternative 20: 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 72.1%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
  2. Step-by-step derivation
    1. sub-neg72.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. +-commutative72.1%

      \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
    3. associate-+l+72.1%

      \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
    4. distribute-rgt-neg-in72.1%

      \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
    5. +-commutative72.1%

      \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
    6. fma-def75.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
    7. sub-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    8. +-commutative75.3%

      \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    9. distribute-neg-in75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    10. unsub-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    11. remove-double-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    12. *-commutative75.3%

      \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
  3. Simplified76.0%

    \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
  4. Taylor expanded in a around inf 43.3%

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
  5. Step-by-step derivation
    1. +-commutative43.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
    2. mul-1-neg43.3%

      \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
    3. unsub-neg43.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
  6. Simplified43.3%

    \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
  7. Taylor expanded in c around inf 25.3%

    \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
  8. Step-by-step derivation
    1. *-commutative25.3%

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
  9. Simplified25.3%

    \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
  10. Final simplification25.3%

    \[\leadsto a \cdot \left(c \cdot j\right) \]

Alternative 21: 22.7% accurate, 5.8× speedup?

\[\begin{array}{l} \\ j \cdot \left(a \cdot c\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* j (* a c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return j * (a * c);
}
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 = j * (a * c)
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 j * (a * c);
}
def code(x, y, z, t, a, b, c, i, j):
	return j * (a * c)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(j * Float64(a * c))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = j * (a * c);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
j \cdot \left(a \cdot c\right)
\end{array}
Derivation
  1. Initial program 72.1%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
  2. Step-by-step derivation
    1. sub-neg72.1%

      \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. +-commutative72.1%

      \[\leadsto \color{blue}{\left(\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
    3. associate-+l+72.1%

      \[\leadsto \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right)} \]
    4. distribute-rgt-neg-in72.1%

      \[\leadsto \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + \left(x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(c \cdot a - y \cdot i\right)\right) \]
    5. +-commutative72.1%

      \[\leadsto b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
    6. fma-def75.3%

      \[\leadsto \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
    7. sub-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    8. +-commutative75.3%

      \[\leadsto \mathsf{fma}\left(b, -\color{blue}{\left(\left(-t \cdot i\right) + c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    9. distribute-neg-in75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    10. unsub-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    11. remove-double-neg75.3%

      \[\leadsto \mathsf{fma}\left(b, \color{blue}{t \cdot i} - c \cdot z, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
    12. *-commutative75.3%

      \[\leadsto \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) \]
  3. Simplified76.0%

    \[\leadsto \color{blue}{\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right)\right)\right)} \]
  4. Taylor expanded in a around inf 43.3%

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
  5. Step-by-step derivation
    1. +-commutative43.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
    2. mul-1-neg43.3%

      \[\leadsto a \cdot \left(c \cdot j + \color{blue}{\left(-t \cdot x\right)}\right) \]
    3. unsub-neg43.3%

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j - t \cdot x\right)} \]
  6. Simplified43.3%

    \[\leadsto \color{blue}{a \cdot \left(c \cdot j - t \cdot x\right)} \]
  7. Taylor expanded in c around inf 24.2%

    \[\leadsto \color{blue}{c \cdot \left(a \cdot j\right)} \]
  8. Step-by-step derivation
    1. associate-*r*25.6%

      \[\leadsto \color{blue}{\left(c \cdot a\right) \cdot j} \]
    2. *-commutative25.6%

      \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]
  9. Simplified25.6%

    \[\leadsto \color{blue}{j \cdot \left(c \cdot a\right)} \]
  10. Final simplification25.6%

    \[\leadsto j \cdot \left(a \cdot c\right) \]

Developer target: 58.7% 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 2023257 
(FPCore (x y z t a b c i j)
  :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
  :precision binary64

  :herbie-target
  (if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))