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

Percentage Accurate: 73.4% → 81.9%
Time: 18.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: 73.4% accurate, 1.0× speedup?

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

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

Alternative 1: 81.9% accurate, 0.5× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

    1. Initial program 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. 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-define4.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. *-commutative4.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. sub-neg4.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative4.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg4.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative4.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} - i \cdot t\right)\right) \]
      8. *-commutative4.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified4.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 y around inf 53.4%

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

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

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

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

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

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

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

Alternative 2: 30.1% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;y \leq -6.6 \cdot 10^{-16}:\\
\;\;\;\;t\_1\\

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

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

\mathbf{elif}\;y \leq 2.7 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 2.35 \cdot 10^{+99}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if y < -1.54999999999999998e44

    1. Initial program 61.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. +-commutative61.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-define64.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. *-commutative64.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. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative64.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative64.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} - i \cdot t\right)\right) \]
      8. *-commutative64.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified64.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 i around inf 55.1%

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

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

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

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

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

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

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

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

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

    if -1.54999999999999998e44 < y < -6.59999999999999976e-16 or 2.80000000000000024e-82 < y < 2.69999999999999991e-43

    1. Initial program 89.2%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative89.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg89.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative89.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} - i \cdot t\right)\right) \]
      8. *-commutative89.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified89.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 i around inf 62.8%

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

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

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

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

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

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

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

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

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

    if -6.59999999999999976e-16 < y < -1.3999999999999999e-94

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

        \[\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.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. *-commutative73.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. sub-neg73.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative73.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg73.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative73.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} - i \cdot t\right)\right) \]
      8. *-commutative73.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified73.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 c around inf 49.3%

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

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

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

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

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

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

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

    if -1.3999999999999999e-94 < y < 2.80000000000000024e-82

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative83.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg83.0%

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

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

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

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

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

    if 2.69999999999999991e-43 < y < 2.34999999999999991e99

    1. Initial program 69.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg69.8%

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

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

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

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

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

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

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

    if 2.34999999999999991e99 < y

    1. Initial program 49.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. +-commutative49.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-define51.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. *-commutative51.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. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative51.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative51.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} - i \cdot t\right)\right) \]
      8. *-commutative51.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified51.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 b around 0 60.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in52.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.55 \cdot 10^{+44}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \mathbf{elif}\;y \leq -6.6 \cdot 10^{-16}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;y \leq -1.4 \cdot 10^{-94}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;y \leq 2.8 \cdot 10^{-82}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{-43}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;y \leq 2.35 \cdot 10^{+99}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 56.0% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;y \leq -6.6 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq -1.3 \cdot 10^{-240}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

\mathbf{elif}\;y \leq 6.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.1499999999999999e63 or 6.79999999999999989e106 < y

    1. Initial program 53.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. +-commutative53.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-define56.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. *-commutative56.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. sub-neg56.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative56.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg56.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative56.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} - i \cdot t\right)\right) \]
      8. *-commutative56.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified56.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 y around inf 75.7%

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

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

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

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

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

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

    if -3.1499999999999999e63 < y < -6.6000000000000005e-38 or -1.29999999999999996e-240 < y < 6.79999999999999989e106

    1. Initial program 83.4%

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

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

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

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

    if -6.6000000000000005e-38 < y < -1.29999999999999996e-240

    1. Initial program 77.4%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative77.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} - i \cdot t\right)\right) \]
      8. *-commutative77.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified77.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 inf 60.2%

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.15 \cdot 10^{+63}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -6.6 \cdot 10^{-38}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;y \leq -1.3 \cdot 10^{-240}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{+106}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + b \cdot \left(t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 64.2% accurate, 0.9× speedup?

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

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

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

\mathbf{elif}\;b \leq 252000000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -4.4999999999999998e160 or 2.52e11 < b

    1. Initial program 76.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. +-commutative76.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-define77.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. *-commutative77.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. sub-neg77.0%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.0%

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

      \[\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. mul-1-neg74.5%

        \[\leadsto \left(\color{blue}{\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) \]
      2. *-commutative74.5%

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

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

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

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

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

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

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

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

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

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

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

        \[\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) \]
      14. unsub-neg75.4%

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

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

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

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

    if -4.4999999999999998e160 < b < -1.4500000000000001e-162

    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-define79.5%

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

        \[\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. sub-neg79.5%

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

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

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

        \[\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} - i \cdot t\right)\right) \]
      8. *-commutative79.5%

        \[\leadsto \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 - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified79.5%

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

      \[\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)} \]

    if -1.4500000000000001e-162 < b < 2.52e11

    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. Add Preprocessing
    3. Taylor expanded in z around inf 81.5%

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

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

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

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

