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

Percentage Accurate: 72.8% → 82.8%
Time: 14.5s
Alternatives: 18
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 18 alternatives:

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

Initial Program: 72.8% accurate, 1.0× speedup?

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

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

Alternative 1: 82.8% accurate, 0.3× speedup?

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

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

\mathbf{elif}\;t\_2 \leq 10^{+306}:\\
\;\;\;\;t\_2\\

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


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

    1. Initial program 62.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in 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) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{y} + i \cdot j\right)\right)\right)} \]
    4. Applied rewrites83.1%

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

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

    1. Initial program 99.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
  3. Recombined 2 regimes into one program.
  4. Final simplification88.1%

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

Alternative 2: 82.3% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 89.0%

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

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

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. 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) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{y} + i \cdot j\right)\right)\right)} \]
    4. Applied rewrites63.6%

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

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

        \[\leadsto \left(-y\right) \cdot \left(\frac{\mathsf{fma}\left(-b, i, a \cdot x\right)}{y} \cdot \color{blue}{t}\right) \]
    7. Recombined 2 regimes into one program.
    8. Final simplification84.0%

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

    Alternative 3: 77.8% accurate, 0.9× speedup?

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

      1. Initial program 68.3%

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

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

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

          \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
        6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.00000000000000005e242 < b < 9.1999999999999999e143

      1. Initial program 74.5%

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

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

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

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

          \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, \left(t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z\right)\right)} \]
        4. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 9.1999999999999999e143 < b

      1. Initial program 72.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 65.1% accurate, 1.2× speedup?

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

      1. Initial program 62.8%

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

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

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

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
        7. remove-double-negN/A

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

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

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

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

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

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

      if -9.9999999999999996e81 < i < 3.70000000000000008e124

      1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 66.6% accurate, 1.2× speedup?

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

      1. Initial program 60.8%

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

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

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

          \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
        7. remove-double-negN/A

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, b \cdot t\right) \cdot i \]
        11. lower-*.f6476.4

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

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

      if -1.9499999999999999e129 < i < 2.75000000000000013e-81

      1. Initial program 80.1%

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

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

          \[\leadsto \color{blue}{a \cdot \left(c \cdot j\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 a \cdot \left(c \cdot j\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 a \cdot \left(c \cdot j\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(a \cdot \left(c \cdot j\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. mul-1-negN/A

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

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

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

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

          \[\leadsto \left(a \cdot \left(c \cdot j\right) + \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. *-commutativeN/A

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

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

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

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

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

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

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

      if 2.75000000000000013e-81 < i < 1.02e123

      1. Initial program 74.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right) \]
      7. Step-by-step derivation
        1. Applied rewrites72.0%

          \[\leadsto \mathsf{fma}\left(t \cdot i, b, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right) \]
      8. Recombined 3 regimes into one program.
      9. Final simplification73.1%

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

      Alternative 6: 58.2% accurate, 1.4× speedup?

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

        1. Initial program 75.0%

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

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

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

            \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
          6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -2.7e64 < b < 1.3999999999999999e-31

        1. Initial program 73.0%

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

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

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

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

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

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

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

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

        if 1.3999999999999999e-31 < b

        1. Initial program 74.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right) \]
        7. Step-by-step derivation
          1. Applied rewrites63.6%

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

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

        Alternative 7: 56.5% accurate, 1.5× speedup?

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

          1. Initial program 66.2%

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

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

              \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
            7. remove-double-negN/A

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

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

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

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

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

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

          if -1e6 < i < 1.02e123

          1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(t \cdot i, b, \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\right) \]
          8. Recombined 2 regimes into one program.
          9. Final simplification66.8%

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

          Alternative 8: 29.7% accurate, 1.6× speedup?

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

            1. Initial program 70.4%

              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
            2. Add Preprocessing
            3. Taylor expanded in 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) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{y} + i \cdot j\right)\right)\right)} \]
            4. Applied rewrites71.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \left(-1 \cdot \left(i \cdot j\right)\right) \cdot y \]
            9. Step-by-step derivation
              1. Applied rewrites43.4%

                \[\leadsto \left(\left(-i\right) \cdot j\right) \cdot y \]

              if -1.8e22 < i < -4.9e-143

              1. Initial program 79.9%

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                  13. lower-neg.f6444.7

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

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

                  \[\leadsto \left(a \cdot c\right) \cdot j \]
                6. Step-by-step derivation
                  1. Applied rewrites41.6%

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

                  if -4.9e-143 < i < 5.5999999999999998e-81

                  1. Initial program 81.4%

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(-1 \cdot \left(t \cdot x\right)\right) \cdot a \]
                  7. Step-by-step derivation
                    1. Applied rewrites45.4%

                      \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot a \]

                    if 5.5999999999999998e-81 < i < 2.45000000000000017e124

                    1. Initial program 75.0%

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

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

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

                        \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                      6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(i \cdot t\right) \cdot b \]
                    7. Step-by-step derivation
                      1. Applied rewrites37.6%

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

                      if 2.45000000000000017e124 < i

                      1. Initial program 55.4%

                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                      2. Add Preprocessing
                      3. Taylor expanded in 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) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{y} + i \cdot j\right)\right)\right)} \]
                      4. Applied rewrites73.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(-i\right) \cdot \color{blue}{\left(j \cdot y\right)} \]
                      10. Recombined 5 regimes into one program.
                      11. Final simplification43.7%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.8 \cdot 10^{+22}:\\ \;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\ \mathbf{elif}\;i \leq -4.9 \cdot 10^{-143}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;i \leq 5.6 \cdot 10^{-81}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;i \leq 2.45 \cdot 10^{+124}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \end{array} \]
                      12. Add Preprocessing

                      Alternative 9: 29.4% accurate, 2.0× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;b \leq -1.02 \cdot 10^{+65}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq -2.05 \cdot 10^{-203}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+35}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (* i t) b)))
                         (if (<= b -1.02e+65)
                           t_1
                           (if (<= b -2.05e-203)
                             (* (* c a) j)
                             (if (<= b 9.5e+35) (* (* (- j) y) i) t_1)))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = (i * t) * b;
                      	double tmp;
                      	if (b <= -1.02e+65) {
                      		tmp = t_1;
                      	} else if (b <= -2.05e-203) {
                      		tmp = (c * a) * j;
                      	} else if (b <= 9.5e+35) {
                      		tmp = (-j * y) * i;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a, b, c, i, j)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8), intent (in) :: a
                          real(8), intent (in) :: b
                          real(8), intent (in) :: c
                          real(8), intent (in) :: i
                          real(8), intent (in) :: j
                          real(8) :: t_1
                          real(8) :: tmp
                          t_1 = (i * t) * b
                          if (b <= (-1.02d+65)) then
                              tmp = t_1
                          else if (b <= (-2.05d-203)) then
                              tmp = (c * a) * j
                          else if (b <= 9.5d+35) then
                              tmp = (-j * y) * i
                          else
                              tmp = t_1
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = (i * t) * b;
                      	double tmp;
                      	if (b <= -1.02e+65) {
                      		tmp = t_1;
                      	} else if (b <= -2.05e-203) {
                      		tmp = (c * a) * j;
                      	} else if (b <= 9.5e+35) {
                      		tmp = (-j * y) * i;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i, j):
                      	t_1 = (i * t) * b
                      	tmp = 0
                      	if b <= -1.02e+65:
                      		tmp = t_1
                      	elif b <= -2.05e-203:
                      		tmp = (c * a) * j
                      	elif b <= 9.5e+35:
                      		tmp = (-j * y) * i
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	t_1 = Float64(Float64(i * t) * b)
                      	tmp = 0.0
                      	if (b <= -1.02e+65)
                      		tmp = t_1;
                      	elseif (b <= -2.05e-203)
                      		tmp = Float64(Float64(c * a) * j);
                      	elseif (b <= 9.5e+35)
                      		tmp = Float64(Float64(Float64(-j) * y) * i);
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                      	t_1 = (i * t) * b;
                      	tmp = 0.0;
                      	if (b <= -1.02e+65)
                      		tmp = t_1;
                      	elseif (b <= -2.05e-203)
                      		tmp = (c * a) * j;
                      	elseif (b <= 9.5e+35)
                      		tmp = (-j * y) * i;
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.02e+65], t$95$1, If[LessEqual[b, -2.05e-203], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[b, 9.5e+35], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(i \cdot t\right) \cdot b\\
                      \mathbf{if}\;b \leq -1.02 \cdot 10^{+65}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;b \leq -2.05 \cdot 10^{-203}:\\
                      \;\;\;\;\left(c \cdot a\right) \cdot j\\
                      
                      \mathbf{elif}\;b \leq 9.5 \cdot 10^{+35}:\\
                      \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if b < -1.02000000000000005e65 or 9.50000000000000062e35 < b

                        1. Initial program 74.0%

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

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

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

                            \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                          6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(i \cdot t\right) \cdot b \]
                        7. Step-by-step derivation
                          1. Applied rewrites44.3%

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

                          if -1.02000000000000005e65 < b < -2.0499999999999999e-203

                          1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                            2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                              13. lower-neg.f6457.1

                                \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(-y\right)} \cdot i\right) \cdot j \]
                            4. Applied rewrites57.1%

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

                              \[\leadsto \left(a \cdot c\right) \cdot j \]
                            6. Step-by-step derivation
                              1. Applied rewrites44.3%

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

                              if -2.0499999999999999e-203 < b < 9.50000000000000062e35

                              1. Initial program 71.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.02 \cdot 10^{+65}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;b \leq -2.05 \cdot 10^{-203}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;b \leq 9.5 \cdot 10^{+35}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                              12. Add Preprocessing

                              Alternative 10: 52.3% accurate, 2.0× speedup?

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

                                1. Initial program 67.1%

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

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

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

                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\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(b \cdot t\right)\right)}\right)\right)\right) \cdot i \]
                                  7. remove-double-negN/A

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

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

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

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

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

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

                                if -1.25e16 < i < 2.20000000000000008e-4

                                1. Initial program 80.1%

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 11: 52.2% accurate, 2.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -6.1 \cdot 10^{-27}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 4.2 \cdot 10^{+24}:\\ \;\;\;\;\mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\ \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 (* i b)) t)))
                                 (if (<= t -6.1e-27)
                                   t_1
                                   (if (<= t 4.2e+24) (* (fma a c (* (- i) y)) j) t_1))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double t_1 = fma(-x, a, (i * b)) * t;
                              	double tmp;
                              	if (t <= -6.1e-27) {
                              		tmp = t_1;
                              	} else if (t <= 4.2e+24) {
                              		tmp = fma(a, c, (-i * y)) * j;
                              	} 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(i * b)) * t)
                              	tmp = 0.0
                              	if (t <= -6.1e-27)
                              		tmp = t_1;
                              	elseif (t <= 4.2e+24)
                              		tmp = Float64(fma(a, c, Float64(Float64(-i) * y)) * j);
                              	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[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.1e-27], t$95$1, If[LessEqual[t, 4.2e+24], N[(N[(a * c + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
                              \mathbf{if}\;t \leq -6.1 \cdot 10^{-27}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;t \leq 4.2 \cdot 10^{+24}:\\
                              \;\;\;\;\mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if t < -6.0999999999999999e-27 or 4.2000000000000003e24 < t

                                1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -6.0999999999999999e-27 < t < 4.2000000000000003e24

                                1. Initial program 79.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 12: 52.2% accurate, 2.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\ \mathbf{if}\;j \leq -7.5 \cdot 10^{+46}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq 1.35 \cdot 10^{+36}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \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 c (* (- i) y)) j)))
                                 (if (<= j -7.5e+46)
                                   t_1
                                   (if (<= j 1.35e+36) (* (fma (- c) b (* y x)) z) 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, c, (-i * y)) * j;
                              	double tmp;
                              	if (j <= -7.5e+46) {
                              		tmp = t_1;
                              	} else if (j <= 1.35e+36) {
                              		tmp = fma(-c, b, (y * x)) * z;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b, c, i, j)
                              	t_1 = Float64(fma(a, c, Float64(Float64(-i) * y)) * j)
                              	tmp = 0.0
                              	if (j <= -7.5e+46)
                              		tmp = t_1;
                              	elseif (j <= 1.35e+36)
                              		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                              	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 * c + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -7.5e+46], t$95$1, If[LessEqual[j, 1.35e+36], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\
                              \mathbf{if}\;j \leq -7.5 \cdot 10^{+46}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;j \leq 1.35 \cdot 10^{+36}:\\
                              \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if j < -7.5000000000000003e46 or 1.35e36 < j

                                1. Initial program 77.5%

                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                2. 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) + a \cdot \left(c \cdot j\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{y} + i \cdot j\right)\right)\right)} \]
                                4. Applied rewrites72.1%

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

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

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

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

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

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

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

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

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

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

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

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

                                if -7.5000000000000003e46 < j < 1.35e36

                                1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

                              Alternative 13: 41.4% accurate, 2.0× speedup?

                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;b \leq -1.1 \cdot 10^{+107}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 1.2 \cdot 10^{+133}:\\ \;\;\;\;\mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                              (FPCore (x y z t a b c i j)
                               :precision binary64
                               (let* ((t_1 (* (* i t) b)))
                                 (if (<= b -1.1e+107)
                                   t_1
                                   (if (<= b 1.2e+133) (* (fma a c (* (- i) y)) j) t_1))))
                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                              	double t_1 = (i * t) * b;
                              	double tmp;
                              	if (b <= -1.1e+107) {
                              		tmp = t_1;
                              	} else if (b <= 1.2e+133) {
                              		tmp = fma(a, c, (-i * y)) * j;
                              	} else {
                              		tmp = t_1;
                              	}
                              	return tmp;
                              }
                              
                              function code(x, y, z, t, a, b, c, i, j)
                              	t_1 = Float64(Float64(i * t) * b)
                              	tmp = 0.0
                              	if (b <= -1.1e+107)
                              		tmp = t_1;
                              	elseif (b <= 1.2e+133)
                              		tmp = Float64(fma(a, c, Float64(Float64(-i) * y)) * j);
                              	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 * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.1e+107], t$95$1, If[LessEqual[b, 1.2e+133], N[(N[(a * c + N[((-i) * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                              
                              \begin{array}{l}
                              
                              \\
                              \begin{array}{l}
                              t_1 := \left(i \cdot t\right) \cdot b\\
                              \mathbf{if}\;b \leq -1.1 \cdot 10^{+107}:\\
                              \;\;\;\;t\_1\\
                              
                              \mathbf{elif}\;b \leq 1.2 \cdot 10^{+133}:\\
                              \;\;\;\;\mathsf{fma}\left(a, c, \left(-i\right) \cdot y\right) \cdot j\\
                              
                              \mathbf{else}:\\
                              \;\;\;\;t\_1\\
                              
                              
                              \end{array}
                              \end{array}
                              
                              Derivation
                              1. Split input into 2 regimes
                              2. if b < -1.1e107 or 1.1999999999999999e133 < b

                                1. Initial program 72.6%

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

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

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

                                    \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                                  6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \left(i \cdot t\right) \cdot b \]
                                7. Step-by-step derivation
                                  1. Applied rewrites47.7%

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

                                  if -1.1e107 < b < 1.1999999999999999e133

                                  1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 14: 29.0% accurate, 2.6× speedup?

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

                                  1. Initial program 74.3%

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

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

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

                                      \[\leadsto \color{blue}{\left(i \cdot t + \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) + i \cdot t\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(i \cdot t\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(i \cdot t\right)\right)\right)\right)\right)} \cdot b \]
                                    6. sub-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \left(i \cdot t\right) \cdot b \]
                                  7. Step-by-step derivation
                                    1. Applied rewrites42.2%

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

                                    if -1.02000000000000005e65 < b < 1.51999999999999992e-24

                                    1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                      2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \left(a \cdot c\right) \cdot j \]
                                      6. Step-by-step derivation
                                        1. Applied rewrites32.4%

                                          \[\leadsto \left(c \cdot a\right) \cdot j \]
                                      7. Recombined 2 regimes into one program.
                                      8. Final simplification37.3%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -1.02 \cdot 10^{+65}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;b \leq 1.52 \cdot 10^{-24}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                      9. Add Preprocessing

                                      Alternative 15: 29.4% accurate, 2.6× speedup?

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

                                        1. Initial program 65.1%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                        2. Add Preprocessing
                                        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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                          2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(a \cdot c\right) \cdot j \]
                                          6. Step-by-step derivation
                                            1. Applied rewrites41.3%

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

                                            if -8.1999999999999998e-7 < c < 9.20000000000000032e-113

                                            1. Initial program 82.4%

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

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

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

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

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

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

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

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

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

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

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

                                              if 9.20000000000000032e-113 < c

                                              1. Initial program 69.9%

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(c \cdot j\right) \cdot a \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites29.4%

                                                  \[\leadsto \left(c \cdot j\right) \cdot a \]
                                              8. Recombined 3 regimes into one program.
                                              9. Final simplification31.0%

                                                \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-113}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                              10. Add Preprocessing

                                              Alternative 16: 29.5% accurate, 2.6× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot a\right) \cdot j\\ \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-113}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b c i j)
                                               :precision binary64
                                               (let* ((t_1 (* (* c a) j)))
                                                 (if (<= c -8.2e-7) t_1 (if (<= c 9.2e-113) (* (* y x) z) t_1))))
                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double t_1 = (c * a) * j;
                                              	double tmp;
                                              	if (c <= -8.2e-7) {
                                              		tmp = t_1;
                                              	} else if (c <= 9.2e-113) {
                                              		tmp = (y * x) * z;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: a
                                                  real(8), intent (in) :: b
                                                  real(8), intent (in) :: c
                                                  real(8), intent (in) :: i
                                                  real(8), intent (in) :: j
                                                  real(8) :: t_1
                                                  real(8) :: tmp
                                                  t_1 = (c * a) * j
                                                  if (c <= (-8.2d-7)) then
                                                      tmp = t_1
                                                  else if (c <= 9.2d-113) then
                                                      tmp = (y * x) * z
                                                  else
                                                      tmp = t_1
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double t_1 = (c * a) * j;
                                              	double tmp;
                                              	if (c <= -8.2e-7) {
                                              		tmp = t_1;
                                              	} else if (c <= 9.2e-113) {
                                              		tmp = (y * x) * z;
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a, b, c, i, j):
                                              	t_1 = (c * a) * j
                                              	tmp = 0
                                              	if c <= -8.2e-7:
                                              		tmp = t_1
                                              	elif c <= 9.2e-113:
                                              		tmp = (y * x) * z
                                              	else:
                                              		tmp = t_1
                                              	return tmp
                                              
                                              function code(x, y, z, t, a, b, c, i, j)
                                              	t_1 = Float64(Float64(c * a) * j)
                                              	tmp = 0.0
                                              	if (c <= -8.2e-7)
                                              		tmp = t_1;
                                              	elseif (c <= 9.2e-113)
                                              		tmp = Float64(Float64(y * x) * z);
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                              	t_1 = (c * a) * j;
                                              	tmp = 0.0;
                                              	if (c <= -8.2e-7)
                                              		tmp = t_1;
                                              	elseif (c <= 9.2e-113)
                                              		tmp = (y * x) * z;
                                              	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[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -8.2e-7], t$95$1, If[LessEqual[c, 9.2e-113], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := \left(c \cdot a\right) \cdot j\\
                                              \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;c \leq 9.2 \cdot 10^{-113}:\\
                                              \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              
                                              Derivation
                                              1. Split input into 2 regimes
                                              2. if c < -8.1999999999999998e-7 or 9.20000000000000032e-113 < c

                                                1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                  2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                                                    13. lower-neg.f6443.2

                                                      \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(-y\right)} \cdot i\right) \cdot j \]
                                                  4. Applied rewrites43.2%

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

                                                    \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                  6. Step-by-step derivation
                                                    1. Applied rewrites33.5%

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

                                                    if -8.1999999999999998e-7 < c < 9.20000000000000032e-113

                                                    1. Initial program 82.4%

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-113}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                                    10. Add Preprocessing

                                                    Alternative 17: 29.5% accurate, 2.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(c \cdot a\right) \cdot j\\ \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 1.65 \cdot 10^{-59}:\\ \;\;\;\;\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 (* (* c a) j)))
                                                       (if (<= c -8.2e-7) t_1 (if (<= c 1.65e-59) (* (* 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 = (c * a) * j;
                                                    	double tmp;
                                                    	if (c <= -8.2e-7) {
                                                    		tmp = t_1;
                                                    	} else if (c <= 1.65e-59) {
                                                    		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 = (c * a) * j
                                                        if (c <= (-8.2d-7)) then
                                                            tmp = t_1
                                                        else if (c <= 1.65d-59) 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 = (c * a) * j;
                                                    	double tmp;
                                                    	if (c <= -8.2e-7) {
                                                    		tmp = t_1;
                                                    	} else if (c <= 1.65e-59) {
                                                    		tmp = (z * y) * x;
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	t_1 = (c * a) * j
                                                    	tmp = 0
                                                    	if c <= -8.2e-7:
                                                    		tmp = t_1
                                                    	elif c <= 1.65e-59:
                                                    		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(c * a) * j)
                                                    	tmp = 0.0
                                                    	if (c <= -8.2e-7)
                                                    		tmp = t_1;
                                                    	elseif (c <= 1.65e-59)
                                                    		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 = (c * a) * j;
                                                    	tmp = 0.0;
                                                    	if (c <= -8.2e-7)
                                                    		tmp = t_1;
                                                    	elseif (c <= 1.65e-59)
                                                    		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[(c * a), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[c, -8.2e-7], t$95$1, If[LessEqual[c, 1.65e-59], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \left(c \cdot a\right) \cdot j\\
                                                    \mathbf{if}\;c \leq -8.2 \cdot 10^{-7}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;c \leq 1.65 \cdot 10^{-59}:\\
                                                    \;\;\;\;\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 < -8.1999999999999998e-7 or 1.64999999999999991e-59 < c

                                                      1. Initial program 66.5%

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                        2. Taylor expanded in j around inf

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(\mathsf{neg}\left(y\right)\right)} \cdot i\right) \cdot j \]
                                                          13. lower-neg.f6444.1

                                                            \[\leadsto \mathsf{fma}\left(c, a, \color{blue}{\left(-y\right)} \cdot i\right) \cdot j \]
                                                        4. Applied rewrites44.1%

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

                                                          \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                        6. Step-by-step derivation
                                                          1. Applied rewrites34.9%

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

                                                          if -8.1999999999999998e-7 < c < 1.64999999999999991e-59

                                                          1. Initial program 82.7%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                          2. Add Preprocessing
                                                          3. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                          8. Recombined 2 regimes into one program.
                                                          9. Add Preprocessing

                                                          Alternative 18: 22.7% accurate, 5.5× speedup?

                                                          \[\begin{array}{l} \\ \left(z \cdot y\right) \cdot x \end{array} \]
                                                          (FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	return (z * y) * x;
                                                          }
                                                          
                                                          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 = (z * y) * x
                                                          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 (z * y) * x;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	return (z * y) * x
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	return Float64(Float64(z * y) * x)
                                                          end
                                                          
                                                          function tmp = code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = (z * y) * x;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \left(z \cdot y\right) \cdot x
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Initial program 73.7%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                          2. Add Preprocessing
                                                          3. 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

                                                            Developer Target 1: 59.3% accurate, 0.2× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                    (t_2
                                                                     (+
                                                                      (-
                                                                       (* x (- (* y z) (* t a)))
                                                                       (/
                                                                        (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                        (+ (* c z) (* t i))))
                                                                      t_1)))
                                                               (if (< x -1.469694296777705e-64)
                                                                 t_2
                                                                 (if (< x 3.2113527362226803e-147)
                                                                   (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                                   t_2))))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = j * ((c * a) - (y * i));
                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	double tmp;
                                                            	if (x < -1.469694296777705e-64) {
                                                            		tmp = t_2;
                                                            	} else if (x < 3.2113527362226803e-147) {
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                real(8), intent (in) :: x
                                                                real(8), intent (in) :: y
                                                                real(8), intent (in) :: z
                                                                real(8), intent (in) :: t
                                                                real(8), intent (in) :: a
                                                                real(8), intent (in) :: b
                                                                real(8), intent (in) :: c
                                                                real(8), intent (in) :: i
                                                                real(8), intent (in) :: j
                                                                real(8) :: t_1
                                                                real(8) :: t_2
                                                                real(8) :: tmp
                                                                t_1 = j * ((c * a) - (y * i))
                                                                t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                if (x < (-1.469694296777705d-64)) then
                                                                    tmp = t_2
                                                                else if (x < 3.2113527362226803d-147) then
                                                                    tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                else
                                                                    tmp = t_2
                                                                end if
                                                                code = tmp
                                                            end function
                                                            
                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = j * ((c * a) - (y * i));
                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	double tmp;
                                                            	if (x < -1.469694296777705e-64) {
                                                            		tmp = t_2;
                                                            	} else if (x < 3.2113527362226803e-147) {
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            def code(x, y, z, t, a, b, c, i, j):
                                                            	t_1 = j * ((c * a) - (y * i))
                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                            	tmp = 0
                                                            	if x < -1.469694296777705e-64:
                                                            		tmp = t_2
                                                            	elif x < 3.2113527362226803e-147:
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                            	else:
                                                            		tmp = t_2
                                                            	return tmp
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                            	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                            	tmp = 0.0
                                                            	if (x < -1.469694296777705e-64)
                                                            		tmp = t_2;
                                                            	elseif (x < 3.2113527362226803e-147)
                                                            		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = j * ((c * a) - (y * i));
                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	tmp = 0.0;
                                                            	if (x < -1.469694296777705e-64)
                                                            		tmp = t_2;
                                                            	elseif (x < 3.2113527362226803e-147)
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	tmp_2 = tmp;
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                            t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                            \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                            \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2024296 
                                                            (FPCore (x y z t a b c i j)
                                                              :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                              :precision binary64
                                                            
                                                              :alt
                                                              (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                                            
                                                              (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))