Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 74.0% → 80.9%
Time: 21.3s
Alternatives: 31
Speedup: 0.5×

Specification

?
\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
  (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 31 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: 74.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (+
  (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
  (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j):
	return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y))))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 80.9% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\ t_2 := t \cdot \left(c \cdot j + \left(\frac{y \cdot \left(x \cdot z - i \cdot j\right) + t\_1}{t} - x \cdot a\right)\right)\\ t_3 := t \cdot c - y \cdot i\\ t_4 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot t\_3\\ \mathbf{if}\;t\_4 \leq -\infty:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t\_4 \leq 10^{+305}:\\ \;\;\;\;\mathsf{fma}\left(j, t\_3, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\ \mathbf{elif}\;t\_4 \leq \infty:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (- (* a i) (* z c))))
        (t_2
         (* t (+ (* c j) (- (/ (+ (* y (- (* x z) (* i j))) t_1) t) (* x a)))))
        (t_3 (- (* t c) (* y i)))
        (t_4 (+ (+ (* x (- (* y z) (* t a))) t_1) (* j t_3))))
   (if (<= t_4 (- INFINITY))
     t_2
     (if (<= t_4 1e+305)
       (fma j t_3 (+ (* x (fma y z (* t (- a)))) t_1))
       (if (<= t_4 INFINITY) t_2 (* y (* x (- z (* i (/ j x))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * ((a * i) - (z * c));
	double t_2 = t * ((c * j) + ((((y * ((x * z) - (i * j))) + t_1) / t) - (x * a)));
	double t_3 = (t * c) - (y * i);
	double t_4 = ((x * ((y * z) - (t * a))) + t_1) + (j * t_3);
	double tmp;
	if (t_4 <= -((double) INFINITY)) {
		tmp = t_2;
	} else if (t_4 <= 1e+305) {
		tmp = fma(j, t_3, ((x * fma(y, z, (t * -a))) + t_1));
	} else if (t_4 <= ((double) INFINITY)) {
		tmp = t_2;
	} else {
		tmp = y * (x * (z - (i * (j / x))));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c)))
	t_2 = Float64(t * Float64(Float64(c * j) + Float64(Float64(Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + t_1) / t) - Float64(x * a))))
	t_3 = Float64(Float64(t * c) - Float64(y * i))
	t_4 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * t_3))
	tmp = 0.0
	if (t_4 <= Float64(-Inf))
		tmp = t_2;
	elseif (t_4 <= 1e+305)
		tmp = fma(j, t_3, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1));
	elseif (t_4 <= Inf)
		tmp = t_2;
	else
		tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x)))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] + N[(N[(N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] / t), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$4, (-Infinity)], t$95$2, If[LessEqual[t$95$4, 1e+305], N[(j * t$95$3 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$4, Infinity], t$95$2, N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;t\_4 \leq 10^{+305}:\\
\;\;\;\;\mathsf{fma}\left(j, t\_3, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\

\mathbf{elif}\;t\_4 \leq \infty:\\
\;\;\;\;t\_2\\

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


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

    1. Initial program 83.5%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified90.7%

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

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

    1. Initial program 99.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*59.5%

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

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

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

Alternative 2: 80.9% accurate, 0.2× speedup?

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

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

\mathbf{elif}\;t\_3 \leq 10^{+305}:\\
\;\;\;\;t\_3\\

\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;t\_2\\

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


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

    1. Initial program 83.5%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified90.7%

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

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

    1. Initial program 99.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y))))

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*59.5%

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

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

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

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

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

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

    1. Initial program 89.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y))))

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*59.5%

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

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

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

Alternative 4: 52.7% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+178}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -7.2 \cdot 10^{-34}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-117}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;z \leq -1.18 \cdot 10^{-229}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-229}:\\ \;\;\;\;t \cdot \left(c \cdot j - \left(x \cdot a - a \cdot \frac{b \cdot i}{t}\right)\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-133}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{+113}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -4e+178)
   (* x (- (* y z) (* t a)))
   (if (<= z -7.2e-34)
     (+ (* t (* c j)) (* b (- (* a i) (* z c))))
     (if (<= z -3e-117)
       (* a (- (* b i) (* x t)))
       (if (<= z -1.18e-229)
         (* i (- (* a b) (* y j)))
         (if (<= z 6.2e-229)
           (* t (- (* c j) (- (* x a) (* a (/ (* b i) t)))))
           (if (<= z 6.5e-133)
             (- (* a (* b i)) (* a (* x t)))
             (if (<= z 2.3e+113)
               (- (* t (- (* c j) (* x a))) (* b (* z c)))
               (* z (- (* x y) (* b c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -4e+178) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -7.2e-34) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else if (z <= -3e-117) {
		tmp = a * ((b * i) - (x * t));
	} else if (z <= -1.18e-229) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 6.2e-229) {
		tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))));
	} else if (z <= 6.5e-133) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else if (z <= 2.3e+113) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else {
		tmp = 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 (z <= (-4d+178)) then
        tmp = x * ((y * z) - (t * a))
    else if (z <= (-7.2d-34)) then
        tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
    else if (z <= (-3d-117)) then
        tmp = a * ((b * i) - (x * t))
    else if (z <= (-1.18d-229)) then
        tmp = i * ((a * b) - (y * j))
    else if (z <= 6.2d-229) then
        tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))))
    else if (z <= 6.5d-133) then
        tmp = (a * (b * i)) - (a * (x * t))
    else if (z <= 2.3d+113) then
        tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
    else
        tmp = 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 (z <= -4e+178) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -7.2e-34) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else if (z <= -3e-117) {
		tmp = a * ((b * i) - (x * t));
	} else if (z <= -1.18e-229) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 6.2e-229) {
		tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))));
	} else if (z <= 6.5e-133) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else if (z <= 2.3e+113) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -4e+178:
		tmp = x * ((y * z) - (t * a))
	elif z <= -7.2e-34:
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
	elif z <= -3e-117:
		tmp = a * ((b * i) - (x * t))
	elif z <= -1.18e-229:
		tmp = i * ((a * b) - (y * j))
	elif z <= 6.2e-229:
		tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))))
	elif z <= 6.5e-133:
		tmp = (a * (b * i)) - (a * (x * t))
	elif z <= 2.3e+113:
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -4e+178)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (z <= -7.2e-34)
		tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c))));
	elseif (z <= -3e-117)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	elseif (z <= -1.18e-229)
		tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j)));
	elseif (z <= 6.2e-229)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(Float64(x * a) - Float64(a * Float64(Float64(b * i) / t)))));
	elseif (z <= 6.5e-133)
		tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t)));
	elseif (z <= 2.3e+113)
		tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -4e+178)
		tmp = x * ((y * z) - (t * a));
	elseif (z <= -7.2e-34)
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	elseif (z <= -3e-117)
		tmp = a * ((b * i) - (x * t));
	elseif (z <= -1.18e-229)
		tmp = i * ((a * b) - (y * j));
	elseif (z <= 6.2e-229)
		tmp = t * ((c * j) - ((x * a) - (a * ((b * i) / t))));
	elseif (z <= 6.5e-133)
		tmp = (a * (b * i)) - (a * (x * t));
	elseif (z <= 2.3e+113)
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4e+178], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.2e-34], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-117], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.18e-229], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e-229], N[(t * N[(N[(c * j), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] - N[(a * N[(N[(b * i), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-133], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+113], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

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

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

\mathbf{elif}\;z \leq -1.18 \cdot 10^{-229}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 8 regimes
  2. if z < -4.0000000000000002e178

    1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.0000000000000002e178 < z < -7.20000000000000016e-34

    1. Initial program 71.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.20000000000000016e-34 < z < -2.99999999999999991e-117

    1. Initial program 68.5%

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

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

    if -2.99999999999999991e-117 < z < -1.1799999999999999e-229

    1. Initial program 81.4%

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

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

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

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

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

    if -1.1799999999999999e-229 < z < 6.2000000000000002e-229

    1. Initial program 78.6%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified78.6%

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

      \[\leadsto \left(\left(x \cdot a - \color{blue}{\frac{a \cdot \left(b \cdot i\right)}{t}}\right) - j \cdot c\right) \cdot \left(-t\right) \]
    6. Step-by-step derivation
      1. associate-/l*78.6%

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

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

    if 6.2000000000000002e-229 < z < 6.5000000000000002e-133

    1. Initial program 85.9%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified59.6%

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

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

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

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

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

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

        \[\leadsto \left(t \cdot a\right) \cdot \color{blue}{\left(\frac{b \cdot i}{t} - x\right)} \]
      6. associate-/l*51.5%

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

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

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

    if 6.5000000000000002e-133 < z < 2.29999999999999997e113

    1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2.29999999999999997e113 < z

    1. Initial program 63.0%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+178}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -7.2 \cdot 10^{-34}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-117}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;z \leq -1.18 \cdot 10^{-229}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-229}:\\ \;\;\;\;t \cdot \left(c \cdot j - \left(x \cdot a - a \cdot \frac{b \cdot i}{t}\right)\right)\\ \mathbf{elif}\;z \leq 6.5 \cdot 10^{-133}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{+113}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 52.0% accurate, 0.7× speedup?

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

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

\mathbf{elif}\;y \leq -2.4 \cdot 10^{-208}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq -7.5 \cdot 10^{-278}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq -9 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq 1.85 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;y \leq 4.8 \cdot 10^{-221}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;y \leq 1.9 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -3.7e-47 or 1.90000000000000006e65 < y

    1. Initial program 57.4%

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

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

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

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

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

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

    if -3.7e-47 < y < -2.3999999999999999e-208 or -7.49999999999999946e-278 < y < -8.9999999999999995e-304 or 1.85000000000000019e-279 < y < 4.80000000000000047e-221

    1. Initial program 83.2%

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

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

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

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

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

    if -2.3999999999999999e-208 < y < -7.49999999999999946e-278 or -8.9999999999999995e-304 < y < 1.85000000000000019e-279 or 4.80000000000000047e-221 < y < 1.90000000000000006e65

    1. Initial program 86.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.7 \cdot 10^{-47}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -2.4 \cdot 10^{-208}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq -7.5 \cdot 10^{-278}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;y \leq -9 \cdot 10^{-304}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{-279}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;y \leq 4.8 \cdot 10^{-221}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{elif}\;y \leq 1.9 \cdot 10^{+65}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 6: 63.9% accurate, 0.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \mathbf{if}\;b \leq -4.4 \cdot 10^{+109}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -1.22 \cdot 10^{+36}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-19}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;b \leq -9.4 \cdot 10^{-87}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;b \leq 7.6 \cdot 10^{-21}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{+129}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
   (if (<= b -4.4e+109)
     (+ (* t (* c j)) (* b (- (* a i) (* z c))))
     (if (<= b -1.22e+36)
       t_1
       (if (<= b -7.5e-19)
         (- (* t (- (* c j) (* x a))) (* b (* z c)))
         (if (<= b -9.4e-87)
           (* y (- (* x z) (* i j)))
           (if (<= b 7.6e-21)
             t_1
             (if (<= b 3.6e+129)
               (* a (- (* b i) (* x t)))
               (* b (* i (- a (* c (/ z i)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
	double tmp;
	if (b <= -4.4e+109) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else if (b <= -1.22e+36) {
		tmp = t_1;
	} else if (b <= -7.5e-19) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else if (b <= -9.4e-87) {
		tmp = y * ((x * z) - (i * j));
	} else if (b <= 7.6e-21) {
		tmp = t_1;
	} else if (b <= 3.6e+129) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = b * (i * (a - (c * (z / 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 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
    if (b <= (-4.4d+109)) then
        tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
    else if (b <= (-1.22d+36)) then
        tmp = t_1
    else if (b <= (-7.5d-19)) then
        tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
    else if (b <= (-9.4d-87)) then
        tmp = y * ((x * z) - (i * j))
    else if (b <= 7.6d-21) then
        tmp = t_1
    else if (b <= 3.6d+129) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = b * (i * (a - (c * (z / 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 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
	double tmp;
	if (b <= -4.4e+109) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else if (b <= -1.22e+36) {
		tmp = t_1;
	} else if (b <= -7.5e-19) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else if (b <= -9.4e-87) {
		tmp = y * ((x * z) - (i * j));
	} else if (b <= 7.6e-21) {
		tmp = t_1;
	} else if (b <= 3.6e+129) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = b * (i * (a - (c * (z / i))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
	tmp = 0
	if b <= -4.4e+109:
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
	elif b <= -1.22e+36:
		tmp = t_1
	elif b <= -7.5e-19:
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
	elif b <= -9.4e-87:
		tmp = y * ((x * z) - (i * j))
	elif b <= 7.6e-21:
		tmp = t_1
	elif b <= 3.6e+129:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = b * (i * (a - (c * (z / i))))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))
	tmp = 0.0
	if (b <= -4.4e+109)
		tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c))));
	elseif (b <= -1.22e+36)
		tmp = t_1;
	elseif (b <= -7.5e-19)
		tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c)));
	elseif (b <= -9.4e-87)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (b <= 7.6e-21)
		tmp = t_1;
	elseif (b <= 3.6e+129)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
	tmp = 0.0;
	if (b <= -4.4e+109)
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	elseif (b <= -1.22e+36)
		tmp = t_1;
	elseif (b <= -7.5e-19)
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	elseif (b <= -9.4e-87)
		tmp = y * ((x * z) - (i * j));
	elseif (b <= 7.6e-21)
		tmp = t_1;
	elseif (b <= 3.6e+129)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = b * (i * (a - (c * (z / i))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+109], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.22e+36], t$95$1, If[LessEqual[b, -7.5e-19], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.4e-87], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.6e-21], t$95$1, If[LessEqual[b, 3.6e+129], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;b \leq -1.22 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\

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

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

\mathbf{elif}\;b \leq 7.6 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if b < -4.3999999999999998e109

    1. Initial program 71.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.3999999999999998e109 < b < -1.21999999999999995e36 or -9.4000000000000002e-87 < b < 7.5999999999999995e-21

    1. Initial program 73.5%

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

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

    if -1.21999999999999995e36 < b < -7.49999999999999957e-19

    1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.49999999999999957e-19 < b < -9.4000000000000002e-87

    1. Initial program 69.1%

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

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

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

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

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

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

    if 7.5999999999999995e-21 < b < 3.6000000000000001e129

    1. Initial program 81.1%

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

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

    if 3.6000000000000001e129 < b

    1. Initial program 66.8%

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

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

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

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

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

        \[\leadsto b \cdot \left(i \cdot \left(a + \color{blue}{\left(-\frac{c \cdot z}{i}\right)}\right)\right) \]
      2. unsub-neg75.7%

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

        \[\leadsto b \cdot \left(i \cdot \left(a - \color{blue}{c \cdot \frac{z}{i}}\right)\right) \]
    8. Simplified75.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -4.4 \cdot 10^{+109}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq -1.22 \cdot 10^{+36}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \mathbf{elif}\;b \leq -7.5 \cdot 10^{-19}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;b \leq -9.4 \cdot 10^{-87}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;b \leq 7.6 \cdot 10^{-21}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \mathbf{elif}\;b \leq 3.6 \cdot 10^{+129}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 67.4% accurate, 0.7× speedup?

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if y < -4.0000000000000001e173 or 4.99999999999999963e74 < y

    1. Initial program 52.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. 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)} \]
    4. 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)} \]
    5. Simplified75.7%

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*77.2%

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

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

    if -4.0000000000000001e173 < y < -3.6000000000000001e-38

    1. Initial program 66.4%

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

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

    if -3.6000000000000001e-38 < y < -2.8999999999999999e-87

    1. Initial program 92.2%

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.8999999999999999e-87 < y < 4.99999999999999963e74

    1. Initial program 83.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -4 \cdot 10^{+173}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \mathbf{elif}\;y \leq -3.6 \cdot 10^{-38}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\ \mathbf{elif}\;y \leq -2.9 \cdot 10^{-87}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq 5 \cdot 10^{+74}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 46.4% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -5.5 \cdot 10^{+185}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-231}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-79}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -5.5e+185)
   (* x (- (* y z) (* t a)))
   (if (<= z -3.1e-117)
     (* b (* i (- a (* c (/ z i)))))
     (if (<= z 2.8e-281)
       (* i (- (* a b) (* y j)))
       (if (<= z 9.6e-231)
         (* t (- (* c j) (* x a)))
         (if (<= z 2.4e-79)
           (- (* a (* b i)) (* a (* x t)))
           (* 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 (z <= -5.5e+185) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -3.1e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 2.8e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 9.6e-231) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 2.4e-79) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else {
		tmp = 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 (z <= (-5.5d+185)) then
        tmp = x * ((y * z) - (t * a))
    else if (z <= (-3.1d-117)) then
        tmp = b * (i * (a - (c * (z / i))))
    else if (z <= 2.8d-281) then
        tmp = i * ((a * b) - (y * j))
    else if (z <= 9.6d-231) then
        tmp = t * ((c * j) - (x * a))
    else if (z <= 2.4d-79) then
        tmp = (a * (b * i)) - (a * (x * t))
    else
        tmp = 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 (z <= -5.5e+185) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -3.1e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 2.8e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 9.6e-231) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 2.4e-79) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -5.5e+185:
		tmp = x * ((y * z) - (t * a))
	elif z <= -3.1e-117:
		tmp = b * (i * (a - (c * (z / i))))
	elif z <= 2.8e-281:
		tmp = i * ((a * b) - (y * j))
	elif z <= 9.6e-231:
		tmp = t * ((c * j) - (x * a))
	elif z <= 2.4e-79:
		tmp = (a * (b * i)) - (a * (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -5.5e+185)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (z <= -3.1e-117)
		tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i)))));
	elseif (z <= 2.8e-281)
		tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j)));
	elseif (z <= 9.6e-231)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a)));
	elseif (z <= 2.4e-79)
		tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -5.5e+185)
		tmp = x * ((y * z) - (t * a));
	elseif (z <= -3.1e-117)
		tmp = b * (i * (a - (c * (z / i))));
	elseif (z <= 2.8e-281)
		tmp = i * ((a * b) - (y * j));
	elseif (z <= 9.6e-231)
		tmp = t * ((c * j) - (x * a));
	elseif (z <= 2.4e-79)
		tmp = (a * (b * i)) - (a * (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -5.5e+185], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e-231], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-79], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\

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