Alternative 5: 62.8% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;i \leq 2.4 \cdot 10^{-83}:\\
\;\;\;\;t\_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -1.5e117 or 2.29999999999999991e91 < i

    1. Initial program 60.1%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative60.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg60.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative60.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} - i \cdot t\right)\right) \]
      8. *-commutative60.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified60.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 i around inf 77.4%

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

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

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

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

    if -1.5e117 < i < 2.4000000000000001e-83

    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-define75.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. *-commutative75.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. sub-neg75.4%

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

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

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

    if 2.4000000000000001e-83 < i < 2.29999999999999991e91

    1. Initial program 79.7%

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

        \[\leadsto \left(x \cdot \left(\color{blue}{\left(\sqrt[3]{y \cdot z} \cdot \sqrt[3]{y \cdot z}\right) \cdot \sqrt[3]{y \cdot z}} - t \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. pow379.6%

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

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

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

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

        \[\leadsto \left(-\color{blue}{\left(b \cdot c\right) \cdot z}\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. distribute-lft-neg-in67.6%

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

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

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

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

Alternative 6: 51.7% accurate, 1.0× speedup?

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

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

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

\mathbf{elif}\;y \leq 1.1 \cdot 10^{-304}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -1.35e64 or 1.12e100 < y

    1. Initial program 54.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. +-commutative54.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-define57.5%

        \[\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. *-commutative57.5%

        \[\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. sub-neg57.5%

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

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

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

        \[\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} - i \cdot t\right)\right) \]
      8. *-commutative57.5%

        \[\leadsto \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 - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified57.5%

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

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

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

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

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

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

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

    if -1.35e64 < y < -7e-34

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

        \[\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.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. *-commutative80.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. sub-neg80.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative80.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg80.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative80.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} - i \cdot t\right)\right) \]
      8. *-commutative80.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified80.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 i around inf 61.2%

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right) - i \cdot \left(j \cdot y\right)} \]
      4. associate-*r*68.6%

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

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

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

    if -7e-34 < y < 1.1e-304

    1. Initial program 78.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative78.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg78.8%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative78.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} - i \cdot t\right)\right) \]
      8. *-commutative78.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified78.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 inf 60.0%

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

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

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

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

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

    if 1.1e-304 < y < 1.12e100

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg84.2%

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

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

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

Alternative 7: 40.8% accurate, 1.0× speedup?

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

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

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

\mathbf{elif}\;y \leq 6.2 \cdot 10^{-299}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y < -2.7000000000000001e49

    1. Initial program 61.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. +-commutative61.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-define64.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. *-commutative64.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. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative64.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative64.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} - i \cdot t\right)\right) \]
      8. *-commutative64.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified64.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 i around inf 55.1%

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

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

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

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

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

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

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

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

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

    if -2.7000000000000001e49 < y < -4.50000000000000042e-34

    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-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. sub-neg78.3%

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

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

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

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

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

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

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

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

        \[\leadsto i \cdot \left(-1 \cdot \left(-\color{blue}{t \cdot b}\right)\right) \]
      3. distribute-rgt-neg-in46.7%

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

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

    if -4.50000000000000042e-34 < y < 6.1999999999999999e-299

    1. Initial program 78.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative78.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg78.8%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative78.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} - i \cdot t\right)\right) \]
      8. *-commutative78.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified78.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 inf 60.0%

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

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

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

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

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

    if 6.1999999999999999e-299 < y < 3.5000000000000002e168

    1. Initial program 77.1%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative77.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} - i \cdot t\right)\right) \]
      8. *-commutative77.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified77.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 c around inf 52.4%

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

    if 3.5000000000000002e168 < y

    1. Initial program 48.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. +-commutative48.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-define52.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. *-commutative52.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. sub-neg52.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative52.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg52.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative52.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} - i \cdot t\right)\right) \]
      8. *-commutative52.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified52.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 b around 0 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{j \cdot \left(i \cdot y\right)} \]
      5. distribute-rgt-neg-in64.1%

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in64.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2.7 \cdot 10^{+49}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \mathbf{elif}\;y \leq -4.5 \cdot 10^{-34}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{-299}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{elif}\;y \leq 3.5 \cdot 10^{+168}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 64.0% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+155} \lor \neg \left(b \leq 17500000000\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.1e155 or 1.75e10 < b

    1. Initial program 76.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. +-commutative76.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-define77.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. *-commutative77.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. sub-neg77.6%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.6%

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

      \[\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. mul-1-neg74.0%

        \[\leadsto \left(\color{blue}{\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) \]
      2. *-commutative74.0%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} - b \cdot \left(c \cdot z - i \cdot t\right) \]
      13. mul-1-neg74.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) \]
      14. unsub-neg74.9%

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

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

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

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

    if -2.1e155 < b < 1.75e10

    1. Initial program 66.4%

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

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

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

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

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

