Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 74.1% → 82.7%
Time: 17.5s
Alternatives: 17
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 17 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.1% 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: 82.7% 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 c - y \cdot i\\ \mathbf{if}\;j \cdot t\_2 + \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) \leq \infty:\\ \;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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) (* y i))))
   (if (<= (+ (* j t_2) (+ (* x (- (* y z) (* t a))) t_1)) INFINITY)
     (fma j t_2 (+ (* x (fma y z (* t (- a)))) t_1))
     (* c (- (* t j) (* z b))))))
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) - (y * i);
	double tmp;
	if (((j * t_2) + ((x * ((y * z) - (t * a))) + t_1)) <= ((double) INFINITY)) {
		tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) + t_1));
	} else {
		tmp = c * ((t * j) - (z * b));
	}
	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(Float64(t * c) - Float64(y * i))
	tmp = 0.0
	if (Float64(Float64(j * t_2) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1)) <= Inf)
		tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1));
	else
		tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b)));
	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[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $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 c - y \cdot i\\
\mathbf{if}\;j \cdot t\_2 + \left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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 95.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. Step-by-step derivation
      1. +-commutative95.2%

        \[\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-define95.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. *-commutative95.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. *-commutative95.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-inv95.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-sub95.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-neg95.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-neg95.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. *-commutative95.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. fmm-def95.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. *-commutative95.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-out95.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-neg95.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. *-commutative95.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(c \cdot z - \color{blue}{a \cdot i}\right)\right) \]
      15. *-commutative95.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} - a \cdot i\right)\right) \]
    3. Simplified95.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

    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 c around inf 50.7%

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

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

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

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

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

Alternative 2: 82.7% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\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 95.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

    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 c around inf 50.7%

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

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

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

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

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

Alternative 3: 64.4% accurate, 0.6× speedup?

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

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

\mathbf{elif}\;i \leq -2.7 \cdot 10^{-294}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;i \leq 2.9 \cdot 10^{-194}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\