\mathbf{elif}\;z \leq 9.6 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\

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

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


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

    1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.4999999999999996e185 < z < -3.10000000000000011e-117

    1. Initial program 70.6%

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

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

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

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

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

        \[\leadsto b \cdot \left(i \cdot \left(a + \color{blue}{\left(-\frac{c \cdot z}{i}\right)}\right)\right) \]
      2. unsub-neg61.7%

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

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

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

    if -3.10000000000000011e-117 < z < 2.80000000000000005e-281

    1. Initial program 79.3%

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

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

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

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

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

    if 2.80000000000000005e-281 < z < 9.59999999999999967e-231

    1. Initial program 83.3%

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

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

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

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

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

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

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

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

    if 9.59999999999999967e-231 < z < 2.40000000000000006e-79

    1. Initial program 84.8%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified73.4%

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

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

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

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

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

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

        \[\leadsto \left(t \cdot a\right) \cdot \color{blue}{\left(\frac{b \cdot i}{t} - x\right)} \]
      6. associate-/l*49.7%

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

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

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

    if 2.40000000000000006e-79 < z

    1. Initial program 66.6%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.5 \cdot 10^{+185}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-231}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 2.4 \cdot 10^{-79}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 9: 58.1% accurate, 0.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.7 \cdot 10^{-5}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{-306}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{-279}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= y -1.7e-5)
   (* y (- (* x z) (* i j)))
   (if (<= y 7.2e-306)
     (- (* t (- (* c j) (* x a))) (* b (* z c)))
     (if (<= y 9.8e-279)
       (- (* a (* b i)) (* a (* x t)))
       (if (<= y 3.4e+73)
         (+ (* t (* c j)) (* b (- (* a i) (* z c))))
         (* y (* x (- z (* i (/ j x))))))))))
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.7e-5) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= 7.2e-306) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else if (y <= 9.8e-279) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else if (y <= 3.4e+73) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else {
		tmp = y * (x * (z - (i * (j / x))));
	}
	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.7d-5)) then
        tmp = y * ((x * z) - (i * j))
    else if (y <= 7.2d-306) then
        tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
    else if (y <= 9.8d-279) then
        tmp = (a * (b * i)) - (a * (x * t))
    else if (y <= 3.4d+73) then
        tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
    else
        tmp = y * (x * (z - (i * (j / x))))
    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.7e-5) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= 7.2e-306) {
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	} else if (y <= 9.8e-279) {
		tmp = (a * (b * i)) - (a * (x * t));
	} else if (y <= 3.4e+73) {
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	} else {
		tmp = y * (x * (z - (i * (j / x))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if y <= -1.7e-5:
		tmp = y * ((x * z) - (i * j))
	elif y <= 7.2e-306:
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c))
	elif y <= 9.8e-279:
		tmp = (a * (b * i)) - (a * (x * t))
	elif y <= 3.4e+73:
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)))
	else:
		tmp = y * (x * (z - (i * (j / x))))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (y <= -1.7e-5)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (y <= 7.2e-306)
		tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(z * c)));
	elseif (y <= 9.8e-279)
		tmp = Float64(Float64(a * Float64(b * i)) - Float64(a * Float64(x * t)));
	elseif (y <= 3.4e+73)
		tmp = Float64(Float64(t * Float64(c * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c))));
	else
		tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (y <= -1.7e-5)
		tmp = y * ((x * z) - (i * j));
	elseif (y <= 7.2e-306)
		tmp = (t * ((c * j) - (x * a))) - (b * (z * c));
	elseif (y <= 9.8e-279)
		tmp = (a * (b * i)) - (a * (x * t));
	elseif (y <= 3.4e+73)
		tmp = (t * (c * j)) + (b * ((a * i) - (z * c)));
	else
		tmp = y * (x * (z - (i * (j / x))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.7e-5], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e-306], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.8e-279], N[(N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+73], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{-5}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

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

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

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

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


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

    1. Initial program 59.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. 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)} \]
    4. 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)} \]
    5. Simplified75.3%

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

    if -1.7e-5 < y < 7.19999999999999982e-306

    1. Initial program 85.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 7.19999999999999982e-306 < y < 9.79999999999999948e-279

    1. Initial program 71.4%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified57.7%

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

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

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

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

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

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

        \[\leadsto \left(t \cdot a\right) \cdot \color{blue}{\left(\frac{b \cdot i}{t} - x\right)} \]
      6. associate-/l*86.0%

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

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

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

    if 9.79999999999999948e-279 < y < 3.4000000000000002e73

    1. Initial program 85.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 3.4000000000000002e73 < y

    1. Initial program 48.5%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*71.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -1.7 \cdot 10^{-5}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 7.2 \cdot 10^{-306}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c\right)\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{-279}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;y \leq 3.4 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 58.6% accurate, 0.8× speedup?

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

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

