Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 72.8% → 81.8%
Time: 20.3s
Alternatives: 26
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 26 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 72.8% 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: 81.8% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\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 90.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. Step-by-step derivation
      1. lift-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      4. +-commutativeN/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
      6. lower-fma.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
      7. lower-neg.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
      8. lift-*.f64N/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
      10. lower-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
      13. *-commutativeN/A

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

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

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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
      2. associate-*r*N/A

        \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \]
      3. *-commutativeN/A

        \[\leadsto y \cdot \left(\color{blue}{j \cdot \left(-1 \cdot i\right)} + x \cdot z\right) \]
      4. lower-fma.f64N/A

        \[\leadsto y \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot i, x \cdot z\right)} \]
      5. neg-mul-1N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      6. lower-neg.f64N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      7. *-commutativeN/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. lower-*.f6467.1

        \[\leadsto y \cdot \mathsf{fma}\left(j, -i, \color{blue}{z \cdot x}\right) \]
    5. Applied rewrites67.1%

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

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

Alternative 2: 82.2% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\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 90.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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
      2. associate-*r*N/A

        \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \]
      3. *-commutativeN/A

        \[\leadsto y \cdot \left(\color{blue}{j \cdot \left(-1 \cdot i\right)} + x \cdot z\right) \]
      4. lower-fma.f64N/A

        \[\leadsto y \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot i, x \cdot z\right)} \]
      5. neg-mul-1N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      6. lower-neg.f64N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      7. *-commutativeN/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. lower-*.f6467.1

        \[\leadsto y \cdot \mathsf{fma}\left(j, -i, \color{blue}{z \cdot x}\right) \]
    5. Applied rewrites67.1%

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

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

Alternative 3: 76.6% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\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 90.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 z around 0

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

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

        \[\leadsto \left(\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + z \cdot \left(x \cdot y - b \cdot c\right)\right) - \color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot \left(b \cdot i\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      3. cancel-sign-subN/A

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

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

        \[\leadsto \color{blue}{\left(z \cdot \left(x \cdot y - b \cdot c\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + a \cdot \left(b \cdot i\right)\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
      6. cancel-sign-subN/A

        \[\leadsto \left(z \cdot \left(x \cdot y - b \cdot c\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - \left(\mathsf{neg}\left(a\right)\right) \cdot \left(b \cdot i\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      7. associate-*r*N/A

        \[\leadsto \left(z \cdot \left(x \cdot y - b \cdot c\right) + \left(\color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} - \left(\mathsf{neg}\left(a\right)\right) \cdot \left(b \cdot i\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      8. mul-1-negN/A

        \[\leadsto \left(z \cdot \left(x \cdot y - b \cdot c\right) + \left(\left(-1 \cdot a\right) \cdot \left(t \cdot x\right) - \color{blue}{\left(-1 \cdot a\right)} \cdot \left(b \cdot i\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      9. distribute-lft-out--N/A

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

        \[\leadsto \left(z \cdot \left(x \cdot y - b \cdot c\right) + \color{blue}{\left(a \cdot -1\right)} \cdot \left(t \cdot x - b \cdot i\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      11. associate-*r*N/A

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

        \[\leadsto \left(z \cdot \left(x \cdot y - b \cdot c\right) + a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
      13. lower-fma.f64N/A

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

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

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

    1. Initial program 0.0%

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
      2. associate-*r*N/A

        \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \]
      3. *-commutativeN/A

        \[\leadsto y \cdot \left(\color{blue}{j \cdot \left(-1 \cdot i\right)} + x \cdot z\right) \]
      4. lower-fma.f64N/A

        \[\leadsto y \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot i, x \cdot z\right)} \]
      5. neg-mul-1N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      6. lower-neg.f64N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      7. *-commutativeN/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. lower-*.f6467.1

        \[\leadsto y \cdot \mathsf{fma}\left(j, -i, \color{blue}{z \cdot x}\right) \]
    5. Applied rewrites67.1%

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

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

Alternative 4: 52.0% accurate, 1.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{if}\;x \leq -5.8 \cdot 10^{+133}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -5.3 \cdot 10^{-51}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-280}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-160}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 8.8 \cdot 10^{-38}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+51}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* j (fma c t (* y (- i))))) (t_2 (* x (- (* y z) (* t a)))))
   (if (<= x -5.8e+133)
     t_2
     (if (<= x -5.3e-51)
       t_1
       (if (<= x 1.35e-280)
         (* i (fma j (- y) (* a b)))
         (if (<= x 2.6e-160)
           (* c (fma j t (* z (- b))))
           (if (<= x 8.8e-38)
             (* b (fma c (- z) (* a i)))
             (if (<= x 2.9e+51) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * fma(c, t, (y * -i));
	double t_2 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -5.8e+133) {
		tmp = t_2;
	} else if (x <= -5.3e-51) {
		tmp = t_1;
	} else if (x <= 1.35e-280) {
		tmp = i * fma(j, -y, (a * b));
	} else if (x <= 2.6e-160) {
		tmp = c * fma(j, t, (z * -b));
	} else if (x <= 8.8e-38) {
		tmp = b * fma(c, -z, (a * i));
	} else if (x <= 2.9e+51) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * fma(c, t, Float64(y * Float64(-i))))
	t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	tmp = 0.0
	if (x <= -5.8e+133)
		tmp = t_2;
	elseif (x <= -5.3e-51)
		tmp = t_1;
	elseif (x <= 1.35e-280)
		tmp = Float64(i * fma(j, Float64(-y), Float64(a * b)));
	elseif (x <= 2.6e-160)
		tmp = Float64(c * fma(j, t, Float64(z * Float64(-b))));
	elseif (x <= 8.8e-38)
		tmp = Float64(b * fma(c, Float64(-z), Float64(a * i)));
	elseif (x <= 2.9e+51)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+133], t$95$2, If[LessEqual[x, -5.3e-51], t$95$1, If[LessEqual[x, 1.35e-280], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e-160], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.8e-38], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+51], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}

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

\mathbf{elif}\;x \leq -5.3 \cdot 10^{-51}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 1.35 \cdot 10^{-280}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\

\mathbf{elif}\;x \leq 2.6 \cdot 10^{-160}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;x \leq 8.8 \cdot 10^{-38}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\

\mathbf{elif}\;x \leq 2.9 \cdot 10^{+51}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -5.8000000000000002e133 or 2.8999999999999998e51 < x

    1. Initial program 69.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 x around inf

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
      2. lower--.f64N/A

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z - a \cdot t\right)} \]
      3. lower-*.f64N/A

        \[\leadsto x \cdot \left(\color{blue}{y \cdot z} - a \cdot t\right) \]
      4. *-commutativeN/A

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
      5. lower-*.f6469.3

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
    5. Applied rewrites69.3%

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

    if -5.8000000000000002e133 < x < -5.29999999999999974e-51 or 8.80000000000000029e-38 < x < 2.8999999999999998e51

    1. Initial program 80.0%

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

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. sub-negN/A

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. lower-fma.f64N/A

        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
      5. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
      6. neg-mul-1N/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
      7. lower-*.f64N/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
      8. neg-mul-1N/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
      9. lower-neg.f6460.6

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
    5. Applied rewrites60.6%

      \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)} \]

    if -5.29999999999999974e-51 < x < 1.34999999999999992e-280

    1. Initial program 67.2%

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

      \[\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. lower-*.f64N/A

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
      2. sub-negN/A

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto i \cdot \left(\color{blue}{\left(\mathsf{neg}\left(j \cdot y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto i \cdot \left(\color{blue}{j \cdot \left(\mathsf{neg}\left(y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-1 \cdot y\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{a \cdot b}\right) \]
      8. lower-fma.f64N/A

        \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, a \cdot b\right)} \]
      9. mul-1-negN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
      10. lower-neg.f64N/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
      11. *-commutativeN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(y\right), \color{blue}{b \cdot a}\right) \]
      12. lower-*.f6452.7

        \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot a}\right) \]
    5. Applied rewrites52.7%

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

    if 1.34999999999999992e-280 < x < 2.60000000000000003e-160

    1. Initial program 83.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

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

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto c \cdot \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
      4. lower-fma.f64N/A

        \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(j, t, -1 \cdot \left(b \cdot z\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(\mathsf{neg}\left(z\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-1 \cdot z\right)}\right) \]
      8. lower-*.f64N/A

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(-1 \cdot z\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right) \]
      10. lower-neg.f6476.9

        \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-z\right)}\right) \]
    5. Applied rewrites76.9%

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

    if 2.60000000000000003e-160 < x < 8.80000000000000029e-38

    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 b around inf

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
      3. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
      4. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      5. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      7. lower-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      8. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
      9. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
      10. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      11. distribute-rgt-neg-inN/A

        \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
      12. mul-1-negN/A

        \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
      13. remove-double-negN/A

        \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
      14. lower-fma.f64N/A

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
      15. mul-1-negN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      16. lower-neg.f64N/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      17. *-commutativeN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
      18. lower-*.f6465.2

        \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
    5. Applied rewrites65.2%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.8 \cdot 10^{+133}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{elif}\;x \leq -5.3 \cdot 10^{-51}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{-280}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-160}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 8.8 \cdot 10^{-38}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{elif}\;x \leq 2.9 \cdot 10^{+51}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 69.6% accurate, 1.2× speedup?

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

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

\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot t\_1\right)\\


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

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

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

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. lower-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
      3. lower--.f64N/A

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

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

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
      6. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
      7. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
      8. sub-negN/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
      9. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
      10. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
      11. distribute-rgt-neg-inN/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
      12. neg-mul-1N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
      13. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
      14. neg-mul-1N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
      15. lower-neg.f6477.3

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

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

    if -4.3e14 < x < 2.4000000000000001e48

    1. Initial program 76.4%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
      2. *-commutativeN/A

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

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      4. associate-*l*N/A

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(c \cdot j\right) \cdot t}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      6. distribute-rgt-inN/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      7. lower-fma.f64N/A

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

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{c \cdot j + -1 \cdot \left(a \cdot x\right)}, \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{j \cdot c} + -1 \cdot \left(a \cdot x\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      10. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(a \cdot x\right)\right)}, \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      11. mul-1-negN/A

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

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      13. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      14. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      15. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      16. lower-neg.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      17. distribute-rgt-neg-inN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \left(\mathsf{neg}\left(x\right)\right)\right), \color{blue}{b \cdot \left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)}\right) \]
      18. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \left(\mathsf{neg}\left(x\right)\right)\right), b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)}\right) \]
      19. lower-*.f64N/A

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

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

    if 2.4000000000000001e48 < x

    1. Initial program 66.8%

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

      \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - b \cdot \left(c \cdot z\right)} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t\right)\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) \]
      3. associate-+l+N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right)} \]
      4. mul-1-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
      5. *-commutativeN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \left(b \cdot \color{blue}{\left(z \cdot c\right)}\right)\right) \]
      6. associate-*r*N/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \color{blue}{\left(\left(b \cdot z\right) \cdot c\right)}\right) \]
      7. associate-*l*N/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right) \cdot c}\right) \]
      8. *-commutativeN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\color{blue}{\left(j \cdot t\right) \cdot c} + \left(-1 \cdot \left(b \cdot z\right)\right) \cdot c\right) \]
      9. distribute-rgt-inN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{c \cdot \left(j \cdot t + -1 \cdot \left(b \cdot z\right)\right)} \]
      10. mul-1-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \]
      11. sub-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \color{blue}{\left(j \cdot t - b \cdot z\right)} \]
      12. +-commutativeN/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
      13. lower-fma.f64N/A

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

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

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

Alternative 6: 67.8% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.1 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\

\mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
\;\;\;\;\mathsf{fma}\left(t, \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\

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


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

    1. Initial program 72.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. Step-by-step derivation
      1. lift-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      4. +-commutativeN/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
      6. lower-fma.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
      7. lower-neg.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
      8. lift-*.f64N/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
      10. lower-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
      13. *-commutativeN/A

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

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

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
      2. sub-negN/A

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
      4. *-commutativeN/A

        \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
      5. distribute-rgt-neg-inN/A

        \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
      6. mul-1-negN/A

        \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
      7. lower-fma.f64N/A

        \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
      8. mul-1-negN/A

        \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
      9. lower-neg.f64N/A

        \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
      10. lower-*.f6482.3

        \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
    7. Applied rewrites82.3%

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

    if -1.0999999999999999e146 < x < 2.4000000000000001e48

    1. Initial program 76.2%

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
      2. *-commutativeN/A

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

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      4. associate-*l*N/A

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(c \cdot j\right) \cdot t}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      6. distribute-rgt-inN/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      7. lower-fma.f64N/A

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

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{c \cdot j + -1 \cdot \left(a \cdot x\right)}, \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      9. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{j \cdot c} + -1 \cdot \left(a \cdot x\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      10. lower-fma.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(a \cdot x\right)\right)}, \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      11. mul-1-negN/A

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

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      13. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      14. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      15. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      16. lower-neg.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right), \mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      17. distribute-rgt-neg-inN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \left(\mathsf{neg}\left(x\right)\right)\right), \color{blue}{b \cdot \left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)}\right) \]
      18. mul-1-negN/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \left(\mathsf{neg}\left(x\right)\right)\right), b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)}\right) \]
      19. lower-*.f64N/A

        \[\leadsto \mathsf{fma}\left(t, \mathsf{fma}\left(j, c, a \cdot \left(\mathsf{neg}\left(x\right)\right)\right), \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)}\right) \]
    5. Applied rewrites74.0%

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

    if 2.4000000000000001e48 < x

    1. Initial program 66.8%

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

      \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - b \cdot \left(c \cdot z\right)} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t\right)\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) \]
      3. associate-+l+N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right)} \]
      4. mul-1-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
      5. *-commutativeN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \left(b \cdot \color{blue}{\left(z \cdot c\right)}\right)\right) \]
      6. associate-*r*N/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \color{blue}{\left(\left(b \cdot z\right) \cdot c\right)}\right) \]
      7. associate-*l*N/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right) \cdot c}\right) \]
      8. *-commutativeN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\color{blue}{\left(j \cdot t\right) \cdot c} + \left(-1 \cdot \left(b \cdot z\right)\right) \cdot c\right) \]
      9. distribute-rgt-inN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{c \cdot \left(j \cdot t + -1 \cdot \left(b \cdot z\right)\right)} \]
      10. mul-1-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \]
      11. sub-negN/A

        \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \color{blue}{\left(j \cdot t - b \cdot z\right)} \]
      12. +-commutativeN/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
      13. lower-fma.f64N/A

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

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

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

Alternative 7: 66.5% accurate, 1.2× speedup?

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

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

