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

Percentage Accurate: 72.9% → 81.5%
Time: 19.7s
Alternatives: 20
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 20 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: 72.9% 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: 81.5% accurate, 0.2× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.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. +-commutative93.7%

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

Alternative 2: 81.5% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 93.7%

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

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

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

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

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

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

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

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

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

Alternative 3: 63.2% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\ t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\ t_3 := t\_1 + t\_2\\ \mathbf{if}\;a \leq -2.05 \cdot 10^{+210}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-53}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-144}:\\ \;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;a \leq -3.6 \cdot 10^{-228}:\\ \;\;\;\;t\_3\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-108}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + t\_2\\ \mathbf{else}:\\ \;\;\;\;\left(t\_1 + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(z \cdot c\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))))
        (t_2 (* b (- (* t i) (* z c))))
        (t_3 (+ t_1 t_2)))
   (if (<= a -2.05e+210)
     (* a (- (* c j) (* x t)))
     (if (<= a -6.5e-53)
       t_3
       (if (<= a -5.5e-144)
         (+ t_1 (* j (- (* a c) (* y i))))
         (if (<= a -3.6e-228)
           t_3
           (if (<= a 1.9e-108)
             (+ (* y (- (* x z) (* i j))) t_2)
             (- (+ t_1 (* a (* c j))) (* b (* z c))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = b * ((t * i) - (z * c));
	double t_3 = t_1 + t_2;
	double tmp;
	if (a <= -2.05e+210) {
		tmp = a * ((c * j) - (x * t));
	} else if (a <= -6.5e-53) {
		tmp = t_3;
	} else if (a <= -5.5e-144) {
		tmp = t_1 + (j * ((a * c) - (y * i)));
	} else if (a <= -3.6e-228) {
		tmp = t_3;
	} else if (a <= 1.9e-108) {
		tmp = (y * ((x * z) - (i * j))) + t_2;
	} else {
		tmp = (t_1 + (a * (c * j))) - (b * (z * c));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: t_3
    real(8) :: tmp
    t_1 = x * ((y * z) - (t * a))
    t_2 = b * ((t * i) - (z * c))
    t_3 = t_1 + t_2
    if (a <= (-2.05d+210)) then
        tmp = a * ((c * j) - (x * t))
    else if (a <= (-6.5d-53)) then
        tmp = t_3
    else if (a <= (-5.5d-144)) then
        tmp = t_1 + (j * ((a * c) - (y * i)))
    else if (a <= (-3.6d-228)) then
        tmp = t_3
    else if (a <= 1.9d-108) then
        tmp = (y * ((x * z) - (i * j))) + t_2
    else
        tmp = (t_1 + (a * (c * j))) - (b * (z * c))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = x * ((y * z) - (t * a));
	double t_2 = b * ((t * i) - (z * c));
	double t_3 = t_1 + t_2;
	double tmp;
	if (a <= -2.05e+210) {
		tmp = a * ((c * j) - (x * t));
	} else if (a <= -6.5e-53) {
		tmp = t_3;
	} else if (a <= -5.5e-144) {
		tmp = t_1 + (j * ((a * c) - (y * i)));
	} else if (a <= -3.6e-228) {
		tmp = t_3;
	} else if (a <= 1.9e-108) {
		tmp = (y * ((x * z) - (i * j))) + t_2;
	} else {
		tmp = (t_1 + (a * (c * j))) - (b * (z * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = x * ((y * z) - (t * a))
	t_2 = b * ((t * i) - (z * c))
	t_3 = t_1 + t_2
	tmp = 0
	if a <= -2.05e+210:
		tmp = a * ((c * j) - (x * t))
	elif a <= -6.5e-53:
		tmp = t_3
	elif a <= -5.5e-144:
		tmp = t_1 + (j * ((a * c) - (y * i)))
	elif a <= -3.6e-228:
		tmp = t_3
	elif a <= 1.9e-108:
		tmp = (y * ((x * z) - (i * j))) + t_2
	else:
		tmp = (t_1 + (a * (c * j))) - (b * (z * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c)))
	t_3 = Float64(t_1 + t_2)
	tmp = 0.0
	if (a <= -2.05e+210)
		tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t)));
	elseif (a <= -6.5e-53)
		tmp = t_3;
	elseif (a <= -5.5e-144)
		tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i))));
	elseif (a <= -3.6e-228)
		tmp = t_3;
	elseif (a <= 1.9e-108)
		tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_2);
	else
		tmp = Float64(Float64(t_1 + Float64(a * Float64(c * j))) - Float64(b * Float64(z * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = x * ((y * z) - (t * a));
	t_2 = b * ((t * i) - (z * c));
	t_3 = t_1 + t_2;
	tmp = 0.0;
	if (a <= -2.05e+210)
		tmp = a * ((c * j) - (x * t));
	elseif (a <= -6.5e-53)
		tmp = t_3;
	elseif (a <= -5.5e-144)
		tmp = t_1 + (j * ((a * c) - (y * i)));
	elseif (a <= -3.6e-228)
		tmp = t_3;
	elseif (a <= 1.9e-108)
		tmp = (y * ((x * z) - (i * j))) + t_2;
	else
		tmp = (t_1 + (a * (c * j))) - (b * (z * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$1 + t$95$2), $MachinePrecision]}, If[LessEqual[a, -2.05e+210], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.5e-53], t$95$3, If[LessEqual[a, -5.5e-144], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.6e-228], t$95$3, If[LessEqual[a, 1.9e-108], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(t$95$1 + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -6.5 \cdot 10^{-53}:\\
\;\;\;\;t\_3\\

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

\mathbf{elif}\;a \leq -3.6 \cdot 10^{-228}:\\
\;\;\;\;t\_3\\

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

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


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

    1. Initial program 58.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. *-commutative58.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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative58.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. fma-neg63.0%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified63.0%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 51.1%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in a around inf 79.3%

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

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

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

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

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

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

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

    if -2.05e210 < a < -6.4999999999999997e-53 or -5.49999999999999973e-144 < a < -3.6000000000000002e-228

    1. Initial program 78.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. +-commutative78.3%

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

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

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

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

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

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

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

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

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

    if -6.4999999999999997e-53 < a < -5.49999999999999973e-144

    1. Initial program 74.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. +-commutative74.6%

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

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

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

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

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

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

    if -3.6000000000000002e-228 < a < 1.89999999999999987e-108

    1. Initial program 84.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. +-commutative84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.89999999999999987e-108 < a

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.05 \cdot 10^{+210}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -6.5 \cdot 10^{-53}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq -5.5 \cdot 10^{-144}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;a \leq -3.6 \cdot 10^{-228}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq 1.9 \cdot 10^{-108}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 50.5% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -165000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-51}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;c \leq -8.5 \cdot 10^{-63}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq 2.4 \cdot 10^{-272}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;c \leq 10^{+74}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
   (if (<= c -165000.0)
     t_2
     (if (<= c -1.25e-51)
       (* x (- (* y z) (* t a)))
       (if (<= c -8.5e-63)
         t_2
         (if (<= c 2.4e-272)
           t_1
           (if (<= c 5e-228) (* i (* y (- j))) (if (<= c 1e+74) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -165000.0) {
		tmp = t_2;
	} else if (c <= -1.25e-51) {
		tmp = x * ((y * z) - (t * a));
	} else if (c <= -8.5e-63) {
		tmp = t_2;
	} else if (c <= 2.4e-272) {
		tmp = t_1;
	} else if (c <= 5e-228) {
		tmp = i * (y * -j);
	} else if (c <= 1e+74) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = t * ((b * i) - (x * a))
    t_2 = c * ((a * j) - (z * b))
    if (c <= (-165000.0d0)) then
        tmp = t_2
    else if (c <= (-1.25d-51)) then
        tmp = x * ((y * z) - (t * a))
    else if (c <= (-8.5d-63)) then
        tmp = t_2
    else if (c <= 2.4d-272) then
        tmp = t_1
    else if (c <= 5d-228) then
        tmp = i * (y * -j)
    else if (c <= 1d+74) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -165000.0) {
		tmp = t_2;
	} else if (c <= -1.25e-51) {
		tmp = x * ((y * z) - (t * a));
	} else if (c <= -8.5e-63) {
		tmp = t_2;
	} else if (c <= 2.4e-272) {
		tmp = t_1;
	} else if (c <= 5e-228) {
		tmp = i * (y * -j);
	} else if (c <= 1e+74) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = c * ((a * j) - (z * b))
	tmp = 0
	if c <= -165000.0:
		tmp = t_2
	elif c <= -1.25e-51:
		tmp = x * ((y * z) - (t * a))
	elif c <= -8.5e-63:
		tmp = t_2
	elif c <= 2.4e-272:
		tmp = t_1
	elif c <= 5e-228:
		tmp = i * (y * -j)
	elif c <= 1e+74:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -165000.0)
		tmp = t_2;
	elseif (c <= -1.25e-51)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (c <= -8.5e-63)
		tmp = t_2;
	elseif (c <= 2.4e-272)
		tmp = t_1;
	elseif (c <= 5e-228)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (c <= 1e+74)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = t * ((b * i) - (x * a));
	t_2 = c * ((a * j) - (z * b));
	tmp = 0.0;
	if (c <= -165000.0)
		tmp = t_2;
	elseif (c <= -1.25e-51)
		tmp = x * ((y * z) - (t * a));
	elseif (c <= -8.5e-63)
		tmp = t_2;
	elseif (c <= 2.4e-272)
		tmp = t_1;
	elseif (c <= 5e-228)
		tmp = i * (y * -j);
	elseif (c <= 1e+74)
		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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -165000.0], t$95$2, If[LessEqual[c, -1.25e-51], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.5e-63], t$95$2, If[LessEqual[c, 2.4e-272], t$95$1, If[LessEqual[c, 5e-228], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1e+74], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;c \leq -1.25 \cdot 10^{-51}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\

\mathbf{elif}\;c \leq -8.5 \cdot 10^{-63}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq 2.4 \cdot 10^{-272}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

\mathbf{elif}\;c \leq 10^{+74}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -165000 or -1.25000000000000001e-51 < c < -8.49999999999999969e-63 or 9.99999999999999952e73 < c

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

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

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

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

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

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

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

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

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

    if -165000 < c < -1.25000000000000001e-51

    1. Initial program 76.3%

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

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

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

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

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

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

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

    if -8.49999999999999969e-63 < c < 2.3999999999999999e-272 or 4.99999999999999972e-228 < c < 9.99999999999999952e73

    1. Initial program 85.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. *-commutative85.6%

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative85.6%

        \[\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. fma-neg85.6%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified85.6%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 81.4%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 56.4%

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

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

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

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

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

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

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

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

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

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

    if 2.3999999999999999e-272 < c < 4.99999999999999972e-228

    1. Initial program 75.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. +-commutative75.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(j \cdot y\right) \]
    10. Simplified85.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -165000:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.25 \cdot 10^{-51}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;c \leq -8.5 \cdot 10^{-63}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq 2.4 \cdot 10^{-272}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;c \leq 10^{+74}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 50.1% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -140000:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -3.9 \cdot 10^{-16}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;c \leq -8.8 \cdot 10^{-63}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 6 \cdot 10^{-228}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;c \leq 3.55 \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 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
   (if (<= c -140000.0)
     t_2
     (if (<= c -3.9e-16)
       (* x (* y z))
       (if (<= c -8.8e-63)
         t_2
         (if (<= c 4.2e-271)
           t_1
           (if (<= c 6e-228)
             (* i (* y (- j)))
             (if (<= c 3.55e+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -140000.0) {
		tmp = t_2;
	} else if (c <= -3.9e-16) {
		tmp = x * (y * z);
	} else if (c <= -8.8e-63) {
		tmp = t_2;
	} else if (c <= 4.2e-271) {
		tmp = t_1;
	} else if (c <= 6e-228) {
		tmp = i * (y * -j);
	} else if (c <= 3.55e+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 = t * ((b * i) - (x * a))
    t_2 = c * ((a * j) - (z * b))
    if (c <= (-140000.0d0)) then
        tmp = t_2
    else if (c <= (-3.9d-16)) then
        tmp = x * (y * z)
    else if (c <= (-8.8d-63)) then
        tmp = t_2
    else if (c <= 4.2d-271) then
        tmp = t_1
    else if (c <= 6d-228) then
        tmp = i * (y * -j)
    else if (c <= 3.55d+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -140000.0) {
		tmp = t_2;
	} else if (c <= -3.9e-16) {
		tmp = x * (y * z);
	} else if (c <= -8.8e-63) {
		tmp = t_2;
	} else if (c <= 4.2e-271) {
		tmp = t_1;
	} else if (c <= 6e-228) {
		tmp = i * (y * -j);
	} else if (c <= 3.55e+73) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = c * ((a * j) - (z * b))
	tmp = 0
	if c <= -140000.0:
		tmp = t_2
	elif c <= -3.9e-16:
		tmp = x * (y * z)
	elif c <= -8.8e-63:
		tmp = t_2
	elif c <= 4.2e-271:
		tmp = t_1
	elif c <= 6e-228:
		tmp = i * (y * -j)
	elif c <= 3.55e+73:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -140000.0)
		tmp = t_2;
	elseif (c <= -3.9e-16)
		tmp = Float64(x * Float64(y * z));
	elseif (c <= -8.8e-63)
		tmp = t_2;
	elseif (c <= 4.2e-271)
		tmp = t_1;
	elseif (c <= 6e-228)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (c <= 3.55e+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 = t * ((b * i) - (x * a));
	t_2 = c * ((a * j) - (z * b));
	tmp = 0.0;
	if (c <= -140000.0)
		tmp = t_2;
	elseif (c <= -3.9e-16)
		tmp = x * (y * z);
	elseif (c <= -8.8e-63)
		tmp = t_2;
	elseif (c <= 4.2e-271)
		tmp = t_1;
	elseif (c <= 6e-228)
		tmp = i * (y * -j);
	elseif (c <= 3.55e+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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -140000.0], t$95$2, If[LessEqual[c, -3.9e-16], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8.8e-63], t$95$2, If[LessEqual[c, 4.2e-271], t$95$1, If[LessEqual[c, 6e-228], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.55e+73], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;c \leq -8.8 \cdot 10^{-63}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;c \leq 3.55 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -1.4e5 or -3.89999999999999977e-16 < c < -8.7999999999999998e-63 or 3.5500000000000003e73 < c

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

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

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

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

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

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

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

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

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

    if -1.4e5 < c < -3.89999999999999977e-16

    1. Initial program 62.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. +-commutative62.3%

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

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

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

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

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

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

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

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

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

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

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

    if -8.7999999999999998e-63 < c < 4.2000000000000001e-271 or 5.9999999999999999e-228 < c < 3.5500000000000003e73

    1. Initial program 85.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. *-commutative85.6%

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative85.6%

        \[\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. fma-neg85.6%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified85.6%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 81.4%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 56.4%

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

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

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

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

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

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

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

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

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

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

    if 4.2000000000000001e-271 < c < 5.9999999999999999e-228

    1. Initial program 75.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. +-commutative75.0%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-i\right)} \cdot \left(j \cdot y\right) \]
    10. Simplified85.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -140000:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -3.9 \cdot 10^{-16}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;c \leq -8.8 \cdot 10^{-63}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq 6 \cdot 10^{-228}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;c \leq 3.55 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 56.6% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;a \leq -1.55 \cdot 10^{-298}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;a \leq 8.6 \cdot 10^{-195}:\\
\;\;\;\;t\_2 - y \cdot \left(i \cdot j\right)\\

\mathbf{elif}\;a \leq 1.55 \cdot 10^{-78}:\\
\;\;\;\;t\_3\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.1e88 or 1.55000000000000009e-78 < a

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

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative77.6%

        \[\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. fma-neg78.5%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified78.5%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 70.6%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in a around inf 65.1%

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

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

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

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

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

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

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

    if -2.1e88 < a < -1.5500000000000001e-298 or 8.6000000000000007e-195 < a < 1.55000000000000009e-78

    1. Initial program 79.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. +-commutative79.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.5500000000000001e-298 < a < 8.6000000000000007e-195

    1. Initial program 84.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. +-commutative84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.1 \cdot 10^{+88}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq -1.55 \cdot 10^{-298}:\\ \;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq 8.6 \cdot 10^{-195}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j\right)\\ \mathbf{elif}\;a \leq 1.55 \cdot 10^{-78}:\\ \;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 55.9% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) + 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 -7.8 \cdot 10^{+88}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq 1.5 \cdot 10^{-297}:\\
\;\;\;\;t\_1\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -7.8000000000000002e88 or 1.55000000000000009e-78 < a

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

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative77.6%

        \[\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. fma-neg78.5%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified78.5%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 70.6%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in a around inf 65.1%

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

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

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

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

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

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

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

    if -7.8000000000000002e88 < a < 1.49999999999999997e-297 or 6.1999999999999997e-252 < a < 1.55000000000000009e-78

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.49999999999999997e-297 < a < 6.1999999999999997e-252

    1. Initial program 76.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. +-commutative76.5%

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

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

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

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

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

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

      \[\leadsto \color{blue}{j \cdot \left(y \cdot \left(\frac{x \cdot z}{j} - i\right)\right)} \]
    7. Step-by-step derivation
      1. associate-/l*69.0%

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

        \[\leadsto j \cdot \left(y \cdot \left(\color{blue}{\frac{z}{j} \cdot x} - i\right)\right) \]
    8. Applied egg-rr69.0%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -7.8 \cdot 10^{+88}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-297}:\\ \;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;a \leq 6.2 \cdot 10^{-252}:\\ \;\;\;\;j \cdot \left(y \cdot \left(x \cdot \frac{z}{j} - i\right)\right)\\ \mathbf{elif}\;a \leq 1.55 \cdot 10^{-78}:\\ \;\;\;\;y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 50.9% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -3.2 \cdot 10^{+83}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -6.5 \cdot 10^{-86}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;c \leq 5.3 \cdot 10^{-275}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\ \;\;\;\;j \cdot \left(i \cdot \left(t \cdot \frac{b}{j} - y\right)\right)\\ \mathbf{elif}\;c \leq 4.2 \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 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
   (if (<= c -3.2e+83)
     t_2
     (if (<= c -6.5e-86)
       (* z (- (* x y) (* b c)))
       (if (<= c 5.3e-275)
         t_1
         (if (<= c 5e-228)
           (* j (* i (- (* t (/ b j)) y)))
           (if (<= c 4.2e+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -3.2e+83) {
		tmp = t_2;
	} else if (c <= -6.5e-86) {
		tmp = z * ((x * y) - (b * c));
	} else if (c <= 5.3e-275) {
		tmp = t_1;
	} else if (c <= 5e-228) {
		tmp = j * (i * ((t * (b / j)) - y));
	} else if (c <= 4.2e+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 = t * ((b * i) - (x * a))
    t_2 = c * ((a * j) - (z * b))
    if (c <= (-3.2d+83)) then
        tmp = t_2
    else if (c <= (-6.5d-86)) then
        tmp = z * ((x * y) - (b * c))
    else if (c <= 5.3d-275) then
        tmp = t_1
    else if (c <= 5d-228) then
        tmp = j * (i * ((t * (b / j)) - y))
    else if (c <= 4.2d+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -3.2e+83) {
		tmp = t_2;
	} else if (c <= -6.5e-86) {
		tmp = z * ((x * y) - (b * c));
	} else if (c <= 5.3e-275) {
		tmp = t_1;
	} else if (c <= 5e-228) {
		tmp = j * (i * ((t * (b / j)) - y));
	} else if (c <= 4.2e+73) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = c * ((a * j) - (z * b))
	tmp = 0
	if c <= -3.2e+83:
		tmp = t_2
	elif c <= -6.5e-86:
		tmp = z * ((x * y) - (b * c))
	elif c <= 5.3e-275:
		tmp = t_1
	elif c <= 5e-228:
		tmp = j * (i * ((t * (b / j)) - y))
	elif c <= 4.2e+73:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -3.2e+83)
		tmp = t_2;
	elseif (c <= -6.5e-86)
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	elseif (c <= 5.3e-275)
		tmp = t_1;
	elseif (c <= 5e-228)
		tmp = Float64(j * Float64(i * Float64(Float64(t * Float64(b / j)) - y)));
	elseif (c <= 4.2e+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 = t * ((b * i) - (x * a));
	t_2 = c * ((a * j) - (z * b));
	tmp = 0.0;
	if (c <= -3.2e+83)
		tmp = t_2;
	elseif (c <= -6.5e-86)
		tmp = z * ((x * y) - (b * c));
	elseif (c <= 5.3e-275)
		tmp = t_1;
	elseif (c <= 5e-228)
		tmp = j * (i * ((t * (b / j)) - y));
	elseif (c <= 4.2e+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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.2e+83], t$95$2, If[LessEqual[c, -6.5e-86], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.3e-275], t$95$1, If[LessEqual[c, 5e-228], N[(j * N[(i * N[(N[(t * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+73], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;c \leq 5.3 \cdot 10^{-275}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\
\;\;\;\;j \cdot \left(i \cdot \left(t \cdot \frac{b}{j} - y\right)\right)\\

\mathbf{elif}\;c \leq 4.2 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -3.1999999999999999e83 or 4.2000000000000003e73 < c

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

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

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

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

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

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

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

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

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

    if -3.1999999999999999e83 < c < -6.50000000000000028e-86

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

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

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

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

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

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

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

    if -6.50000000000000028e-86 < c < 5.29999999999999986e-275 or 4.99999999999999972e-228 < c < 4.2000000000000003e73

    1. Initial program 86.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. *-commutative86.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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative86.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. fma-neg86.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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified86.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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 82.5%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 57.4%

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

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

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

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

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

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

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

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

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

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

    if 5.29999999999999986e-275 < c < 4.99999999999999972e-228

    1. Initial program 75.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. +-commutative75.0%

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(j \cdot i\right)} \cdot \left(-1 \cdot y + \frac{b \cdot t}{j}\right) \]
      3. associate-*l*85.7%

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

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

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

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

        \[\leadsto j \cdot \left(i \cdot \left(\frac{\color{blue}{t \cdot b}}{j} - y\right)\right) \]
      8. associate-/l*97.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -3.2 \cdot 10^{+83}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -6.5 \cdot 10^{-86}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;c \leq 5.3 \cdot 10^{-275}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq 5 \cdot 10^{-228}:\\ \;\;\;\;j \cdot \left(i \cdot \left(t \cdot \frac{b}{j} - y\right)\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 50.3% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\ t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{if}\;c \leq -3.6 \cdot 10^{+83}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;c \leq -4.5 \cdot 10^{-86}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 1.85 \cdot 10^{-227}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;c \leq 9.2 \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 (* t (- (* b i) (* x a)))) (t_2 (* c (- (* a j) (* z b)))))
   (if (<= c -3.6e+83)
     t_2
     (if (<= c -4.5e-86)
       (* z (- (* x y) (* b c)))
       (if (<= c 4.2e-271)
         t_1
         (if (<= c 1.85e-227)
           (* j (- (* a c) (* y i)))
           (if (<= c 9.2e+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -3.6e+83) {
		tmp = t_2;
	} else if (c <= -4.5e-86) {
		tmp = z * ((x * y) - (b * c));
	} else if (c <= 4.2e-271) {
		tmp = t_1;
	} else if (c <= 1.85e-227) {
		tmp = j * ((a * c) - (y * i));
	} else if (c <= 9.2e+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 = t * ((b * i) - (x * a))
    t_2 = c * ((a * j) - (z * b))
    if (c <= (-3.6d+83)) then
        tmp = t_2
    else if (c <= (-4.5d-86)) then
        tmp = z * ((x * y) - (b * c))
    else if (c <= 4.2d-271) then
        tmp = t_1
    else if (c <= 1.85d-227) then
        tmp = j * ((a * c) - (y * i))
    else if (c <= 9.2d+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 = t * ((b * i) - (x * a));
	double t_2 = c * ((a * j) - (z * b));
	double tmp;
	if (c <= -3.6e+83) {
		tmp = t_2;
	} else if (c <= -4.5e-86) {
		tmp = z * ((x * y) - (b * c));
	} else if (c <= 4.2e-271) {
		tmp = t_1;
	} else if (c <= 1.85e-227) {
		tmp = j * ((a * c) - (y * i));
	} else if (c <= 9.2e+73) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * ((b * i) - (x * a))
	t_2 = c * ((a * j) - (z * b))
	tmp = 0
	if c <= -3.6e+83:
		tmp = t_2
	elif c <= -4.5e-86:
		tmp = z * ((x * y) - (b * c))
	elif c <= 4.2e-271:
		tmp = t_1
	elif c <= 1.85e-227:
		tmp = j * ((a * c) - (y * i))
	elif c <= 9.2e+73:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a)))
	t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b)))
	tmp = 0.0
	if (c <= -3.6e+83)
		tmp = t_2;
	elseif (c <= -4.5e-86)
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	elseif (c <= 4.2e-271)
		tmp = t_1;
	elseif (c <= 1.85e-227)
		tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i)));
	elseif (c <= 9.2e+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 = t * ((b * i) - (x * a));
	t_2 = c * ((a * j) - (z * b));
	tmp = 0.0;
	if (c <= -3.6e+83)
		tmp = t_2;
	elseif (c <= -4.5e-86)
		tmp = z * ((x * y) - (b * c));
	elseif (c <= 4.2e-271)
		tmp = t_1;
	elseif (c <= 1.85e-227)
		tmp = j * ((a * c) - (y * i));
	elseif (c <= 9.2e+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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.6e+83], t$95$2, If[LessEqual[c, -4.5e-86], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e-271], t$95$1, If[LessEqual[c, 1.85e-227], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.2e+73], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;c \leq 9.2 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -3.5999999999999997e83 or 9.199999999999999e73 < c

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

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

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

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

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

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

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

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

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

    if -3.5999999999999997e83 < c < -4.4999999999999998e-86

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

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

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

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

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

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

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

    if -4.4999999999999998e-86 < c < 4.2000000000000001e-271 or 1.84999999999999989e-227 < c < 9.199999999999999e73

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

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative86.5%

        \[\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. fma-neg86.5%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified86.5%

      \[\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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 83.0%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 57.4%

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

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

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

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

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

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

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

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

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

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

    if 4.2000000000000001e-271 < c < 1.84999999999999989e-227

    1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -3.6 \cdot 10^{+83}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -4.5 \cdot 10^{-86}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-271}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;c \leq 1.85 \cdot 10^{-227}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 50.9% accurate, 0.9× speedup?

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

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

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

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

\mathbf{elif}\;b \leq 9.4 \cdot 10^{-144}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if b < -2.3999999999999999e78 or 2.54999999999999996e-82 < b

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

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

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

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

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

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

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

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

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

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

    if -2.3999999999999999e78 < b < -4.20000000000000003e-115

    1. Initial program 74.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. *-commutative74.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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative74.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. fma-neg74.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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified74.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 \mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 67.0%

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 67.9%

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

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

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

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

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

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

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

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

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

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

    if -4.20000000000000003e-115 < b < -9.49999999999999991e-302

    1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

    if -9.49999999999999991e-302 < b < 9.4000000000000004e-144

    1. Initial program 80.3%

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

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

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

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

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

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

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

    if 9.4000000000000004e-144 < b < 2.54999999999999996e-82

    1. Initial program 93.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. +-commutative93.1%

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.4 \cdot 10^{+78}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -4.2 \cdot 10^{-115}:\\ \;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\ \mathbf{elif}\;b \leq -9.5 \cdot 10^{-302}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;b \leq 9.4 \cdot 10^{-144}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;b \leq 2.55 \cdot 10^{-82}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 64.1% accurate, 0.9× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if b < -3.5000000000000001e78

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.5000000000000001e78 < b < -4.0999999999999999e-107

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

        \[\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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative73.1%

        \[\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. fma-neg73.1%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified73.1%

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

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in t around inf 70.0%

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

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

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

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

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

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

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

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

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

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

    if -4.0999999999999999e-107 < b < 7.5e-12

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

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

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

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

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

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

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

    if 7.5e-12 < b

    1. Initial program 75.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. +-commutative75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 42.1% accurate, 1.0× speedup?

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

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

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

\mathbf{elif}\;a \leq 4.6 \cdot 10^{-95}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -5.90000000000000022e-167 or 4.59999999999999998e-95 < a

    1. Initial program 76.2%

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

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

        \[\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. fma-neg76.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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified76.8%

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

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in a around inf 55.6%

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

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

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

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

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

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

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

    if -5.90000000000000022e-167 < a < 1.49999999999999997e-297

    1. Initial program 85.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. +-commutative85.7%

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.49999999999999997e-297 < a < 2.80000000000000012e-209

    1. Initial program 81.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{-i \cdot \left(j \cdot y\right)} \]
      2. distribute-lft-neg-out37.5%

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

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

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

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

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

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

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

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

    if 2.80000000000000012e-209 < a < 4.59999999999999998e-95

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -5.9 \cdot 10^{-167}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;a \leq 1.5 \cdot 10^{-297}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{-209}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-95}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 66.8% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -6.00000000000000026e92 or 4.49999999999999992e161 < j

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

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

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

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

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

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

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

    if -6.00000000000000026e92 < j < 4.49999999999999992e161

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

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

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

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

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

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

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

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

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

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

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

Alternative 14: 29.2% accurate, 1.4× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -3.3000000000000001e152 or 3.7999999999999998e-18 < i

    1. Initial program 70.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. +-commutative70.2%

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.3000000000000001e152 < i < 1.8e-80

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \left(\color{blue}{\left(-a\right)} \cdot x\right) \]
    10. Simplified29.4%

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

    if 1.8e-80 < i < 3.7999999999999998e-18

    1. Initial program 95.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. +-commutative95.0%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.3 \cdot 10^{+152}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;i \leq 1.8 \cdot 10^{-80}:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{elif}\;i \leq 3.8 \cdot 10^{-18}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 50.5% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+39} \lor \neg \left(a \leq 9.5 \cdot 10^{-80}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.1000000000000001e39 or 9.5000000000000003e-80 < a

    1. Initial program 77.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. *-commutative77.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) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. *-commutative77.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. fma-neg78.1%

        \[\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 \color{blue}{\mathsf{fma}\left(a, c, -y \cdot i\right)} \]
    3. Simplified78.1%

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

      \[\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 \color{blue}{\left(y \cdot \left(\frac{a \cdot c}{y} - i\right)\right)} \]
    6. Taylor expanded in a around inf 62.9%

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

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

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

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

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

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

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

    if -1.1000000000000001e39 < a < 9.5000000000000003e-80

    1. Initial program 81.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. +-commutative81.4%

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

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

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

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

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

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

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

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

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

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

Alternative 16: 30.8% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.2 \cdot 10^{-8} \lor \neg \left(x \leq 0.062\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.19999999999999999e-8 or 0.062 < x

    1. Initial program 77.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
      3. associate-*r*37.5%

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} \]
    10. Simplified37.5%

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

    if -1.19999999999999999e-8 < x < 0.062

    1. Initial program 81.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.2 \cdot 10^{-8} \lor \neg \left(x \leq 0.062\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 30.3% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{-5} \lor \neg \left(x \leq 0.039\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -4.00000000000000033e-5 or 0.0389999999999999999 < x

    1. Initial program 77.5%

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.00000000000000033e-5 < x < 0.0389999999999999999

    1. Initial program 81.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 18: 21.5% accurate, 2.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq 2.6 \cdot 10^{+72}:\\ \;\;\;\;b \cdot \left(t \cdot i\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
 (if (<= x 2.6e+72) (* b (* t i)) (* 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 <= 2.6e+72) {
		tmp = b * (t * i);
	} 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) :: tmp
    if (x <= 2.6d+72) then
        tmp = b * (t * i)
    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 tmp;
	if (x <= 2.6e+72) {
		tmp = b * (t * i);
	} else {
		tmp = a * (x * t);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if x <= 2.6e+72:
		tmp = b * (t * i)
	else:
		tmp = a * (x * t)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= 2.6e+72)
		tmp = Float64(b * Float64(t * i));
	else
		tmp = 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 <= 2.6e+72)
		tmp = b * (t * i);
	else
		tmp = a * (x * t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, 2.6e+72], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq 2.6 \cdot 10^{+72}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < 2.59999999999999981e72

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

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

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

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

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

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

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

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

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

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

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

    if 2.59999999999999981e72 < x

    1. Initial program 67.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(-a\right) \cdot \left(x \cdot t\right)} \]
    11. Step-by-step derivation
      1. add-sqr-sqrt17.7%

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

        \[\leadsto \color{blue}{\sqrt{\left(-a\right) \cdot \left(-a\right)}} \cdot \left(x \cdot t\right) \]
      3. sqr-neg24.6%

        \[\leadsto \sqrt{\color{blue}{a \cdot a}} \cdot \left(x \cdot t\right) \]
      4. sqrt-unprod7.4%

        \[\leadsto \color{blue}{\left(\sqrt{a} \cdot \sqrt{a}\right)} \cdot \left(x \cdot t\right) \]
      5. add-sqr-sqrt20.8%

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

        \[\leadsto \color{blue}{{\left(a \cdot \left(x \cdot t\right)\right)}^{1}} \]
    12. Applied egg-rr20.8%

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

        \[\leadsto \color{blue}{a \cdot \left(x \cdot t\right)} \]
    14. Simplified20.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq 2.6 \cdot 10^{+72}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 22.9% accurate, 5.8× speedup?

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

\\
t \cdot \left(b \cdot i\right)
\end{array}
Derivation
  1. Initial program 79.4%

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto t \cdot \color{blue}{\left(i \cdot b\right)} \]
  11. Final simplification22.4%

    \[\leadsto t \cdot \left(b \cdot i\right) \]
  12. Add Preprocessing

Alternative 20: 7.0% accurate, 5.8× speedup?

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

\\
a \cdot \left(x \cdot t\right)
\end{array}
Derivation
  1. Initial program 79.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\left(-a\right) \cdot \left(x \cdot t\right)} \]
  11. Step-by-step derivation
    1. add-sqr-sqrt11.7%

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

      \[\leadsto \color{blue}{\sqrt{\left(-a\right) \cdot \left(-a\right)}} \cdot \left(x \cdot t\right) \]
    3. sqr-neg14.5%

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

      \[\leadsto \color{blue}{\left(\sqrt{a} \cdot \sqrt{a}\right)} \cdot \left(x \cdot t\right) \]
    5. add-sqr-sqrt6.9%

      \[\leadsto \color{blue}{a} \cdot \left(x \cdot t\right) \]
    6. pow16.9%

      \[\leadsto \color{blue}{{\left(a \cdot \left(x \cdot t\right)\right)}^{1}} \]
  12. Applied egg-rr6.9%

    \[\leadsto \color{blue}{{\left(a \cdot \left(x \cdot t\right)\right)}^{1}} \]
  13. Step-by-step derivation
    1. unpow16.9%

      \[\leadsto \color{blue}{a \cdot \left(x \cdot t\right)} \]
  14. Simplified6.9%

    \[\leadsto \color{blue}{a \cdot \left(x \cdot t\right)} \]
  15. Add Preprocessing

Developer target: 59.3% accurate, 0.1× speedup?

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

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

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

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


\end{array}
\end{array}

Reproduce

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

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

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