\mathbf{elif}\;y \leq 7 \cdot 10^{-20}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 2.55 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 59.2%

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

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

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

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

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

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

    if -1.01999999999999999e-4 < y < 7.00000000000000007e-20 or 1.5999999999999999e-6 < y < 2.55000000000000012e73

    1. Initial program 85.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 7.00000000000000007e-20 < y < 1.5999999999999999e-6

    1. Initial program 72.3%

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

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified86.6%

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

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

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

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

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

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

        \[\leadsto \left(t \cdot a\right) \cdot \color{blue}{\left(\frac{b \cdot i}{t} - x\right)} \]
      6. associate-/l*73.1%

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

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

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

    if 2.55000000000000012e73 < y

    1. Initial program 48.5%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*71.4%

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -0.000102:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-20}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;y \leq 1.6 \cdot 10^{-6}:\\ \;\;\;\;a \cdot \left(b \cdot i\right) - a \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;y \leq 2.55 \cdot 10^{+73}:\\ \;\;\;\;t \cdot \left(c \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 46.5% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.15 \cdot 10^{+181}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -3.3 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 2.65 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-231}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 1.55 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -1.15e+181)
   (* x (- (* y z) (* t a)))
   (if (<= z -3.3e-117)
     (* b (* i (- a (* c (/ z i)))))
     (if (<= z 2.65e-281)
       (* i (- (* a b) (* y j)))
       (if (<= z 4.7e-231)
         (* t (- (* c j) (* x a)))
         (if (<= z 1.55e-77)
           (* a (- (* b i) (* x t)))
           (* 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 (z <= -1.15e+181) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -3.3e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 2.65e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 4.7e-231) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 1.55e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = 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 (z <= (-1.15d+181)) then
        tmp = x * ((y * z) - (t * a))
    else if (z <= (-3.3d-117)) then
        tmp = b * (i * (a - (c * (z / i))))
    else if (z <= 2.65d-281) then
        tmp = i * ((a * b) - (y * j))
    else if (z <= 4.7d-231) then
        tmp = t * ((c * j) - (x * a))
    else if (z <= 1.55d-77) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = 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 (z <= -1.15e+181) {
		tmp = x * ((y * z) - (t * a));
	} else if (z <= -3.3e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 2.65e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 4.7e-231) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 1.55e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -1.15e+181:
		tmp = x * ((y * z) - (t * a))
	elif z <= -3.3e-117:
		tmp = b * (i * (a - (c * (z / i))))
	elif z <= 2.65e-281:
		tmp = i * ((a * b) - (y * j))
	elif z <= 4.7e-231:
		tmp = t * ((c * j) - (x * a))
	elif z <= 1.55e-77:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -1.15e+181)
		tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a)));
	elseif (z <= -3.3e-117)
		tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i)))));
	elseif (z <= 2.65e-281)
		tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j)));
	elseif (z <= 4.7e-231)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a)));
	elseif (z <= 1.55e-77)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -1.15e+181)
		tmp = x * ((y * z) - (t * a));
	elseif (z <= -3.3e-117)
		tmp = b * (i * (a - (c * (z / i))));
	elseif (z <= 2.65e-281)
		tmp = i * ((a * b) - (y * j));
	elseif (z <= 4.7e-231)
		tmp = t * ((c * j) - (x * a));
	elseif (z <= 1.55e-77)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.15e+181], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.65e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.7e-231], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

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

\mathbf{elif}\;z \leq 2.65 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\

\mathbf{elif}\;z \leq 4.7 \cdot 10^{-231}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\

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

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


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

    1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.1499999999999999e181 < z < -3.30000000000000015e-117

    1. Initial program 70.6%

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

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

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

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

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

        \[\leadsto b \cdot \left(i \cdot \left(a + \color{blue}{\left(-\frac{c \cdot z}{i}\right)}\right)\right) \]
      2. unsub-neg61.7%

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

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

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

    if -3.30000000000000015e-117 < z < 2.64999999999999997e-281

    1. Initial program 79.3%

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

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

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

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

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

    if 2.64999999999999997e-281 < z < 4.7000000000000002e-231

    1. Initial program 83.3%

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

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

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

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

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

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

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

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

    if 4.7000000000000002e-231 < z < 1.55000000000000004e-77

    1. Initial program 84.8%

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

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

    if 1.55000000000000004e-77 < z

    1. Initial program 66.6%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.15 \cdot 10^{+181}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;z \leq -3.3 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 2.65 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 4.7 \cdot 10^{-231}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 1.55 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 46.8% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.9 \cdot 10^{+185}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 3.1 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-232}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-78}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -4.9e+185)
   (* y (- (* x z) (* i j)))
   (if (<= z -3.1e-117)
     (* b (* i (- a (* c (/ z i)))))
     (if (<= z 3.1e-281)
       (* i (- (* a b) (* y j)))
       (if (<= z 8e-232)
         (* t (- (* c j) (* x a)))
         (if (<= z 9.6e-78)
           (* a (- (* b i) (* x t)))
           (* 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 (z <= -4.9e+185) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -3.1e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 3.1e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 8e-232) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 9.6e-78) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = 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 (z <= (-4.9d+185)) then
        tmp = y * ((x * z) - (i * j))
    else if (z <= (-3.1d-117)) then
        tmp = b * (i * (a - (c * (z / i))))
    else if (z <= 3.1d-281) then
        tmp = i * ((a * b) - (y * j))
    else if (z <= 8d-232) then
        tmp = t * ((c * j) - (x * a))
    else if (z <= 9.6d-78) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = 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 (z <= -4.9e+185) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -3.1e-117) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 3.1e-281) {
		tmp = i * ((a * b) - (y * j));
	} else if (z <= 8e-232) {
		tmp = t * ((c * j) - (x * a));
	} else if (z <= 9.6e-78) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -4.9e+185:
		tmp = y * ((x * z) - (i * j))
	elif z <= -3.1e-117:
		tmp = b * (i * (a - (c * (z / i))))
	elif z <= 3.1e-281:
		tmp = i * ((a * b) - (y * j))
	elif z <= 8e-232:
		tmp = t * ((c * j) - (x * a))
	elif z <= 9.6e-78:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -4.9e+185)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (z <= -3.1e-117)
		tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i)))));
	elseif (z <= 3.1e-281)
		tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j)));
	elseif (z <= 8e-232)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a)));
	elseif (z <= 9.6e-78)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -4.9e+185)
		tmp = y * ((x * z) - (i * j));
	elseif (z <= -3.1e-117)
		tmp = b * (i * (a - (c * (z / i))));
	elseif (z <= 3.1e-281)
		tmp = i * ((a * b) - (y * j));
	elseif (z <= 8e-232)
		tmp = t * ((c * j) - (x * a));
	elseif (z <= 9.6e-78)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.9e+185], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-117], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-281], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e-232], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.6e-78], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+185}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\

\mathbf{elif}\;z \leq 3.1 \cdot 10^{-281}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\

\mathbf{elif}\;z \leq 8 \cdot 10^{-232}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\

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

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


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

    1. Initial program 66.9%

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

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

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

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

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

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

    if -4.89999999999999984e185 < z < -3.10000000000000011e-117

    1. Initial program 70.6%

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

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

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

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

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

        \[\leadsto b \cdot \left(i \cdot \left(a + \color{blue}{\left(-\frac{c \cdot z}{i}\right)}\right)\right) \]
      2. unsub-neg61.7%

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

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

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

    if -3.10000000000000011e-117 < z < 3.1000000000000002e-281

    1. Initial program 79.3%

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

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

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

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

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

    if 3.1000000000000002e-281 < z < 8.0000000000000002e-232

    1. Initial program 83.3%

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

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

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

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

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

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

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

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

    if 8.0000000000000002e-232 < z < 9.59999999999999999e-78

    1. Initial program 84.8%

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

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

    if 9.59999999999999999e-78 < z

    1. Initial program 66.6%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.9 \cdot 10^{+185}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -3.1 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 3.1 \cdot 10^{-281}:\\ \;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\ \mathbf{elif}\;z \leq 8 \cdot 10^{-232}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;z \leq 9.6 \cdot 10^{-78}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 50.7% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;c \leq -2.5 \cdot 10^{-21}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;c \leq 860000:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -8.49999999999999978e158 or 8.6e5 < c

    1. Initial program 67.2%

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

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

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

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

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

    if -8.49999999999999978e158 < c < -2.49999999999999986e-21 or -1e-100 < c < 8.6e5

    1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.49999999999999986e-21 < c < -1e-100

    1. Initial program 84.5%

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

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

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