\mathbf{elif}\;b \leq 4.7 \cdot 10^{+139}:\\
\;\;\;\;\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if b < -1.6e115 or 4.7000000000000001e139 < b

    1. Initial program 76.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. Step-by-step derivation
      1. lift-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      4. +-commutativeN/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
      6. lower-fma.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
      7. lower-neg.f64N/A

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
      8. lift-*.f64N/A

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
      10. lower-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
      13. *-commutativeN/A

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

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

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

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
    6. Step-by-step derivation
      1. lower-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
      3. lower-fma.f64N/A

        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(c, j, -1 \cdot \left(a \cdot x\right)\right)} \]
      4. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
      5. distribute-rgt-neg-inN/A

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      6. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      7. lower-*.f64N/A

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
      8. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      9. lower-neg.f6428.8

        \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-x\right)}\right) \]
    7. Applied rewrites28.8%

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

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
    9. Step-by-step derivation
      1. cancel-sign-sub-invN/A

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z - a \cdot i\right)} \]
      2. sub-negN/A

        \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(a \cdot i\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)} \]
      5. distribute-lft-neg-inN/A

        \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \color{blue}{\left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right)} \]
      6. associate-*r*N/A

        \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      7. *-commutativeN/A

        \[\leadsto \left(\left(-1 \cdot a\right) \cdot \color{blue}{\left(x \cdot t\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      8. associate-*r*N/A

        \[\leadsto \left(\color{blue}{\left(\left(-1 \cdot a\right) \cdot x\right) \cdot t} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      9. associate-*r*N/A

        \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \cdot t + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      10. associate-*r*N/A

        \[\leadsto \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(c \cdot j\right) \cdot t}\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      11. distribute-rgt-inN/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
      12. lower-fma.f64N/A

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

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

      \[\leadsto \mathsf{fma}\left(t, c \cdot \color{blue}{j}, b \cdot \left(a \cdot i - z \cdot c\right)\right) \]
    12. Step-by-step derivation
      1. Applied rewrites81.0%

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

      if -1.6e115 < b < 4.7000000000000001e139

      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 i around 0

        \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - b \cdot \left(c \cdot z\right)} \]
      4. Step-by-step derivation
        1. sub-negN/A

          \[\leadsto \color{blue}{\left(c \cdot \left(j \cdot t\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)} \]
        2. +-commutativeN/A

          \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t\right)\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right) \]
        3. associate-+l+N/A

          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z\right)\right)\right)\right)} \]
        4. mul-1-negN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
        5. *-commutativeN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \left(b \cdot \color{blue}{\left(z \cdot c\right)}\right)\right) \]
        6. associate-*r*N/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + -1 \cdot \color{blue}{\left(\left(b \cdot z\right) \cdot c\right)}\right) \]
        7. associate-*l*N/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(c \cdot \left(j \cdot t\right) + \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right) \cdot c}\right) \]
        8. *-commutativeN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\color{blue}{\left(j \cdot t\right) \cdot c} + \left(-1 \cdot \left(b \cdot z\right)\right) \cdot c\right) \]
        9. distribute-rgt-inN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{c \cdot \left(j \cdot t + -1 \cdot \left(b \cdot z\right)\right)} \]
        10. mul-1-negN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \left(j \cdot t + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \]
        11. sub-negN/A

          \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + c \cdot \color{blue}{\left(j \cdot t - b \cdot z\right)} \]
        12. +-commutativeN/A

          \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right) + x \cdot \left(y \cdot z - a \cdot t\right)} \]
        13. lower-fma.f64N/A

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(c, \mathsf{fma}\left(j, t, b \cdot \left(-z\right)\right), x \cdot \left(y \cdot z - t \cdot a\right)\right)} \]
    13. Recombined 2 regimes into one program.
    14. Final simplification72.9%

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

    Alternative 8: 61.8% accurate, 1.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.05 \cdot 10^{+134}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\ \mathbf{elif}\;x \leq -2.65 \cdot 10^{-281}:\\ \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\ \;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (if (<= x -1.05e+134)
       (* x (fma t (- a) (* y z)))
       (if (<= x -2.65e-281)
         (+ (* j (- (* t c) (* y i))) (* i (* a b)))
         (if (<= x 2.4e+48)
           (fma t (* c j) (* b (- (* a i) (* z c))))
           (fma x (- (* y z) (* t a)) (* 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 (x <= -1.05e+134) {
    		tmp = x * fma(t, -a, (y * z));
    	} else if (x <= -2.65e-281) {
    		tmp = (j * ((t * c) - (y * i))) + (i * (a * b));
    	} else if (x <= 2.4e+48) {
    		tmp = fma(t, (c * j), (b * ((a * i) - (z * c))));
    	} else {
    		tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	tmp = 0.0
    	if (x <= -1.05e+134)
    		tmp = Float64(x * fma(t, Float64(-a), Float64(y * z)));
    	elseif (x <= -2.65e-281)
    		tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(i * Float64(a * b)));
    	elseif (x <= 2.4e+48)
    		tmp = fma(t, Float64(c * j), Float64(b * Float64(Float64(a * i) - Float64(z * c))));
    	else
    		tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j)));
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.05e+134], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.65e-281], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(c * j), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    \mathbf{if}\;x \leq -1.05 \cdot 10^{+134}:\\
    \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
    
    \mathbf{elif}\;x \leq -2.65 \cdot 10^{-281}:\\
    \;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + i \cdot \left(a \cdot b\right)\\
    
    \mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
    \;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if x < -1.05e134

      1. Initial program 72.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. Step-by-step derivation
        1. lift-*.f64N/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
        4. +-commutativeN/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
        6. lower-fma.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
        7. lower-neg.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
        8. lift-*.f64N/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
        10. lower-*.f64N/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
        13. *-commutativeN/A

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

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

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

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
        2. sub-negN/A

          \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
        3. +-commutativeN/A

          \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
        4. *-commutativeN/A

          \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
        5. distribute-rgt-neg-inN/A

          \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
        6. mul-1-negN/A

          \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
        7. lower-fma.f64N/A

          \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
        8. mul-1-negN/A

          \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
        9. lower-neg.f64N/A

          \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
        10. lower-*.f6478.1

          \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
      7. Applied rewrites78.1%

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

      if -1.05e134 < x < -2.64999999999999997e-281

      1. Initial program 72.3%

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

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

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

          \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
        3. lower-*.f64N/A

          \[\leadsto \color{blue}{i \cdot \left(a \cdot b\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
        4. *-commutativeN/A

          \[\leadsto i \cdot \color{blue}{\left(b \cdot a\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
        5. lower-*.f6465.1

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

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

      if -2.64999999999999997e-281 < x < 2.4000000000000001e48

      1. Initial program 80.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. Step-by-step derivation
        1. lift-*.f64N/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
        4. +-commutativeN/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
        6. lower-fma.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
        7. lower-neg.f64N/A

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
        8. lift-*.f64N/A

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
        10. lower-*.f64N/A

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

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

          \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
        13. *-commutativeN/A

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

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

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

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
      6. Step-by-step derivation
        1. lower-*.f64N/A

          \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
        2. +-commutativeN/A

          \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
        3. lower-fma.f64N/A

          \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(c, j, -1 \cdot \left(a \cdot x\right)\right)} \]
        4. mul-1-negN/A

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
        5. distribute-rgt-neg-inN/A

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
        6. mul-1-negN/A

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
        7. lower-*.f64N/A

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
        8. mul-1-negN/A

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
        9. lower-neg.f6439.0

          \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-x\right)}\right) \]
      7. Applied rewrites39.0%

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
      9. Step-by-step derivation
        1. cancel-sign-sub-invN/A

          \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z - a \cdot i\right)} \]
        2. sub-negN/A

          \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)} \]
        3. mul-1-negN/A

          \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(a \cdot i\right)}\right) \]
        4. +-commutativeN/A

          \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)} \]
        5. distribute-lft-neg-inN/A

          \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \color{blue}{\left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right)} \]
        6. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        7. *-commutativeN/A

          \[\leadsto \left(\left(-1 \cdot a\right) \cdot \color{blue}{\left(x \cdot t\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        8. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(\left(-1 \cdot a\right) \cdot x\right) \cdot t} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        9. associate-*r*N/A

          \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \cdot t + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        10. associate-*r*N/A

          \[\leadsto \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(c \cdot j\right) \cdot t}\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        11. distribute-rgt-inN/A

          \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
        12. lower-fma.f64N/A

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

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

        \[\leadsto \mathsf{fma}\left(t, c \cdot \color{blue}{j}, b \cdot \left(a \cdot i - z \cdot c\right)\right) \]
      12. Step-by-step derivation
        1. Applied rewrites75.7%

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

        if 2.4000000000000001e48 < x

        1. Initial program 66.8%

          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
        2. Add Preprocessing
        3. Taylor expanded in b around 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. Step-by-step derivation
          1. +-commutativeN/A

            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
          2. lower-fma.f64N/A

            \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
          3. lower--.f64N/A

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

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

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
          6. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
          7. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
          8. sub-negN/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
          9. lower-fma.f64N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
          10. *-commutativeN/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
          11. distribute-rgt-neg-inN/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
          12. neg-mul-1N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
          13. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
          14. neg-mul-1N/A

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
          15. lower-neg.f6463.7

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

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

          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
        7. Step-by-step derivation
          1. Applied rewrites69.5%

            \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
        8. Recombined 4 regimes into one program.
        9. Final simplification71.5%

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

        Alternative 9: 59.6% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.82 \cdot 10^{-218}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{+138}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (let* ((t_1 (* b (fma c (- z) (* a i)))))
           (if (<= b -2.4e-15)
             t_1
             (if (<= b -1.82e-218)
               (fma x (* y z) (* j (fma c t (* y (- i)))))
               (if (<= b 2.1e+138) (fma x (- (* y z) (* t a)) (* c (* t j))) t_1)))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double t_1 = b * fma(c, -z, (a * i));
        	double tmp;
        	if (b <= -2.4e-15) {
        		tmp = t_1;
        	} else if (b <= -1.82e-218) {
        		tmp = fma(x, (y * z), (j * fma(c, t, (y * -i))));
        	} else if (b <= 2.1e+138) {
        		tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i)))
        	tmp = 0.0
        	if (b <= -2.4e-15)
        		tmp = t_1;
        	elseif (b <= -1.82e-218)
        		tmp = fma(x, Float64(y * z), Float64(j * fma(c, t, Float64(y * Float64(-i)))));
        	elseif (b <= 2.1e+138)
        		tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j)));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-15], t$95$1, If[LessEqual[b, -1.82e-218], N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+138], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
        \mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;b \leq -1.82 \cdot 10^{-218}:\\
        \;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\
        
        \mathbf{elif}\;b \leq 2.1 \cdot 10^{+138}:\\
        \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if b < -2.39999999999999995e-15 or 2.10000000000000007e138 < b

          1. Initial program 74.5%

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

            \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
          4. Step-by-step derivation
            1. sub-negN/A

              \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
            2. +-commutativeN/A

              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
            3. remove-double-negN/A

              \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
            4. distribute-neg-inN/A

              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
            5. sub-negN/A

              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
            6. mul-1-negN/A

              \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
            7. lower-*.f64N/A

              \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
            8. mul-1-negN/A

              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
            9. sub-negN/A

              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
            10. distribute-neg-inN/A

              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
            11. distribute-rgt-neg-inN/A

              \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
            12. mul-1-negN/A

              \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
            13. remove-double-negN/A

              \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
            14. lower-fma.f64N/A

              \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
            15. mul-1-negN/A

              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
            16. lower-neg.f64N/A

              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
            17. *-commutativeN/A

              \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
            18. lower-*.f6465.6

              \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
          5. Applied rewrites65.6%

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

          if -2.39999999999999995e-15 < b < -1.81999999999999998e-218

          1. Initial program 68.5%

            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
          2. Add Preprocessing
          3. Taylor expanded in b around 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. Step-by-step derivation
            1. +-commutativeN/A

              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
            2. lower-fma.f64N/A

              \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
            3. lower--.f64N/A

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

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

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
            6. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
            7. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
            8. sub-negN/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
            9. lower-fma.f64N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
            10. *-commutativeN/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
            11. distribute-rgt-neg-inN/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
            12. neg-mul-1N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
            13. lower-*.f64N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
            14. neg-mul-1N/A

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
            15. lower-neg.f6465.4

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

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

            \[\leadsto \mathsf{fma}\left(x, y \cdot \color{blue}{z}, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(\mathsf{neg}\left(i\right)\right)\right)\right) \]
          7. Step-by-step derivation
            1. Applied rewrites63.8%

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

            if -1.81999999999999998e-218 < b < 2.10000000000000007e138

            1. Initial program 75.9%

              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
            2. Add Preprocessing
            3. Taylor expanded in b around 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. Step-by-step derivation
              1. +-commutativeN/A

                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
              2. lower-fma.f64N/A

                \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
              3. lower--.f64N/A

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

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

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
              6. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
              7. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
              8. sub-negN/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
              9. lower-fma.f64N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
              10. *-commutativeN/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
              11. distribute-rgt-neg-inN/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
              12. neg-mul-1N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
              13. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
              14. neg-mul-1N/A

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
              15. lower-neg.f6476.2

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

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

              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
            7. Step-by-step derivation
              1. Applied rewrites66.4%

                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
            8. Recombined 3 regimes into one program.
            9. Final simplification65.6%

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

            Alternative 10: 61.8% accurate, 1.5× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -7.1 \cdot 10^{+133}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\ \;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i j)
             :precision binary64
             (if (<= x -7.1e+133)
               (* x (fma t (- a) (* y z)))
               (if (<= x 2.4e+48)
                 (fma t (* c j) (* b (- (* a i) (* z c))))
                 (fma x (- (* y z) (* t a)) (* 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 (x <= -7.1e+133) {
            		tmp = x * fma(t, -a, (y * z));
            	} else if (x <= 2.4e+48) {
            		tmp = fma(t, (c * j), (b * ((a * i) - (z * c))));
            	} else {
            		tmp = fma(x, ((y * z) - (t * a)), (c * (t * j)));
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i, j)
            	tmp = 0.0
            	if (x <= -7.1e+133)
            		tmp = Float64(x * fma(t, Float64(-a), Float64(y * z)));
            	elseif (x <= 2.4e+48)
            		tmp = fma(t, Float64(c * j), Float64(b * Float64(Float64(a * i) - Float64(z * c))));
            	else
            		tmp = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(c * Float64(t * j)));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -7.1e+133], N[(x * N[(t * (-a) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+48], N[(t * N[(c * j), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;x \leq -7.1 \cdot 10^{+133}:\\
            \;\;\;\;x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)\\
            
            \mathbf{elif}\;x \leq 2.4 \cdot 10^{+48}:\\
            \;\;\;\;\mathsf{fma}\left(t, c \cdot j, b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(t \cdot j\right)\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 3 regimes
            2. if x < -7.10000000000000011e133

              1. Initial program 72.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. Step-by-step derivation
                1. lift-*.f64N/A

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

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                4. +-commutativeN/A

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
                6. lower-fma.f64N/A

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
                7. lower-neg.f64N/A

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
                8. lift-*.f64N/A

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
                10. lower-*.f64N/A

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

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
                13. *-commutativeN/A

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

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

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

                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
              6. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                2. sub-negN/A

                  \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
                3. +-commutativeN/A

                  \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
                4. *-commutativeN/A

                  \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
                5. distribute-rgt-neg-inN/A

                  \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
                6. mul-1-negN/A

                  \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
                7. lower-fma.f64N/A

                  \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
                8. mul-1-negN/A

                  \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                9. lower-neg.f64N/A

                  \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                10. lower-*.f6478.1

                  \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
              7. Applied rewrites78.1%

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

              if -7.10000000000000011e133 < x < 2.4000000000000001e48

              1. Initial program 76.2%

                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
              2. Add Preprocessing
              3. Step-by-step derivation
                1. lift-*.f64N/A

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

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                4. +-commutativeN/A

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
                6. lower-fma.f64N/A

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
                7. lower-neg.f64N/A

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
                8. lift-*.f64N/A

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
                10. lower-*.f64N/A

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

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

                  \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
                13. *-commutativeN/A

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

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

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

                \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
              6. Step-by-step derivation
                1. lower-*.f64N/A

                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                2. +-commutativeN/A

                  \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
                3. lower-fma.f64N/A

                  \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(c, j, -1 \cdot \left(a \cdot x\right)\right)} \]
                4. mul-1-negN/A

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
                5. distribute-rgt-neg-inN/A

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                6. mul-1-negN/A

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                7. lower-*.f64N/A

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
                8. mul-1-negN/A

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                9. lower-neg.f6437.1

                  \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-x\right)}\right) \]
              7. Applied rewrites37.1%

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

                \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
              9. Step-by-step derivation
                1. cancel-sign-sub-invN/A

                  \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z - a \cdot i\right)} \]
                2. sub-negN/A

                  \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)} \]
                3. mul-1-negN/A

                  \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \left(c \cdot z + \color{blue}{-1 \cdot \left(a \cdot i\right)}\right) \]
                4. +-commutativeN/A

                  \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b\right)\right) \cdot \color{blue}{\left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)} \]
                5. distribute-lft-neg-inN/A

                  \[\leadsto \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \color{blue}{\left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right)} \]
                6. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot \left(t \cdot x\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                7. *-commutativeN/A

                  \[\leadsto \left(\left(-1 \cdot a\right) \cdot \color{blue}{\left(x \cdot t\right)} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                8. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(\left(-1 \cdot a\right) \cdot x\right) \cdot t} + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                9. associate-*r*N/A

                  \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right)} \cdot t + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                10. associate-*r*N/A

                  \[\leadsto \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(c \cdot j\right) \cdot t}\right) + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                11. distribute-rgt-inN/A

                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} + \left(\mathsf{neg}\left(b \cdot \left(-1 \cdot \left(a \cdot i\right) + c \cdot z\right)\right)\right) \]
                12. lower-fma.f64N/A

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

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

                \[\leadsto \mathsf{fma}\left(t, c \cdot \color{blue}{j}, b \cdot \left(a \cdot i - z \cdot c\right)\right) \]
              12. Step-by-step derivation
                1. Applied rewrites65.5%

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

                if 2.4000000000000001e48 < x

                1. Initial program 66.8%

                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                2. Add Preprocessing
                3. Taylor expanded in b around 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. Step-by-step derivation
                  1. +-commutativeN/A

                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                  2. lower-fma.f64N/A

                    \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                  3. lower--.f64N/A

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

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

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                  6. lower-*.f64N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                  7. lower-*.f64N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                  8. sub-negN/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                  9. lower-fma.f64N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                  10. *-commutativeN/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                  11. distribute-rgt-neg-inN/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                  12. neg-mul-1N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                  13. lower-*.f64N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                  14. neg-mul-1N/A

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                  15. lower-neg.f6463.7

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

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

                  \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
                7. Step-by-step derivation
                  1. Applied rewrites69.5%

                    \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, c \cdot \left(j \cdot t\right)\right) \]
                8. Recombined 3 regimes into one program.
                9. Final simplification68.4%

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

                Alternative 11: 59.2% accurate, 1.5× speedup?

                \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 10^{+114}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                (FPCore (x y z t a b c i j)
                 :precision binary64
                 (let* ((t_1 (* b (fma c (- z) (* a i)))))
                   (if (<= b -2.4e-15)
                     t_1
                     (if (<= b 1e+114) (fma x (* y z) (* j (fma c t (* y (- i))))) t_1))))
                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                	double t_1 = b * fma(c, -z, (a * i));
                	double tmp;
                	if (b <= -2.4e-15) {
                		tmp = t_1;
                	} else if (b <= 1e+114) {
                		tmp = fma(x, (y * z), (j * fma(c, t, (y * -i))));
                	} else {
                		tmp = t_1;
                	}
                	return tmp;
                }
                
                function code(x, y, z, t, a, b, c, i, j)
                	t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i)))
                	tmp = 0.0
                	if (b <= -2.4e-15)
                		tmp = t_1;
                	elseif (b <= 1e+114)
                		tmp = fma(x, Float64(y * z), Float64(j * fma(c, t, Float64(y * Float64(-i)))));
                	else
                		tmp = t_1;
                	end
                	return tmp
                end
                
                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-15], t$95$1, If[LessEqual[b, 1e+114], N[(x * N[(y * z), $MachinePrecision] + N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                
                \begin{array}{l}
                
                \\
                \begin{array}{l}
                t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
                \mathbf{if}\;b \leq -2.4 \cdot 10^{-15}:\\
                \;\;\;\;t\_1\\
                
                \mathbf{elif}\;b \leq 10^{+114}:\\
                \;\;\;\;\mathsf{fma}\left(x, y \cdot z, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right)\\
                
                \mathbf{else}:\\
                \;\;\;\;t\_1\\
                
                
                \end{array}
                \end{array}
                
                Derivation
                1. Split input into 2 regimes
                2. if b < -2.39999999999999995e-15 or 1e114 < b

                  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

                    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                  4. Step-by-step derivation
                    1. sub-negN/A

                      \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
                    2. +-commutativeN/A

                      \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
                    3. remove-double-negN/A

                      \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
                    4. distribute-neg-inN/A

                      \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                    5. sub-negN/A

                      \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
                    6. mul-1-negN/A

                      \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                    7. lower-*.f64N/A

                      \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                    8. mul-1-negN/A

                      \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
                    9. sub-negN/A

                      \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
                    10. distribute-neg-inN/A

                      \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                    11. distribute-rgt-neg-inN/A

                      \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                    12. mul-1-negN/A

                      \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                    13. remove-double-negN/A

                      \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
                    14. lower-fma.f64N/A

                      \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
                    15. mul-1-negN/A

                      \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                    16. lower-neg.f64N/A

                      \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                    17. *-commutativeN/A

                      \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
                    18. lower-*.f6464.5

                      \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
                  5. Applied rewrites64.5%

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

                  if -2.39999999999999995e-15 < b < 1e114

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

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

                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                    2. lower-fma.f64N/A

                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                    3. lower--.f64N/A

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

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

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                    6. lower-*.f64N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                    7. lower-*.f64N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                    8. sub-negN/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                    9. lower-fma.f64N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                    10. *-commutativeN/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                    11. distribute-rgt-neg-inN/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                    12. neg-mul-1N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                    13. lower-*.f64N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                    14. neg-mul-1N/A

                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                    15. lower-neg.f6472.2

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

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

                    \[\leadsto \mathsf{fma}\left(x, y \cdot \color{blue}{z}, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(\mathsf{neg}\left(i\right)\right)\right)\right) \]
                  7. Step-by-step derivation
                    1. Applied rewrites59.8%

                      \[\leadsto \mathsf{fma}\left(x, y \cdot \color{blue}{z}, j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\right) \]
                  8. Recombined 2 regimes into one program.
                  9. Final simplification61.9%

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

                  Alternative 12: 30.1% accurate, 1.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -2.55 \cdot 10^{+134}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-94}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-281}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.55 \cdot 10^{+45}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;-x \cdot \left(t \cdot a\right)\\ \end{array} \end{array} \]
                  (FPCore (x y z t a b c i j)
                   :precision binary64
                   (if (<= x -2.55e+134)
                     (* z (* x y))
                     (if (<= x -3.4e-94)
                       (* c (* t j))
                       (if (<= x 3e-281)
                         (* a (* b i))
                         (if (<= x 1.55e+45) (* t (* c j)) (- (* x (* 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 (x <= -2.55e+134) {
                  		tmp = z * (x * y);
                  	} else if (x <= -3.4e-94) {
                  		tmp = c * (t * j);
                  	} else if (x <= 3e-281) {
                  		tmp = a * (b * i);
                  	} else if (x <= 1.55e+45) {
                  		tmp = t * (c * j);
                  	} else {
                  		tmp = -(x * (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 (x <= (-2.55d+134)) then
                          tmp = z * (x * y)
                      else if (x <= (-3.4d-94)) then
                          tmp = c * (t * j)
                      else if (x <= 3d-281) then
                          tmp = a * (b * i)
                      else if (x <= 1.55d+45) then
                          tmp = t * (c * j)
                      else
                          tmp = -(x * (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 (x <= -2.55e+134) {
                  		tmp = z * (x * y);
                  	} else if (x <= -3.4e-94) {
                  		tmp = c * (t * j);
                  	} else if (x <= 3e-281) {
                  		tmp = a * (b * i);
                  	} else if (x <= 1.55e+45) {
                  		tmp = t * (c * j);
                  	} else {
                  		tmp = -(x * (t * a));
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b, c, i, j):
                  	tmp = 0
                  	if x <= -2.55e+134:
                  		tmp = z * (x * y)
                  	elif x <= -3.4e-94:
                  		tmp = c * (t * j)
                  	elif x <= 3e-281:
                  		tmp = a * (b * i)
                  	elif x <= 1.55e+45:
                  		tmp = t * (c * j)
                  	else:
                  		tmp = -(x * (t * a))
                  	return tmp
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	tmp = 0.0
                  	if (x <= -2.55e+134)
                  		tmp = Float64(z * Float64(x * y));
                  	elseif (x <= -3.4e-94)
                  		tmp = Float64(c * Float64(t * j));
                  	elseif (x <= 3e-281)
                  		tmp = Float64(a * Float64(b * i));
                  	elseif (x <= 1.55e+45)
                  		tmp = Float64(t * Float64(c * j));
                  	else
                  		tmp = Float64(-Float64(x * Float64(t * a)));
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                  	tmp = 0.0;
                  	if (x <= -2.55e+134)
                  		tmp = z * (x * y);
                  	elseif (x <= -3.4e-94)
                  		tmp = c * (t * j);
                  	elseif (x <= 3e-281)
                  		tmp = a * (b * i);
                  	elseif (x <= 1.55e+45)
                  		tmp = t * (c * j);
                  	else
                  		tmp = -(x * (t * a));
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.55e+134], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.4e-94], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e-281], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.55e+45], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], (-N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision])]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;x \leq -2.55 \cdot 10^{+134}:\\
                  \;\;\;\;z \cdot \left(x \cdot y\right)\\
                  
                  \mathbf{elif}\;x \leq -3.4 \cdot 10^{-94}:\\
                  \;\;\;\;c \cdot \left(t \cdot j\right)\\
                  
                  \mathbf{elif}\;x \leq 3 \cdot 10^{-281}:\\
                  \;\;\;\;a \cdot \left(b \cdot i\right)\\
                  
                  \mathbf{elif}\;x \leq 1.55 \cdot 10^{+45}:\\
                  \;\;\;\;t \cdot \left(c \cdot j\right)\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;-x \cdot \left(t \cdot a\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 5 regimes
                  2. if x < -2.54999999999999983e134

                    1. Initial program 74.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 z around inf

                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                    4. Step-by-step derivation
                      1. lower-*.f64N/A

                        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                      2. sub-negN/A

                        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                      3. mul-1-negN/A

                        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                      4. +-commutativeN/A

                        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                      5. associate-*r*N/A

                        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                      6. *-commutativeN/A

                        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                      7. lower-fma.f64N/A

                        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                      8. neg-mul-1N/A

                        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                      9. lower-neg.f64N/A

                        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                      10. *-commutativeN/A

                        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                      11. lower-*.f6464.3

                        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                    5. Applied rewrites64.3%

                      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                    6. Taylor expanded in c around 0

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

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

                      if -2.54999999999999983e134 < x < -3.3999999999999998e-94

                      1. Initial program 74.4%

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

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

                          \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                        2. lower-fma.f64N/A

                          \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                        3. lower--.f64N/A

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

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

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                        6. lower-*.f64N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                        7. lower-*.f64N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                        8. sub-negN/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                        9. lower-fma.f64N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                        10. *-commutativeN/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                        11. distribute-rgt-neg-inN/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                        12. neg-mul-1N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                        13. lower-*.f64N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                        14. neg-mul-1N/A

                          \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                        15. lower-neg.f6464.7

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

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

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

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

                        if -3.3999999999999998e-94 < x < 2.99999999999999975e-281

                        1. Initial program 67.2%

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

                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                        4. Step-by-step derivation
                          1. lower-*.f64N/A

                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                          2. sub-negN/A

                            \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                          3. mul-1-negN/A

                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                          4. distribute-rgt-neg-inN/A

                            \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                          5. mul-1-negN/A

                            \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                          6. mul-1-negN/A

                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                          7. remove-double-negN/A

                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                          8. lower-fma.f64N/A

                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                          9. mul-1-negN/A

                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                          10. lower-neg.f64N/A

                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                          11. *-commutativeN/A

                            \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                          12. lower-*.f6444.2

                            \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                        5. Applied rewrites44.2%

                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                        6. Taylor expanded in t around 0

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

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

                          if 2.99999999999999975e-281 < x < 1.54999999999999994e45

                          1. Initial program 81.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. Step-by-step derivation
                            1. lift-*.f64N/A

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

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

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                            4. +-commutativeN/A

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

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
                            6. lower-fma.f64N/A

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
                            7. lower-neg.f64N/A

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
                            8. lift-*.f64N/A

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

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
                            10. lower-*.f64N/A

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

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

                              \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
                            13. *-commutativeN/A

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

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

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

                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                          6. Step-by-step derivation
                            1. lower-*.f64N/A

                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                            2. +-commutativeN/A

                              \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
                            3. lower-fma.f64N/A

                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(c, j, -1 \cdot \left(a \cdot x\right)\right)} \]
                            4. mul-1-negN/A

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
                            5. distribute-rgt-neg-inN/A

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                            6. mul-1-negN/A

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                            7. lower-*.f64N/A

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
                            8. mul-1-negN/A

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                            9. lower-neg.f6443.7

                              \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-x\right)}\right) \]
                          7. Applied rewrites43.7%

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

                            \[\leadsto t \cdot \left(c \cdot \color{blue}{j}\right) \]
                          9. Step-by-step derivation
                            1. Applied rewrites36.8%

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

                            if 1.54999999999999994e45 < x

                            1. Initial program 67.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. Step-by-step derivation
                              1. lift-*.f64N/A

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

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

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                              4. +-commutativeN/A

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

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(\left(\mathsf{neg}\left(i \cdot y\right)\right) \cdot j + \left(c \cdot t\right) \cdot j\right)} \]
                              6. lower-fma.f64N/A

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(i \cdot y\right), j, \left(c \cdot t\right) \cdot j\right)} \]
                              7. lower-neg.f64N/A

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i \cdot y\right)}, j, \left(c \cdot t\right) \cdot j\right) \]
                              8. lift-*.f64N/A

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

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right), j, \left(c \cdot t\right) \cdot j\right) \]
                              10. lower-*.f64N/A

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

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

                                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(\mathsf{neg}\left(y \cdot i\right), j, \color{blue}{\left(c \cdot t\right)} \cdot j\right) \]
                              13. *-commutativeN/A

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

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

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

                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                            6. Step-by-step derivation
                              1. lower-*.f64N/A

                                \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                              2. +-commutativeN/A

                                \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
                              3. lower-fma.f64N/A

                                \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(c, j, -1 \cdot \left(a \cdot x\right)\right)} \]
                              4. mul-1-negN/A

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
                              5. distribute-rgt-neg-inN/A

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                              6. mul-1-negN/A

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                              7. lower-*.f64N/A

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
                              8. mul-1-negN/A

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                              9. lower-neg.f6445.5

                                \[\leadsto t \cdot \mathsf{fma}\left(c, j, a \cdot \color{blue}{\left(-x\right)}\right) \]
                            7. Applied rewrites45.5%

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

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

                                \[\leadsto \left(a \cdot t\right) \cdot \color{blue}{\left(-x\right)} \]
                            10. Recombined 5 regimes into one program.
                            11. Final simplification40.3%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.55 \cdot 10^{+134}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-94}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{elif}\;x \leq 3 \cdot 10^{-281}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 1.55 \cdot 10^{+45}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;-x \cdot \left(t \cdot a\right)\\ \end{array} \]
                            12. Add Preprocessing

                            Alternative 13: 29.2% accurate, 1.6× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 5.6 \cdot 10^{+97}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{elif}\;b \leq 2.9 \cdot 10^{+200}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j)
                             :precision binary64
                             (if (<= b -2.15e+123)
                               (* i (* a b))
                               (if (<= b 1.25e-291)
                                 (* z (* x y))
                                 (if (<= b 5.6e+97)
                                   (* j (* t c))
                                   (if (<= b 2.9e+200) (* c (* z (- b))) (* a (* b i)))))))
                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if (b <= -2.15e+123) {
                            		tmp = i * (a * b);
                            	} else if (b <= 1.25e-291) {
                            		tmp = z * (x * y);
                            	} else if (b <= 5.6e+97) {
                            		tmp = j * (t * c);
                            	} else if (b <= 2.9e+200) {
                            		tmp = c * (z * -b);
                            	} else {
                            		tmp = a * (b * i);
                            	}
                            	return tmp;
                            }
                            
                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8), intent (in) :: a
                                real(8), intent (in) :: b
                                real(8), intent (in) :: c
                                real(8), intent (in) :: i
                                real(8), intent (in) :: j
                                real(8) :: tmp
                                if (b <= (-2.15d+123)) then
                                    tmp = i * (a * b)
                                else if (b <= 1.25d-291) then
                                    tmp = z * (x * y)
                                else if (b <= 5.6d+97) then
                                    tmp = j * (t * c)
                                else if (b <= 2.9d+200) then
                                    tmp = c * (z * -b)
                                else
                                    tmp = a * (b * i)
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                            	double tmp;
                            	if (b <= -2.15e+123) {
                            		tmp = i * (a * b);
                            	} else if (b <= 1.25e-291) {
                            		tmp = z * (x * y);
                            	} else if (b <= 5.6e+97) {
                            		tmp = j * (t * c);
                            	} else if (b <= 2.9e+200) {
                            		tmp = c * (z * -b);
                            	} else {
                            		tmp = a * (b * i);
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a, b, c, i, j):
                            	tmp = 0
                            	if b <= -2.15e+123:
                            		tmp = i * (a * b)
                            	elif b <= 1.25e-291:
                            		tmp = z * (x * y)
                            	elif b <= 5.6e+97:
                            		tmp = j * (t * c)
                            	elif b <= 2.9e+200:
                            		tmp = c * (z * -b)
                            	else:
                            		tmp = a * (b * i)
                            	return tmp
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0
                            	if (b <= -2.15e+123)
                            		tmp = Float64(i * Float64(a * b));
                            	elseif (b <= 1.25e-291)
                            		tmp = Float64(z * Float64(x * y));
                            	elseif (b <= 5.6e+97)
                            		tmp = Float64(j * Float64(t * c));
                            	elseif (b <= 2.9e+200)
                            		tmp = Float64(c * Float64(z * Float64(-b)));
                            	else
                            		tmp = Float64(a * Float64(b * i));
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                            	tmp = 0.0;
                            	if (b <= -2.15e+123)
                            		tmp = i * (a * b);
                            	elseif (b <= 1.25e-291)
                            		tmp = z * (x * y);
                            	elseif (b <= 5.6e+97)
                            		tmp = j * (t * c);
                            	elseif (b <= 2.9e+200)
                            		tmp = c * (z * -b);
                            	else
                            		tmp = a * (b * i);
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.15e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+97], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+200], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\
                            \;\;\;\;i \cdot \left(a \cdot b\right)\\
                            
                            \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
                            \;\;\;\;z \cdot \left(x \cdot y\right)\\
                            
                            \mathbf{elif}\;b \leq 5.6 \cdot 10^{+97}:\\
                            \;\;\;\;j \cdot \left(t \cdot c\right)\\
                            
                            \mathbf{elif}\;b \leq 2.9 \cdot 10^{+200}:\\
                            \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;a \cdot \left(b \cdot i\right)\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 5 regimes
                            2. if b < -2.14999999999999993e123

                              1. Initial program 83.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 a around inf

                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                              4. Step-by-step derivation
                                1. lower-*.f64N/A

                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                2. sub-negN/A

                                  \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                3. mul-1-negN/A

                                  \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                4. distribute-rgt-neg-inN/A

                                  \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                5. mul-1-negN/A

                                  \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                6. mul-1-negN/A

                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                7. remove-double-negN/A

                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                8. lower-fma.f64N/A

                                  \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                9. mul-1-negN/A

                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                10. lower-neg.f64N/A

                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                11. *-commutativeN/A

                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                12. lower-*.f6443.0

                                  \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                              5. Applied rewrites43.0%

                                \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                              6. Taylor expanded in t around 0

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

                                  \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                2. Step-by-step derivation
                                  1. Applied rewrites42.4%

                                    \[\leadsto \left(b \cdot a\right) \cdot i \]

                                  if -2.14999999999999993e123 < b < 1.2500000000000001e-291

                                  1. Initial program 70.6%

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

                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                  4. Step-by-step derivation
                                    1. lower-*.f64N/A

                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                    2. sub-negN/A

                                      \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                    3. mul-1-negN/A

                                      \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                    4. +-commutativeN/A

                                      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                    5. associate-*r*N/A

                                      \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                    6. *-commutativeN/A

                                      \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                    7. lower-fma.f64N/A

                                      \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                    8. neg-mul-1N/A

                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                    9. lower-neg.f64N/A

                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                    10. *-commutativeN/A

                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                    11. lower-*.f6449.5

                                      \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                  5. Applied rewrites49.5%

                                    \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                  6. Taylor expanded in c around 0

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

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

                                    if 1.2500000000000001e-291 < b < 5.5999999999999998e97

                                    1. Initial program 74.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 j around inf

                                      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                    4. Step-by-step derivation
                                      1. lower-*.f64N/A

                                        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                      2. sub-negN/A

                                        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                                      3. lower-fma.f64N/A

                                        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                      4. *-commutativeN/A

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
                                      5. distribute-rgt-neg-inN/A

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                      6. neg-mul-1N/A

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
                                      7. lower-*.f64N/A

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
                                      8. neg-mul-1N/A

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                      9. lower-neg.f6449.2

                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
                                    5. Applied rewrites49.2%

                                      \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)} \]
                                    6. Taylor expanded in c around inf

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

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

                                      if 5.5999999999999998e97 < b < 2.8999999999999999e200

                                      1. Initial program 65.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 z around inf

                                        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                      4. Step-by-step derivation
                                        1. lower-*.f64N/A

                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                        2. sub-negN/A

                                          \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                        3. mul-1-negN/A

                                          \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                        4. +-commutativeN/A

                                          \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                        5. associate-*r*N/A

                                          \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                        6. *-commutativeN/A

                                          \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                        7. lower-fma.f64N/A

                                          \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                        8. neg-mul-1N/A

                                          \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                        9. lower-neg.f64N/A

                                          \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                        10. *-commutativeN/A

                                          \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                        11. lower-*.f6453.2

                                          \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                      5. Applied rewrites53.2%

                                        \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                      6. Taylor expanded in c around inf

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

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

                                        if 2.8999999999999999e200 < b

                                        1. Initial program 79.5%

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

                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                        4. Step-by-step derivation
                                          1. lower-*.f64N/A

                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                          2. sub-negN/A

                                            \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                          3. mul-1-negN/A

                                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                          4. distribute-rgt-neg-inN/A

                                            \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                          5. mul-1-negN/A

                                            \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                          6. mul-1-negN/A

                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                          7. remove-double-negN/A

                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                          8. lower-fma.f64N/A

                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                          9. mul-1-negN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                          10. lower-neg.f64N/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                          11. *-commutativeN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                          12. lower-*.f6469.0

                                            \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                        5. Applied rewrites69.0%

                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                        6. Taylor expanded in t around 0

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

                                            \[\leadsto a \cdot \left(i \cdot \color{blue}{b}\right) \]
                                        8. Recombined 5 regimes into one program.
                                        9. Final simplification40.2%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 5.6 \cdot 10^{+97}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{elif}\;b \leq 2.9 \cdot 10^{+200}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 14: 51.8% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{if}\;b \leq -1.62 \cdot 10^{-12}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -8 \cdot 10^{-197}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* b (fma c (- z) (* a i)))))
                                           (if (<= b -1.62e-12)
                                             t_1
                                             (if (<= b -8e-197)
                                               (* y (fma j (- i) (* x z)))
                                               (if (<= b 1.5e+123) (* t (fma j c (* x (- a)))) t_1)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = b * fma(c, -z, (a * i));
                                        	double tmp;
                                        	if (b <= -1.62e-12) {
                                        		tmp = t_1;
                                        	} else if (b <= -8e-197) {
                                        		tmp = y * fma(j, -i, (x * z));
                                        	} else if (b <= 1.5e+123) {
                                        		tmp = t * fma(j, c, (x * -a));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i)))
                                        	tmp = 0.0
                                        	if (b <= -1.62e-12)
                                        		tmp = t_1;
                                        	elseif (b <= -8e-197)
                                        		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
                                        	elseif (b <= 1.5e+123)
                                        		tmp = Float64(t * fma(j, c, Float64(x * Float64(-a))));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.62e-12], t$95$1, If[LessEqual[b, -8e-197], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+123], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
                                        \mathbf{if}\;b \leq -1.62 \cdot 10^{-12}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;b \leq -8 \cdot 10^{-197}:\\
                                        \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\
                                        
                                        \mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\
                                        \;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if b < -1.62e-12 or 1.50000000000000004e123 < b

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

                                            \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. sub-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
                                            2. +-commutativeN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
                                            3. remove-double-negN/A

                                              \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
                                            4. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            5. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            7. lower-*.f64N/A

                                              \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            8. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                            9. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
                                            10. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            11. distribute-rgt-neg-inN/A

                                              \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            12. mul-1-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            13. remove-double-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
                                            14. lower-fma.f64N/A

                                              \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
                                            15. mul-1-negN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            16. lower-neg.f64N/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            17. *-commutativeN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
                                            18. lower-*.f6466.0

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
                                          5. Applied rewrites66.0%

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

                                          if -1.62e-12 < b < -7.9999999999999999e-197

                                          1. Initial program 69.1%

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

                                            \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                            2. associate-*r*N/A

                                              \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \]
                                            3. *-commutativeN/A

                                              \[\leadsto y \cdot \left(\color{blue}{j \cdot \left(-1 \cdot i\right)} + x \cdot z\right) \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto y \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot i, x \cdot z\right)} \]
                                            5. neg-mul-1N/A

                                              \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
                                            6. lower-neg.f64N/A

                                              \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
                                            7. *-commutativeN/A

                                              \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
                                            8. lower-*.f6460.2

                                              \[\leadsto y \cdot \mathsf{fma}\left(j, -i, \color{blue}{z \cdot x}\right) \]
                                          5. Applied rewrites60.2%

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

                                          if -7.9999999999999999e-197 < b < 1.50000000000000004e123

                                          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 t around inf

                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                            2. +-commutativeN/A

                                              \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
                                            3. *-commutativeN/A

                                              \[\leadsto t \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(a \cdot x\right)\right) \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(a \cdot x\right)\right)} \]
                                            5. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
                                            6. distribute-rgt-neg-inN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                            7. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                            8. lower-*.f64N/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
                                            9. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                            10. lower-neg.f6455.3

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-x\right)}\right) \]
                                          5. Applied rewrites55.3%

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

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

                                        Alternative 15: 51.1% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{if}\;b \leq -3.55 \cdot 10^{-34}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -3.6 \cdot 10^{-197}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* b (fma c (- z) (* a i)))))
                                           (if (<= b -3.55e-34)
                                             t_1
                                             (if (<= b -3.6e-197)
                                               (* j (fma c t (* y (- i))))
                                               (if (<= b 1.5e+123) (* t (fma j c (* x (- a)))) t_1)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = b * fma(c, -z, (a * i));
                                        	double tmp;
                                        	if (b <= -3.55e-34) {
                                        		tmp = t_1;
                                        	} else if (b <= -3.6e-197) {
                                        		tmp = j * fma(c, t, (y * -i));
                                        	} else if (b <= 1.5e+123) {
                                        		tmp = t * fma(j, c, (x * -a));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i)))
                                        	tmp = 0.0
                                        	if (b <= -3.55e-34)
                                        		tmp = t_1;
                                        	elseif (b <= -3.6e-197)
                                        		tmp = Float64(j * fma(c, t, Float64(y * Float64(-i))));
                                        	elseif (b <= 1.5e+123)
                                        		tmp = Float64(t * fma(j, c, Float64(x * Float64(-a))));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.55e-34], t$95$1, If[LessEqual[b, -3.6e-197], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.5e+123], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
                                        \mathbf{if}\;b \leq -3.55 \cdot 10^{-34}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;b \leq -3.6 \cdot 10^{-197}:\\
                                        \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
                                        
                                        \mathbf{elif}\;b \leq 1.5 \cdot 10^{+123}:\\
                                        \;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if b < -3.55000000000000018e-34 or 1.50000000000000004e123 < b

                                          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

                                            \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. sub-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
                                            2. +-commutativeN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
                                            3. remove-double-negN/A

                                              \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
                                            4. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            5. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            7. lower-*.f64N/A

                                              \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            8. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                            9. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
                                            10. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            11. distribute-rgt-neg-inN/A

                                              \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            12. mul-1-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            13. remove-double-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
                                            14. lower-fma.f64N/A

                                              \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
                                            15. mul-1-negN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            16. lower-neg.f64N/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            17. *-commutativeN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
                                            18. lower-*.f6464.0

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
                                          5. Applied rewrites64.0%

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

                                          if -3.55000000000000018e-34 < b < -3.5999999999999998e-197

                                          1. Initial program 73.2%

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

                                            \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                                            3. lower-fma.f64N/A

                                              \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                            4. *-commutativeN/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
                                            5. distribute-rgt-neg-inN/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                            6. neg-mul-1N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
                                            7. lower-*.f64N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
                                            8. neg-mul-1N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                            9. lower-neg.f6452.1

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
                                          5. Applied rewrites52.1%

                                            \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)} \]

                                          if -3.5999999999999998e-197 < b < 1.50000000000000004e123

                                          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 t around inf

                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right)} \]
                                            2. +-commutativeN/A

                                              \[\leadsto t \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(a \cdot x\right)\right)} \]
                                            3. *-commutativeN/A

                                              \[\leadsto t \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(a \cdot x\right)\right) \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(a \cdot x\right)\right)} \]
                                            5. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(a \cdot x\right)}\right) \]
                                            6. distribute-rgt-neg-inN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                            7. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                            8. lower-*.f64N/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, \color{blue}{a \cdot \left(-1 \cdot x\right)}\right) \]
                                            9. mul-1-negN/A

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                            10. lower-neg.f6455.3

                                              \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(-x\right)}\right) \]
                                          5. Applied rewrites55.3%

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

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

                                        Alternative 16: 52.3% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{if}\;a \leq -3.3 \cdot 10^{+96}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 2.8 \cdot 10^{-285}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{+54}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\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 (* a (fma t (- x) (* b i)))))
                                           (if (<= a -3.3e+96)
                                             t_1
                                             (if (<= a 2.8e-285)
                                               (* c (fma j t (* z (- b))))
                                               (if (<= a 7.8e+54) (* j (fma c t (* y (- i)))) t_1)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = a * fma(t, -x, (b * i));
                                        	double tmp;
                                        	if (a <= -3.3e+96) {
                                        		tmp = t_1;
                                        	} else if (a <= 2.8e-285) {
                                        		tmp = c * fma(j, t, (z * -b));
                                        	} else if (a <= 7.8e+54) {
                                        		tmp = j * fma(c, t, (y * -i));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(a * fma(t, Float64(-x), Float64(b * i)))
                                        	tmp = 0.0
                                        	if (a <= -3.3e+96)
                                        		tmp = t_1;
                                        	elseif (a <= 2.8e-285)
                                        		tmp = Float64(c * fma(j, t, Float64(z * Float64(-b))));
                                        	elseif (a <= 7.8e+54)
                                        		tmp = Float64(j * fma(c, t, Float64(y * Float64(-i))));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.3e+96], t$95$1, If[LessEqual[a, 2.8e-285], N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e+54], N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
                                        \mathbf{if}\;a \leq -3.3 \cdot 10^{+96}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;a \leq 2.8 \cdot 10^{-285}:\\
                                        \;\;\;\;c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
                                        
                                        \mathbf{elif}\;a \leq 7.8 \cdot 10^{+54}:\\
                                        \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if a < -3.29999999999999984e96 or 7.8000000000000005e54 < a

                                          1. Initial program 60.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 a around inf

                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                            3. mul-1-negN/A

                                              \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            4. distribute-rgt-neg-inN/A

                                              \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            5. mul-1-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                            7. remove-double-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                            8. lower-fma.f64N/A

                                              \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                            9. mul-1-negN/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                            11. *-commutativeN/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                            12. lower-*.f6469.0

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                          5. Applied rewrites69.0%

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

                                          if -3.29999999999999984e96 < a < 2.79999999999999991e-285

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

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

                                              \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto c \cdot \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
                                            3. mul-1-negN/A

                                              \[\leadsto c \cdot \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(j, t, -1 \cdot \left(b \cdot z\right)\right)} \]
                                            5. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
                                            6. distribute-rgt-neg-inN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                            7. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-1 \cdot z\right)}\right) \]
                                            8. lower-*.f64N/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(-1 \cdot z\right)}\right) \]
                                            9. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                            10. lower-neg.f6449.9

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-z\right)}\right) \]
                                          5. Applied rewrites49.9%

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

                                          if 2.79999999999999991e-285 < a < 7.8000000000000005e54

                                          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 j around inf

                                            \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                                            3. lower-fma.f64N/A

                                              \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                            4. *-commutativeN/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
                                            5. distribute-rgt-neg-inN/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                            6. neg-mul-1N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
                                            7. lower-*.f64N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
                                            8. neg-mul-1N/A

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                            9. lower-neg.f6450.7

                                              \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
                                          5. Applied rewrites50.7%

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

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

                                        Alternative 17: 51.1% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\ \mathbf{if}\;c \leq -4.5 \cdot 10^{-64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq -1.58 \cdot 10^{-270}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* c (fma j t (* z (- b))))))
                                           (if (<= c -4.5e-64)
                                             t_1
                                             (if (<= c -1.58e-270)
                                               (* i (fma j (- y) (* a b)))
                                               (if (<= c 9e+78) (* a (fma t (- x) (* b i))) t_1)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = c * fma(j, t, (z * -b));
                                        	double tmp;
                                        	if (c <= -4.5e-64) {
                                        		tmp = t_1;
                                        	} else if (c <= -1.58e-270) {
                                        		tmp = i * fma(j, -y, (a * b));
                                        	} else if (c <= 9e+78) {
                                        		tmp = a * fma(t, -x, (b * i));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(c * fma(j, t, Float64(z * Float64(-b))))
                                        	tmp = 0.0
                                        	if (c <= -4.5e-64)
                                        		tmp = t_1;
                                        	elseif (c <= -1.58e-270)
                                        		tmp = Float64(i * fma(j, Float64(-y), Float64(a * b)));
                                        	elseif (c <= 9e+78)
                                        		tmp = Float64(a * fma(t, Float64(-x), Float64(b * i)));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.5e-64], t$95$1, If[LessEqual[c, -1.58e-270], N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e+78], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
                                        \mathbf{if}\;c \leq -4.5 \cdot 10^{-64}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;c \leq -1.58 \cdot 10^{-270}:\\
                                        \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
                                        
                                        \mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\
                                        \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if c < -4.5000000000000001e-64 or 8.9999999999999999e78 < c

                                          1. Initial program 70.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 c around inf

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

                                              \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto c \cdot \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
                                            3. mul-1-negN/A

                                              \[\leadsto c \cdot \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
                                            4. lower-fma.f64N/A

                                              \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(j, t, -1 \cdot \left(b \cdot z\right)\right)} \]
                                            5. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
                                            6. distribute-rgt-neg-inN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                            7. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-1 \cdot z\right)}\right) \]
                                            8. lower-*.f64N/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(-1 \cdot z\right)}\right) \]
                                            9. mul-1-negN/A

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                            10. lower-neg.f6461.4

                                              \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-z\right)}\right) \]
                                          5. Applied rewrites61.4%

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

                                          if -4.5000000000000001e-64 < c < -1.57999999999999997e-270

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

                                            \[\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. lower-*.f64N/A

                                              \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right)} \]
                                            3. mul-1-negN/A

                                              \[\leadsto i \cdot \left(\color{blue}{\left(\mathsf{neg}\left(j \cdot y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
                                            4. distribute-rgt-neg-inN/A

                                              \[\leadsto i \cdot \left(\color{blue}{j \cdot \left(\mathsf{neg}\left(y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
                                            5. mul-1-negN/A

                                              \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-1 \cdot y\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \]
                                            7. remove-double-negN/A

                                              \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{a \cdot b}\right) \]
                                            8. lower-fma.f64N/A

                                              \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, a \cdot b\right)} \]
                                            9. mul-1-negN/A

                                              \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
                                            11. *-commutativeN/A

                                              \[\leadsto i \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(y\right), \color{blue}{b \cdot a}\right) \]
                                            12. lower-*.f6458.0

                                              \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot a}\right) \]
                                          5. Applied rewrites58.0%

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

                                          if -1.57999999999999997e-270 < c < 8.9999999999999999e78

                                          1. Initial program 76.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 a around inf

                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                            3. mul-1-negN/A

                                              \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            4. distribute-rgt-neg-inN/A

                                              \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            5. mul-1-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                            7. remove-double-negN/A

                                              \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                            8. lower-fma.f64N/A

                                              \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                            9. mul-1-negN/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                            11. *-commutativeN/A

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                            12. lower-*.f6448.0

                                              \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                          5. Applied rewrites48.0%

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

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

                                        Alternative 18: 45.8% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{if}\;b \leq -1.08 \cdot 10^{-13}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -1.36 \cdot 10^{-86}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+51}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* b (fma c (- z) (* a i)))))
                                           (if (<= b -1.08e-13)
                                             t_1
                                             (if (<= b -1.36e-86)
                                               (* y (* x z))
                                               (if (<= b 9.5e+51) (* a (fma t (- x) (* b i))) t_1)))))
                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = b * fma(c, -z, (a * i));
                                        	double tmp;
                                        	if (b <= -1.08e-13) {
                                        		tmp = t_1;
                                        	} else if (b <= -1.36e-86) {
                                        		tmp = y * (x * z);
                                        	} else if (b <= 9.5e+51) {
                                        		tmp = a * fma(t, -x, (b * i));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(b * fma(c, Float64(-z), Float64(a * i)))
                                        	tmp = 0.0
                                        	if (b <= -1.08e-13)
                                        		tmp = t_1;
                                        	elseif (b <= -1.36e-86)
                                        		tmp = Float64(y * Float64(x * z));
                                        	elseif (b <= 9.5e+51)
                                        		tmp = Float64(a * fma(t, Float64(-x), Float64(b * i)));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.08e-13], t$95$1, If[LessEqual[b, -1.36e-86], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e+51], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\
                                        \mathbf{if}\;b \leq -1.08 \cdot 10^{-13}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;b \leq -1.36 \cdot 10^{-86}:\\
                                        \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                        
                                        \mathbf{elif}\;b \leq 9.5 \cdot 10^{+51}:\\
                                        \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if b < -1.0799999999999999e-13 or 9.4999999999999999e51 < b

                                          1. Initial program 77.5%

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

                                            \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                          4. Step-by-step derivation
                                            1. sub-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
                                            2. +-commutativeN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
                                            3. remove-double-negN/A

                                              \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
                                            4. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            5. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            7. lower-*.f64N/A

                                              \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
                                            8. mul-1-negN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                            9. sub-negN/A

                                              \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
                                            10. distribute-neg-inN/A

                                              \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
                                            11. distribute-rgt-neg-inN/A

                                              \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            12. mul-1-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \]
                                            13. remove-double-negN/A

                                              \[\leadsto b \cdot \left(c \cdot \left(-1 \cdot z\right) + \color{blue}{a \cdot i}\right) \]
                                            14. lower-fma.f64N/A

                                              \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
                                            15. mul-1-negN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            16. lower-neg.f64N/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
                                            17. *-commutativeN/A

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
                                            18. lower-*.f6463.1

                                              \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
                                          5. Applied rewrites63.1%

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

                                          if -1.0799999999999999e-13 < b < -1.3599999999999999e-86

                                          1. Initial program 70.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 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. Step-by-step derivation
                                            1. +-commutativeN/A

                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                            2. lower-fma.f64N/A

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                                            3. lower--.f64N/A

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

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

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                            6. lower-*.f64N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                            7. lower-*.f64N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                                            8. sub-negN/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                                            9. lower-fma.f64N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                                            10. *-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                                            11. distribute-rgt-neg-inN/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                            12. neg-mul-1N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                                            13. lower-*.f64N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                                            14. neg-mul-1N/A

                                              \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                            15. lower-neg.f6463.0

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

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

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

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

                                            if -1.3599999999999999e-86 < b < 9.4999999999999999e51

                                            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 a around inf

                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                              3. mul-1-negN/A

                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              4. distribute-rgt-neg-inN/A

                                                \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              5. mul-1-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              6. mul-1-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                              7. remove-double-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                              8. lower-fma.f64N/A

                                                \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                              9. mul-1-negN/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              10. lower-neg.f64N/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              11. *-commutativeN/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                              12. lower-*.f6437.5

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                            5. Applied rewrites37.5%

                                              \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                          8. Recombined 3 regimes into one program.
                                          9. Final simplification51.1%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.08 \cdot 10^{-13}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{elif}\;b \leq -1.36 \cdot 10^{-86}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+51}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \end{array} \]
                                          10. Add Preprocessing

                                          Alternative 19: 51.5% accurate, 2.0× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\ \mathbf{if}\;c \leq -1.35 \cdot 10^{-54}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i j)
                                           :precision binary64
                                           (let* ((t_1 (* c (fma j t (* z (- b))))))
                                             (if (<= c -1.35e-54)
                                               t_1
                                               (if (<= c 9e+78) (* a (fma t (- x) (* b i))) t_1))))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                          	double t_1 = c * fma(j, t, (z * -b));
                                          	double tmp;
                                          	if (c <= -1.35e-54) {
                                          		tmp = t_1;
                                          	} else if (c <= 9e+78) {
                                          		tmp = a * fma(t, -x, (b * i));
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(x, y, z, t, a, b, c, i, j)
                                          	t_1 = Float64(c * fma(j, t, Float64(z * Float64(-b))))
                                          	tmp = 0.0
                                          	if (c <= -1.35e-54)
                                          		tmp = t_1;
                                          	elseif (c <= 9e+78)
                                          		tmp = Float64(a * fma(t, Float64(-x), Float64(b * i)));
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(j * t + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e-54], t$95$1, If[LessEqual[c, 9e+78], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := c \cdot \mathsf{fma}\left(j, t, z \cdot \left(-b\right)\right)\\
                                          \mathbf{if}\;c \leq -1.35 \cdot 10^{-54}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;c \leq 9 \cdot 10^{+78}:\\
                                          \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if c < -1.35000000000000013e-54 or 8.9999999999999999e78 < c

                                            1. Initial program 71.4%

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

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

                                                \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto c \cdot \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
                                              3. mul-1-negN/A

                                                \[\leadsto c \cdot \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
                                              4. lower-fma.f64N/A

                                                \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(j, t, -1 \cdot \left(b \cdot z\right)\right)} \]
                                              5. mul-1-negN/A

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
                                              6. distribute-rgt-neg-inN/A

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                              7. mul-1-negN/A

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-1 \cdot z\right)}\right) \]
                                              8. lower-*.f64N/A

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, \color{blue}{b \cdot \left(-1 \cdot z\right)}\right) \]
                                              9. mul-1-negN/A

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(\mathsf{neg}\left(z\right)\right)}\right) \]
                                              10. lower-neg.f6461.9

                                                \[\leadsto c \cdot \mathsf{fma}\left(j, t, b \cdot \color{blue}{\left(-z\right)}\right) \]
                                            5. Applied rewrites61.9%

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

                                            if -1.35000000000000013e-54 < c < 8.9999999999999999e78

                                            1. Initial program 76.1%

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

                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                              3. mul-1-negN/A

                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              4. distribute-rgt-neg-inN/A

                                                \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              5. mul-1-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              6. mul-1-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                              7. remove-double-negN/A

                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                              8. lower-fma.f64N/A

                                                \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                              9. mul-1-negN/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              10. lower-neg.f64N/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              11. *-commutativeN/A

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                              12. lower-*.f6447.1

                                                \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                            5. Applied rewrites47.1%

                                              \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                          3. Recombined 2 regimes into one program.
                                          4. Final simplification54.5%

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

                                          Alternative 20: 42.2% accurate, 2.0× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;y \leq -7.5 \cdot 10^{+119}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{+152}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i j)
                                           :precision binary64
                                           (let* ((t_1 (* z (* x y))))
                                             (if (<= y -7.5e+119)
                                               t_1
                                               (if (<= y 1.45e+152) (* a (fma t (- x) (* b i))) t_1))))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                          	double t_1 = z * (x * y);
                                          	double tmp;
                                          	if (y <= -7.5e+119) {
                                          		tmp = t_1;
                                          	} else if (y <= 1.45e+152) {
                                          		tmp = a * fma(t, -x, (b * i));
                                          	} else {
                                          		tmp = t_1;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          function code(x, y, z, t, a, b, c, i, j)
                                          	t_1 = Float64(z * Float64(x * y))
                                          	tmp = 0.0
                                          	if (y <= -7.5e+119)
                                          		tmp = t_1;
                                          	elseif (y <= 1.45e+152)
                                          		tmp = Float64(a * fma(t, Float64(-x), Float64(b * i)));
                                          	else
                                          		tmp = t_1;
                                          	end
                                          	return tmp
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.5e+119], t$95$1, If[LessEqual[y, 1.45e+152], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          t_1 := z \cdot \left(x \cdot y\right)\\
                                          \mathbf{if}\;y \leq -7.5 \cdot 10^{+119}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          \mathbf{elif}\;y \leq 1.45 \cdot 10^{+152}:\\
                                          \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;t\_1\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 2 regimes
                                          2. if y < -7.500000000000001e119 or 1.4499999999999999e152 < y

                                            1. Initial program 56.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 z around inf

                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                              3. mul-1-negN/A

                                                \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                              4. +-commutativeN/A

                                                \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                              5. associate-*r*N/A

                                                \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                              6. *-commutativeN/A

                                                \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                              7. lower-fma.f64N/A

                                                \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                              8. neg-mul-1N/A

                                                \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                              9. lower-neg.f64N/A

                                                \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                              10. *-commutativeN/A

                                                \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                              11. lower-*.f6461.8

                                                \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                            5. Applied rewrites61.8%

                                              \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                            6. Taylor expanded in c around 0

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

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

                                              if -7.500000000000001e119 < y < 1.4499999999999999e152

                                              1. Initial program 80.7%

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

                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                              4. Step-by-step derivation
                                                1. lower-*.f64N/A

                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                2. sub-negN/A

                                                  \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                3. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                4. distribute-rgt-neg-inN/A

                                                  \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                5. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                6. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                7. remove-double-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                8. lower-fma.f64N/A

                                                  \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                9. mul-1-negN/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                10. lower-neg.f64N/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                11. *-commutativeN/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                12. lower-*.f6442.8

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                              5. Applied rewrites42.8%

                                                \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                            8. Recombined 2 regimes into one program.
                                            9. Final simplification45.5%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -7.5 \cdot 10^{+119}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;y \leq 1.45 \cdot 10^{+152}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 21: 29.2% accurate, 2.1× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i j)
                                             :precision binary64
                                             (if (<= b -2.15e+123)
                                               (* i (* a b))
                                               (if (<= b 1.25e-291)
                                                 (* z (* x y))
                                                 (if (<= b 9.8e+94) (* j (* t c)) (* a (* b i))))))
                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if (b <= -2.15e+123) {
                                            		tmp = i * (a * b);
                                            	} else if (b <= 1.25e-291) {
                                            		tmp = z * (x * y);
                                            	} else if (b <= 9.8e+94) {
                                            		tmp = j * (t * c);
                                            	} else {
                                            		tmp = a * (b * i);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                real(8), intent (in) :: b
                                                real(8), intent (in) :: c
                                                real(8), intent (in) :: i
                                                real(8), intent (in) :: j
                                                real(8) :: tmp
                                                if (b <= (-2.15d+123)) then
                                                    tmp = i * (a * b)
                                                else if (b <= 1.25d-291) then
                                                    tmp = z * (x * y)
                                                else if (b <= 9.8d+94) then
                                                    tmp = j * (t * c)
                                                else
                                                    tmp = a * (b * i)
                                                end if
                                                code = tmp
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                            	double tmp;
                                            	if (b <= -2.15e+123) {
                                            		tmp = i * (a * b);
                                            	} else if (b <= 1.25e-291) {
                                            		tmp = z * (x * y);
                                            	} else if (b <= 9.8e+94) {
                                            		tmp = j * (t * c);
                                            	} else {
                                            		tmp = a * (b * i);
                                            	}
                                            	return tmp;
                                            }
                                            
                                            def code(x, y, z, t, a, b, c, i, j):
                                            	tmp = 0
                                            	if b <= -2.15e+123:
                                            		tmp = i * (a * b)
                                            	elif b <= 1.25e-291:
                                            		tmp = z * (x * y)
                                            	elif b <= 9.8e+94:
                                            		tmp = j * (t * c)
                                            	else:
                                            		tmp = a * (b * i)
                                            	return tmp
                                            
                                            function code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0
                                            	if (b <= -2.15e+123)
                                            		tmp = Float64(i * Float64(a * b));
                                            	elseif (b <= 1.25e-291)
                                            		tmp = Float64(z * Float64(x * y));
                                            	elseif (b <= 9.8e+94)
                                            		tmp = Float64(j * Float64(t * c));
                                            	else
                                            		tmp = Float64(a * Float64(b * i));
                                            	end
                                            	return tmp
                                            end
                                            
                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0;
                                            	if (b <= -2.15e+123)
                                            		tmp = i * (a * b);
                                            	elseif (b <= 1.25e-291)
                                            		tmp = z * (x * y);
                                            	elseif (b <= 9.8e+94)
                                            		tmp = j * (t * c);
                                            	else
                                            		tmp = a * (b * i);
                                            	end
                                            	tmp_2 = tmp;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.15e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+94], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\
                                            \;\;\;\;i \cdot \left(a \cdot b\right)\\
                                            
                                            \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
                                            \;\;\;\;z \cdot \left(x \cdot y\right)\\
                                            
                                            \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\
                                            \;\;\;\;j \cdot \left(t \cdot c\right)\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;a \cdot \left(b \cdot i\right)\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 4 regimes
                                            2. if b < -2.14999999999999993e123

                                              1. Initial program 83.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 a around inf

                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                              4. Step-by-step derivation
                                                1. lower-*.f64N/A

                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                2. sub-negN/A

                                                  \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                3. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                4. distribute-rgt-neg-inN/A

                                                  \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                5. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                6. mul-1-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                7. remove-double-negN/A

                                                  \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                8. lower-fma.f64N/A

                                                  \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                9. mul-1-negN/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                10. lower-neg.f64N/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                11. *-commutativeN/A

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                12. lower-*.f6443.0

                                                  \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                              5. Applied rewrites43.0%

                                                \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                              6. Taylor expanded in t around 0

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

                                                  \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                                2. Step-by-step derivation
                                                  1. Applied rewrites42.4%

                                                    \[\leadsto \left(b \cdot a\right) \cdot i \]

                                                  if -2.14999999999999993e123 < b < 1.2500000000000001e-291

                                                  1. Initial program 70.6%

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

                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                  4. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                    2. sub-negN/A

                                                      \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
                                                    3. mul-1-negN/A

                                                      \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
                                                    4. +-commutativeN/A

                                                      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                    5. associate-*r*N/A

                                                      \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
                                                    6. *-commutativeN/A

                                                      \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
                                                    7. lower-fma.f64N/A

                                                      \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
                                                    8. neg-mul-1N/A

                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                    9. lower-neg.f64N/A

                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
                                                    10. *-commutativeN/A

                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
                                                    11. lower-*.f6449.5

                                                      \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
                                                  5. Applied rewrites49.5%

                                                    \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
                                                  6. Taylor expanded in c around 0

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

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

                                                    if 1.2500000000000001e-291 < b < 9.7999999999999998e94

                                                    1. Initial program 74.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 j around inf

                                                      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                    4. Step-by-step derivation
                                                      1. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                      2. sub-negN/A

                                                        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                                                      3. lower-fma.f64N/A

                                                        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                      4. *-commutativeN/A

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
                                                      5. distribute-rgt-neg-inN/A

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                                      6. neg-mul-1N/A

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
                                                      7. lower-*.f64N/A

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
                                                      8. neg-mul-1N/A

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                                      9. lower-neg.f6449.2

                                                        \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
                                                    5. Applied rewrites49.2%

                                                      \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)} \]
                                                    6. Taylor expanded in c around inf

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

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

                                                      if 9.7999999999999998e94 < b

                                                      1. Initial program 71.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 a around inf

                                                        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                      4. Step-by-step derivation
                                                        1. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                        2. sub-negN/A

                                                          \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                        3. mul-1-negN/A

                                                          \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                        4. distribute-rgt-neg-inN/A

                                                          \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                        5. mul-1-negN/A

                                                          \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                        6. mul-1-negN/A

                                                          \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                        7. remove-double-negN/A

                                                          \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                        8. lower-fma.f64N/A

                                                          \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                        9. mul-1-negN/A

                                                          \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                        10. lower-neg.f64N/A

                                                          \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                        11. *-commutativeN/A

                                                          \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                        12. lower-*.f6452.9

                                                          \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                      5. Applied rewrites52.9%

                                                        \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                      6. Taylor expanded in t around 0

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

                                                          \[\leadsto a \cdot \left(i \cdot \color{blue}{b}\right) \]
                                                      8. Recombined 4 regimes into one program.
                                                      9. Final simplification38.6%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2.15 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 22: 29.2% accurate, 2.1× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -2 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b c i j)
                                                       :precision binary64
                                                       (if (<= b -2e+123)
                                                         (* i (* a b))
                                                         (if (<= b 1.25e-291)
                                                           (* y (* x z))
                                                           (if (<= b 9.8e+94) (* j (* t c)) (* a (* b i))))))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	double tmp;
                                                      	if (b <= -2e+123) {
                                                      		tmp = i * (a * b);
                                                      	} else if (b <= 1.25e-291) {
                                                      		tmp = y * (x * z);
                                                      	} else if (b <= 9.8e+94) {
                                                      		tmp = j * (t * c);
                                                      	} else {
                                                      		tmp = a * (b * i);
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                          real(8), intent (in) :: x
                                                          real(8), intent (in) :: y
                                                          real(8), intent (in) :: z
                                                          real(8), intent (in) :: t
                                                          real(8), intent (in) :: a
                                                          real(8), intent (in) :: b
                                                          real(8), intent (in) :: c
                                                          real(8), intent (in) :: i
                                                          real(8), intent (in) :: j
                                                          real(8) :: tmp
                                                          if (b <= (-2d+123)) then
                                                              tmp = i * (a * b)
                                                          else if (b <= 1.25d-291) then
                                                              tmp = y * (x * z)
                                                          else if (b <= 9.8d+94) then
                                                              tmp = j * (t * c)
                                                          else
                                                              tmp = a * (b * i)
                                                          end if
                                                          code = tmp
                                                      end function
                                                      
                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	double tmp;
                                                      	if (b <= -2e+123) {
                                                      		tmp = i * (a * b);
                                                      	} else if (b <= 1.25e-291) {
                                                      		tmp = y * (x * z);
                                                      	} else if (b <= 9.8e+94) {
                                                      		tmp = j * (t * c);
                                                      	} else {
                                                      		tmp = a * (b * i);
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b, c, i, j):
                                                      	tmp = 0
                                                      	if b <= -2e+123:
                                                      		tmp = i * (a * b)
                                                      	elif b <= 1.25e-291:
                                                      		tmp = y * (x * z)
                                                      	elif b <= 9.8e+94:
                                                      		tmp = j * (t * c)
                                                      	else:
                                                      		tmp = a * (b * i)
                                                      	return tmp
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = 0.0
                                                      	if (b <= -2e+123)
                                                      		tmp = Float64(i * Float64(a * b));
                                                      	elseif (b <= 1.25e-291)
                                                      		tmp = Float64(y * Float64(x * z));
                                                      	elseif (b <= 9.8e+94)
                                                      		tmp = Float64(j * Float64(t * c));
                                                      	else
                                                      		tmp = Float64(a * Float64(b * i));
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = 0.0;
                                                      	if (b <= -2e+123)
                                                      		tmp = i * (a * b);
                                                      	elseif (b <= 1.25e-291)
                                                      		tmp = y * (x * z);
                                                      	elseif (b <= 9.8e+94)
                                                      		tmp = j * (t * c);
                                                      	else
                                                      		tmp = a * (b * i);
                                                      	end
                                                      	tmp_2 = tmp;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2e+123], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-291], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e+94], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;b \leq -2 \cdot 10^{+123}:\\
                                                      \;\;\;\;i \cdot \left(a \cdot b\right)\\
                                                      
                                                      \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\
                                                      \;\;\;\;y \cdot \left(x \cdot z\right)\\
                                                      
                                                      \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\
                                                      \;\;\;\;j \cdot \left(t \cdot c\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;a \cdot \left(b \cdot i\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 4 regimes
                                                      2. if b < -1.99999999999999996e123

                                                        1. Initial program 83.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 a around inf

                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                        4. Step-by-step derivation
                                                          1. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                          2. sub-negN/A

                                                            \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                          3. mul-1-negN/A

                                                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                          4. distribute-rgt-neg-inN/A

                                                            \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                          5. mul-1-negN/A

                                                            \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                          6. mul-1-negN/A

                                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                          7. remove-double-negN/A

                                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                          8. lower-fma.f64N/A

                                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                          9. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                          10. lower-neg.f64N/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                          11. *-commutativeN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                          12. lower-*.f6443.0

                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                        5. Applied rewrites43.0%

                                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                        6. Taylor expanded in t around 0

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

                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                                          2. Step-by-step derivation
                                                            1. Applied rewrites42.4%

                                                              \[\leadsto \left(b \cdot a\right) \cdot i \]

                                                            if -1.99999999999999996e123 < b < 1.2500000000000001e-291

                                                            1. Initial program 70.6%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in b around 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. Step-by-step derivation
                                                              1. +-commutativeN/A

                                                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                              2. lower-fma.f64N/A

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                                                              3. lower--.f64N/A

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

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

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                              6. lower-*.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                              7. lower-*.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                                                              8. sub-negN/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                                                              9. lower-fma.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                                                              10. *-commutativeN/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                                                              11. distribute-rgt-neg-inN/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                              12. neg-mul-1N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                                                              13. lower-*.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                                                              14. neg-mul-1N/A

                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                              15. lower-neg.f6462.2

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

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

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

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

                                                              if 1.2500000000000001e-291 < b < 9.7999999999999998e94

                                                              1. Initial program 74.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 j around inf

                                                                \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                              4. Step-by-step derivation
                                                                1. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                                2. sub-negN/A

                                                                  \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
                                                                3. lower-fma.f64N/A

                                                                  \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
                                                                4. *-commutativeN/A

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
                                                                5. distribute-rgt-neg-inN/A

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                                                6. neg-mul-1N/A

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
                                                                7. lower-*.f64N/A

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right) \]
                                                                8. neg-mul-1N/A

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
                                                                9. lower-neg.f6449.2

                                                                  \[\leadsto j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-i\right)}\right) \]
                                                              5. Applied rewrites49.2%

                                                                \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)} \]
                                                              6. Taylor expanded in c around inf

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

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

                                                                if 9.7999999999999998e94 < b

                                                                1. Initial program 71.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 a around inf

                                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                  2. sub-negN/A

                                                                    \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                  3. mul-1-negN/A

                                                                    \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  4. distribute-rgt-neg-inN/A

                                                                    \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  5. mul-1-negN/A

                                                                    \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  6. mul-1-negN/A

                                                                    \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                  7. remove-double-negN/A

                                                                    \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                  8. lower-fma.f64N/A

                                                                    \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                                  9. mul-1-negN/A

                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                  10. lower-neg.f64N/A

                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                  11. *-commutativeN/A

                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                  12. lower-*.f6452.9

                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                                5. Applied rewrites52.9%

                                                                  \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                                6. Taylor expanded in t around 0

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

                                                                    \[\leadsto a \cdot \left(i \cdot \color{blue}{b}\right) \]
                                                                8. Recombined 4 regimes into one program.
                                                                9. Final simplification36.4%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -2 \cdot 10^{+123}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;b \leq 1.25 \cdot 10^{-291}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;b \leq 9.8 \cdot 10^{+94}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 23: 30.4% accurate, 2.6× speedup?

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

                                                                  1. Initial program 69.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

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

                                                                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                                    2. lower-fma.f64N/A

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                                                                    3. lower--.f64N/A

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

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

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                                    6. lower-*.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                                    7. lower-*.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                                                                    8. sub-negN/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                                                                    9. lower-fma.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                                                                    10. *-commutativeN/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                                                                    11. distribute-rgt-neg-inN/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                                    12. neg-mul-1N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                                                                    13. lower-*.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                                                                    14. neg-mul-1N/A

                                                                      \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                                    15. lower-neg.f6459.7

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

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

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

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

                                                                    if -2.39999999999999982e31 < z < 9.19999999999999986e-36

                                                                    1. Initial program 78.1%

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

                                                                      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                    4. Step-by-step derivation
                                                                      1. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                      2. sub-negN/A

                                                                        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                      3. mul-1-negN/A

                                                                        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      4. distribute-rgt-neg-inN/A

                                                                        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      5. mul-1-negN/A

                                                                        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      6. mul-1-negN/A

                                                                        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                      7. remove-double-negN/A

                                                                        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                      8. lower-fma.f64N/A

                                                                        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                                      9. mul-1-negN/A

                                                                        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                      11. *-commutativeN/A

                                                                        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                      12. lower-*.f6445.7

                                                                        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                                    5. Applied rewrites45.7%

                                                                      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                                    6. Taylor expanded in t around 0

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

                                                                        \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                                                      2. Step-by-step derivation
                                                                        1. Applied rewrites28.2%

                                                                          \[\leadsto \left(b \cdot a\right) \cdot i \]
                                                                      3. Recombined 2 regimes into one program.
                                                                      4. Final simplification34.2%

                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -2.4 \cdot 10^{+31}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \mathbf{elif}\;z \leq 9.2 \cdot 10^{-36}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;y \cdot \left(x \cdot z\right)\\ \end{array} \]
                                                                      5. Add Preprocessing

                                                                      Alternative 24: 29.9% accurate, 2.6× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(a \cdot b\right)\\ \mathbf{if}\;a \leq -1.2 \cdot 10^{+88}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+17}:\\ \;\;\;\;c \cdot \left(t \cdot j\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 -1.2e+88) t_1 (if (<= a 8e+17) (* c (* t j)) 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 <= -1.2e+88) {
                                                                      		tmp = t_1;
                                                                      	} else if (a <= 8e+17) {
                                                                      		tmp = c * (t * j);
                                                                      	} 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 <= (-1.2d+88)) then
                                                                              tmp = t_1
                                                                          else if (a <= 8d+17) then
                                                                              tmp = c * (t * j)
                                                                          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 <= -1.2e+88) {
                                                                      		tmp = t_1;
                                                                      	} else if (a <= 8e+17) {
                                                                      		tmp = c * (t * j);
                                                                      	} 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 <= -1.2e+88:
                                                                      		tmp = t_1
                                                                      	elif a <= 8e+17:
                                                                      		tmp = c * (t * j)
                                                                      	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 <= -1.2e+88)
                                                                      		tmp = t_1;
                                                                      	elseif (a <= 8e+17)
                                                                      		tmp = Float64(c * Float64(t * j));
                                                                      	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 <= -1.2e+88)
                                                                      		tmp = t_1;
                                                                      	elseif (a <= 8e+17)
                                                                      		tmp = c * (t * j);
                                                                      	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, -1.2e+88], t$95$1, If[LessEqual[a, 8e+17], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      t_1 := i \cdot \left(a \cdot b\right)\\
                                                                      \mathbf{if}\;a \leq -1.2 \cdot 10^{+88}:\\
                                                                      \;\;\;\;t\_1\\
                                                                      
                                                                      \mathbf{elif}\;a \leq 8 \cdot 10^{+17}:\\
                                                                      \;\;\;\;c \cdot \left(t \cdot j\right)\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;t\_1\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 2 regimes
                                                                      2. if a < -1.2e88 or 8e17 < a

                                                                        1. Initial program 59.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 a around inf

                                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                        4. Step-by-step derivation
                                                                          1. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                          2. sub-negN/A

                                                                            \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                          3. mul-1-negN/A

                                                                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                          4. distribute-rgt-neg-inN/A

                                                                            \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                          5. mul-1-negN/A

                                                                            \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                          6. mul-1-negN/A

                                                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                          7. remove-double-negN/A

                                                                            \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                          8. lower-fma.f64N/A

                                                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                                          9. mul-1-negN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                          10. lower-neg.f64N/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                          11. *-commutativeN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                          12. lower-*.f6462.2

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                                        5. Applied rewrites62.2%

                                                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                                        6. Taylor expanded in t around 0

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

                                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                                                          2. Step-by-step derivation
                                                                            1. Applied rewrites37.6%

                                                                              \[\leadsto \left(b \cdot a\right) \cdot i \]

                                                                            if -1.2e88 < a < 8e17

                                                                            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 b around 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. Step-by-step derivation
                                                                              1. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + j \cdot \left(c \cdot t - i \cdot y\right)} \]
                                                                              2. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, j \cdot \left(c \cdot t - i \cdot y\right)\right)} \]
                                                                              3. lower--.f64N/A

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

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

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                                              6. lower-*.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - \color{blue}{t \cdot a}, j \cdot \left(c \cdot t - i \cdot y\right)\right) \]
                                                                              7. lower-*.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)}\right) \]
                                                                              8. sub-negN/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)}\right) \]
                                                                              9. lower-fma.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)}\right) \]
                                                                              10. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right)\right) \]
                                                                              11. distribute-rgt-neg-inN/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                                              12. neg-mul-1N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(-1 \cdot i\right)}\right)\right) \]
                                                                              13. lower-*.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, \color{blue}{y \cdot \left(-1 \cdot i\right)}\right)\right) \]
                                                                              14. neg-mul-1N/A

                                                                                \[\leadsto \mathsf{fma}\left(x, y \cdot z - t \cdot a, j \cdot \mathsf{fma}\left(c, t, y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right)\right) \]
                                                                              15. lower-neg.f6467.3

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

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

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

                                                                                \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                            8. Recombined 2 regimes into one program.
                                                                            9. Final simplification31.1%

                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.2 \cdot 10^{+88}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{+17}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \end{array} \]
                                                                            10. Add Preprocessing

                                                                            Alternative 25: 22.3% accurate, 5.5× speedup?

                                                                            \[\begin{array}{l} \\ i \cdot \left(a \cdot b\right) \end{array} \]
                                                                            (FPCore (x y z t a b c i j) :precision binary64 (* i (* a b)))
                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                            	return i * (a * b);
                                                                            }
                                                                            
                                                                            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 = i * (a * b)
                                                                            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 i * (a * b);
                                                                            }
                                                                            
                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                            	return i * (a * b)
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                            	return Float64(i * Float64(a * b))
                                                                            end
                                                                            
                                                                            function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                            	tmp = i * (a * b);
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            i \cdot \left(a \cdot b\right)
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            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 a around inf

                                                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                              2. sub-negN/A

                                                                                \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                              3. mul-1-negN/A

                                                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                              4. distribute-rgt-neg-inN/A

                                                                                \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                              5. mul-1-negN/A

                                                                                \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                              6. mul-1-negN/A

                                                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                              7. remove-double-negN/A

                                                                                \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                              8. lower-fma.f64N/A

                                                                                \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                                              9. mul-1-negN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                              12. lower-*.f6436.6

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                                            5. Applied rewrites36.6%

                                                                              \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                                            6. Taylor expanded in t around 0

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

                                                                                \[\leadsto b \cdot \color{blue}{\left(i \cdot a\right)} \]
                                                                              2. Step-by-step derivation
                                                                                1. Applied rewrites21.1%

                                                                                  \[\leadsto \left(b \cdot a\right) \cdot i \]
                                                                                2. Final simplification21.1%

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

                                                                                Alternative 26: 22.1% accurate, 5.5× speedup?

                                                                                \[\begin{array}{l} \\ b \cdot \left(a \cdot i\right) \end{array} \]
                                                                                (FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                	return b * (a * i);
                                                                                }
                                                                                
                                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                    real(8), intent (in) :: x
                                                                                    real(8), intent (in) :: y
                                                                                    real(8), intent (in) :: z
                                                                                    real(8), intent (in) :: t
                                                                                    real(8), intent (in) :: a
                                                                                    real(8), intent (in) :: b
                                                                                    real(8), intent (in) :: c
                                                                                    real(8), intent (in) :: i
                                                                                    real(8), intent (in) :: j
                                                                                    code = b * (a * i)
                                                                                end function
                                                                                
                                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                	return b * (a * i);
                                                                                }
                                                                                
                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                	return b * (a * i)
                                                                                
                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                	return Float64(b * Float64(a * i))
                                                                                end
                                                                                
                                                                                function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                	tmp = b * (a * i);
                                                                                end
                                                                                
                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
                                                                                
                                                                                \begin{array}{l}
                                                                                
                                                                                \\
                                                                                b \cdot \left(a \cdot i\right)
                                                                                \end{array}
                                                                                
                                                                                Derivation
                                                                                1. Initial program 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 a around inf

                                                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                  2. sub-negN/A

                                                                                    \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                                  3. mul-1-negN/A

                                                                                    \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                  4. distribute-rgt-neg-inN/A

                                                                                    \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                  5. mul-1-negN/A

                                                                                    \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                  6. mul-1-negN/A

                                                                                    \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                                  7. remove-double-negN/A

                                                                                    \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                                  8. lower-fma.f64N/A

                                                                                    \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
                                                                                  9. mul-1-negN/A

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                  10. lower-neg.f64N/A

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                  11. *-commutativeN/A

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                                  12. lower-*.f6436.6

                                                                                    \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
                                                                                5. Applied rewrites36.6%

                                                                                  \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
                                                                                6. Taylor expanded in t around 0

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

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

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

                                                                                  Developer Target 1: 68.2% accurate, 0.2× 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 2024221 
                                                                                  (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)))))