\mathbf{elif}\;i \leq 2600000000000:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -6.9999999999999994e66 or 1.02e104 < i

    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 i around inf 78.9%

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

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

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

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

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

        \[\leadsto i \cdot \left(j \cdot \left(\color{blue}{\left(-y\right)} + \frac{a \cdot b}{j}\right)\right) \]
      2. +-commutative79.0%

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

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

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

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

    if -6.9999999999999994e66 < i < -2.7000000000000001e-294 or 2.8999999999999997e-194 < i < 2.6e12

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.7000000000000001e-294 < i < 2.8999999999999997e-194

    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 c around inf 82.0%

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

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

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

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

    if 2.6e12 < i < 1.02e104

    1. Initial program 78.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 78.8%

      \[\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. mul-1-neg78.8%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(y \cdot \left(-1 \cdot \left(i \cdot j\right)\right) + y \cdot \color{blue}{\left(x \cdot z\right)}\right) - b \cdot \left(c \cdot z - a \cdot i\right) \]
      12. distribute-lft-in89.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) \]
      13. +-commutative89.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) \]
      14. mul-1-neg89.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) \]
      15. unsub-neg89.3%

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z - i \cdot j\right)} - b \cdot \left(c \cdot z - a \cdot i\right) \]
      16. *-commutative89.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. Simplified89.3%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -7 \cdot 10^{+66}:\\ \;\;\;\;i \cdot \left(j \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\ \mathbf{elif}\;i \leq -2.7 \cdot 10^{-294}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - \left(z \cdot \left(b \cdot c\right) - x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\right)\\ \mathbf{elif}\;i \leq 2.9 \cdot 10^{-194}:\\ \;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{elif}\;i \leq 2600000000000:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - \left(z \cdot \left(b \cdot c\right) - x \cdot \left(a \cdot \left(y \cdot \frac{z}{a} - t\right)\right)\right)\\ \mathbf{elif}\;i \leq 1.02 \cdot 10^{+104}:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(j \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 28.6% accurate, 0.8× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;z \leq -18:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\

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

\mathbf{elif}\;z \leq 5.2 \cdot 10^{-295}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\

\mathbf{elif}\;z \leq 3.5 \cdot 10^{-80}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\

\mathbf{elif}\;z \leq 1.516 \cdot 10^{-32}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 7 regimes
  2. if z < -18

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

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

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

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

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

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

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

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

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

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

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

    if -18 < z < -1.5499999999999999e-232

    1. Initial program 78.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 50.3%

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

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

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

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

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

    if -1.5499999999999999e-232 < z < 5.1999999999999997e-295

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

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

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

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

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

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

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

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

    if 5.1999999999999997e-295 < z < 3.50000000000000015e-80

    1. Initial program 86.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 50.1%

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

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

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

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

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

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

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

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

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

    if 3.50000000000000015e-80 < z < 1.516e-32

    1. Initial program 89.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 0 64.0%

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

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

    if 1.516e-32 < z < 2.79999999999999987e110

    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 y around inf 69.7%

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

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

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

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

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

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

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

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

    if 2.79999999999999987e110 < z

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(c \cdot z\right) \cdot b\right)} \]
      2. neg-mul-145.9%

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

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

        \[\leadsto \color{blue}{c \cdot \left(z \cdot \left(-b\right)\right)} \]
    11. Simplified49.1%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -18:\\ \;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\ \mathbf{elif}\;z \leq -1.55 \cdot 10^{-232}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{-295}:\\ \;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\ \mathbf{elif}\;z \leq 3.5 \cdot 10^{-80}:\\ \;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\ \mathbf{elif}\;z \leq 1.516 \cdot 10^{-32}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+110}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 52.1% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\ \mathbf{if}\;y \leq -23000:\\ \;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{elif}\;y \leq -1.3 \cdot 10^{-289}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 10^{-117}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(j \cdot \left(x \cdot \frac{z}{j} - i\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* c (- (* t j) (* z b)))))
   (if (<= y -23000.0)
     (* y (- (* x z) (* i j)))
     (if (<= y -1.3e-289)
       t_1
       (if (<= y 1e-117)
         (* t (- (* c j) (* x a)))
         (if (<= y 4.3e-8) t_1 (* y (* j (- (* x (/ z j)) i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = c * ((t * j) - (z * b));
	double tmp;
	if (y <= -23000.0) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= -1.3e-289) {
		tmp = t_1;
	} else if (y <= 1e-117) {
		tmp = t * ((c * j) - (x * a));
	} else if (y <= 4.3e-8) {
		tmp = t_1;
	} else {
		tmp = y * (j * ((x * (z / j)) - 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 = c * ((t * j) - (z * b))
    if (y <= (-23000.0d0)) then
        tmp = y * ((x * z) - (i * j))
    else if (y <= (-1.3d-289)) then
        tmp = t_1
    else if (y <= 1d-117) then
        tmp = t * ((c * j) - (x * a))
    else if (y <= 4.3d-8) then
        tmp = t_1
    else
        tmp = y * (j * ((x * (z / j)) - 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 = c * ((t * j) - (z * b));
	double tmp;
	if (y <= -23000.0) {
		tmp = y * ((x * z) - (i * j));
	} else if (y <= -1.3e-289) {
		tmp = t_1;
	} else if (y <= 1e-117) {
		tmp = t * ((c * j) - (x * a));
	} else if (y <= 4.3e-8) {
		tmp = t_1;
	} else {
		tmp = y * (j * ((x * (z / j)) - i));
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * ((t * j) - (z * b))
	tmp = 0
	if y <= -23000.0:
		tmp = y * ((x * z) - (i * j))
	elif y <= -1.3e-289:
		tmp = t_1
	elif y <= 1e-117:
		tmp = t * ((c * j) - (x * a))
	elif y <= 4.3e-8:
		tmp = t_1
	else:
		tmp = y * (j * ((x * (z / j)) - i))
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b)))
	tmp = 0.0
	if (y <= -23000.0)
		tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j)));
	elseif (y <= -1.3e-289)
		tmp = t_1;
	elseif (y <= 1e-117)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a)));
	elseif (y <= 4.3e-8)
		tmp = t_1;
	else
		tmp = Float64(y * Float64(j * Float64(Float64(x * Float64(z / j)) - i)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = c * ((t * j) - (z * b));
	tmp = 0.0;
	if (y <= -23000.0)
		tmp = y * ((x * z) - (i * j));
	elseif (y <= -1.3e-289)
		tmp = t_1;
	elseif (y <= 1e-117)
		tmp = t * ((c * j) - (x * a));
	elseif (y <= 4.3e-8)
		tmp = t_1;
	else
		tmp = y * (j * ((x * (z / j)) - i));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -23000.0], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.3e-289], t$95$1, If[LessEqual[y, 1e-117], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e-8], t$95$1, N[(y * N[(j * N[(N[(x * N[(z / j), $MachinePrecision]), $MachinePrecision] - i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -1.3 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 4.3 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\

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


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

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

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

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

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

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

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

    if -23000 < y < -1.2999999999999999e-289 or 1.00000000000000003e-117 < y < 4.3000000000000001e-8

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

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

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

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

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

    if -1.2999999999999999e-289 < y < 1.00000000000000003e-117

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

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

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

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

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

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

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

    if 4.3000000000000001e-8 < y

    1. Initial program 61.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 inf 70.6%

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

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

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

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

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

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

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

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

Alternative 6: 52.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\ t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\ \mathbf{if}\;y \leq -1.1:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;y \leq -2.3 \cdot 10^{-289}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-117}:\\ \;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\ \mathbf{elif}\;y \leq 2.75 \cdot 10^{-8}:\\ \;\;\;\;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 (* c (- (* t j) (* z b)))) (t_2 (* y (- (* x z) (* i j)))))
   (if (<= y -1.1)
     t_2
     (if (<= y -2.3e-289)
       t_1
       (if (<= y 7e-117)
         (* t (- (* c j) (* x a)))
         (if (<= y 2.75e-8) 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 = c * ((t * j) - (z * b));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -1.1) {
		tmp = t_2;
	} else if (y <= -2.3e-289) {
		tmp = t_1;
	} else if (y <= 7e-117) {
		tmp = t * ((c * j) - (x * a));
	} else if (y <= 2.75e-8) {
		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 = c * ((t * j) - (z * b))
    t_2 = y * ((x * z) - (i * j))
    if (y <= (-1.1d0)) then
        tmp = t_2
    else if (y <= (-2.3d-289)) then
        tmp = t_1
    else if (y <= 7d-117) then
        tmp = t * ((c * j) - (x * a))
    else if (y <= 2.75d-8) 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 = c * ((t * j) - (z * b));
	double t_2 = y * ((x * z) - (i * j));
	double tmp;
	if (y <= -1.1) {
		tmp = t_2;
	} else if (y <= -2.3e-289) {
		tmp = t_1;
	} else if (y <= 7e-117) {
		tmp = t * ((c * j) - (x * a));
	} else if (y <= 2.75e-8) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = c * ((t * j) - (z * b))
	t_2 = y * ((x * z) - (i * j))
	tmp = 0
	if y <= -1.1:
		tmp = t_2
	elif y <= -2.3e-289:
		tmp = t_1
	elif y <= 7e-117:
		tmp = t * ((c * j) - (x * a))
	elif y <= 2.75e-8:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b)))
	t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j)))
	tmp = 0.0
	if (y <= -1.1)
		tmp = t_2;
	elseif (y <= -2.3e-289)
		tmp = t_1;
	elseif (y <= 7e-117)
		tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a)));
	elseif (y <= 2.75e-8)
		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 = c * ((t * j) - (z * b));
	t_2 = y * ((x * z) - (i * j));
	tmp = 0.0;
	if (y <= -1.1)
		tmp = t_2;
	elseif (y <= -2.3e-289)
		tmp = t_1;
	elseif (y <= 7e-117)
		tmp = t * ((c * j) - (x * a));
	elseif (y <= 2.75e-8)
		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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1], t$95$2, If[LessEqual[y, -2.3e-289], t$95$1, If[LessEqual[y, 7e-117], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.75e-8], t$95$1, t$95$2]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;y \leq -2.3 \cdot 10^{-289}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;y \leq 2.75 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -1.1000000000000001 or 2.7500000000000001e-8 < y

    1. Initial program 70.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 69.4%

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

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

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

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

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

    if -1.1000000000000001 < y < -2.3000000000000002e-289 or 6.9999999999999997e-117 < y < 2.7500000000000001e-8

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

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

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

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

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

    if -2.3000000000000002e-289 < y < 6.9999999999999997e-117

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

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

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

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

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

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

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