Alternative 14: 42.5% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;z \leq -2.35 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;z \leq 6 \cdot 10^{+169}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.9000000000000001e192

    1. Initial program 64.2%

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

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

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

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

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

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

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

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

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

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

    if -2.9000000000000001e192 < z < -2.34999999999999985e-30 or 6.2000000000000001e-160 < z < 5.9999999999999999e169

    1. Initial program 71.2%

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

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

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

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

    if -2.34999999999999985e-30 < z < 6.2000000000000001e-160

    1. Initial program 80.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 5.9999999999999999e169 < z

    1. Initial program 63.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 70.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 - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. associate-*r*70.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.9 \cdot 10^{+192}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq -2.35 \cdot 10^{-30}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq 6.2 \cdot 10^{-160}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;z \leq 6 \cdot 10^{+169}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 42.5% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;a \leq -7 \cdot 10^{-227}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;a \leq 2.55 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -4.4e-122 or 2.55e29 < a

    1. Initial program 67.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.4e-122 < a < -7.0000000000000002e-227 or 4.8499999999999999e-231 < a < 2.55e29

    1. Initial program 80.0%

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

      \[\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 - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. associate-*r*70.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right)} \]
      2. neg-mul-145.5%

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

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

    if -7.0000000000000002e-227 < a < 4.8499999999999999e-231

    1. Initial program 80.8%

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.4 \cdot 10^{-122}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{elif}\;a \leq -7 \cdot 10^{-227}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \mathbf{elif}\;a \leq 4.85 \cdot 10^{-231}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;a \leq 2.55 \cdot 10^{+29}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 65.5% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -0.00019:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+72}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= y -0.00019)
   (* y (- (* x z) (* i j)))
   (if (<= y 2e+72)
     (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
     (* y (* x (- z (* i (/ j x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (y <= -0.00019) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= 2e+72) {
		tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
	} else {
		tmp = y * (x * (z - (i * (j / x))));
	}
	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 <= (-0.00019d0)) then
        tmp = y * ((x * z) - (i * j))
    else if (y <= 2d+72) then
        tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
    else
        tmp = y * (x * (z - (i * (j / x))))
    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 <= -0.00019) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= 2e+72) {
		tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
	} else {
		tmp = y * (x * (z - (i * (j / x))));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if y <= -0.00019:
		tmp = y * ((x * z) - (i * j))
	elif y <= 2e+72:
		tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
	else:
		tmp = y * (x * (z - (i * (j / x))))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (y <= -0.00019)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (y <= 2e+72)
		tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))));
	else
		tmp = Float64(y * Float64(x * Float64(z - Float64(i * Float64(j / x)))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (y <= -0.00019)
		tmp = y * ((x * z) - (i * j));
	elseif (y <= 2e+72)
		tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
	else
		tmp = y * (x * (z - (i * (j / x))));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -0.00019], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+72], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * N[(z - N[(i * N[(j / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00019:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

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

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


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

    1. Initial program 59.2%

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

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

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

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

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

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

    if -1.9000000000000001e-4 < y < 1.99999999999999989e72

    1. Initial program 84.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.99999999999999989e72 < y

    1. Initial program 48.5%

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

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

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

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

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified71.1%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]
    6. Taylor expanded in x around inf 71.1%

      \[\leadsto y \cdot \color{blue}{\left(x \cdot \left(z + -1 \cdot \frac{i \cdot j}{x}\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg71.1%

        \[\leadsto y \cdot \left(x \cdot \left(z + \color{blue}{\left(-\frac{i \cdot j}{x}\right)}\right)\right) \]
      2. unsub-neg71.1%

        \[\leadsto y \cdot \left(x \cdot \color{blue}{\left(z - \frac{i \cdot j}{x}\right)}\right) \]
      3. associate-/l*71.4%

        \[\leadsto y \cdot \left(x \cdot \left(z - \color{blue}{i \cdot \frac{j}{x}}\right)\right) \]
    8. Simplified71.4%

      \[\leadsto y \cdot \color{blue}{\left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification77.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -0.00019:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq 2 \cdot 10^{+72}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot \left(z - i \cdot \frac{j}{x}\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 29.2% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a \cdot i\right)\\ \mathbf{if}\;i \leq -2.55 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 1.75 \cdot 10^{-205}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;i \leq 4.1 \cdot 10^{-70}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 8.5 \cdot 10^{+132}:\\ \;\;\;\;z \cdot \left(c \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 (* b (* a i))))
   (if (<= i -2.55e+98)
     t_1
     (if (<= i 1.75e-205)
       (* (- a) (* x t))
       (if (<= i 4.1e-70)
         (* y (* x z))
         (if (<= i 8.5e+132) (* z (* c (- 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 = b * (a * i);
	double tmp;
	if (i <= -2.55e+98) {
		tmp = t_1;
	} else if (i <= 1.75e-205) {
		tmp = -a * (x * t);
	} else if (i <= 4.1e-70) {
		tmp = y * (x * z);
	} else if (i <= 8.5e+132) {
		tmp = z * (c * -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 = b * (a * i)
    if (i <= (-2.55d+98)) then
        tmp = t_1
    else if (i <= 1.75d-205) then
        tmp = -a * (x * t)
    else if (i <= 4.1d-70) then
        tmp = y * (x * z)
    else if (i <= 8.5d+132) then
        tmp = z * (c * -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 = b * (a * i);
	double tmp;
	if (i <= -2.55e+98) {
		tmp = t_1;
	} else if (i <= 1.75e-205) {
		tmp = -a * (x * t);
	} else if (i <= 4.1e-70) {
		tmp = y * (x * z);
	} else if (i <= 8.5e+132) {
		tmp = z * (c * -b);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (a * i)
	tmp = 0
	if i <= -2.55e+98:
		tmp = t_1
	elif i <= 1.75e-205:
		tmp = -a * (x * t)
	elif i <= 4.1e-70:
		tmp = y * (x * z)
	elif i <= 8.5e+132:
		tmp = z * (c * -b)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(a * i))
	tmp = 0.0
	if (i <= -2.55e+98)
		tmp = t_1;
	elseif (i <= 1.75e-205)
		tmp = Float64(Float64(-a) * Float64(x * t));
	elseif (i <= 4.1e-70)
		tmp = Float64(y * Float64(x * z));
	elseif (i <= 8.5e+132)
		tmp = Float64(z * Float64(c * 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 = b * (a * i);
	tmp = 0.0;
	if (i <= -2.55e+98)
		tmp = t_1;
	elseif (i <= 1.75e-205)
		tmp = -a * (x * t);
	elseif (i <= 4.1e-70)
		tmp = y * (x * z);
	elseif (i <= 8.5e+132)
		tmp = z * (c * -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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.55e+98], t$95$1, If[LessEqual[i, 1.75e-205], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.1e-70], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e+132], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -2.55 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;i \leq 1.75 \cdot 10^{-205}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\

\mathbf{elif}\;i \leq 4.1 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;i \leq 8.5 \cdot 10^{+132}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -2.54999999999999994e98 or 8.49999999999999969e132 < i

    1. Initial program 65.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 58.7%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative58.7%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified58.7%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 50.2%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if -2.54999999999999994e98 < i < 1.75e-205

    1. Initial program 82.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. +-commutative82.1%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      2. fma-define84.2%

        \[\leadsto \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      3. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, \color{blue}{t \cdot c} - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      4. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - \color{blue}{y \cdot i}, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      5. cancel-sign-sub-inv84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      6. cancel-sign-sub84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      7. sub-neg84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      8. sub-neg84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z - t \cdot a\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      9. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      10. fma-neg84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\mathsf{fma}\left(y, z, -a \cdot t\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      11. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, -\color{blue}{t \cdot a}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      12. distribute-rgt-neg-out84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, \color{blue}{t \cdot \left(-a\right)}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      13. remove-double-neg84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - \color{blue}{b} \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      14. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) \]
      15. *-commutative84.2%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) \]
    3. Simplified84.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 50.8%

      \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
    6. Taylor expanded in a around inf 35.3%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]

    if 1.75e-205 < i < 4.09999999999999977e-70

    1. Initial program 64.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 43.8%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative43.8%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg43.8%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg43.8%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified43.8%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]
    6. Taylor expanded in x around inf 32.3%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-commutative32.3%

        \[\leadsto \color{blue}{\left(y \cdot z\right) \cdot x} \]
      2. associate-*l*43.8%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
    8. Simplified43.8%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if 4.09999999999999977e-70 < i < 8.49999999999999969e132

    1. Initial program 73.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 58.1%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-commutative58.1%

        \[\leadsto z \cdot \left(x \cdot y - \color{blue}{c \cdot b}\right) \]
    5. Simplified58.1%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - c \cdot b\right)} \]
    6. Taylor expanded in x around 0 46.8%

      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right)\right)} \]
    7. Step-by-step derivation
      1. neg-mul-146.8%

        \[\leadsto z \cdot \color{blue}{\left(-b \cdot c\right)} \]
      2. distribute-lft-neg-in46.8%

        \[\leadsto z \cdot \color{blue}{\left(\left(-b\right) \cdot c\right)} \]
      3. *-commutative46.8%

        \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-b\right)\right)} \]
    8. Simplified46.8%

      \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-b\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -2.55 \cdot 10^{+98}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;i \leq 1.75 \cdot 10^{-205}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;i \leq 4.1 \cdot 10^{-70}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 8.5 \cdot 10^{+132}:\\ \;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 29.3% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(a \cdot i\right)\\ \mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{-207}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;i \leq 3.3 \cdot 10^{-70}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{+130}:\\ \;\;\;\;z \cdot \left(c \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 (* b (* a i))))
   (if (<= i -3.5e+98)
     t_1
     (if (<= i 7.5e-207)
       (* (- a) (* x t))
       (if (<= i 3.3e-70)
         (* y (* x z))
         (if (<= i 7.5e+130) (* z (* c (- 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 = b * (a * i);
	double tmp;
	if (i <= -3.5e+98) {
		tmp = t_1;
	} else if (i <= 7.5e-207) {
		tmp = -a * (x * t);
	} else if (i <= 3.3e-70) {
		tmp = y * (x * z);
	} else if (i <= 7.5e+130) {
		tmp = z * (c * -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 = b * (a * i)
    if (i <= (-3.5d+98)) then
        tmp = t_1
    else if (i <= 7.5d-207) then
        tmp = -a * (x * t)
    else if (i <= 3.3d-70) then
        tmp = y * (x * z)
    else if (i <= 7.5d+130) then
        tmp = z * (c * -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 = b * (a * i);
	double tmp;
	if (i <= -3.5e+98) {
		tmp = t_1;
	} else if (i <= 7.5e-207) {
		tmp = -a * (x * t);
	} else if (i <= 3.3e-70) {
		tmp = y * (x * z);
	} else if (i <= 7.5e+130) {
		tmp = z * (c * -b);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (a * i)
	tmp = 0
	if i <= -3.5e+98:
		tmp = t_1
	elif i <= 7.5e-207:
		tmp = -a * (x * t)
	elif i <= 3.3e-70:
		tmp = y * (x * z)
	elif i <= 7.5e+130:
		tmp = z * (c * -b)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(a * i))
	tmp = 0.0
	if (i <= -3.5e+98)
		tmp = t_1;
	elseif (i <= 7.5e-207)
		tmp = Float64(Float64(-a) * Float64(x * t));
	elseif (i <= 3.3e-70)
		tmp = Float64(y * Float64(x * z));
	elseif (i <= 7.5e+130)
		tmp = Float64(z * Float64(c * 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 = b * (a * i);
	tmp = 0.0;
	if (i <= -3.5e+98)
		tmp = t_1;
	elseif (i <= 7.5e-207)
		tmp = -a * (x * t);
	elseif (i <= 3.3e-70)
		tmp = y * (x * z);
	elseif (i <= 7.5e+130)
		tmp = z * (c * -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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+98], t$95$1, If[LessEqual[i, 7.5e-207], N[((-a) * N[(x * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.3e-70], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+130], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;i \leq 7.5 \cdot 10^{-207}:\\
\;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\

\mathbf{elif}\;i \leq 3.3 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;i \leq 7.5 \cdot 10^{+130}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -3.5e98 or 7.5000000000000003e130 < i

    1. Initial program 65.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 58.7%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative58.7%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified58.7%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 50.2%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if -3.5e98 < i < 7.5000000000000006e-207

    1. Initial program 82.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around -inf 72.8%

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(-1 \cdot \left(c \cdot j\right) + \left(-1 \cdot \frac{\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 - a \cdot i\right)}{t} + a \cdot x\right)\right)\right)} \]
    4. Simplified72.9%

      \[\leadsto \color{blue}{\left(\left(x \cdot a - \frac{y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)}{t}\right) - j \cdot c\right) \cdot \left(-t\right)} \]
    5. Taylor expanded in x around inf 43.5%

      \[\leadsto \color{blue}{-1 \cdot \left(t \cdot \left(x \cdot \left(a - \frac{y \cdot z}{t}\right)\right)\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg43.5%

        \[\leadsto \color{blue}{-t \cdot \left(x \cdot \left(a - \frac{y \cdot z}{t}\right)\right)} \]
      2. associate-*r*45.4%

        \[\leadsto -\color{blue}{\left(t \cdot x\right) \cdot \left(a - \frac{y \cdot z}{t}\right)} \]
      3. distribute-rgt-neg-in45.4%

        \[\leadsto \color{blue}{\left(t \cdot x\right) \cdot \left(-\left(a - \frac{y \cdot z}{t}\right)\right)} \]
      4. mul-1-neg45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-1 \cdot \left(a - \frac{y \cdot z}{t}\right)\right)} \]
      5. distribute-lft-out--45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-1 \cdot a - -1 \cdot \frac{y \cdot z}{t}\right)} \]
      6. cancel-sign-sub-inv45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-1 \cdot a + \left(--1\right) \cdot \frac{y \cdot z}{t}\right)} \]
      7. metadata-eval45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \left(-1 \cdot a + \color{blue}{1} \cdot \frac{y \cdot z}{t}\right) \]
      8. *-lft-identity45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \left(-1 \cdot a + \color{blue}{\frac{y \cdot z}{t}}\right) \]
      9. +-commutative45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(\frac{y \cdot z}{t} + -1 \cdot a\right)} \]
      10. mul-1-neg45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \left(\frac{y \cdot z}{t} + \color{blue}{\left(-a\right)}\right) \]
      11. unsub-neg45.4%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(\frac{y \cdot z}{t} - a\right)} \]
      12. associate-/l*45.3%

        \[\leadsto \left(t \cdot x\right) \cdot \left(\color{blue}{y \cdot \frac{z}{t}} - a\right) \]
    7. Simplified45.3%

      \[\leadsto \color{blue}{\left(t \cdot x\right) \cdot \left(y \cdot \frac{z}{t} - a\right)} \]
    8. Taylor expanded in y around 0 35.3%

      \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-1 \cdot a\right)} \]
    9. Step-by-step derivation
      1. neg-mul-135.3%

        \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-a\right)} \]
    10. Simplified35.3%

      \[\leadsto \left(t \cdot x\right) \cdot \color{blue}{\left(-a\right)} \]

    if 7.5000000000000006e-207 < i < 3.30000000000000016e-70

    1. Initial program 64.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 43.8%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative43.8%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg43.8%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg43.8%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified43.8%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]
    6. Taylor expanded in x around inf 32.3%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-commutative32.3%

        \[\leadsto \color{blue}{\left(y \cdot z\right) \cdot x} \]
      2. associate-*l*43.8%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
    8. Simplified43.8%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if 3.30000000000000016e-70 < i < 7.5000000000000003e130

    1. Initial program 73.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 58.1%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-commutative58.1%

        \[\leadsto z \cdot \left(x \cdot y - \color{blue}{c \cdot b}\right) \]
    5. Simplified58.1%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - c \cdot b\right)} \]
    6. Taylor expanded in x around 0 46.8%

      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right)\right)} \]
    7. Step-by-step derivation
      1. neg-mul-146.8%

        \[\leadsto z \cdot \color{blue}{\left(-b \cdot c\right)} \]
      2. distribute-lft-neg-in46.8%

        \[\leadsto z \cdot \color{blue}{\left(\left(-b\right) \cdot c\right)} \]
      3. *-commutative46.8%

        \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-b\right)\right)} \]
    8. Simplified46.8%

      \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-b\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.5 \cdot 10^{+98}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{-207}:\\ \;\;\;\;\left(-a\right) \cdot \left(x \cdot t\right)\\ \mathbf{elif}\;i \leq 3.3 \cdot 10^{-70}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;i \leq 7.5 \cdot 10^{+130}:\\ \;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 29.2% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(-z \cdot c\right)\\ t_2 := b \cdot \left(a \cdot i\right)\\ \mathbf{if}\;a \leq -6 \cdot 10^{-122}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;a \leq -4.5 \cdot 10^{-232}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 9.6 \cdot 10^{-88}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;a \leq 1.22 \cdot 10^{+31}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (- (* z c)))) (t_2 (* b (* a i))))
   (if (<= a -6e-122)
     t_2
     (if (<= a -4.5e-232)
       t_1
       (if (<= a 9.6e-88) (* z (* x y)) (if (<= a 1.22e+31) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * -(z * c);
	double t_2 = b * (a * i);
	double tmp;
	if (a <= -6e-122) {
		tmp = t_2;
	} else if (a <= -4.5e-232) {
		tmp = t_1;
	} else if (a <= 9.6e-88) {
		tmp = z * (x * y);
	} else if (a <= 1.22e+31) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = b * -(z * c)
    t_2 = b * (a * i)
    if (a <= (-6d-122)) then
        tmp = t_2
    else if (a <= (-4.5d-232)) then
        tmp = t_1
    else if (a <= 9.6d-88) then
        tmp = z * (x * y)
    else if (a <= 1.22d+31) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * -(z * c);
	double t_2 = b * (a * i);
	double tmp;
	if (a <= -6e-122) {
		tmp = t_2;
	} else if (a <= -4.5e-232) {
		tmp = t_1;
	} else if (a <= 9.6e-88) {
		tmp = z * (x * y);
	} else if (a <= 1.22e+31) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * -(z * c)
	t_2 = b * (a * i)
	tmp = 0
	if a <= -6e-122:
		tmp = t_2
	elif a <= -4.5e-232:
		tmp = t_1
	elif a <= 9.6e-88:
		tmp = z * (x * y)
	elif a <= 1.22e+31:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(-Float64(z * c)))
	t_2 = Float64(b * Float64(a * i))
	tmp = 0.0
	if (a <= -6e-122)
		tmp = t_2;
	elseif (a <= -4.5e-232)
		tmp = t_1;
	elseif (a <= 9.6e-88)
		tmp = Float64(z * Float64(x * y));
	elseif (a <= 1.22e+31)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * -(z * c);
	t_2 = b * (a * i);
	tmp = 0.0;
	if (a <= -6e-122)
		tmp = t_2;
	elseif (a <= -4.5e-232)
		tmp = t_1;
	elseif (a <= 9.6e-88)
		tmp = z * (x * y);
	elseif (a <= 1.22e+31)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e-122], t$95$2, If[LessEqual[a, -4.5e-232], t$95$1, If[LessEqual[a, 9.6e-88], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.22e+31], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(-z \cdot c\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;a \leq -6 \cdot 10^{-122}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;a \leq -4.5 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 9.6 \cdot 10^{-88}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\

\mathbf{elif}\;a \leq 1.22 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -6.00000000000000009e-122 or 1.22e31 < a

    1. Initial program 67.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 46.4%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative46.4%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified46.4%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 40.8%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if -6.00000000000000009e-122 < a < -4.49999999999999967e-232 or 9.5999999999999998e-88 < a < 1.22e31

    1. Initial program 80.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 53.6%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative53.6%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified53.6%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around 0 51.3%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg51.3%

        \[\leadsto \color{blue}{-b \cdot \left(c \cdot z\right)} \]
      2. *-commutative51.3%

        \[\leadsto -b \cdot \color{blue}{\left(z \cdot c\right)} \]
      3. distribute-rgt-neg-in51.3%

        \[\leadsto \color{blue}{b \cdot \left(-z \cdot c\right)} \]
      4. *-commutative51.3%

        \[\leadsto b \cdot \left(-\color{blue}{c \cdot z}\right) \]
      5. distribute-rgt-neg-in51.3%

        \[\leadsto b \cdot \color{blue}{\left(c \cdot \left(-z\right)\right)} \]
    8. Simplified51.3%

      \[\leadsto \color{blue}{b \cdot \left(c \cdot \left(-z\right)\right)} \]

    if -4.49999999999999967e-232 < a < 9.5999999999999998e-88

    1. Initial program 79.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 68.3%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. associate-*r*68.4%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      2. associate-*r*68.4%

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      3. *-commutative68.4%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      4. associate-*r*68.3%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      5. distribute-rgt-in70.1%

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      6. +-commutative70.1%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      7. mul-1-neg70.1%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      8. unsub-neg70.1%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      9. *-commutative70.1%

        \[\leadsto y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right) \]
    5. Simplified70.1%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)} \]
    6. Taylor expanded in x around inf 33.4%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. associate-*r*35.0%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative35.0%

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
    8. Simplified35.0%

      \[\leadsto \color{blue}{\left(y \cdot x\right) \cdot z} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -6 \cdot 10^{-122}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;a \leq -4.5 \cdot 10^{-232}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \mathbf{elif}\;a \leq 9.6 \cdot 10^{-88}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;a \leq 1.22 \cdot 10^{+31}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 47.8% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -2.6 \cdot 10^{+187}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-26}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 1.48 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -2.6e+187)
   (* y (- (* x z) (* i j)))
   (if (<= z -1.25e-26)
     (* b (* i (- a (* c (/ z i)))))
     (if (<= z 1.48e-77)
       (* a (- (* b i) (* x t)))
       (* 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 (z <= -2.6e+187) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -1.25e-26) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 1.48e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = 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 (z <= (-2.6d+187)) then
        tmp = y * ((x * z) - (i * j))
    else if (z <= (-1.25d-26)) then
        tmp = b * (i * (a - (c * (z / i))))
    else if (z <= 1.48d-77) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = 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 (z <= -2.6e+187) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -1.25e-26) {
		tmp = b * (i * (a - (c * (z / i))));
	} else if (z <= 1.48e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -2.6e+187:
		tmp = y * ((x * z) - (i * j))
	elif z <= -1.25e-26:
		tmp = b * (i * (a - (c * (z / i))))
	elif z <= 1.48e-77:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -2.6e+187)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (z <= -1.25e-26)
		tmp = Float64(b * Float64(i * Float64(a - Float64(c * Float64(z / i)))));
	elseif (z <= 1.48e-77)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -2.6e+187)
		tmp = y * ((x * z) - (i * j));
	elseif (z <= -1.25e-26)
		tmp = b * (i * (a - (c * (z / i))));
	elseif (z <= 1.48e-77)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.6e+187], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.25e-26], N[(b * N[(i * N[(a - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.48e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+187}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;z \leq -1.25 \cdot 10^{-26}:\\
\;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\

\mathbf{elif}\;z \leq 1.48 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -2.5999999999999999e187

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 77.6%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative77.6%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg77.6%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg77.6%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified77.6%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]

    if -2.5999999999999999e187 < z < -1.25000000000000005e-26

    1. Initial program 71.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 63.2%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative63.2%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified63.2%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in i around inf 67.2%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot \left(a + -1 \cdot \frac{c \cdot z}{i}\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg67.2%

        \[\leadsto b \cdot \left(i \cdot \left(a + \color{blue}{\left(-\frac{c \cdot z}{i}\right)}\right)\right) \]
      2. unsub-neg67.2%

        \[\leadsto b \cdot \left(i \cdot \color{blue}{\left(a - \frac{c \cdot z}{i}\right)}\right) \]
      3. associate-/l*67.2%

        \[\leadsto b \cdot \left(i \cdot \left(a - \color{blue}{c \cdot \frac{z}{i}}\right)\right) \]
    8. Simplified67.2%

      \[\leadsto b \cdot \color{blue}{\left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)} \]

    if -1.25000000000000005e-26 < z < 1.48000000000000002e-77

    1. Initial program 79.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around -inf 53.9%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x - b \cdot i\right)\right)} \]

    if 1.48000000000000002e-77 < z

    1. Initial program 66.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-commutative71.5%

        \[\leadsto z \cdot \left(x \cdot y - \color{blue}{c \cdot b}\right) \]
    5. Simplified71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - c \cdot b\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification64.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.6 \cdot 10^{+187}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-26}:\\ \;\;\;\;b \cdot \left(i \cdot \left(a - c \cdot \frac{z}{i}\right)\right)\\ \mathbf{elif}\;z \leq 1.48 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 47.9% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+189}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -1.15 \cdot 10^{-27}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -1.3e+189)
   (* y (- (* x z) (* i j)))
   (if (<= z -1.15e-27)
     (* b (- (* a i) (* z c)))
     (if (<= z 1.5e-77) (* a (- (* b i) (* x t))) (* 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 (z <= -1.3e+189) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -1.15e-27) {
		tmp = b * ((a * i) - (z * c));
	} else if (z <= 1.5e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = 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 (z <= (-1.3d+189)) then
        tmp = y * ((x * z) - (i * j))
    else if (z <= (-1.15d-27)) then
        tmp = b * ((a * i) - (z * c))
    else if (z <= 1.5d-77) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = 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 (z <= -1.3e+189) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -1.15e-27) {
		tmp = b * ((a * i) - (z * c));
	} else if (z <= 1.5e-77) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -1.3e+189:
		tmp = y * ((x * z) - (i * j))
	elif z <= -1.15e-27:
		tmp = b * ((a * i) - (z * c))
	elif z <= 1.5e-77:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -1.3e+189)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (z <= -1.15e-27)
		tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c)));
	elseif (z <= 1.5e-77)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -1.3e+189)
		tmp = y * ((x * z) - (i * j));
	elseif (z <= -1.15e-27)
		tmp = b * ((a * i) - (z * c));
	elseif (z <= 1.5e-77)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.3e+189], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-27], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.5e-77], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{+189}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;z \leq -1.15 \cdot 10^{-27}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\