Alternative 9: 63.3% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.85 \cdot 10^{+117} \lor \neg \left(i \leq 2.9 \cdot 10^{+91}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -1.8499999999999999e117 or 2.90000000000000014e91 < i

    1. Initial program 60.1%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative60.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg60.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative60.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} - i \cdot t\right)\right) \]
      8. *-commutative60.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified60.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 i around inf 77.4%

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

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

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

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

    if -1.8499999999999999e117 < i < 2.90000000000000014e91

    1. Initial program 75.8%

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

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

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

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

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

Alternative 10: 29.8% accurate, 1.1× speedup?

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

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

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

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

\mathbf{elif}\;y \leq 1.35 \cdot 10^{+98}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if y < -1.19999999999999997e-15

    1. Initial program 66.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. +-commutative66.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-define69.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. *-commutative69.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. sub-neg69.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative69.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg69.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative69.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} - i \cdot t\right)\right) \]
      8. *-commutative69.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified69.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 i around inf 56.7%

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

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

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

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

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

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

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

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

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

    if -1.19999999999999997e-15 < y < -3.64999999999999997e-96

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

        \[\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.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. *-commutative73.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. sub-neg73.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative73.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg73.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative73.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} - i \cdot t\right)\right) \]
      8. *-commutative73.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified73.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 c around inf 49.3%

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

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

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

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

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

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

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

    if -3.64999999999999997e-96 < y < 1.0500000000000001e-55

    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-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. sub-neg84.0%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg84.0%

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

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

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

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

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

    if 1.0500000000000001e-55 < y < 1.35e98

    1. Initial program 72.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. +-commutative72.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-define72.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. *-commutative72.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. sub-neg72.6%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative72.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg72.6%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative72.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} - i \cdot t\right)\right) \]
      8. *-commutative72.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified72.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 c around inf 59.1%

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

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

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

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

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

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

    if 1.35e98 < y

    1. Initial program 49.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. +-commutative49.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-define51.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. *-commutative51.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. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative51.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative51.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} - i \cdot t\right)\right) \]
      8. *-commutative51.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified51.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 b around 0 60.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in52.3%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.2 \cdot 10^{-15}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \mathbf{elif}\;y \leq -3.65 \cdot 10^{-96}:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;y \leq 1.05 \cdot 10^{-55}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{+98}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 29.9% accurate, 1.1× speedup?

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

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

\mathbf{elif}\;y \leq -2.3 \cdot 10^{-235}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

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