Alternative 7: 70.4% accurate, 1.0× speedup?

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.06e-70 or 4.5e16 < j

    1. Initial program 73.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 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.06e-70 < j < 4.5e16

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

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

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

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

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

Alternative 8: 65.8% accurate, 1.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.05 \cdot 10^{+104} \lor \neg \left(b \leq 1.15 \cdot 10^{+259}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -2.04999999999999992e104 or 1.1500000000000001e259 < b

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

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

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

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

    if -2.04999999999999992e104 < b < 1.1500000000000001e259

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

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

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

Alternative 9: 28.5% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(a \cdot b\right)\\ \mathbf{if}\;a \leq -2.6 \cdot 10^{+143}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -2.55 \cdot 10^{-139}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;a \leq 1.52 \cdot 10^{+84}:\\ \;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\ \mathbf{elif}\;a \leq 2.3 \cdot 10^{+254}:\\ \;\;\;\;a \cdot \left(t \cdot \left(-x\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 (* i (* a b))))
   (if (<= a -2.6e+143)
     t_1
     (if (<= a -2.55e-139)
       (* c (* t j))
       (if (<= a 1.52e+84)
         (* i (* j (- y)))
         (if (<= a 2.3e+254) (* a (* t (- x))) 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 = i * (a * b);
	double tmp;
	if (a <= -2.6e+143) {
		tmp = t_1;
	} else if (a <= -2.55e-139) {
		tmp = c * (t * j);
	} else if (a <= 1.52e+84) {
		tmp = i * (j * -y);
	} else if (a <= 2.3e+254) {
		tmp = a * (t * -x);
	} 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 = i * (a * b)
    if (a <= (-2.6d+143)) then
        tmp = t_1
    else if (a <= (-2.55d-139)) then
        tmp = c * (t * j)
    else if (a <= 1.52d+84) then
        tmp = i * (j * -y)
    else if (a <= 2.3d+254) then
        tmp = a * (t * -x)
    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 = i * (a * b);
	double tmp;
	if (a <= -2.6e+143) {
		tmp = t_1;
	} else if (a <= -2.55e-139) {
		tmp = c * (t * j);
	} else if (a <= 1.52e+84) {
		tmp = i * (j * -y);
	} else if (a <= 2.3e+254) {
		tmp = a * (t * -x);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = i * (a * b)
	tmp = 0
	if a <= -2.6e+143:
		tmp = t_1
	elif a <= -2.55e-139:
		tmp = c * (t * j)
	elif a <= 1.52e+84:
		tmp = i * (j * -y)
	elif a <= 2.3e+254:
		tmp = a * (t * -x)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * Float64(a * b))
	tmp = 0.0
	if (a <= -2.6e+143)
		tmp = t_1;
	elseif (a <= -2.55e-139)
		tmp = Float64(c * Float64(t * j));
	elseif (a <= 1.52e+84)
		tmp = Float64(i * Float64(j * Float64(-y)));
	elseif (a <= 2.3e+254)
		tmp = Float64(a * Float64(t * Float64(-x)));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = i * (a * b);
	tmp = 0.0;
	if (a <= -2.6e+143)
		tmp = t_1;
	elseif (a <= -2.55e-139)
		tmp = c * (t * j);
	elseif (a <= 1.52e+84)
		tmp = i * (j * -y);
	elseif (a <= 2.3e+254)
		tmp = a * (t * -x);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e+143], t$95$1, If[LessEqual[a, -2.55e-139], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.52e+84], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e+254], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -2.55 \cdot 10^{-139}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -2.5999999999999999e143 or 2.29999999999999998e254 < a

    1. Initial program 48.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 i around inf 73.7%

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

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

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

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

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

    if -2.5999999999999999e143 < a < -2.55000000000000018e-139

    1. Initial program 89.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 76.2%

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

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

    if -2.55000000000000018e-139 < a < 1.52000000000000008e84

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

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

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

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

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

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

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

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

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

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

    if 1.52000000000000008e84 < a < 2.29999999999999998e254

    1. Initial program 57.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 51.2%

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.6 \cdot 10^{+143}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;a \leq -2.55 \cdot 10^{-139}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;a \leq 1.52 \cdot 10^{+84}:\\ \;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\ \mathbf{elif}\;a \leq 2.3 \cdot 10^{+254}:\\ \;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 59.8% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -8.5 \cdot 10^{+22} \lor \neg \left(i \leq 68000000000\right):\\
\;\;\;\;i \cdot \left(j \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -8.49999999999999979e22 or 6.8e10 < i

    1. Initial program 65.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 i around inf 74.7%

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

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

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

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

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

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

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(\frac{a \cdot b}{j} + \left(-y\right)\right)}\right) \]
      3. unsub-neg74.8%

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

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

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

    if -8.49999999999999979e22 < i < 6.8e10

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

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

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

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

Alternative 11: 30.2% accurate, 1.4× speedup?

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

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

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

\mathbf{elif}\;j \leq 4.6 \cdot 10^{+61}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -2e21 or 4.5999999999999999e61 < j

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

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

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

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

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

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

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

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

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

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

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

    if -2e21 < j < -4e-231

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

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

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

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

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

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

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

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

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

    if -4e-231 < j < 4.5999999999999999e61

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(c \cdot z\right) \cdot b\right)} \]
      2. neg-mul-138.5%

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

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

        \[\leadsto \color{blue}{c \cdot \left(z \cdot \left(-b\right)\right)} \]
    11. Simplified38.9%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2 \cdot 10^{+21}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \mathbf{elif}\;j \leq -4 \cdot 10^{-231}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;j \leq 4.6 \cdot 10^{+61}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 30.5% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;j \leq -1.95 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;j \leq -3.2 \cdot 10^{-227}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;j \leq 5.2 \cdot 10^{+66}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -1.95e17 or 5.20000000000000024e66 < j

    1. Initial program 73.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 0 72.1%

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

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

    if -1.95e17 < j < -3.2000000000000001e-227

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

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

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

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

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

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

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

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

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

    if -3.2000000000000001e-227 < j < 5.20000000000000024e66

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto -1 \cdot \color{blue}{\left(\left(c \cdot z\right) \cdot b\right)} \]
      2. neg-mul-138.0%

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.95 \cdot 10^{+17}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;j \leq -3.2 \cdot 10^{-227}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;j \leq 5.2 \cdot 10^{+66}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 51.8% accurate, 1.5× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.8 \cdot 10^{-33} \lor \neg \left(i \leq 3.9 \cdot 10^{+35}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -5.80000000000000005e-33 or 3.8999999999999999e35 < i

    1. Initial program 66.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 72.9%

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

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

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

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

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

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

        \[\leadsto -i \cdot \left(\color{blue}{y \cdot j} - a \cdot b\right) \]
      3. distribute-rgt-neg-out72.9%

        \[\leadsto \color{blue}{i \cdot \left(-\left(y \cdot j - a \cdot b\right)\right)} \]
      4. neg-mul-172.9%

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

        \[\leadsto i \cdot \left(-1 \cdot \left(\color{blue}{j \cdot y} - a \cdot b\right)\right) \]
      6. distribute-lft-out--72.9%

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
      7. neg-mul-172.9%

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

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(-\left(-a \cdot b\right)\right)\right)} \]
      9. remove-double-neg72.9%

        \[\leadsto i \cdot \left(-1 \cdot \left(j \cdot y\right) + \color{blue}{a \cdot b}\right) \]
      10. +-commutative72.9%

        \[\leadsto i \cdot \color{blue}{\left(a \cdot b + -1 \cdot \left(j \cdot y\right)\right)} \]
      11. mul-1-neg72.9%

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

        \[\leadsto i \cdot \left(a \cdot b + \left(-\color{blue}{y \cdot j}\right)\right) \]
      13. unsub-neg72.9%

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

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

    if -5.80000000000000005e-33 < i < 3.8999999999999999e35

    1. Initial program 79.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 c around inf 52.4%

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

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

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

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

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