\mathbf{elif}\;z \leq 1.5 \cdot 10^{-77}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -1.29999999999999991e189

    1. Initial program 64.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 80.5%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative80.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg80.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg80.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified80.5%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]

    if -1.29999999999999991e189 < z < -1.15e-27

    1. Initial program 72.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 62.1%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative62.1%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified62.1%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]

    if -1.15e-27 < z < 1.50000000000000008e-77

    1. Initial program 79.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around -inf 53.9%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x - b \cdot i\right)\right)} \]

    if 1.50000000000000008e-77 < z

    1. Initial program 66.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-commutative71.5%

        \[\leadsto z \cdot \left(x \cdot y - \color{blue}{c \cdot b}\right) \]
    5. Simplified71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - c \cdot b\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification63.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.3 \cdot 10^{+189}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -1.15 \cdot 10^{-27}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq 1.5 \cdot 10^{-77}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 47.9% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+192}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-33}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-78}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -3e+192)
   (* y (- (* x z) (* i j)))
   (if (<= z -3e-33)
     (* b (- (* a i) (* z c)))
     (if (<= z 9.5e-78) (* a (- (* b i) (* x t))) (* 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 (z <= -3e+192) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -3e-33) {
		tmp = b * ((a * i) - (z * c));
	} else if (z <= 9.5e-78) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = 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 (z <= (-3d+192)) then
        tmp = y * ((x * z) - (i * j))
    else if (z <= (-3d-33)) then
        tmp = b * ((a * i) - (z * c))
    else if (z <= 9.5d-78) then
        tmp = a * ((b * i) - (x * t))
    else
        tmp = 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 (z <= -3e+192) {
		tmp = y * ((x * z) - (i * j));
	} else if (z <= -3e-33) {
		tmp = b * ((a * i) - (z * c));
	} else if (z <= 9.5e-78) {
		tmp = a * ((b * i) - (x * t));
	} else {
		tmp = z * ((x * y) - (b * c));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -3e+192:
		tmp = y * ((x * z) - (i * j))
	elif z <= -3e-33:
		tmp = b * ((a * i) - (z * c))
	elif z <= 9.5e-78:
		tmp = a * ((b * i) - (x * t))
	else:
		tmp = z * ((x * y) - (b * c))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -3e+192)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (z <= -3e-33)
		tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c)));
	elseif (z <= 9.5e-78)
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	else
		tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -3e+192)
		tmp = y * ((x * z) - (i * j));
	elseif (z <= -3e-33)
		tmp = b * ((a * i) - (z * c));
	elseif (z <= 9.5e-78)
		tmp = a * ((b * i) - (x * t));
	else
		tmp = z * ((x * y) - (b * c));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3e+192], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e-33], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e-78], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+192}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\