\mathbf{elif}\;y \leq 7.2 \cdot 10^{+98}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -3.8000000000000001e-34 or 7.19999999999999962e98 < y

    1. Initial program 59.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative62.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg62.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative62.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} - i \cdot t\right)\right) \]
      8. *-commutative62.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified62.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 b around 0 61.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{j \cdot \left(i \cdot y\right)} \]
      5. distribute-rgt-neg-in43.4%

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in43.4%

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

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

    if -3.8000000000000001e-34 < y < -2.29999999999999997e-235

    1. Initial program 77.9%

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

        \[\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-define77.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. *-commutative77.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. sub-neg77.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative77.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} - i \cdot t\right)\right) \]
      8. *-commutative77.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified77.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 inf 58.9%

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

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

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

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

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

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

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

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

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

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

    if -2.29999999999999997e-235 < y < 8.00000000000000032e-297

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

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-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} - i \cdot t\right)\right) \]
      8. *-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(z \cdot c - \color{blue}{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 inf 65.3%

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

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

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

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

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

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

    if 8.00000000000000032e-297 < y < 7.19999999999999962e98

    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-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. sub-neg84.0%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg84.0%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.8 \cdot 10^{-34}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{-235}:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;y \leq 8 \cdot 10^{-297}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{+98}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 51.6% accurate, 1.2× speedup?

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

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

\mathbf{elif}\;y \leq 7.6 \cdot 10^{-305}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -4.60000000000000003e-38 or 2.4999999999999999e100 < y

    1. Initial program 59.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. +-commutative59.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-define62.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. *-commutative62.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. sub-neg62.0%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative62.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg62.0%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative62.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} - i \cdot t\right)\right) \]
      8. *-commutative62.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified62.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 68.4%

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

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

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

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

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

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

    if -4.60000000000000003e-38 < y < 7.6e-305

    1. Initial program 79.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative79.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg79.8%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative79.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} - i \cdot t\right)\right) \]
      8. *-commutative79.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified79.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 inf 61.9%

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

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

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

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

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

    if 7.6e-305 < y < 2.4999999999999999e100

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg84.2%

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

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

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

Alternative 13: 41.5% accurate, 1.2× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -2.0000000000000001e47

    1. Initial program 61.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. +-commutative61.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-define64.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. *-commutative64.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. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative64.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg64.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative64.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} - i \cdot t\right)\right) \]
      8. *-commutative64.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified64.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 i around inf 55.1%

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

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

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

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

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

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

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

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

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

    if -2.0000000000000001e47 < y < -3.8000000000000001e-35

    1. Initial program 79.2%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative79.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg79.2%

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

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

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

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

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

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

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

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

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

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

    if -3.8000000000000001e-35 < y < 7.5000000000000002e170

    1. Initial program 77.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. +-commutative77.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-define77.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. *-commutative77.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. sub-neg77.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative77.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg77.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative77.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} - i \cdot t\right)\right) \]
      8. *-commutative77.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified77.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 a around inf 49.5%

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

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

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

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

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

    if 7.5000000000000002e170 < y

    1. Initial program 48.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. +-commutative48.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-define52.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. *-commutative52.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. sub-neg52.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative52.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg52.1%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative52.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} - i \cdot t\right)\right) \]
      8. *-commutative52.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified52.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 b around 0 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{j \cdot \left(i \cdot y\right)} \]
      5. distribute-rgt-neg-in64.1%

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in64.1%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -2 \cdot 10^{+47}:\\ \;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\ \mathbf{elif}\;y \leq -3.8 \cdot 10^{-35}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;y \leq 7.5 \cdot 10^{+170}:\\ \;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.0% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;y \leq -1.35 \cdot 10^{-289}:\\
\;\;\;\;x \cdot \left(-t \cdot a\right)\\

\mathbf{elif}\;y \leq 6.8 \cdot 10^{+97}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -4.2000000000000002e-34

    1. Initial program 65.7%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative68.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg68.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative68.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} - i \cdot t\right)\right) \]
      8. *-commutative68.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified68.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 i around inf 56.5%

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

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

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

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

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

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

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

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

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

    if -4.2000000000000002e-34 < y < -1.35e-289

    1. Initial program 76.9%

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

        \[\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. sub-neg76.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg76.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-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} - i \cdot t\right)\right) \]
      8. *-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(z \cdot c - \color{blue}{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 inf 60.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.35e-289 < y < 6.8000000000000002e97

    1. Initial program 85.3%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative85.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg85.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative85.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} - i \cdot t\right)\right) \]
      8. *-commutative85.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified85.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 c around inf 54.9%

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

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

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

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

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

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

    if 6.8000000000000002e97 < y

    1. Initial program 49.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. +-commutative49.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-define51.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. *-commutative51.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. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative51.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg51.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative51.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} - i \cdot t\right)\right) \]
      8. *-commutative51.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified51.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 b around 0 60.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in52.3%

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

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

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

Alternative 15: 30.0% accurate, 1.4× speedup?

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

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

