Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.8% → 82.5%
Time: 15.4s
Alternatives: 19
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 19 alternatives:

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

Initial Program: 73.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: 82.5% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

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


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

    1. Initial program 82.2%

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

      \[\leadsto \color{blue}{-1 \cdot \left(y \cdot \left(-1 \cdot \left(x \cdot z\right) + \left(-1 \cdot \frac{\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)}{y} + i \cdot j\right)\right)\right)} \]
    4. Applied rewrites90.9%

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

    1. Initial program 94.2%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 82.3% accurate, 0.5× speedup?

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

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

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


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

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 70.1% accurate, 0.9× speedup?

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

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

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

\mathbf{elif}\;t \leq 3.5 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(\left(j - \frac{b \cdot z}{t}\right) \cdot t, c, t\_1\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -2.8000000000000001e-36

    1. Initial program 69.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 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.8000000000000001e-36 < t < 1.3499999999999999e-69

    1. Initial program 88.2%

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

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

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

        \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      4. *-commutativeN/A

        \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
      7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.3499999999999999e-69 < t < 3.5000000000000003e156

    1. Initial program 70.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 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 3.5000000000000003e156 < t

      1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 70.1% accurate, 1.1× speedup?

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

      1. Initial program 70.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 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -2.8000000000000001e-36 < t < 1.3499999999999999e-69

      1. Initial program 88.2%

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

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

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

          \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
        4. *-commutativeN/A

          \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
        7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

      if 8.1999999999999996e155 < t

      1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 51.7% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -2.4 \cdot 10^{+68}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -9.2 \cdot 10^{-98}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;x \leq -1.9 \cdot 10^{-300}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;x \leq 1.25 \cdot 10^{+67}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- a) t (* z y)) x)))
       (if (<= x -2.4e+68)
         t_1
         (if (<= x -3e-53)
           (* (fma (- b) c (* y x)) z)
           (if (<= x -9.2e-98)
             (* (* (- i) j) y)
             (if (<= x -1.9e-300)
               (* (fma (- b) z (* j t)) c)
               (if (<= x 1.25e+67) (* (fma (- c) z (* 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 = fma(-a, t, (z * y)) * x;
    	double tmp;
    	if (x <= -2.4e+68) {
    		tmp = t_1;
    	} else if (x <= -3e-53) {
    		tmp = fma(-b, c, (y * x)) * z;
    	} else if (x <= -9.2e-98) {
    		tmp = (-i * j) * y;
    	} else if (x <= -1.9e-300) {
    		tmp = fma(-b, z, (j * t)) * c;
    	} else if (x <= 1.25e+67) {
    		tmp = fma(-c, z, (i * a)) * b;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
    	tmp = 0.0
    	if (x <= -2.4e+68)
    		tmp = t_1;
    	elseif (x <= -3e-53)
    		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
    	elseif (x <= -9.2e-98)
    		tmp = Float64(Float64(Float64(-i) * j) * y);
    	elseif (x <= -1.9e-300)
    		tmp = Float64(fma(Float64(-b), z, Float64(j * t)) * c);
    	elseif (x <= 1.25e+67)
    		tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b);
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.4e+68], t$95$1, If[LessEqual[x, -3e-53], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -9.2e-98], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, -1.9e-300], N[(N[((-b) * z + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 1.25e+67], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
    \mathbf{if}\;x \leq -2.4 \cdot 10^{+68}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;x \leq -3 \cdot 10^{-53}:\\
    \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
    
    \mathbf{elif}\;x \leq -9.2 \cdot 10^{-98}:\\
    \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
    
    \mathbf{elif}\;x \leq -1.9 \cdot 10^{-300}:\\
    \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\
    
    \mathbf{elif}\;x \leq 1.25 \cdot 10^{+67}:\\
    \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if x < -2.40000000000000008e68 or 1.24999999999999994e67 < x

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
        11. lower-*.f6471.7

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

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

      if -2.40000000000000008e68 < x < -3.0000000000000002e-53

      1. Initial program 78.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.0000000000000002e-53 < x < -9.20000000000000002e-98

      1. Initial program 91.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -9.20000000000000002e-98 < x < -1.90000000000000006e-300

        1. Initial program 65.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

        if -1.90000000000000006e-300 < x < 1.24999999999999994e67

        1. Initial program 80.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 b around inf

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

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

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

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

            \[\leadsto \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) \cdot b \]
          5. distribute-neg-inN/A

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

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

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

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

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

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

            \[\leadsto \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)} \cdot b \]
          12. remove-double-negN/A

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{i \cdot a}\right) \cdot b \]
          19. lower-*.f6449.0

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b} \]
      8. Recombined 5 regimes into one program.
      9. Add Preprocessing

      Alternative 6: 59.5% accurate, 1.3× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{if}\;z \leq -3.7 \cdot 10^{+132}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 4.2 \cdot 10^{-77}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\ \mathbf{elif}\;z \leq 1.8 \cdot 10^{-6}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(z \cdot x\right) \cdot y\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 (- b) c (* y x)) z)))
         (if (<= z -3.7e+132)
           t_1
           (if (<= z 4.2e-77)
             (+ (* (* (- t) x) a) (* (- (* c t) (* i y)) j))
             (if (<= z 1.8e-6) (fma (fma (- j) y (* b a)) i (* (* z x) y)) 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(-b, c, (y * x)) * z;
      	double tmp;
      	if (z <= -3.7e+132) {
      		tmp = t_1;
      	} else if (z <= 4.2e-77) {
      		tmp = ((-t * x) * a) + (((c * t) - (i * y)) * j);
      	} else if (z <= 1.8e-6) {
      		tmp = fma(fma(-j, y, (b * a)), i, ((z * x) * y));
      	} else {
      		tmp = t_1;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
      	tmp = 0.0
      	if (z <= -3.7e+132)
      		tmp = t_1;
      	elseif (z <= 4.2e-77)
      		tmp = Float64(Float64(Float64(Float64(-t) * x) * a) + Float64(Float64(Float64(c * t) - Float64(i * y)) * j));
      	elseif (z <= 1.8e-6)
      		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(z * x) * y));
      	else
      		tmp = t_1;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.7e+132], t$95$1, If[LessEqual[z, 4.2e-77], N[(N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision] + N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-6], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
      \mathbf{if}\;z \leq -3.7 \cdot 10^{+132}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;z \leq 4.2 \cdot 10^{-77}:\\
      \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\
      
      \mathbf{elif}\;z \leq 1.8 \cdot 10^{-6}:\\
      \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(z \cdot x\right) \cdot y\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_1\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if z < -3.70000000000000011e132 or 1.79999999999999992e-6 < z

        1. Initial program 61.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -3.70000000000000011e132 < z < 4.20000000000000031e-77

        1. Initial program 85.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 \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{a \cdot \left(-1 \cdot \left(b \cdot i\right) + \frac{b \cdot \left(c \cdot z\right)}{a}\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
        4. Step-by-step derivation
          1. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \mathsf{fma}\left(\frac{c \cdot z}{a}, b, \color{blue}{\left(\mathsf{neg}\left(b\right)\right)} \cdot i\right) \cdot a\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
          12. lower-neg.f6482.0

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right)} \cdot x\right) \cdot a + j \cdot \left(c \cdot t - i \cdot y\right) \]
          9. lower-neg.f6466.1

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

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

        if 4.20000000000000031e-77 < z < 1.79999999999999992e-6

        1. Initial program 84.1%

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

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

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

            \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
          4. *-commutativeN/A

            \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
          7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 7: 61.5% accurate, 1.3× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\ \mathbf{if}\;t \leq -3.55 \cdot 10^{+93}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -8.2 \cdot 10^{-32}:\\ \;\;\;\;\mathsf{fma}\left(\left(-z\right) \cdot b, c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\ \mathbf{elif}\;t \leq 1.2 \cdot 10^{+105}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(z \cdot x\right) \cdot y\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 (- x) a (* j c)) t)))
           (if (<= t -3.55e+93)
             t_1
             (if (<= t -8.2e-32)
               (fma (* (- z) b) c (* (fma (- a) t (* z y)) x))
               (if (<= t 1.2e+105) (fma (fma (- j) y (* b a)) i (* (* z x) y)) 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(-x, a, (j * c)) * t;
        	double tmp;
        	if (t <= -3.55e+93) {
        		tmp = t_1;
        	} else if (t <= -8.2e-32) {
        		tmp = fma((-z * b), c, (fma(-a, t, (z * y)) * x));
        	} else if (t <= 1.2e+105) {
        		tmp = fma(fma(-j, y, (b * a)), i, ((z * x) * y));
        	} else {
        		tmp = t_1;
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	t_1 = Float64(fma(Float64(-x), a, Float64(j * c)) * t)
        	tmp = 0.0
        	if (t <= -3.55e+93)
        		tmp = t_1;
        	elseif (t <= -8.2e-32)
        		tmp = fma(Float64(Float64(-z) * b), c, Float64(fma(Float64(-a), t, Float64(z * y)) * x));
        	elseif (t <= 1.2e+105)
        		tmp = fma(fma(Float64(-j), y, Float64(b * a)), i, Float64(Float64(z * x) * y));
        	else
        		tmp = t_1;
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -3.55e+93], t$95$1, If[LessEqual[t, -8.2e-32], N[(N[((-z) * b), $MachinePrecision] * c + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.2e+105], N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * i + N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        t_1 := \mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
        \mathbf{if}\;t \leq -3.55 \cdot 10^{+93}:\\
        \;\;\;\;t\_1\\
        
        \mathbf{elif}\;t \leq -8.2 \cdot 10^{-32}:\\
        \;\;\;\;\mathsf{fma}\left(\left(-z\right) \cdot b, c, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
        
        \mathbf{elif}\;t \leq 1.2 \cdot 10^{+105}:\\
        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), i, \left(z \cdot x\right) \cdot y\right)\\
        
        \mathbf{else}:\\
        \;\;\;\;t\_1\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 3 regimes
        2. if t < -3.5500000000000002e93 or 1.19999999999999987e105 < t

          1. Initial program 66.0%

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

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

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

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

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

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

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

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

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

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

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

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

          if -3.5500000000000002e93 < t < -8.1999999999999995e-32

          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 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -8.1999999999999995e-32 < t < 1.19999999999999987e105

            1. Initial program 82.6%

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

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

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

                \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
              4. *-commutativeN/A

                \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
              7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \color{blue}{i}, \left(z \cdot x\right) \cdot y\right) \]
            8. Recombined 3 regimes into one program.
            9. Add Preprocessing

            Alternative 8: 63.2% accurate, 1.4× speedup?

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

              1. Initial program 69.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 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. associate--l+N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.66000000000000006e-38 < t < 1.19999999999999987e105

              1. Initial program 82.4%

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

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

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

                  \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
                4. *-commutativeN/A

                  \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
                7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if 1.19999999999999987e105 < t

                1. Initial program 69.8%

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 60.4% accurate, 1.5× speedup?

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

                1. Initial program 68.6%

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

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

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

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

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

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

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

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

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

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

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

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

                if -4.6999999999999998e-29 < t < 1.19999999999999987e105

                1. Initial program 83.0%

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

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

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

                    \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + x \cdot \left(y \cdot z\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(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
                  4. *-commutativeN/A

                    \[\leadsto \left(\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y + x \cdot \color{blue}{\left(z \cdot y\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(i \cdot j\right)\right) \cdot y + \color{blue}{\left(x \cdot z\right) \cdot y}\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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right) \]
                  7. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \color{blue}{i}, \left(z \cdot x\right) \cdot y\right) \]
                8. Recombined 2 regimes into one program.
                9. Add Preprocessing

                Alternative 10: 49.7% accurate, 1.6× speedup?

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

                  1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

                  if -3.0000000000000001e-70 < j < 4.80000000000000007e-216

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 4.80000000000000007e-216 < j < 1.2e-21

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                    11. lower-*.f6456.2

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

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

                  if 1.2e-21 < j

                  1. Initial program 82.6%

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

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

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

                      \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j} \]
                3. Recombined 4 regimes into one program.
                4. Add Preprocessing

                Alternative 11: 52.2% accurate, 1.6× speedup?

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

                  1. Initial program 79.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 j around inf

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

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

                      \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

                  if -1.0999999999999999e152 < j < 4.80000000000000007e-216

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 4.80000000000000007e-216 < j < 1.2e-21

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                    11. lower-*.f6456.2

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                3. Recombined 3 regimes into one program.
                4. Add Preprocessing

                Alternative 12: 43.1% accurate, 1.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                    11. lower-*.f6455.9

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

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

                  if -5.3999999999999997e-45 < x < -2.20000000000000011e-177

                  1. Initial program 74.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -2.20000000000000011e-177 < x < 1.9000000000000001e-225

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

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

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

                        \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                      3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(j \cdot c\right) \cdot t \]
                      3. Recombined 3 regimes into one program.
                      4. Add Preprocessing

                      Alternative 13: 30.7% accurate, 2.0× speedup?

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

                        1. Initial program 74.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. *-commutativeN/A

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

                            \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                          3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(j \cdot c\right) \cdot t \]

                            if -2.89999999999999971e-70 < j < 4.80000000000000007e-216

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                              11. lower-*.f6458.9

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

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

                              \[\leadsto \left(y \cdot z\right) \cdot x \]
                            7. Step-by-step derivation
                              1. Applied rewrites46.6%

                                \[\leadsto \left(y \cdot z\right) \cdot x \]

                              if 4.80000000000000007e-216 < j < 5.2e-25

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                11. lower-*.f6457.5

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

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

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

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

                                if 5.2e-25 < j

                                1. Initial program 82.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.9 \cdot 10^{-70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;j \leq 4.8 \cdot 10^{-216}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;j \leq 5.2 \cdot 10^{-25}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 14: 30.2% accurate, 2.0× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(j \cdot c\right) \cdot t\\ \mathbf{if}\;j \leq -2.9 \cdot 10^{-70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 4.8 \cdot 10^{-216}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;j \leq 5500:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                (FPCore (x y z t a b c i j)
                                 :precision binary64
                                 (let* ((t_1 (* (* j c) t)))
                                   (if (<= j -2.9e-70)
                                     t_1
                                     (if (<= j 4.8e-216)
                                       (* (* z y) x)
                                       (if (<= j 5500.0) (* (* (- t) 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 = (j * c) * t;
                                	double tmp;
                                	if (j <= -2.9e-70) {
                                		tmp = t_1;
                                	} else if (j <= 4.8e-216) {
                                		tmp = (z * y) * x;
                                	} else if (j <= 5500.0) {
                                		tmp = (-t * x) * a;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    real(8), intent (in) :: z
                                    real(8), intent (in) :: t
                                    real(8), intent (in) :: a
                                    real(8), intent (in) :: b
                                    real(8), intent (in) :: c
                                    real(8), intent (in) :: i
                                    real(8), intent (in) :: j
                                    real(8) :: t_1
                                    real(8) :: tmp
                                    t_1 = (j * c) * t
                                    if (j <= (-2.9d-70)) then
                                        tmp = t_1
                                    else if (j <= 4.8d-216) then
                                        tmp = (z * y) * x
                                    else if (j <= 5500.0d0) then
                                        tmp = (-t * x) * a
                                    else
                                        tmp = t_1
                                    end if
                                    code = tmp
                                end function
                                
                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                	double t_1 = (j * c) * t;
                                	double tmp;
                                	if (j <= -2.9e-70) {
                                		tmp = t_1;
                                	} else if (j <= 4.8e-216) {
                                		tmp = (z * y) * x;
                                	} else if (j <= 5500.0) {
                                		tmp = (-t * x) * a;
                                	} else {
                                		tmp = t_1;
                                	}
                                	return tmp;
                                }
                                
                                def code(x, y, z, t, a, b, c, i, j):
                                	t_1 = (j * c) * t
                                	tmp = 0
                                	if j <= -2.9e-70:
                                		tmp = t_1
                                	elif j <= 4.8e-216:
                                		tmp = (z * y) * x
                                	elif j <= 5500.0:
                                		tmp = (-t * x) * a
                                	else:
                                		tmp = t_1
                                	return tmp
                                
                                function code(x, y, z, t, a, b, c, i, j)
                                	t_1 = Float64(Float64(j * c) * t)
                                	tmp = 0.0
                                	if (j <= -2.9e-70)
                                		tmp = t_1;
                                	elseif (j <= 4.8e-216)
                                		tmp = Float64(Float64(z * y) * x);
                                	elseif (j <= 5500.0)
                                		tmp = Float64(Float64(Float64(-t) * x) * a);
                                	else
                                		tmp = t_1;
                                	end
                                	return tmp
                                end
                                
                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                	t_1 = (j * c) * t;
                                	tmp = 0.0;
                                	if (j <= -2.9e-70)
                                		tmp = t_1;
                                	elseif (j <= 4.8e-216)
                                		tmp = (z * y) * x;
                                	elseif (j <= 5500.0)
                                		tmp = (-t * x) * a;
                                	else
                                		tmp = t_1;
                                	end
                                	tmp_2 = tmp;
                                end
                                
                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[j, -2.9e-70], t$95$1, If[LessEqual[j, 4.8e-216], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, 5500.0], N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
                                
                                \begin{array}{l}
                                
                                \\
                                \begin{array}{l}
                                t_1 := \left(j \cdot c\right) \cdot t\\
                                \mathbf{if}\;j \leq -2.9 \cdot 10^{-70}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;j \leq 4.8 \cdot 10^{-216}:\\
                                \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                
                                \mathbf{elif}\;j \leq 5500:\\
                                \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                                
                                \mathbf{else}:\\
                                \;\;\;\;t\_1\\
                                
                                
                                \end{array}
                                \end{array}
                                
                                Derivation
                                1. Split input into 3 regimes
                                2. if j < -2.89999999999999971e-70 or 5500 < j

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

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

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

                                      \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                    3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \left(j \cdot c\right) \cdot t \]

                                      if -2.89999999999999971e-70 < j < 4.80000000000000007e-216

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                        11. lower-*.f6458.9

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

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

                                        \[\leadsto \left(y \cdot z\right) \cdot x \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites46.6%

                                          \[\leadsto \left(y \cdot z\right) \cdot x \]

                                        if 4.80000000000000007e-216 < j < 5500

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                          11. lower-*.f6453.9

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.9 \cdot 10^{-70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;j \leq 4.8 \cdot 10^{-216}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;j \leq 5500:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 15: 52.7% accurate, 2.0× speedup?

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

                                          1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -2.60000000000000009 < c < 5.19999999999999977e49

                                          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. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                            11. lower-*.f6453.5

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

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                        3. Recombined 2 regimes into one program.
                                        4. Add Preprocessing

                                        Alternative 16: 45.8% accurate, 2.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -8.0000000000000006e97 < c < 2.59999999999999995e-31

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                            11. lower-*.f6451.9

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

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                        3. Recombined 2 regimes into one program.
                                        4. Add Preprocessing

                                        Alternative 17: 30.3% accurate, 2.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(j \cdot c\right) \cdot t\\ \mathbf{if}\;c \leq -1.16 \cdot 10^{-48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{+64}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* (* j c) t)))
                                           (if (<= c -1.16e-48) t_1 (if (<= c 8.8e+64) (* (* z y) 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 = (j * c) * t;
                                        	double tmp;
                                        	if (c <= -1.16e-48) {
                                        		tmp = t_1;
                                        	} else if (c <= 8.8e+64) {
                                        		tmp = (z * y) * x;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                            real(8), intent (in) :: x
                                            real(8), intent (in) :: y
                                            real(8), intent (in) :: z
                                            real(8), intent (in) :: t
                                            real(8), intent (in) :: a
                                            real(8), intent (in) :: b
                                            real(8), intent (in) :: c
                                            real(8), intent (in) :: i
                                            real(8), intent (in) :: j
                                            real(8) :: t_1
                                            real(8) :: tmp
                                            t_1 = (j * c) * t
                                            if (c <= (-1.16d-48)) then
                                                tmp = t_1
                                            else if (c <= 8.8d+64) then
                                                tmp = (z * y) * x
                                            else
                                                tmp = t_1
                                            end if
                                            code = tmp
                                        end function
                                        
                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                        	double t_1 = (j * c) * t;
                                        	double tmp;
                                        	if (c <= -1.16e-48) {
                                        		tmp = t_1;
                                        	} else if (c <= 8.8e+64) {
                                        		tmp = (z * y) * x;
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	t_1 = (j * c) * t
                                        	tmp = 0
                                        	if c <= -1.16e-48:
                                        		tmp = t_1
                                        	elif c <= 8.8e+64:
                                        		tmp = (z * y) * x
                                        	else:
                                        		tmp = t_1
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(Float64(j * c) * t)
                                        	tmp = 0.0
                                        	if (c <= -1.16e-48)
                                        		tmp = t_1;
                                        	elseif (c <= 8.8e+64)
                                        		tmp = Float64(Float64(z * y) * x);
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = (j * c) * t;
                                        	tmp = 0.0;
                                        	if (c <= -1.16e-48)
                                        		tmp = t_1;
                                        	elseif (c <= 8.8e+64)
                                        		tmp = (z * y) * x;
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[c, -1.16e-48], t$95$1, If[LessEqual[c, 8.8e+64], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(j \cdot c\right) \cdot t\\
                                        \mathbf{if}\;c \leq -1.16 \cdot 10^{-48}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;c \leq 8.8 \cdot 10^{+64}:\\
                                        \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 2 regimes
                                        2. if c < -1.16e-48 or 8.80000000000000007e64 < c

                                          1. Initial program 74.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. *-commutativeN/A

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

                                              \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                            3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(j \cdot c\right) \cdot t \]

                                              if -1.16e-48 < c < 8.80000000000000007e64

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                11. lower-*.f6454.8

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

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

                                                \[\leadsto \left(y \cdot z\right) \cdot x \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites36.8%

                                                  \[\leadsto \left(y \cdot z\right) \cdot x \]
                                              8. Recombined 2 regimes into one program.
                                              9. Final simplification38.3%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.16 \cdot 10^{-48}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{+64}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \end{array} \]
                                              10. Add Preprocessing

                                              Alternative 18: 29.8% accurate, 2.6× speedup?

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

                                                1. Initial program 70.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 j around inf

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

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

                                                    \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                                  3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                    if -2.9000000000000001e-44 < t < 1.15e6

                                                    1. Initial program 87.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if 1.15e6 < t

                                                      1. Initial program 64.6%

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

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

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

                                                          \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                                        3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -2.9 \cdot 10^{-44}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;t \leq 1150000:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot t\right) \cdot c\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 19: 22.4% accurate, 5.5× speedup?

                                                      \[\begin{array}{l} \\ \left(j \cdot c\right) \cdot t \end{array} \]
                                                      (FPCore (x y z t a b c i j) :precision binary64 (* (* j c) t))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	return (j * c) * t;
                                                      }
                                                      
                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                          real(8), intent (in) :: x
                                                          real(8), intent (in) :: y
                                                          real(8), intent (in) :: z
                                                          real(8), intent (in) :: t
                                                          real(8), intent (in) :: a
                                                          real(8), intent (in) :: b
                                                          real(8), intent (in) :: c
                                                          real(8), intent (in) :: i
                                                          real(8), intent (in) :: j
                                                          code = (j * c) * t
                                                      end function
                                                      
                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	return (j * c) * t;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b, c, i, j):
                                                      	return (j * c) * t
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	return Float64(Float64(j * c) * t)
                                                      end
                                                      
                                                      function tmp = code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = (j * c) * t;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \left(j \cdot c\right) \cdot t
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Initial program 76.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. *-commutativeN/A

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

                                                          \[\leadsto \color{blue}{\left(c \cdot t - i \cdot y\right) \cdot j} \]
                                                        3. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \left(j \cdot c\right) \cdot t \]
                                                          2. Add Preprocessing

                                                          Developer Target 1: 69.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 2024276 
                                                          (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)))))