\mathbf{elif}\;z \leq -3 \cdot 10^{-33}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\

\mathbf{elif}\;z \leq 9.5 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if z < -3e192

    1. Initial program 64.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 80.5%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative80.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg80.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg80.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified80.5%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]

    if -3e192 < z < -3.0000000000000002e-33

    1. Initial program 72.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 62.1%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative62.1%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified62.1%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]

    if -3.0000000000000002e-33 < z < 9.4999999999999997e-78

    1. Initial program 79.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around 0 69.5%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. +-commutative69.5%

        \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      2. *-commutative69.5%

        \[\leadsto \left(\color{blue}{\left(j \cdot t\right) \cdot c} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      3. associate-*r*68.5%

        \[\leadsto \left(\color{blue}{j \cdot \left(t \cdot c\right)} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      4. *-commutative68.5%

        \[\leadsto \left(\color{blue}{\left(t \cdot c\right) \cdot j} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      5. associate-*l*69.1%

        \[\leadsto \left(\color{blue}{t \cdot \left(c \cdot j\right)} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      6. mul-1-neg69.1%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      7. associate-*r*63.6%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{\left(a \cdot t\right) \cdot x}\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      8. *-commutative63.6%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{\left(t \cdot a\right)} \cdot x\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      9. associate-*l*66.3%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{t \cdot \left(a \cdot x\right)}\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      10. distribute-rgt-neg-in66.3%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \color{blue}{t \cdot \left(-a \cdot x\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      11. mul-1-neg66.3%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      12. distribute-lft-in67.3%

        \[\leadsto \color{blue}{t \cdot \left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      13. mul-1-neg67.3%

        \[\leadsto t \cdot \left(c \cdot j + \color{blue}{\left(-a \cdot x\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      14. unsub-neg67.3%

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j - a \cdot x\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      15. *-commutative67.3%

        \[\leadsto t \cdot \left(\color{blue}{j \cdot c} - a \cdot x\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      16. *-commutative67.3%

        \[\leadsto t \cdot \left(j \cdot c - \color{blue}{x \cdot a}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      17. *-commutative67.3%

        \[\leadsto t \cdot \left(j \cdot c - x \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right) \]
    5. Simplified67.3%

      \[\leadsto \color{blue}{t \cdot \left(j \cdot c - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)} \]
    6. Taylor expanded in c around 0 52.9%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(a \cdot \left(b \cdot i\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*52.9%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - \color{blue}{\left(-1 \cdot a\right) \cdot \left(b \cdot i\right)} \]
      2. neg-mul-152.9%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - \color{blue}{\left(-a\right)} \cdot \left(b \cdot i\right) \]
      3. cancel-sign-sub52.9%

        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(b \cdot i\right)} \]
      4. mul-1-neg52.9%

        \[\leadsto \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)} + a \cdot \left(b \cdot i\right) \]
      5. distribute-rgt-neg-in52.9%

        \[\leadsto \color{blue}{a \cdot \left(-t \cdot x\right)} + a \cdot \left(b \cdot i\right) \]
      6. mul-1-neg52.9%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} + a \cdot \left(b \cdot i\right) \]
      7. distribute-lft-in53.9%

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
      8. +-commutative53.9%

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i + -1 \cdot \left(t \cdot x\right)\right)} \]
      9. mul-1-neg53.9%

        \[\leadsto a \cdot \left(b \cdot i + \color{blue}{\left(-t \cdot x\right)}\right) \]
      10. unsub-neg53.9%

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i - t \cdot x\right)} \]
    8. Simplified53.9%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i - t \cdot x\right)} \]

    if 9.4999999999999997e-78 < z

    1. Initial program 66.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf 71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-commutative71.5%

        \[\leadsto z \cdot \left(x \cdot y - \color{blue}{c \cdot b}\right) \]
    5. Simplified71.5%

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - c \cdot b\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification63.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3 \cdot 10^{+192}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;z \leq -3 \cdot 10^{-33}:\\ \;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{-78}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 29.3% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -9.5 \cdot 10^{+119}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -6 \cdot 10^{-122} \lor \neg \left(a \leq 1.5 \cdot 10^{+30}\right):\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= a -9.5e+119)
   (* x (* t (- a)))
   (if (or (<= a -6e-122) (not (<= a 1.5e+30)))
     (* b (* a i))
     (* b (- (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (a <= -9.5e+119) {
		tmp = x * (t * -a);
	} else if ((a <= -6e-122) || !(a <= 1.5e+30)) {
		tmp = b * (a * i);
	} else {
		tmp = b * -(z * c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (a <= (-9.5d+119)) then
        tmp = x * (t * -a)
    else if ((a <= (-6d-122)) .or. (.not. (a <= 1.5d+30))) then
        tmp = b * (a * i)
    else
        tmp = b * -(z * c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (a <= -9.5e+119) {
		tmp = x * (t * -a);
	} else if ((a <= -6e-122) || !(a <= 1.5e+30)) {
		tmp = b * (a * i);
	} else {
		tmp = b * -(z * c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if a <= -9.5e+119:
		tmp = x * (t * -a)
	elif (a <= -6e-122) or not (a <= 1.5e+30):
		tmp = b * (a * i)
	else:
		tmp = b * -(z * c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (a <= -9.5e+119)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif ((a <= -6e-122) || !(a <= 1.5e+30))
		tmp = Float64(b * Float64(a * i));
	else
		tmp = Float64(b * Float64(-Float64(z * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (a <= -9.5e+119)
		tmp = x * (t * -a);
	elseif ((a <= -6e-122) || ~((a <= 1.5e+30)))
		tmp = b * (a * i);
	else
		tmp = b * -(z * c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -9.5e+119], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -6e-122], N[Not[LessEqual[a, 1.5e+30]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;a \leq -6 \cdot 10^{-122} \lor \neg \left(a \leq 1.5 \cdot 10^{+30}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(-z \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -9.4999999999999994e119

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. +-commutative65.6%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      2. fma-define70.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      3. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, \color{blue}{t \cdot c} - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      4. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - \color{blue}{y \cdot i}, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      5. cancel-sign-sub-inv70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      6. cancel-sign-sub70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      7. sub-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      8. sub-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z - t \cdot a\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      9. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      10. fma-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\mathsf{fma}\left(y, z, -a \cdot t\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      11. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, -\color{blue}{t \cdot a}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      12. distribute-rgt-neg-out70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, \color{blue}{t \cdot \left(-a\right)}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      13. remove-double-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - \color{blue}{b} \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      14. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) \]
      15. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) \]
    3. Simplified70.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 55.4%

      \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
    6. Taylor expanded in a around inf 46.7%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg46.7%

        \[\leadsto \color{blue}{-a \cdot \left(t \cdot x\right)} \]
      2. associate-*r*49.0%

        \[\leadsto -\color{blue}{\left(a \cdot t\right) \cdot x} \]
      3. distribute-lft-neg-out49.0%

        \[\leadsto \color{blue}{\left(-a \cdot t\right) \cdot x} \]
      4. *-commutative49.0%

        \[\leadsto \color{blue}{x \cdot \left(-a \cdot t\right)} \]
      5. *-commutative49.0%

        \[\leadsto x \cdot \left(-\color{blue}{t \cdot a}\right) \]
      6. distribute-rgt-neg-in49.0%

        \[\leadsto x \cdot \color{blue}{\left(t \cdot \left(-a\right)\right)} \]
    8. Simplified49.0%

      \[\leadsto \color{blue}{x \cdot \left(t \cdot \left(-a\right)\right)} \]

    if -9.4999999999999994e119 < a < -6.00000000000000009e-122 or 1.49999999999999989e30 < a

    1. Initial program 67.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 47.3%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative47.3%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified47.3%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 41.1%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if -6.00000000000000009e-122 < a < 1.49999999999999989e30

    1. Initial program 80.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 70.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 - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. associate-*r*70.1%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      2. associate-*r*70.1%

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      3. *-commutative70.1%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      4. associate-*r*70.9%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      5. distribute-rgt-in71.9%

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      6. +-commutative71.9%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      7. mul-1-neg71.9%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      8. unsub-neg71.9%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      9. *-commutative71.9%

        \[\leadsto y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right) \]
    5. Simplified71.9%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)} \]
    6. Taylor expanded in c around inf 38.7%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*38.7%

        \[\leadsto \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right)} \]
      2. neg-mul-138.7%

        \[\leadsto \color{blue}{\left(-b\right)} \cdot \left(c \cdot z\right) \]
    8. Simplified38.7%

      \[\leadsto \color{blue}{\left(-b\right) \cdot \left(c \cdot z\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -9.5 \cdot 10^{+119}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -6 \cdot 10^{-122} \lor \neg \left(a \leq 1.5 \cdot 10^{+30}\right):\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 29.3% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+122}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -1.8 \cdot 10^{-121} \lor \neg \left(a \leq 8.5 \cdot 10^{+30}\right):\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= a -2.2e+122)
   (* x (* t (- a)))
   (if (or (<= a -1.8e-121) (not (<= a 8.5e+30)))
     (* b (* a i))
     (* b (- (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (a <= -2.2e+122) {
		tmp = x * (t * -a);
	} else if ((a <= -1.8e-121) || !(a <= 8.5e+30)) {
		tmp = b * (a * i);
	} else {
		tmp = b * -(z * c);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (a <= (-2.2d+122)) then
        tmp = x * (t * -a)
    else if ((a <= (-1.8d-121)) .or. (.not. (a <= 8.5d+30))) then
        tmp = b * (a * i)
    else
        tmp = b * -(z * c)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (a <= -2.2e+122) {
		tmp = x * (t * -a);
	} else if ((a <= -1.8e-121) || !(a <= 8.5e+30)) {
		tmp = b * (a * i);
	} else {
		tmp = b * -(z * c);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if a <= -2.2e+122:
		tmp = x * (t * -a)
	elif (a <= -1.8e-121) or not (a <= 8.5e+30):
		tmp = b * (a * i)
	else:
		tmp = b * -(z * c)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (a <= -2.2e+122)
		tmp = Float64(x * Float64(t * Float64(-a)));
	elseif ((a <= -1.8e-121) || !(a <= 8.5e+30))
		tmp = Float64(b * Float64(a * i));
	else
		tmp = Float64(b * Float64(-Float64(z * c)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (a <= -2.2e+122)
		tmp = x * (t * -a);
	elseif ((a <= -1.8e-121) || ~((a <= 8.5e+30)))
		tmp = b * (a * i);
	else
		tmp = b * -(z * c);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2e+122], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -1.8e-121], N[Not[LessEqual[a, 8.5e+30]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(b * (-N[(z * c), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\

\mathbf{elif}\;a \leq -1.8 \cdot 10^{-121} \lor \neg \left(a \leq 8.5 \cdot 10^{+30}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(-z \cdot c\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -2.1999999999999999e122

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. +-commutative65.6%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      2. fma-define70.0%

        \[\leadsto \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      3. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, \color{blue}{t \cdot c} - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      4. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - \color{blue}{y \cdot i}, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      5. cancel-sign-sub-inv70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      6. cancel-sign-sub70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      7. sub-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      8. sub-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z - t \cdot a\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      9. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      10. fma-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\mathsf{fma}\left(y, z, -a \cdot t\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      11. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, -\color{blue}{t \cdot a}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      12. distribute-rgt-neg-out70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, \color{blue}{t \cdot \left(-a\right)}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      13. remove-double-neg70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - \color{blue}{b} \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      14. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) \]
      15. *-commutative70.0%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) \]
    3. Simplified70.0%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 55.4%

      \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
    6. Taylor expanded in a around inf 46.7%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg46.7%

        \[\leadsto \color{blue}{-a \cdot \left(t \cdot x\right)} \]
      2. associate-*r*49.0%

        \[\leadsto -\color{blue}{\left(a \cdot t\right) \cdot x} \]
      3. distribute-lft-neg-out49.0%

        \[\leadsto \color{blue}{\left(-a \cdot t\right) \cdot x} \]
      4. *-commutative49.0%

        \[\leadsto \color{blue}{x \cdot \left(-a \cdot t\right)} \]
      5. *-commutative49.0%

        \[\leadsto x \cdot \left(-\color{blue}{t \cdot a}\right) \]
      6. distribute-rgt-neg-in49.0%

        \[\leadsto x \cdot \color{blue}{\left(t \cdot \left(-a\right)\right)} \]
    8. Simplified49.0%

      \[\leadsto \color{blue}{x \cdot \left(t \cdot \left(-a\right)\right)} \]

    if -2.1999999999999999e122 < a < -1.79999999999999992e-121 or 8.4999999999999995e30 < a

    1. Initial program 67.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 47.3%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative47.3%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified47.3%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 41.1%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if -1.79999999999999992e-121 < a < 8.4999999999999995e30

    1. Initial program 80.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 41.6%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative41.6%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified41.6%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around 0 38.7%

      \[\leadsto \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-neg38.7%

        \[\leadsto \color{blue}{-b \cdot \left(c \cdot z\right)} \]
      2. *-commutative38.7%

        \[\leadsto -b \cdot \color{blue}{\left(z \cdot c\right)} \]
      3. distribute-rgt-neg-in38.7%

        \[\leadsto \color{blue}{b \cdot \left(-z \cdot c\right)} \]
      4. *-commutative38.7%

        \[\leadsto b \cdot \left(-\color{blue}{c \cdot z}\right) \]
      5. distribute-rgt-neg-in38.7%

        \[\leadsto b \cdot \color{blue}{\left(c \cdot \left(-z\right)\right)} \]
    8. Simplified38.7%

      \[\leadsto \color{blue}{b \cdot \left(c \cdot \left(-z\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.2 \cdot 10^{+122}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;a \leq -1.8 \cdot 10^{-121} \lor \neg \left(a \leq 8.5 \cdot 10^{+30}\right):\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(-z \cdot c\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 50.9% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1 \cdot 10^{+159} \lor \neg \left(c \leq 2400000\right):\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= c -1e+159) (not (<= c 2400000.0)))
   (* c (- (* t j) (* z b)))
   (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -1e+159) || !(c <= 2400000.0)) {
		tmp = c * ((t * j) - (z * b));
	} else {
		tmp = a * ((b * i) - (x * t));
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((c <= (-1d+159)) .or. (.not. (c <= 2400000.0d0))) then
        tmp = c * ((t * j) - (z * b))
    else
        tmp = a * ((b * i) - (x * t))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -1e+159) || !(c <= 2400000.0)) {
		tmp = c * ((t * j) - (z * b));
	} else {
		tmp = a * ((b * i) - (x * t));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (c <= -1e+159) or not (c <= 2400000.0):
		tmp = c * ((t * j) - (z * b))
	else:
		tmp = a * ((b * i) - (x * t))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((c <= -1e+159) || !(c <= 2400000.0))
		tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b)));
	else
		tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((c <= -1e+159) || ~((c <= 2400000.0)))
		tmp = c * ((t * j) - (z * b));
	else
		tmp = a * ((b * i) - (x * t));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1e+159], N[Not[LessEqual[c, 2400000.0]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+159} \lor \neg \left(c \leq 2400000\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -9.9999999999999993e158 or 2.4e6 < c

    1. Initial program 67.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in c around inf 65.5%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative65.5%

        \[\leadsto c \cdot \left(\color{blue}{t \cdot j} - b \cdot z\right) \]
      2. *-commutative65.5%

        \[\leadsto c \cdot \left(t \cdot j - \color{blue}{z \cdot b}\right) \]
    5. Simplified65.5%

      \[\leadsto \color{blue}{c \cdot \left(t \cdot j - z \cdot b\right)} \]

    if -9.9999999999999993e158 < c < 2.4e6

    1. Initial program 77.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around 0 60.9%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. +-commutative60.9%

        \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      2. *-commutative60.9%

        \[\leadsto \left(\color{blue}{\left(j \cdot t\right) \cdot c} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      3. associate-*r*61.5%

        \[\leadsto \left(\color{blue}{j \cdot \left(t \cdot c\right)} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      4. *-commutative61.5%

        \[\leadsto \left(\color{blue}{\left(t \cdot c\right) \cdot j} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      5. associate-*l*61.5%

        \[\leadsto \left(\color{blue}{t \cdot \left(c \cdot j\right)} + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      6. mul-1-neg61.5%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      7. associate-*r*54.9%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{\left(a \cdot t\right) \cdot x}\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      8. *-commutative54.9%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{\left(t \cdot a\right)} \cdot x\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      9. associate-*l*56.8%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \left(-\color{blue}{t \cdot \left(a \cdot x\right)}\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      10. distribute-rgt-neg-in56.8%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + \color{blue}{t \cdot \left(-a \cdot x\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      11. mul-1-neg56.8%

        \[\leadsto \left(t \cdot \left(c \cdot j\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      12. distribute-lft-in57.5%

        \[\leadsto \color{blue}{t \cdot \left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      13. mul-1-neg57.5%

        \[\leadsto t \cdot \left(c \cdot j + \color{blue}{\left(-a \cdot x\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      14. unsub-neg57.5%

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j - a \cdot x\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      15. *-commutative57.5%

        \[\leadsto t \cdot \left(\color{blue}{j \cdot c} - a \cdot x\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      16. *-commutative57.5%

        \[\leadsto t \cdot \left(j \cdot c - \color{blue}{x \cdot a}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      17. *-commutative57.5%

        \[\leadsto t \cdot \left(j \cdot c - x \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right) \]
    5. Simplified57.5%

      \[\leadsto \color{blue}{t \cdot \left(j \cdot c - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)} \]
    6. Taylor expanded in c around 0 50.8%

      \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(a \cdot \left(b \cdot i\right)\right)} \]
    7. Step-by-step derivation
      1. associate-*r*50.8%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - \color{blue}{\left(-1 \cdot a\right) \cdot \left(b \cdot i\right)} \]
      2. neg-mul-150.8%

        \[\leadsto -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - \color{blue}{\left(-a\right)} \cdot \left(b \cdot i\right) \]
      3. cancel-sign-sub50.8%

        \[\leadsto \color{blue}{-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(b \cdot i\right)} \]
      4. mul-1-neg50.8%

        \[\leadsto \color{blue}{\left(-a \cdot \left(t \cdot x\right)\right)} + a \cdot \left(b \cdot i\right) \]
      5. distribute-rgt-neg-in50.8%

        \[\leadsto \color{blue}{a \cdot \left(-t \cdot x\right)} + a \cdot \left(b \cdot i\right) \]
      6. mul-1-neg50.8%

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right)\right)} + a \cdot \left(b \cdot i\right) \]
      7. distribute-lft-in52.9%

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
      8. +-commutative52.9%

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i + -1 \cdot \left(t \cdot x\right)\right)} \]
      9. mul-1-neg52.9%

        \[\leadsto a \cdot \left(b \cdot i + \color{blue}{\left(-t \cdot x\right)}\right) \]
      10. unsub-neg52.9%

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i - t \cdot x\right)} \]
    8. Simplified52.9%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i - t \cdot x\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification58.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1 \cdot 10^{+159} \lor \neg \left(c \leq 2400000\right):\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 26: 29.9% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+132} \lor \neg \left(z \leq 1.6 \cdot 10^{-10}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= z -7e+132) (not (<= z 1.6e-10))) (* y (* x z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((z <= -7e+132) || !(z <= 1.6e-10)) {
		tmp = y * (x * z);
	} else {
		tmp = b * (a * 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 ((z <= (-7d+132)) .or. (.not. (z <= 1.6d-10))) then
        tmp = y * (x * z)
    else
        tmp = b * (a * 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 ((z <= -7e+132) || !(z <= 1.6e-10)) {
		tmp = y * (x * z);
	} else {
		tmp = b * (a * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (z <= -7e+132) or not (z <= 1.6e-10):
		tmp = y * (x * z)
	else:
		tmp = b * (a * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((z <= -7e+132) || !(z <= 1.6e-10))
		tmp = Float64(y * Float64(x * z));
	else
		tmp = Float64(b * Float64(a * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((z <= -7e+132) || ~((z <= 1.6e-10)))
		tmp = y * (x * z);
	else
		tmp = b * (a * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -7e+132], N[Not[LessEqual[z, 1.6e-10]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+132} \lor \neg \left(z \leq 1.6 \cdot 10^{-10}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -7.00000000000000041e132 or 1.5999999999999999e-10 < z

    1. Initial program 65.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 58.4%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative58.4%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg58.4%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg58.4%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified58.4%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]
    6. Taylor expanded in x around inf 43.8%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-commutative43.8%

        \[\leadsto \color{blue}{\left(y \cdot z\right) \cdot x} \]
      2. associate-*l*47.5%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
    8. Simplified47.5%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -7.00000000000000041e132 < z < 1.5999999999999999e-10

    1. Initial program 77.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 45.0%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative45.0%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified45.0%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 31.5%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification37.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7 \cdot 10^{+132} \lor \neg \left(z \leq 1.6 \cdot 10^{-10}\right):\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 29.0% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+196} \lor \neg \left(z \leq 6.8 \cdot 10^{-12}\right):\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= z -1.9e+196) (not (<= z 6.8e-12))) (* x (* y z)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((z <= -1.9e+196) || !(z <= 6.8e-12)) {
		tmp = x * (y * z);
	} else {
		tmp = b * (a * 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 ((z <= (-1.9d+196)) .or. (.not. (z <= 6.8d-12))) then
        tmp = x * (y * z)
    else
        tmp = b * (a * 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 ((z <= -1.9e+196) || !(z <= 6.8e-12)) {
		tmp = x * (y * z);
	} else {
		tmp = b * (a * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (z <= -1.9e+196) or not (z <= 6.8e-12):
		tmp = x * (y * z)
	else:
		tmp = b * (a * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((z <= -1.9e+196) || !(z <= 6.8e-12))
		tmp = Float64(x * Float64(y * z));
	else
		tmp = Float64(b * Float64(a * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((z <= -1.9e+196) || ~((z <= 6.8e-12)))
		tmp = x * (y * z);
	else
		tmp = b * (a * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.9e+196], N[Not[LessEqual[z, 6.8e-12]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+196} \lor \neg \left(z \leq 6.8 \cdot 10^{-12}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -1.9000000000000001e196 or 6.8000000000000001e-12 < z

    1. Initial program 65.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Step-by-step derivation
      1. +-commutative65.0%

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      2. fma-define67.4%

        \[\leadsto \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)} \]
      3. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, \color{blue}{t \cdot c} - i \cdot y, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      4. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - \color{blue}{y \cdot i}, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      5. cancel-sign-sub-inv67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) + \left(-b\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      6. cancel-sign-sub67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)}\right) \]
      7. sub-neg67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z + \left(-t \cdot a\right)\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      8. sub-neg67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\left(y \cdot z - t \cdot a\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      9. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \left(y \cdot z - \color{blue}{a \cdot t}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      10. fma-neg67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \color{blue}{\mathsf{fma}\left(y, z, -a \cdot t\right)} - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      11. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, -\color{blue}{t \cdot a}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      12. distribute-rgt-neg-out67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, \color{blue}{t \cdot \left(-a\right)}\right) - \left(-\left(-b\right)\right) \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      13. remove-double-neg67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - \color{blue}{b} \cdot \left(c \cdot z - i \cdot a\right)\right) \]
      14. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(\color{blue}{z \cdot c} - i \cdot a\right)\right) \]
      15. *-commutative67.4%

        \[\leadsto \mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - \color{blue}{a \cdot i}\right)\right) \]
    3. Simplified67.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, t \cdot c - y \cdot i, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right)} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 54.4%

      \[\leadsto \color{blue}{x \cdot \left(-1 \cdot \left(a \cdot t\right) + y \cdot z\right)} \]
    6. Taylor expanded in a around 0 48.3%

      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-commutative48.3%

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified48.3%

      \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]

    if -1.9000000000000001e196 < z < 6.8000000000000001e-12

    1. Initial program 76.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 44.8%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative44.8%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified44.8%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 30.6%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification36.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.9 \cdot 10^{+196} \lor \neg \left(z \leq 6.8 \cdot 10^{-12}\right):\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 28: 29.2% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -5.3 \cdot 10^{+106} \lor \neg \left(c \leq 800000\right):\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (or (<= c -5.3e+106) (not (<= c 800000.0))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -5.3e+106) || !(c <= 800000.0)) {
		tmp = c * (t * j);
	} else {
		tmp = b * (a * i);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if ((c <= (-5.3d+106)) .or. (.not. (c <= 800000.0d0))) then
        tmp = c * (t * j)
    else
        tmp = b * (a * i)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if ((c <= -5.3e+106) || !(c <= 800000.0)) {
		tmp = c * (t * j);
	} else {
		tmp = b * (a * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if (c <= -5.3e+106) or not (c <= 800000.0):
		tmp = c * (t * j)
	else:
		tmp = b * (a * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if ((c <= -5.3e+106) || !(c <= 800000.0))
		tmp = Float64(c * Float64(t * j));
	else
		tmp = Float64(b * Float64(a * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if ((c <= -5.3e+106) || ~((c <= 800000.0)))
		tmp = c * (t * j);
	else
		tmp = b * (a * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -5.3e+106], N[Not[LessEqual[c, 800000.0]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.3 \cdot 10^{+106} \lor \neg \left(c \leq 800000\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -5.3e106 or 8e5 < c

    1. Initial program 67.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf 43.0%

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. +-commutative43.0%

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
      2. mul-1-neg43.0%

        \[\leadsto t \cdot \left(c \cdot j + \color{blue}{\left(-a \cdot x\right)}\right) \]
      3. unsub-neg43.0%

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j - a \cdot x\right)} \]
      4. *-commutative43.0%

        \[\leadsto t \cdot \left(\color{blue}{j \cdot c} - a \cdot x\right) \]
      5. *-commutative43.0%

        \[\leadsto t \cdot \left(j \cdot c - \color{blue}{x \cdot a}\right) \]
    5. Simplified43.0%

      \[\leadsto \color{blue}{t \cdot \left(j \cdot c - x \cdot a\right)} \]
    6. Taylor expanded in j around inf 35.3%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-commutative35.3%

        \[\leadsto c \cdot \color{blue}{\left(t \cdot j\right)} \]
    8. Simplified35.3%

      \[\leadsto \color{blue}{c \cdot \left(t \cdot j\right)} \]

    if -5.3e106 < c < 8e5

    1. Initial program 77.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 40.5%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative40.5%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified40.5%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 33.0%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification34.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -5.3 \cdot 10^{+106} \lor \neg \left(c \leq 800000\right):\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 29: 29.7% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{-12}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -1.35e+133)
   (* y (* x z))
   (if (<= z 2.3e-12) (* b (* a i)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (z <= -1.35e+133) {
		tmp = y * (x * z);
	} else if (z <= 2.3e-12) {
		tmp = b * (a * i);
	} else {
		tmp = z * (x * y);
	}
	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 <= (-1.35d+133)) then
        tmp = y * (x * z)
    else if (z <= 2.3d-12) then
        tmp = b * (a * i)
    else
        tmp = z * (x * y)
    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 <= -1.35e+133) {
		tmp = y * (x * z);
	} else if (z <= 2.3e-12) {
		tmp = b * (a * i);
	} else {
		tmp = z * (x * y);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if z <= -1.35e+133:
		tmp = y * (x * z)
	elif z <= 2.3e-12:
		tmp = b * (a * i)
	else:
		tmp = z * (x * y)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -1.35e+133)
		tmp = Float64(y * Float64(x * z));
	elseif (z <= 2.3e-12)
		tmp = Float64(b * Float64(a * i));
	else
		tmp = Float64(z * Float64(x * y));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (z <= -1.35e+133)
		tmp = y * (x * z);
	elseif (z <= 2.3e-12)
		tmp = b * (a * i);
	else
		tmp = z * (x * y);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.35e+133], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e-12], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.35 \cdot 10^{+133}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\

\mathbf{elif}\;z \leq 2.3 \cdot 10^{-12}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -1.3500000000000001e133

    1. Initial program 66.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf 64.6%

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. +-commutative64.6%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} \]
      2. mul-1-neg64.6%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) \]
      3. unsub-neg64.6%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} \]
    5. Simplified64.6%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right)} \]
    6. Taylor expanded in x around inf 53.2%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-commutative53.2%

        \[\leadsto \color{blue}{\left(y \cdot z\right) \cdot x} \]
      2. associate-*l*55.7%

        \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]
    8. Simplified55.7%

      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} \]

    if -1.3500000000000001e133 < z < 2.29999999999999989e-12

    1. Initial program 77.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf 45.0%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-commutative45.0%

        \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
    5. Simplified45.0%

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
    6. Taylor expanded in a around inf 31.5%

      \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]

    if 2.29999999999999989e-12 < z

    1. Initial program 64.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around 0 64.2%

      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    4. Step-by-step derivation
      1. associate-*r*64.2%

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      2. associate-*r*64.2%

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      3. *-commutative64.2%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      4. associate-*r*68.7%

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      5. distribute-rgt-in73.5%

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      6. +-commutative73.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z + -1 \cdot \left(i \cdot j\right)\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      7. mul-1-neg73.5%

        \[\leadsto y \cdot \left(x \cdot z + \color{blue}{\left(-i \cdot j\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      8. unsub-neg73.5%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      9. *-commutative73.5%

        \[\leadsto y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(\color{blue}{z \cdot c} - a \cdot i\right) \]
    5. Simplified73.5%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - a \cdot i\right)} \]
    6. Taylor expanded in x around inf 38.9%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. associate-*r*44.9%

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
      2. *-commutative44.9%

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z \]
    8. Simplified44.9%

      \[\leadsto \color{blue}{\left(y \cdot x\right) \cdot z} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification37.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.35 \cdot 10^{+133}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq 2.3 \cdot 10^{-12}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 30: 22.0% accurate, 5.8× speedup?

\[\begin{array}{l} \\ b \cdot \left(a \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j):
	return b * (a * i)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(b * Float64(a * i))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = b * (a * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
b \cdot \left(a \cdot i\right)
\end{array}
Derivation
  1. Initial program 72.7%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
  2. Add Preprocessing
  3. Taylor expanded in b around inf 44.4%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
  4. Step-by-step derivation
    1. *-commutative44.4%

      \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
  5. Simplified44.4%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
  6. Taylor expanded in a around inf 26.2%

    \[\leadsto b \cdot \color{blue}{\left(a \cdot i\right)} \]
  7. Add Preprocessing

Alternative 31: 22.1% accurate, 5.8× speedup?

\[\begin{array}{l} \\ a \cdot \left(b \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j):
	return a * (b * i)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(a * Float64(b * i))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = a * (b * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(b \cdot i\right)
\end{array}
Derivation
  1. Initial program 72.7%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
  2. Add Preprocessing
  3. Taylor expanded in b around inf 44.4%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
  4. Step-by-step derivation
    1. *-commutative44.4%

      \[\leadsto b \cdot \left(a \cdot i - \color{blue}{z \cdot c}\right) \]
  5. Simplified44.4%

    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - z \cdot c\right)} \]
  6. Taylor expanded in a around inf 24.3%

    \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  7. Add Preprocessing

Developer target: 69.4% accurate, 0.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;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
         (+
          (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
          (/
           (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
           (+ (* c t) (* i y)))))
        (t_2
         (-
          (* x (- (* z y) (* a t)))
          (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
   (if (< t -8.120978919195912e-33)
     t_2
     (if (< t -4.712553818218485e-169)
       t_1
       (if (< t -7.633533346031584e-308)
         t_2
         (if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
    t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
    if (t < (-8.120978919195912d-33)) then
        tmp = t_2
    else if (t < (-4.712553818218485d-169)) then
        tmp = t_1
    else if (t < (-7.633533346031584d-308)) then
        tmp = t_2
    else if (t < 1.0535888557455487d-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
	tmp = 0
	if t < -8.120978919195912e-33:
		tmp = t_2
	elif t < -4.712553818218485e-169:
		tmp = t_1
	elif t < -7.633533346031584e-308:
		tmp = t_2
	elif t < 1.0535888557455487e-139:
		tmp = t_1
	else:
		tmp = t_2
	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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
	tmp = 0.0
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	tmp = 0.0;
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024103 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  :precision binary64

  :alt
  (if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))