Alternative 14: 40.3% accurate, 1.5× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -2.3499999999999999e23

    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 y around inf 65.9%

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

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

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

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

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

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

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

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

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

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

    if -2.3499999999999999e23 < i < 5.00000000000000015e39

    1. Initial program 79.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 c around inf 51.7%

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

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

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

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

    if 5.00000000000000015e39 < i

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

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

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

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

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

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

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

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

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

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

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

Alternative 15: 39.8% accurate, 1.5× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if y < -195000

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

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

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

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

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

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

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

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

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

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

    if -195000 < y < 1.35000000000000001e128

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

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

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

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

    if 1.35000000000000001e128 < y

    1. Initial program 57.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 85.8%

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

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

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

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

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

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

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

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

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

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

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

Alternative 16: 29.4% accurate, 1.9× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.75 \cdot 10^{-71} \lor \neg \left(i \leq 500000000000\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -1.75e-71 or 5e11 < i

    1. Initial program 67.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 42.1%

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

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

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

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

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b\right)} \]
    8. Simplified35.8%

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

    if -1.75e-71 < i < 5e11

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

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

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

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

Alternative 17: 22.0% 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 73.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 36.0%

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

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

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

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

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

    \[\leadsto \color{blue}{a \cdot \left(i \cdot b\right)} \]
  9. Final simplification20.3%

    \[\leadsto a \cdot \left(b \cdot i\right) \]
  10. Add Preprocessing

Developer Target 1: 69.0% 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 2024181 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* 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)))))