\mathbf{elif}\;y \leq -1.2 \cdot 10^{-289}:\\
\;\;\;\;x \cdot \left(-t \cdot a\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.7e-34 or 6.50000000000000001e100 < y

    1. Initial program 59.8%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative62.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg62.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative62.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} - i \cdot t\right)\right) \]
      8. *-commutative62.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified62.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 b around 0 61.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -\color{blue}{j \cdot \left(i \cdot y\right)} \]
      5. distribute-rgt-neg-in43.4%

        \[\leadsto \color{blue}{j \cdot \left(-i \cdot y\right)} \]
      6. distribute-lft-neg-in43.4%

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

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

    if -1.7e-34 < y < -1.19999999999999997e-289

    1. Initial program 76.9%

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

        \[\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. sub-neg76.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg76.9%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-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} - i \cdot t\right)\right) \]
      8. *-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(z \cdot c - \color{blue}{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 inf 60.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.19999999999999997e-289 < y < 6.50000000000000001e100

    1. Initial program 85.3%

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative85.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg85.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative85.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} - i \cdot t\right)\right) \]
      8. *-commutative85.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified85.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 c around inf 54.9%

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

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

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

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

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

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

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

Alternative 16: 28.8% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{+70} \lor \neg \left(z \leq 2.3 \cdot 10^{+52}\right):\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -4.79999999999999974e70 or 2.3e52 < z

    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 \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-define61.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. *-commutative61.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. sub-neg61.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative61.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg61.7%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative61.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} - i \cdot t\right)\right) \]
      8. *-commutative61.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified61.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 48.1%

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

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

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

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

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

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

    if -4.79999999999999974e70 < z < 2.3e52

    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-define79.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. *-commutative79.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. sub-neg79.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative79.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg79.4%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative79.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} - i \cdot t\right)\right) \]
      8. *-commutative79.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified79.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 c around inf 36.5%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.8 \cdot 10^{+70} \lor \neg \left(z \leq 2.3 \cdot 10^{+52}\right):\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 28.9% accurate, 1.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.9 \cdot 10^{-80}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{elif}\;j \leq 2 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -2.89999999999999998e-80

    1. Initial program 72.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Step-by-step derivation
      1. +-commutative72.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-define73.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. *-commutative73.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. sub-neg73.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative73.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg73.3%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative73.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} - i \cdot t\right)\right) \]
      8. *-commutative73.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified73.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 c around inf 50.5%

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

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

    if -2.89999999999999998e-80 < j < 1.99999999999999992e-103

    1. Initial program 66.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. +-commutative66.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-define66.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. *-commutative66.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. sub-neg66.6%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative66.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg66.6%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative66.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} - i \cdot t\right)\right) \]
      8. *-commutative66.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified66.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 a around inf 30.9%

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

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

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

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

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

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

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

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

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

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

    if 1.99999999999999992e-103 < j

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

        \[\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.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. *-commutative76.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. sub-neg76.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
      5. *-commutative76.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
      6. sub-neg76.2%

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
      7. *-commutative76.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} - i \cdot t\right)\right) \]
      8. *-commutative76.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
    3. Simplified76.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 a around inf 39.8%

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

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

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

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

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

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

Alternative 18: 21.5% accurate, 5.8× speedup?

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

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

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

      \[\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.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. *-commutative72.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. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
    5. *-commutative72.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
    6. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
    7. *-commutative72.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} - i \cdot t\right)\right) \]
    8. *-commutative72.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
  3. Simplified72.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 c around inf 41.3%

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

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

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

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

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

Alternative 19: 21.8% accurate, 5.8× speedup?

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

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

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

      \[\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.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. *-commutative72.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. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
    5. *-commutative72.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
    6. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
    7. *-commutative72.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} - i \cdot t\right)\right) \]
    8. *-commutative72.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
  3. Simplified72.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 c around inf 41.3%

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

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

Alternative 20: 21.8% accurate, 5.8× speedup?

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

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

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

      \[\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.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. *-commutative72.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. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}\right) \]
    5. *-commutative72.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(c \cdot z + \left(-\color{blue}{i \cdot t}\right)\right)\right) \]
    6. sub-neg72.1%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - y \cdot i, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z - i \cdot t\right)}\right) \]
    7. *-commutative72.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} - i \cdot t\right)\right) \]
    8. *-commutative72.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(z \cdot c - \color{blue}{t \cdot i}\right)\right) \]
  3. Simplified72.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 inf 38.5%

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

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

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

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

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

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

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

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

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