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

Percentage Accurate: 73.2% → 82.2%
Time: 19.0s
Alternatives: 28
Speedup: 1.0×

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 28 alternatives:

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

Initial Program: 73.2% 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.2% accurate, 0.4× speedup?

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

\\
\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:\\
\;\;\;\;\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}\\

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


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

    1. Initial program 91.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. Applied rewrites91.4%

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

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

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

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

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

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

        \[\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:\\ \;\;\;\;\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\ \end{array} \]
      6. 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}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\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
            (* i t)
            b
            (fma (fma (- j) i (* z x)) y (fma (* (- x) t) a (* (* 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 = (((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((i * t), b, fma(fma(-j, i, (z * x)), y, fma((-x * t), a, ((j * c) * a))));
      	}
      	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 = fma(Float64(i * t), b, fma(fma(Float64(-j), i, Float64(z * x)), y, fma(Float64(Float64(-x) * t), a, Float64(Float64(j * c) * a))));
      	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[(i * t), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y + N[(N[((-x) * t), $MachinePrecision] * a + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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}:\\
      \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

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

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

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

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

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

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

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

            \[\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}:\\ \;\;\;\;\mathsf{fma}\left(i \cdot t, b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right)\\ \end{array} \]
          6. Add Preprocessing

          Alternative 3: 71.9% accurate, 0.9× speedup?

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

            1. Initial program 52.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 a around 0

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

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

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

                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
              3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

                if -1.7999999999999999e144 < z < 4.1e12

                1. Initial program 79.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 a around 0

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

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

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

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

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

                    if 4.1e12 < z

                    1. Initial program 62.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 4: 71.5% accurate, 0.9× speedup?

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

                      1. Initial program 52.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 a around 0

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

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

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

                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                        3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

                          if -1.7999999999999999e144 < z < 4.1e12

                          1. Initial program 79.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 a around 0

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

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

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

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

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

                              if 4.1e12 < z

                              1. Initial program 62.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 5: 77.3% accurate, 1.0× speedup?

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

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

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

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

                              if 2.10000000000000002e221 < a

                              1. Initial program 35.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 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. lower-*.f6486.2

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

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

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

                            Alternative 6: 59.6% accurate, 1.2× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{if}\;a \leq -1.06 \cdot 10^{+108}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -9 \cdot 10^{-79}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{elif}\;a \leq 45:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(\left(-y\right) \cdot j\right) \cdot i\right)\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\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 (- x) t (* j c)) a)))
                               (if (<= a -1.06e+108)
                                 t_1
                                 (if (<= a -9e-79)
                                   (+ (* (* z y) x) (* (- (* c a) (* i y)) j))
                                   (if (<= a 45.0)
                                     (fma (fma (- c) z (* i t)) b (* (* (- y) j) i))
                                     (if (<= a 5.2e+124) (* (fma y x (* (- c) b)) 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(-x, t, (j * c)) * a;
                            	double tmp;
                            	if (a <= -1.06e+108) {
                            		tmp = t_1;
                            	} else if (a <= -9e-79) {
                            		tmp = ((z * y) * x) + (((c * a) - (i * y)) * j);
                            	} else if (a <= 45.0) {
                            		tmp = fma(fma(-c, z, (i * t)), b, ((-y * j) * i));
                            	} else if (a <= 5.2e+124) {
                            		tmp = fma(y, x, (-c * b)) * z;
                            	} else {
                            		tmp = t_1;
                            	}
                            	return tmp;
                            }
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a)
                            	tmp = 0.0
                            	if (a <= -1.06e+108)
                            		tmp = t_1;
                            	elseif (a <= -9e-79)
                            		tmp = Float64(Float64(Float64(z * y) * x) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j));
                            	elseif (a <= 45.0)
                            		tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, Float64(Float64(Float64(-y) * j) * i));
                            	elseif (a <= 5.2e+124)
                            		tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * 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[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.06e+108], t$95$1, If[LessEqual[a, -9e-79], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 45.0], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e+124], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
                            \mathbf{if}\;a \leq -1.06 \cdot 10^{+108}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;a \leq -9 \cdot 10^{-79}:\\
                            \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\
                            
                            \mathbf{elif}\;a \leq 45:\\
                            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(\left(-y\right) \cdot j\right) \cdot i\right)\\
                            
                            \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\
                            \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 4 regimes
                            2. if a < -1.06e108 or 5.2000000000000001e124 < a

                              1. Initial program 50.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. lower-*.f6475.2

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

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

                              if -1.06e108 < a < -9.0000000000000006e-79

                              1. Initial program 89.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}{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 \color{blue}{\left(y \cdot z\right) \cdot x} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                2. lower-*.f64N/A

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

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

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

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

                              if -9.0000000000000006e-79 < a < 45

                              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 0

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

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

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

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

                                if 45 < a < 5.2000000000000001e124

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

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

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

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

                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                  3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                  5. Step-by-step derivation
                                    1. Applied rewrites67.7%

                                      \[\leadsto \mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z \]
                                  6. Recombined 4 regimes into one program.
                                  7. Final simplification69.4%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.06 \cdot 10^{+108}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq -9 \cdot 10^{-79}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{elif}\;a \leq 45:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \left(\left(-y\right) \cdot j\right) \cdot i\right)\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \end{array} \]
                                  8. Add Preprocessing

                                  Alternative 7: 68.3% accurate, 1.2× speedup?

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

                                    1. Initial program 50.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. lower-*.f6475.2

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

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

                                    if -5.09999999999999994e113 < a < 1.2000000000000001e156

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 8: 59.6% accurate, 1.4× speedup?

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

                                    1. Initial program 51.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 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. lower-*.f6473.9

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

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

                                    if -1.84999999999999999e59 < a < 45

                                    1. Initial program 84.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 a around 0

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

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

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

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

                                      if 45 < a < 5.2000000000000001e124

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

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

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

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

                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                        3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                        5. Step-by-step derivation
                                          1. Applied rewrites67.7%

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

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

                                        Alternative 9: 30.0% accurate, 1.4× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{if}\;j \leq -2.05 \cdot 10^{+103}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\ \;\;\;\;t\_1\\ \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
                                         (let* ((t_1 (* (* (- x) a) t)))
                                           (if (<= j -2.05e+103)
                                             (* (* (- y) j) i)
                                             (if (<= j -5.8e-59)
                                               t_1
                                               (if (<= j -8.2e-141)
                                                 (* (* i t) b)
                                                 (if (<= j 1.26e-157)
                                                   (* (* z x) y)
                                                   (if (<= j 4.4e-56) t_1 (* (* 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 = (-x * a) * t;
                                        	double tmp;
                                        	if (j <= -2.05e+103) {
                                        		tmp = (-y * j) * i;
                                        	} else if (j <= -5.8e-59) {
                                        		tmp = t_1;
                                        	} else if (j <= -8.2e-141) {
                                        		tmp = (i * t) * b;
                                        	} else if (j <= 1.26e-157) {
                                        		tmp = (z * x) * y;
                                        	} else if (j <= 4.4e-56) {
                                        		tmp = t_1;
                                        	} 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) :: t_1
                                            real(8) :: tmp
                                            t_1 = (-x * a) * t
                                            if (j <= (-2.05d+103)) then
                                                tmp = (-y * j) * i
                                            else if (j <= (-5.8d-59)) then
                                                tmp = t_1
                                            else if (j <= (-8.2d-141)) then
                                                tmp = (i * t) * b
                                            else if (j <= 1.26d-157) then
                                                tmp = (z * x) * y
                                            else if (j <= 4.4d-56) then
                                                tmp = t_1
                                            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 t_1 = (-x * a) * t;
                                        	double tmp;
                                        	if (j <= -2.05e+103) {
                                        		tmp = (-y * j) * i;
                                        	} else if (j <= -5.8e-59) {
                                        		tmp = t_1;
                                        	} else if (j <= -8.2e-141) {
                                        		tmp = (i * t) * b;
                                        	} else if (j <= 1.26e-157) {
                                        		tmp = (z * x) * y;
                                        	} else if (j <= 4.4e-56) {
                                        		tmp = t_1;
                                        	} else {
                                        		tmp = (j * c) * a;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        def code(x, y, z, t, a, b, c, i, j):
                                        	t_1 = (-x * a) * t
                                        	tmp = 0
                                        	if j <= -2.05e+103:
                                        		tmp = (-y * j) * i
                                        	elif j <= -5.8e-59:
                                        		tmp = t_1
                                        	elif j <= -8.2e-141:
                                        		tmp = (i * t) * b
                                        	elif j <= 1.26e-157:
                                        		tmp = (z * x) * y
                                        	elif j <= 4.4e-56:
                                        		tmp = t_1
                                        	else:
                                        		tmp = (j * c) * a
                                        	return tmp
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(Float64(Float64(-x) * a) * t)
                                        	tmp = 0.0
                                        	if (j <= -2.05e+103)
                                        		tmp = Float64(Float64(Float64(-y) * j) * i);
                                        	elseif (j <= -5.8e-59)
                                        		tmp = t_1;
                                        	elseif (j <= -8.2e-141)
                                        		tmp = Float64(Float64(i * t) * b);
                                        	elseif (j <= 1.26e-157)
                                        		tmp = Float64(Float64(z * x) * y);
                                        	elseif (j <= 4.4e-56)
                                        		tmp = t_1;
                                        	else
                                        		tmp = Float64(Float64(j * c) * a);
                                        	end
                                        	return tmp
                                        end
                                        
                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = (-x * a) * t;
                                        	tmp = 0.0;
                                        	if (j <= -2.05e+103)
                                        		tmp = (-y * j) * i;
                                        	elseif (j <= -5.8e-59)
                                        		tmp = t_1;
                                        	elseif (j <= -8.2e-141)
                                        		tmp = (i * t) * b;
                                        	elseif (j <= 1.26e-157)
                                        		tmp = (z * x) * y;
                                        	elseif (j <= 4.4e-56)
                                        		tmp = t_1;
                                        	else
                                        		tmp = (j * c) * a;
                                        	end
                                        	tmp_2 = tmp;
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[j, -2.05e+103], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[j, -5.8e-59], t$95$1, If[LessEqual[j, -8.2e-141], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 1.26e-157], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 4.4e-56], t$95$1, N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\
                                        \mathbf{if}\;j \leq -2.05 \cdot 10^{+103}:\\
                                        \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                        
                                        \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\
                                        \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                        
                                        \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\
                                        \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                        
                                        \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 5 regimes
                                        2. if j < -2.0500000000000001e103

                                          1. Initial program 69.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. mul-1-negN/A

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

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

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

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

                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6457.9

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

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

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

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

                                            if -2.0500000000000001e103 < j < -5.80000000000000033e-59 or 1.26000000000000003e-157 < j < 4.40000000000000008e-56

                                            1. Initial program 80.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 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. lower-*.f6461.7

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

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

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

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

                                              if -5.80000000000000033e-59 < j < -8.20000000000000005e-141

                                              1. Initial program 70.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if -8.20000000000000005e-141 < j < 1.26000000000000003e-157

                                                1. Initial program 69.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 a around 0

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

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

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

                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                  3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if 4.40000000000000008e-56 < j

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

                                                      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                    8. Recombined 5 regimes into one program.
                                                    9. Final simplification45.1%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.05 \cdot 10^{+103}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                    10. Add Preprocessing

                                                    Alternative 10: 29.7% accurate, 1.4× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{if}\;j \leq -1.22 \cdot 10^{+113}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\ \;\;\;\;t\_1\\ \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
                                                     (let* ((t_1 (* (* (- x) a) t)))
                                                       (if (<= j -1.22e+113)
                                                         (* (* (- y) i) j)
                                                         (if (<= j -5.8e-59)
                                                           t_1
                                                           (if (<= j -8.2e-141)
                                                             (* (* i t) b)
                                                             (if (<= j 1.26e-157)
                                                               (* (* z x) y)
                                                               (if (<= j 4.4e-56) t_1 (* (* 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 = (-x * a) * t;
                                                    	double tmp;
                                                    	if (j <= -1.22e+113) {
                                                    		tmp = (-y * i) * j;
                                                    	} else if (j <= -5.8e-59) {
                                                    		tmp = t_1;
                                                    	} else if (j <= -8.2e-141) {
                                                    		tmp = (i * t) * b;
                                                    	} else if (j <= 1.26e-157) {
                                                    		tmp = (z * x) * y;
                                                    	} else if (j <= 4.4e-56) {
                                                    		tmp = t_1;
                                                    	} 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) :: t_1
                                                        real(8) :: tmp
                                                        t_1 = (-x * a) * t
                                                        if (j <= (-1.22d+113)) then
                                                            tmp = (-y * i) * j
                                                        else if (j <= (-5.8d-59)) then
                                                            tmp = t_1
                                                        else if (j <= (-8.2d-141)) then
                                                            tmp = (i * t) * b
                                                        else if (j <= 1.26d-157) then
                                                            tmp = (z * x) * y
                                                        else if (j <= 4.4d-56) then
                                                            tmp = t_1
                                                        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 t_1 = (-x * a) * t;
                                                    	double tmp;
                                                    	if (j <= -1.22e+113) {
                                                    		tmp = (-y * i) * j;
                                                    	} else if (j <= -5.8e-59) {
                                                    		tmp = t_1;
                                                    	} else if (j <= -8.2e-141) {
                                                    		tmp = (i * t) * b;
                                                    	} else if (j <= 1.26e-157) {
                                                    		tmp = (z * x) * y;
                                                    	} else if (j <= 4.4e-56) {
                                                    		tmp = t_1;
                                                    	} else {
                                                    		tmp = (j * c) * a;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	t_1 = (-x * a) * t
                                                    	tmp = 0
                                                    	if j <= -1.22e+113:
                                                    		tmp = (-y * i) * j
                                                    	elif j <= -5.8e-59:
                                                    		tmp = t_1
                                                    	elif j <= -8.2e-141:
                                                    		tmp = (i * t) * b
                                                    	elif j <= 1.26e-157:
                                                    		tmp = (z * x) * y
                                                    	elif j <= 4.4e-56:
                                                    		tmp = t_1
                                                    	else:
                                                    		tmp = (j * c) * a
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	t_1 = Float64(Float64(Float64(-x) * a) * t)
                                                    	tmp = 0.0
                                                    	if (j <= -1.22e+113)
                                                    		tmp = Float64(Float64(Float64(-y) * i) * j);
                                                    	elseif (j <= -5.8e-59)
                                                    		tmp = t_1;
                                                    	elseif (j <= -8.2e-141)
                                                    		tmp = Float64(Float64(i * t) * b);
                                                    	elseif (j <= 1.26e-157)
                                                    		tmp = Float64(Float64(z * x) * y);
                                                    	elseif (j <= 4.4e-56)
                                                    		tmp = t_1;
                                                    	else
                                                    		tmp = Float64(Float64(j * c) * a);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	t_1 = (-x * a) * t;
                                                    	tmp = 0.0;
                                                    	if (j <= -1.22e+113)
                                                    		tmp = (-y * i) * j;
                                                    	elseif (j <= -5.8e-59)
                                                    		tmp = t_1;
                                                    	elseif (j <= -8.2e-141)
                                                    		tmp = (i * t) * b;
                                                    	elseif (j <= 1.26e-157)
                                                    		tmp = (z * x) * y;
                                                    	elseif (j <= 4.4e-56)
                                                    		tmp = t_1;
                                                    	else
                                                    		tmp = (j * c) * a;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[j, -1.22e+113], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, -5.8e-59], t$95$1, If[LessEqual[j, -8.2e-141], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 1.26e-157], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[j, 4.4e-56], t$95$1, N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]]]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \left(\left(-x\right) \cdot a\right) \cdot t\\
                                                    \mathbf{if}\;j \leq -1.22 \cdot 10^{+113}:\\
                                                    \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
                                                    
                                                    \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\
                                                    \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                    
                                                    \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\
                                                    \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                    
                                                    \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 5 regimes
                                                    2. if j < -1.2199999999999999e113

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

                                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                        if -1.2199999999999999e113 < j < -5.80000000000000033e-59 or 1.26000000000000003e-157 < j < 4.40000000000000008e-56

                                                        1. Initial program 78.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 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. lower-*.f6460.5

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

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

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

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

                                                          if -5.80000000000000033e-59 < j < -8.20000000000000005e-141

                                                          1. Initial program 70.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if -8.20000000000000005e-141 < j < 1.26000000000000003e-157

                                                            1. Initial program 69.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 a around 0

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

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

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

                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                              3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if 4.40000000000000008e-56 < j

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

                                                                  \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                    \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                                8. Recombined 5 regimes into one program.
                                                                9. Final simplification44.8%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.22 \cdot 10^{+113}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;j \leq -5.8 \cdot 10^{-59}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{elif}\;j \leq -8.2 \cdot 10^{-141}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 1.26 \cdot 10^{-157}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;j \leq 4.4 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 11: 29.6% accurate, 1.4× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{if}\;y \leq -3.7 \cdot 10^{+149}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq -1.7 \cdot 10^{-62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+117}:\\ \;\;\;\;\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 (* (* (- y) i) j)))
                                                                   (if (<= y -3.7e+149)
                                                                     (* (* z x) y)
                                                                     (if (<= y -1.7e-62)
                                                                       t_1
                                                                       (if (<= y 6.8e-118)
                                                                         (* (* j c) a)
                                                                         (if (<= y 5.8e+62)
                                                                           (* (* i t) b)
                                                                           (if (<= y 6.2e+117) (* (* 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 = (-y * i) * j;
                                                                	double tmp;
                                                                	if (y <= -3.7e+149) {
                                                                		tmp = (z * x) * y;
                                                                	} else if (y <= -1.7e-62) {
                                                                		tmp = t_1;
                                                                	} else if (y <= 6.8e-118) {
                                                                		tmp = (j * c) * a;
                                                                	} else if (y <= 5.8e+62) {
                                                                		tmp = (i * t) * b;
                                                                	} else if (y <= 6.2e+117) {
                                                                		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 = (-y * i) * j
                                                                    if (y <= (-3.7d+149)) then
                                                                        tmp = (z * x) * y
                                                                    else if (y <= (-1.7d-62)) then
                                                                        tmp = t_1
                                                                    else if (y <= 6.8d-118) then
                                                                        tmp = (j * c) * a
                                                                    else if (y <= 5.8d+62) then
                                                                        tmp = (i * t) * b
                                                                    else if (y <= 6.2d+117) 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 = (-y * i) * j;
                                                                	double tmp;
                                                                	if (y <= -3.7e+149) {
                                                                		tmp = (z * x) * y;
                                                                	} else if (y <= -1.7e-62) {
                                                                		tmp = t_1;
                                                                	} else if (y <= 6.8e-118) {
                                                                		tmp = (j * c) * a;
                                                                	} else if (y <= 5.8e+62) {
                                                                		tmp = (i * t) * b;
                                                                	} else if (y <= 6.2e+117) {
                                                                		tmp = (y * x) * z;
                                                                	} else {
                                                                		tmp = t_1;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                	t_1 = (-y * i) * j
                                                                	tmp = 0
                                                                	if y <= -3.7e+149:
                                                                		tmp = (z * x) * y
                                                                	elif y <= -1.7e-62:
                                                                		tmp = t_1
                                                                	elif y <= 6.8e-118:
                                                                		tmp = (j * c) * a
                                                                	elif y <= 5.8e+62:
                                                                		tmp = (i * t) * b
                                                                	elif y <= 6.2e+117:
                                                                		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(Float64(-y) * i) * j)
                                                                	tmp = 0.0
                                                                	if (y <= -3.7e+149)
                                                                		tmp = Float64(Float64(z * x) * y);
                                                                	elseif (y <= -1.7e-62)
                                                                		tmp = t_1;
                                                                	elseif (y <= 6.8e-118)
                                                                		tmp = Float64(Float64(j * c) * a);
                                                                	elseif (y <= 5.8e+62)
                                                                		tmp = Float64(Float64(i * t) * b);
                                                                	elseif (y <= 6.2e+117)
                                                                		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 = (-y * i) * j;
                                                                	tmp = 0.0;
                                                                	if (y <= -3.7e+149)
                                                                		tmp = (z * x) * y;
                                                                	elseif (y <= -1.7e-62)
                                                                		tmp = t_1;
                                                                	elseif (y <= 6.8e-118)
                                                                		tmp = (j * c) * a;
                                                                	elseif (y <= 5.8e+62)
                                                                		tmp = (i * t) * b;
                                                                	elseif (y <= 6.2e+117)
                                                                		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[((-y) * i), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[y, -3.7e+149], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, -1.7e-62], t$95$1, If[LessEqual[y, 6.8e-118], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 5.8e+62], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, 6.2e+117], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                t_1 := \left(\left(-y\right) \cdot i\right) \cdot j\\
                                                                \mathbf{if}\;y \leq -3.7 \cdot 10^{+149}:\\
                                                                \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                
                                                                \mathbf{elif}\;y \leq -1.7 \cdot 10^{-62}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\
                                                                \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                
                                                                \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\
                                                                \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                
                                                                \mathbf{elif}\;y \leq 6.2 \cdot 10^{+117}:\\
                                                                \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;t\_1\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 5 regimes
                                                                2. if y < -3.69999999999999978e149

                                                                  1. Initial program 58.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 a around 0

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

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

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

                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                    3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -3.69999999999999978e149 < y < -1.69999999999999994e-62 or 6.1999999999999995e117 < y

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

                                                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                        \[\leadsto \left(-1 \cdot \left(i \cdot y\right)\right) \cdot j \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites46.2%

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

                                                                        if -1.69999999999999994e-62 < y < 6.79999999999999981e-118

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

                                                                          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                        4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 6.79999999999999981e-118 < y < 5.79999999999999968e62

                                                                          1. Initial program 80.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if 5.79999999999999968e62 < y < 6.1999999999999995e117

                                                                            1. Initial program 62.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 a around 0

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

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

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

                                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                              3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.7 \cdot 10^{+149}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq -1.7 \cdot 10^{-62}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;y \leq 6.2 \cdot 10^{+117}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \end{array} \]
                                                                              9. Add Preprocessing

                                                                              Alternative 12: 50.4% accurate, 1.4× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{if}\;a \leq -1.86 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-192}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;a \leq 0.011:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\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 (- x) t (* j c)) a)))
                                                                                 (if (<= a -1.86e+59)
                                                                                   t_1
                                                                                   (if (<= a 4.6e-192)
                                                                                     (* (fma (- j) i (* z x)) y)
                                                                                     (if (<= a 0.011)
                                                                                       (* (fma (- x) a (* i b)) t)
                                                                                       (if (<= a 5.2e+124) (* (fma y x (* (- c) b)) 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(-x, t, (j * c)) * a;
                                                                              	double tmp;
                                                                              	if (a <= -1.86e+59) {
                                                                              		tmp = t_1;
                                                                              	} else if (a <= 4.6e-192) {
                                                                              		tmp = fma(-j, i, (z * x)) * y;
                                                                              	} else if (a <= 0.011) {
                                                                              		tmp = fma(-x, a, (i * b)) * t;
                                                                              	} else if (a <= 5.2e+124) {
                                                                              		tmp = fma(y, x, (-c * b)) * z;
                                                                              	} else {
                                                                              		tmp = t_1;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                              	t_1 = Float64(fma(Float64(-x), t, Float64(j * c)) * a)
                                                                              	tmp = 0.0
                                                                              	if (a <= -1.86e+59)
                                                                              		tmp = t_1;
                                                                              	elseif (a <= 4.6e-192)
                                                                              		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
                                                                              	elseif (a <= 0.011)
                                                                              		tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t);
                                                                              	elseif (a <= 5.2e+124)
                                                                              		tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * 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[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.86e+59], t$95$1, If[LessEqual[a, 4.6e-192], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[a, 0.011], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 5.2e+124], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
                                                                              \mathbf{if}\;a \leq -1.86 \cdot 10^{+59}:\\
                                                                              \;\;\;\;t\_1\\
                                                                              
                                                                              \mathbf{elif}\;a \leq 4.6 \cdot 10^{-192}:\\
                                                                              \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                                                                              
                                                                              \mathbf{elif}\;a \leq 0.011:\\
                                                                              \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
                                                                              
                                                                              \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\
                                                                              \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;t\_1\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Split input into 4 regimes
                                                                              2. if a < -1.85999999999999995e59 or 5.2000000000000001e124 < a

                                                                                1. Initial program 51.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 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. lower-*.f6473.9

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

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

                                                                                if -1.85999999999999995e59 < a < 4.60000000000000037e-192

                                                                                1. Initial program 82.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 y around inf

                                                                                  \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. *-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. *-commutativeN/A

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

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

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

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

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

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

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

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

                                                                                if 4.60000000000000037e-192 < a < 0.010999999999999999

                                                                                1. Initial program 90.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 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. lower-*.f6458.9

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

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

                                                                                if 0.010999999999999999 < a < 5.2000000000000001e124

                                                                                1. Initial program 80.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 a around 0

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

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

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

                                                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                  3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                  5. Step-by-step derivation
                                                                                    1. Applied rewrites66.3%

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

                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.86 \cdot 10^{+59}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq 4.6 \cdot 10^{-192}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;a \leq 0.011:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{+124}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\ \end{array} \]
                                                                                  8. Add Preprocessing

                                                                                  Alternative 13: 46.2% accurate, 1.4× speedup?

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

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

                                                                                      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                    4. Step-by-step derivation
                                                                                      1. *-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. *-commutativeN/A

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

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

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

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

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

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

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

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

                                                                                    if -7.50000000000000031e70 < j < -3.7000000000000002e-56

                                                                                    1. Initial program 81.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 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. lower-*.f6471.7

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

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

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

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

                                                                                      if -3.7000000000000002e-56 < j < -6.4999999999999995e-141

                                                                                      1. Initial program 70.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 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. remove-double-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                      if -6.4999999999999995e-141 < j < 2.50000000000000009e-98

                                                                                      1. Initial program 69.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 a around 0

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

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

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

                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                        3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if 2.50000000000000009e-98 < j

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

                                                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                          4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -7.5 \cdot 10^{+70}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;j \leq -3.7 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-x\right) \cdot a\right) \cdot t\\ \mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \end{array} \]
                                                                                        8. Add Preprocessing

                                                                                        Alternative 14: 49.7% accurate, 1.4× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{if}\;j \leq -7.8 \cdot 10^{+142}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-63}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\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 (- i) y (* c a)) j)))
                                                                                           (if (<= j -7.8e+142)
                                                                                             t_1
                                                                                             (if (<= j -4.3e-63)
                                                                                               (* (fma (- a) t (* z y)) x)
                                                                                               (if (<= j -6.5e-141)
                                                                                                 (* (fma (- c) z (* i t)) b)
                                                                                                 (if (<= j 2.5e-98) (* (fma y x (* (- c) b)) 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(-i, y, (c * a)) * j;
                                                                                        	double tmp;
                                                                                        	if (j <= -7.8e+142) {
                                                                                        		tmp = t_1;
                                                                                        	} else if (j <= -4.3e-63) {
                                                                                        		tmp = fma(-a, t, (z * y)) * x;
                                                                                        	} else if (j <= -6.5e-141) {
                                                                                        		tmp = fma(-c, z, (i * t)) * b;
                                                                                        	} else if (j <= 2.5e-98) {
                                                                                        		tmp = fma(y, x, (-c * b)) * z;
                                                                                        	} else {
                                                                                        		tmp = t_1;
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                        	t_1 = Float64(fma(Float64(-i), y, Float64(c * a)) * j)
                                                                                        	tmp = 0.0
                                                                                        	if (j <= -7.8e+142)
                                                                                        		tmp = t_1;
                                                                                        	elseif (j <= -4.3e-63)
                                                                                        		tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x);
                                                                                        	elseif (j <= -6.5e-141)
                                                                                        		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b);
                                                                                        	elseif (j <= 2.5e-98)
                                                                                        		tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * 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[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -7.8e+142], t$95$1, If[LessEqual[j, -4.3e-63], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, -6.5e-141], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[j, 2.5e-98], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                                                                                        \mathbf{if}\;j \leq -7.8 \cdot 10^{+142}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        \mathbf{elif}\;j \leq -4.3 \cdot 10^{-63}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                        
                                                                                        \mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
                                                                                        
                                                                                        \mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 4 regimes
                                                                                        2. if j < -7.8000000000000001e142 or 2.50000000000000009e-98 < j

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

                                                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                          4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                                                                          if -7.8000000000000001e142 < j < -4.2999999999999999e-63

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if -4.2999999999999999e-63 < j < -6.4999999999999995e-141

                                                                                          1. Initial program 68.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 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. remove-double-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if -6.4999999999999995e-141 < j < 2.50000000000000009e-98

                                                                                          1. Initial program 69.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 a around 0

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

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

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

                                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                            3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -7.8 \cdot 10^{+142}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;j \leq -4.3 \cdot 10^{-63}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;j \leq -6.5 \cdot 10^{-141}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;j \leq 2.5 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \end{array} \]
                                                                                            8. Add Preprocessing

                                                                                            Alternative 15: 44.4% accurate, 1.4× speedup?

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

                                                                                              1. Initial program 60.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 a around 0

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

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

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

                                                                                                  \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                5. Step-by-step derivation
                                                                                                  1. Applied rewrites67.3%

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

                                                                                                  if -3.2e54 < z < 6.80000000000000032e-217

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                  if 6.80000000000000032e-217 < z < 8.59999999999999963e-79

                                                                                                  1. Initial program 82.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                    if 8.59999999999999963e-79 < z < 2.8e14

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

                                                                                                      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                                                        \[\leadsto \left(\left(-y\right) \cdot i\right) \cdot j \]
                                                                                                    8. Recombined 4 regimes into one program.
                                                                                                    9. Final simplification54.3%

                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.2 \cdot 10^{+54}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 6.8 \cdot 10^{-217}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;z \leq 8.6 \cdot 10^{-79}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;z \leq 2.8 \cdot 10^{+14}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \end{array} \]
                                                                                                    10. Add Preprocessing

                                                                                                    Alternative 16: 29.6% accurate, 1.6× speedup?

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

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

                                                                                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                        if -6.09999999999999953e-16 < c < -1.4500000000000001e-257

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

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

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

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

                                                                                                            \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                          3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                            if -1.4500000000000001e-257 < c < 13.5

                                                                                                            1. Initial program 80.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 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. mul-1-negN/A

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

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

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

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

                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + 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-*.f6453.4

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

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

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

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

                                                                                                              if 13.5 < c < 8.5e251

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

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

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

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

                                                                                                                  \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                  if 8.5e251 < c

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

                                                                                                                    \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                  4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.1 \cdot 10^{-16}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq -1.45 \cdot 10^{-257}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;c \leq 13.5:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;c \leq 8.5 \cdot 10^{+251}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                                                    5. Add Preprocessing

                                                                                                                    Alternative 17: 47.7% accurate, 1.6× speedup?

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

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

                                                                                                                        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                                                      4. Step-by-step derivation
                                                                                                                        1. *-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. *-commutativeN/A

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

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

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

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

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

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

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

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

                                                                                                                      if -7.50000000000000031e70 < j < -1.2e-123

                                                                                                                      1. Initial program 72.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 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. lower-*.f6462.2

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

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

                                                                                                                      if -1.2e-123 < j < 2.50000000000000009e-98

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

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

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

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

                                                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                        3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                          if 2.50000000000000009e-98 < j

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

                                                                                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                          4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

                                                                                                                        Alternative 18: 29.2% accurate, 1.7× speedup?

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

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

                                                                                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                          4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                            if -1.1599999999999999e70 < a < 2.10000000000000003e-256

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

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

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

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

                                                                                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                              3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                if 2.10000000000000003e-256 < a < 5.00000000000000024e-5

                                                                                                                                1. Initial program 88.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                  if 5.00000000000000024e-5 < a < 3.8000000000000002e96

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                    if 3.8000000000000002e96 < a

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

                                                                                                                                      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                          \[\leadsto \color{blue}{\left(j \cdot a\right) \cdot c} \]
                                                                                                                                      3. Recombined 5 regimes into one program.
                                                                                                                                      4. Final simplification40.6%

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

                                                                                                                                      Alternative 19: 28.6% accurate, 1.7× speedup?

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

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

                                                                                                                                          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                        4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                          if -1.1599999999999999e70 < a < 2.10000000000000003e-256 or 3.8000000000000002e-4 < a < 7.20000000000000005e177

                                                                                                                                          1. Initial program 82.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 a around 0

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

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

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

                                                                                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                            3. 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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                              if 2.10000000000000003e-256 < a < 3.8000000000000002e-4

                                                                                                                                              1. Initial program 88.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 a around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                                if 7.20000000000000005e177 < a

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

                                                                                                                                                  \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq 2.1 \cdot 10^{-256}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;a \leq 0.00038:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                                                                                  5. Add Preprocessing

                                                                                                                                                  Alternative 20: 51.4% accurate, 2.0× speedup?

                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -1.32 \cdot 10^{-94}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 6 \cdot 10^{+121}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                  (FPCore (x y z t a b c i j)
                                                                                                                                                   :precision binary64
                                                                                                                                                   (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                                                                                                                                                     (if (<= x -1.32e-94)
                                                                                                                                                       t_1
                                                                                                                                                       (if (<= x 6e+121) (* (fma (- b) z (* j a)) c) t_1))))
                                                                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                  	double t_1 = fma(-a, t, (z * y)) * x;
                                                                                                                                                  	double tmp;
                                                                                                                                                  	if (x <= -1.32e-94) {
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	} else if (x <= 6e+121) {
                                                                                                                                                  		tmp = fma(-b, z, (j * a)) * c;
                                                                                                                                                  	} else {
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	}
                                                                                                                                                  	return tmp;
                                                                                                                                                  }
                                                                                                                                                  
                                                                                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                  	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                                                                                                                                                  	tmp = 0.0
                                                                                                                                                  	if (x <= -1.32e-94)
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	elseif (x <= 6e+121)
                                                                                                                                                  		tmp = Float64(fma(Float64(-b), z, Float64(j * a)) * c);
                                                                                                                                                  	else
                                                                                                                                                  		tmp = t_1;
                                                                                                                                                  	end
                                                                                                                                                  	return tmp
                                                                                                                                                  end
                                                                                                                                                  
                                                                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.32e-94], t$95$1, If[LessEqual[x, 6e+121], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]
                                                                                                                                                  
                                                                                                                                                  \begin{array}{l}
                                                                                                                                                  
                                                                                                                                                  \\
                                                                                                                                                  \begin{array}{l}
                                                                                                                                                  t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                                                                                  \mathbf{if}\;x \leq -1.32 \cdot 10^{-94}:\\
                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                  
                                                                                                                                                  \mathbf{elif}\;x \leq 6 \cdot 10^{+121}:\\
                                                                                                                                                  \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
                                                                                                                                                  
                                                                                                                                                  \mathbf{else}:\\
                                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                                  
                                                                                                                                                  
                                                                                                                                                  \end{array}
                                                                                                                                                  \end{array}
                                                                                                                                                  
                                                                                                                                                  Derivation
                                                                                                                                                  1. Split input into 2 regimes
                                                                                                                                                  2. if x < -1.32e-94 or 6.0000000000000005e121 < x

                                                                                                                                                    1. Initial program 70.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 x around inf

                                                                                                                                                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                      1. *-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                      2. lower-*.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                      3. sub-negN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                                                                      4. +-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                                                                      5. mul-1-negN/A

                                                                                                                                                        \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                                                                      6. associate-*r*N/A

                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                                                                      7. lower-fma.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                                                                      8. mul-1-negN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                      9. lower-neg.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                      10. *-commutativeN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                      11. lower-*.f6463.8

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                    5. Applied rewrites63.8%

                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]

                                                                                                                                                    if -1.32e-94 < x < 6.0000000000000005e121

                                                                                                                                                    1. Initial program 72.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 c around inf

                                                                                                                                                      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                                                                                                    4. Step-by-step derivation
                                                                                                                                                      1. *-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                                                                                      2. lower-*.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                                                                                                      3. sub-negN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                                                                                                      4. mul-1-negN/A

                                                                                                                                                        \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                                                                                      5. +-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                                                                                                      6. associate-*r*N/A

                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot z} + a \cdot j\right) \cdot c \]
                                                                                                                                                      7. lower-fma.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, z, a \cdot j\right)} \cdot c \]
                                                                                                                                                      8. neg-mul-1N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, z, a \cdot j\right) \cdot c \]
                                                                                                                                                      9. lower-neg.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, z, a \cdot j\right) \cdot c \]
                                                                                                                                                      10. lower-*.f6448.3

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{a \cdot j}\right) \cdot c \]
                                                                                                                                                    5. Applied rewrites48.3%

                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-b, z, a \cdot j\right) \cdot c} \]
                                                                                                                                                  3. Recombined 2 regimes into one program.
                                                                                                                                                  4. Final simplification55.6%

                                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.32 \cdot 10^{-94}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq 6 \cdot 10^{+121}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                                                                                  5. Add Preprocessing

                                                                                                                                                  Alternative 21: 41.7% accurate, 2.0× speedup?

                                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -6.8 \cdot 10^{+145}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;j \leq 1.85 \cdot 10^{+49}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\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 (<= j -6.8e+145)
                                                                                                                                                     (* (* (- y) i) j)
                                                                                                                                                     (if (<= j 1.85e+49) (* (fma y x (* (- c) b)) 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 (j <= -6.8e+145) {
                                                                                                                                                  		tmp = (-y * i) * j;
                                                                                                                                                  	} else if (j <= 1.85e+49) {
                                                                                                                                                  		tmp = fma(y, x, (-c * b)) * z;
                                                                                                                                                  	} else {
                                                                                                                                                  		tmp = (j * c) * a;
                                                                                                                                                  	}
                                                                                                                                                  	return tmp;
                                                                                                                                                  }
                                                                                                                                                  
                                                                                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                  	tmp = 0.0
                                                                                                                                                  	if (j <= -6.8e+145)
                                                                                                                                                  		tmp = Float64(Float64(Float64(-y) * i) * j);
                                                                                                                                                  	elseif (j <= 1.85e+49)
                                                                                                                                                  		tmp = Float64(fma(y, x, Float64(Float64(-c) * b)) * z);
                                                                                                                                                  	else
                                                                                                                                                  		tmp = Float64(Float64(j * c) * a);
                                                                                                                                                  	end
                                                                                                                                                  	return tmp
                                                                                                                                                  end
                                                                                                                                                  
                                                                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -6.8e+145], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 1.85e+49], N[(N[(y * x + N[((-c) * b), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]]]
                                                                                                                                                  
                                                                                                                                                  \begin{array}{l}
                                                                                                                                                  
                                                                                                                                                  \\
                                                                                                                                                  \begin{array}{l}
                                                                                                                                                  \mathbf{if}\;j \leq -6.8 \cdot 10^{+145}:\\
                                                                                                                                                  \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
                                                                                                                                                  
                                                                                                                                                  \mathbf{elif}\;j \leq 1.85 \cdot 10^{+49}:\\
                                                                                                                                                  \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\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 j < -6.7999999999999998e145

                                                                                                                                                    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 j around inf

                                                                                                                                                      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                    4. 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. cancel-sign-sub-invN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                      4. +-commutativeN/A

                                                                                                                                                        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                      5. neg-mul-1N/A

                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                      6. lower-fma.f64N/A

                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                      7. neg-mul-1N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                      8. lower-neg.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                      9. *-commutativeN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                      10. lower-*.f6471.4

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                    5. Applied rewrites71.4%

                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                    6. Taylor expanded in c around 0

                                                                                                                                                      \[\leadsto \left(-1 \cdot \left(i \cdot y\right)\right) \cdot j \]
                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                      1. Applied rewrites58.7%

                                                                                                                                                        \[\leadsto \left(\left(-y\right) \cdot i\right) \cdot j \]

                                                                                                                                                      if -6.7999999999999998e145 < j < 1.85000000000000009e49

                                                                                                                                                      1. Initial program 72.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 a around 0

                                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                      4. Applied rewrites83.8%

                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                      5. Step-by-step derivation
                                                                                                                                                        1. Applied rewrites83.8%

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                        2. Taylor expanded in z around inf

                                                                                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                        3. 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. mul-1-negN/A

                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                          7. *-commutativeN/A

                                                                                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                          8. distribute-lft-neg-inN/A

                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                          9. mul-1-negN/A

                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                          10. lower-fma.f64N/A

                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                          11. mul-1-negN/A

                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                          12. lower-neg.f64N/A

                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                          13. *-commutativeN/A

                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                          14. lower-*.f6446.5

                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                        4. Applied rewrites46.5%

                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                        5. Step-by-step derivation
                                                                                                                                                          1. Applied rewrites47.1%

                                                                                                                                                            \[\leadsto \mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z \]

                                                                                                                                                          if 1.85000000000000009e49 < j

                                                                                                                                                          1. Initial program 69.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 j around inf

                                                                                                                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                          4. 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. cancel-sign-sub-invN/A

                                                                                                                                                              \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                            4. +-commutativeN/A

                                                                                                                                                              \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                            5. neg-mul-1N/A

                                                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                            6. lower-fma.f64N/A

                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                            7. neg-mul-1N/A

                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                            8. lower-neg.f64N/A

                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                            9. *-commutativeN/A

                                                                                                                                                              \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                            10. lower-*.f6476.7

                                                                                                                                                              \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                          5. Applied rewrites76.7%

                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                          6. Taylor expanded in c around inf

                                                                                                                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                                                                                          7. Step-by-step derivation
                                                                                                                                                            1. Applied rewrites52.1%

                                                                                                                                                              \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                                                                                                                          8. Recombined 3 regimes into one program.
                                                                                                                                                          9. Final simplification49.6%

                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -6.8 \cdot 10^{+145}:\\ \;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\ \mathbf{elif}\;j \leq 1.85 \cdot 10^{+49}:\\ \;\;\;\;\mathsf{fma}\left(y, x, \left(-c\right) \cdot b\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                                                                                                                          10. Add Preprocessing

                                                                                                                                                          Alternative 22: 28.4% accurate, 2.1× speedup?

                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                                                                                                                          (FPCore (x y z t a b c i j)
                                                                                                                                                           :precision binary64
                                                                                                                                                           (if (<= z -3.1e+195)
                                                                                                                                                             (* (* (- c) b) z)
                                                                                                                                                             (if (<= z 2.2e-224)
                                                                                                                                                               (* (* (- t) a) x)
                                                                                                                                                               (if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
                                                                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                          	double tmp;
                                                                                                                                                          	if (z <= -3.1e+195) {
                                                                                                                                                          		tmp = (-c * b) * z;
                                                                                                                                                          	} else if (z <= 2.2e-224) {
                                                                                                                                                          		tmp = (-t * a) * x;
                                                                                                                                                          	} else if (z <= 75000000000.0) {
                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                          	} else {
                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                          	}
                                                                                                                                                          	return tmp;
                                                                                                                                                          }
                                                                                                                                                          
                                                                                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                              real(8), intent (in) :: x
                                                                                                                                                              real(8), intent (in) :: y
                                                                                                                                                              real(8), intent (in) :: z
                                                                                                                                                              real(8), intent (in) :: t
                                                                                                                                                              real(8), intent (in) :: a
                                                                                                                                                              real(8), intent (in) :: b
                                                                                                                                                              real(8), intent (in) :: c
                                                                                                                                                              real(8), intent (in) :: i
                                                                                                                                                              real(8), intent (in) :: j
                                                                                                                                                              real(8) :: tmp
                                                                                                                                                              if (z <= (-3.1d+195)) then
                                                                                                                                                                  tmp = (-c * b) * z
                                                                                                                                                              else if (z <= 2.2d-224) then
                                                                                                                                                                  tmp = (-t * a) * x
                                                                                                                                                              else if (z <= 75000000000.0d0) then
                                                                                                                                                                  tmp = (i * t) * b
                                                                                                                                                              else
                                                                                                                                                                  tmp = (z * x) * y
                                                                                                                                                              end if
                                                                                                                                                              code = tmp
                                                                                                                                                          end function
                                                                                                                                                          
                                                                                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                          	double tmp;
                                                                                                                                                          	if (z <= -3.1e+195) {
                                                                                                                                                          		tmp = (-c * b) * z;
                                                                                                                                                          	} else if (z <= 2.2e-224) {
                                                                                                                                                          		tmp = (-t * a) * x;
                                                                                                                                                          	} else if (z <= 75000000000.0) {
                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                          	} else {
                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                          	}
                                                                                                                                                          	return tmp;
                                                                                                                                                          }
                                                                                                                                                          
                                                                                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                          	tmp = 0
                                                                                                                                                          	if z <= -3.1e+195:
                                                                                                                                                          		tmp = (-c * b) * z
                                                                                                                                                          	elif z <= 2.2e-224:
                                                                                                                                                          		tmp = (-t * a) * x
                                                                                                                                                          	elif z <= 75000000000.0:
                                                                                                                                                          		tmp = (i * t) * b
                                                                                                                                                          	else:
                                                                                                                                                          		tmp = (z * x) * y
                                                                                                                                                          	return tmp
                                                                                                                                                          
                                                                                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                          	tmp = 0.0
                                                                                                                                                          	if (z <= -3.1e+195)
                                                                                                                                                          		tmp = Float64(Float64(Float64(-c) * b) * z);
                                                                                                                                                          	elseif (z <= 2.2e-224)
                                                                                                                                                          		tmp = Float64(Float64(Float64(-t) * a) * x);
                                                                                                                                                          	elseif (z <= 75000000000.0)
                                                                                                                                                          		tmp = Float64(Float64(i * t) * b);
                                                                                                                                                          	else
                                                                                                                                                          		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                          	end
                                                                                                                                                          	return tmp
                                                                                                                                                          end
                                                                                                                                                          
                                                                                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                          	tmp = 0.0;
                                                                                                                                                          	if (z <= -3.1e+195)
                                                                                                                                                          		tmp = (-c * b) * z;
                                                                                                                                                          	elseif (z <= 2.2e-224)
                                                                                                                                                          		tmp = (-t * a) * x;
                                                                                                                                                          	elseif (z <= 75000000000.0)
                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                          	else
                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                          	end
                                                                                                                                                          	tmp_2 = tmp;
                                                                                                                                                          end
                                                                                                                                                          
                                                                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.1e+195], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 2.2e-224], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
                                                                                                                                                          
                                                                                                                                                          \begin{array}{l}
                                                                                                                                                          
                                                                                                                                                          \\
                                                                                                                                                          \begin{array}{l}
                                                                                                                                                          \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\
                                                                                                                                                          \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
                                                                                                                                                          
                                                                                                                                                          \mathbf{elif}\;z \leq 2.2 \cdot 10^{-224}:\\
                                                                                                                                                          \;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
                                                                                                                                                          
                                                                                                                                                          \mathbf{elif}\;z \leq 75000000000:\\
                                                                                                                                                          \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                                                                                          
                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                          
                                                                                                                                                          
                                                                                                                                                          \end{array}
                                                                                                                                                          \end{array}
                                                                                                                                                          
                                                                                                                                                          Derivation
                                                                                                                                                          1. Split input into 4 regimes
                                                                                                                                                          2. if z < -3.1000000000000002e195

                                                                                                                                                            1. Initial program 52.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 0

                                                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                            4. Step-by-step derivation
                                                                                                                                                              1. sub-negN/A

                                                                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                              2. *-commutativeN/A

                                                                                                                                                                \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              3. associate-*r*N/A

                                                                                                                                                                \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              4. associate-*r*N/A

                                                                                                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              5. associate-*r*N/A

                                                                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              6. distribute-rgt-inN/A

                                                                                                                                                                \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              7. *-commutativeN/A

                                                                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              8. lower-fma.f64N/A

                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                              9. *-commutativeN/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              10. associate-*r*N/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              11. lower-fma.f64N/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              12. mul-1-negN/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              13. lower-neg.f64N/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              14. *-commutativeN/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              15. lower-*.f64N/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                              16. *-commutativeN/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                              17. distribute-lft-neg-inN/A

                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                            5. Applied rewrites56.7%

                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                            6. Taylor expanded in c around inf

                                                                                                                                                              \[\leadsto -1 \cdot \color{blue}{\left(b \cdot \left(c \cdot z\right)\right)} \]
                                                                                                                                                            7. Step-by-step derivation
                                                                                                                                                              1. Applied rewrites53.2%

                                                                                                                                                                \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot \color{blue}{z} \]

                                                                                                                                                              if -3.1000000000000002e195 < z < 2.2000000000000001e-224

                                                                                                                                                              1. Initial program 78.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 x around inf

                                                                                                                                                                \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                                1. *-commutativeN/A

                                                                                                                                                                  \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                                2. lower-*.f64N/A

                                                                                                                                                                  \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                                3. sub-negN/A

                                                                                                                                                                  \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                                                                                4. +-commutativeN/A

                                                                                                                                                                  \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                                                                                5. mul-1-negN/A

                                                                                                                                                                  \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                                                                                6. associate-*r*N/A

                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                                                                                7. lower-fma.f64N/A

                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                                                                                8. mul-1-negN/A

                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                                9. lower-neg.f64N/A

                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                                10. *-commutativeN/A

                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                                11. lower-*.f6440.7

                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                              5. Applied rewrites40.7%

                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                                                                                                                                              6. Taylor expanded in a around inf

                                                                                                                                                                \[\leadsto \left(-1 \cdot \left(a \cdot t\right)\right) \cdot x \]
                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                1. Applied rewrites33.0%

                                                                                                                                                                  \[\leadsto \left(\left(-t\right) \cdot a\right) \cdot x \]

                                                                                                                                                                if 2.2000000000000001e-224 < z < 7.5e10

                                                                                                                                                                1. Initial program 80.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 0

                                                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                4. Step-by-step derivation
                                                                                                                                                                  1. sub-negN/A

                                                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                  2. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  3. associate-*r*N/A

                                                                                                                                                                    \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  4. associate-*r*N/A

                                                                                                                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  5. associate-*r*N/A

                                                                                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  6. distribute-rgt-inN/A

                                                                                                                                                                    \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  7. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  8. lower-fma.f64N/A

                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                  9. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  10. associate-*r*N/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  11. lower-fma.f64N/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  12. mul-1-negN/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  13. lower-neg.f64N/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  14. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  15. lower-*.f64N/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                  16. *-commutativeN/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                                  17. distribute-lft-neg-inN/A

                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                                5. Applied rewrites62.9%

                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                                6. Taylor expanded in t around inf

                                                                                                                                                                  \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                                  1. Applied rewrites37.1%

                                                                                                                                                                    \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                                                                                                  if 7.5e10 < z

                                                                                                                                                                  1. Initial program 61.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 a around 0

                                                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                  4. Applied rewrites70.8%

                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                  5. Step-by-step derivation
                                                                                                                                                                    1. Applied rewrites70.8%

                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                    2. Taylor expanded in z around inf

                                                                                                                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                    3. 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. mul-1-negN/A

                                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                      7. *-commutativeN/A

                                                                                                                                                                        \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                      8. distribute-lft-neg-inN/A

                                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                      9. mul-1-negN/A

                                                                                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                      10. lower-fma.f64N/A

                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                      11. mul-1-negN/A

                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                      12. lower-neg.f64N/A

                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                      13. *-commutativeN/A

                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                      14. lower-*.f6469.8

                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                    4. Applied rewrites69.8%

                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                    5. Taylor expanded in c around 0

                                                                                                                                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                    6. Step-by-step derivation
                                                                                                                                                                      1. Applied rewrites51.7%

                                                                                                                                                                        \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]
                                                                                                                                                                    7. Recombined 4 regimes into one program.
                                                                                                                                                                    8. Final simplification40.9%

                                                                                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 2.2 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                                                                                                                    9. Add Preprocessing

                                                                                                                                                                    Alternative 23: 28.3% accurate, 2.1× speedup?

                                                                                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                                                                                                                                    (FPCore (x y z t a b c i j)
                                                                                                                                                                     :precision binary64
                                                                                                                                                                     (if (<= z -3.1e+195)
                                                                                                                                                                       (* (* (- c) b) z)
                                                                                                                                                                       (if (<= z 2.1e-224)
                                                                                                                                                                         (* (* (- x) t) a)
                                                                                                                                                                         (if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
                                                                                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (z <= -3.1e+195) {
                                                                                                                                                                    		tmp = (-c * b) * z;
                                                                                                                                                                    	} else if (z <= 2.1e-224) {
                                                                                                                                                                    		tmp = (-x * t) * a;
                                                                                                                                                                    	} else if (z <= 75000000000.0) {
                                                                                                                                                                    		tmp = (i * t) * b;
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = (z * x) * y;
                                                                                                                                                                    	}
                                                                                                                                                                    	return tmp;
                                                                                                                                                                    }
                                                                                                                                                                    
                                                                                                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                        real(8), intent (in) :: x
                                                                                                                                                                        real(8), intent (in) :: y
                                                                                                                                                                        real(8), intent (in) :: z
                                                                                                                                                                        real(8), intent (in) :: t
                                                                                                                                                                        real(8), intent (in) :: a
                                                                                                                                                                        real(8), intent (in) :: b
                                                                                                                                                                        real(8), intent (in) :: c
                                                                                                                                                                        real(8), intent (in) :: i
                                                                                                                                                                        real(8), intent (in) :: j
                                                                                                                                                                        real(8) :: tmp
                                                                                                                                                                        if (z <= (-3.1d+195)) then
                                                                                                                                                                            tmp = (-c * b) * z
                                                                                                                                                                        else if (z <= 2.1d-224) then
                                                                                                                                                                            tmp = (-x * t) * a
                                                                                                                                                                        else if (z <= 75000000000.0d0) then
                                                                                                                                                                            tmp = (i * t) * b
                                                                                                                                                                        else
                                                                                                                                                                            tmp = (z * x) * y
                                                                                                                                                                        end if
                                                                                                                                                                        code = tmp
                                                                                                                                                                    end function
                                                                                                                                                                    
                                                                                                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                    	double tmp;
                                                                                                                                                                    	if (z <= -3.1e+195) {
                                                                                                                                                                    		tmp = (-c * b) * z;
                                                                                                                                                                    	} else if (z <= 2.1e-224) {
                                                                                                                                                                    		tmp = (-x * t) * a;
                                                                                                                                                                    	} else if (z <= 75000000000.0) {
                                                                                                                                                                    		tmp = (i * t) * b;
                                                                                                                                                                    	} else {
                                                                                                                                                                    		tmp = (z * x) * y;
                                                                                                                                                                    	}
                                                                                                                                                                    	return tmp;
                                                                                                                                                                    }
                                                                                                                                                                    
                                                                                                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                    	tmp = 0
                                                                                                                                                                    	if z <= -3.1e+195:
                                                                                                                                                                    		tmp = (-c * b) * z
                                                                                                                                                                    	elif z <= 2.1e-224:
                                                                                                                                                                    		tmp = (-x * t) * a
                                                                                                                                                                    	elif z <= 75000000000.0:
                                                                                                                                                                    		tmp = (i * t) * b
                                                                                                                                                                    	else:
                                                                                                                                                                    		tmp = (z * x) * y
                                                                                                                                                                    	return tmp
                                                                                                                                                                    
                                                                                                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                    	tmp = 0.0
                                                                                                                                                                    	if (z <= -3.1e+195)
                                                                                                                                                                    		tmp = Float64(Float64(Float64(-c) * b) * z);
                                                                                                                                                                    	elseif (z <= 2.1e-224)
                                                                                                                                                                    		tmp = Float64(Float64(Float64(-x) * t) * a);
                                                                                                                                                                    	elseif (z <= 75000000000.0)
                                                                                                                                                                    		tmp = Float64(Float64(i * t) * b);
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                                    	end
                                                                                                                                                                    	return tmp
                                                                                                                                                                    end
                                                                                                                                                                    
                                                                                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                    	tmp = 0.0;
                                                                                                                                                                    	if (z <= -3.1e+195)
                                                                                                                                                                    		tmp = (-c * b) * z;
                                                                                                                                                                    	elseif (z <= 2.1e-224)
                                                                                                                                                                    		tmp = (-x * t) * a;
                                                                                                                                                                    	elseif (z <= 75000000000.0)
                                                                                                                                                                    		tmp = (i * t) * b;
                                                                                                                                                                    	else
                                                                                                                                                                    		tmp = (z * x) * y;
                                                                                                                                                                    	end
                                                                                                                                                                    	tmp_2 = tmp;
                                                                                                                                                                    end
                                                                                                                                                                    
                                                                                                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.1e+195], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[z, 2.1e-224], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
                                                                                                                                                                    
                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                    
                                                                                                                                                                    \\
                                                                                                                                                                    \begin{array}{l}
                                                                                                                                                                    \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\
                                                                                                                                                                    \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\
                                                                                                                                                                    \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{elif}\;z \leq 75000000000:\\
                                                                                                                                                                    \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                                                                                                    
                                                                                                                                                                    \mathbf{else}:\\
                                                                                                                                                                    \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                                    
                                                                                                                                                                    
                                                                                                                                                                    \end{array}
                                                                                                                                                                    \end{array}
                                                                                                                                                                    
                                                                                                                                                                    Derivation
                                                                                                                                                                    1. Split input into 4 regimes
                                                                                                                                                                    2. if z < -3.1000000000000002e195

                                                                                                                                                                      1. Initial program 52.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 0

                                                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                        1. sub-negN/A

                                                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        3. associate-*r*N/A

                                                                                                                                                                          \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        4. associate-*r*N/A

                                                                                                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        5. associate-*r*N/A

                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        6. distribute-rgt-inN/A

                                                                                                                                                                          \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        7. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        8. lower-fma.f64N/A

                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                        9. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        10. associate-*r*N/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        11. lower-fma.f64N/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        12. mul-1-negN/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        13. lower-neg.f64N/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        14. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        15. lower-*.f64N/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                        16. *-commutativeN/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                                        17. distribute-lft-neg-inN/A

                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                                      5. Applied rewrites56.7%

                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                                      6. Taylor expanded in c around inf

                                                                                                                                                                        \[\leadsto -1 \cdot \color{blue}{\left(b \cdot \left(c \cdot z\right)\right)} \]
                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                        1. Applied rewrites53.2%

                                                                                                                                                                          \[\leadsto \left(\left(-b\right) \cdot c\right) \cdot \color{blue}{z} \]

                                                                                                                                                                        if -3.1000000000000002e195 < z < 2.10000000000000006e-224

                                                                                                                                                                        1. Initial program 78.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 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. lower-*.f6442.7

                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                                                                                        5. Applied rewrites42.7%

                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-x, a, b \cdot i\right) \cdot t} \]
                                                                                                                                                                        6. Taylor expanded in b around 0

                                                                                                                                                                          \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                                                                                                                                        7. Step-by-step derivation
                                                                                                                                                                          1. Applied rewrites31.2%

                                                                                                                                                                            \[\leadsto \left(-a\right) \cdot \color{blue}{\left(x \cdot t\right)} \]

                                                                                                                                                                          if 2.10000000000000006e-224 < z < 7.5e10

                                                                                                                                                                          1. Initial program 80.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 0

                                                                                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                          4. Step-by-step derivation
                                                                                                                                                                            1. sub-negN/A

                                                                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                            2. *-commutativeN/A

                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            3. associate-*r*N/A

                                                                                                                                                                              \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            4. associate-*r*N/A

                                                                                                                                                                              \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            5. associate-*r*N/A

                                                                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            6. distribute-rgt-inN/A

                                                                                                                                                                              \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            7. *-commutativeN/A

                                                                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            8. lower-fma.f64N/A

                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                            9. *-commutativeN/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            10. associate-*r*N/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            11. lower-fma.f64N/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            12. mul-1-negN/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            13. lower-neg.f64N/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            14. *-commutativeN/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            15. lower-*.f64N/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                            16. *-commutativeN/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                                            17. distribute-lft-neg-inN/A

                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                                          5. Applied rewrites62.9%

                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                                          6. Taylor expanded in t around inf

                                                                                                                                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                                                                                          7. Step-by-step derivation
                                                                                                                                                                            1. Applied rewrites37.1%

                                                                                                                                                                              \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                                                                                                            if 7.5e10 < z

                                                                                                                                                                            1. Initial program 61.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 a around 0

                                                                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                            4. Applied rewrites70.8%

                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                            5. Step-by-step derivation
                                                                                                                                                                              1. Applied rewrites70.8%

                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                              2. Taylor expanded in z around inf

                                                                                                                                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                              3. 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. mul-1-negN/A

                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                7. *-commutativeN/A

                                                                                                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                8. distribute-lft-neg-inN/A

                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                9. mul-1-negN/A

                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                10. lower-fma.f64N/A

                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                11. mul-1-negN/A

                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                12. lower-neg.f64N/A

                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                13. *-commutativeN/A

                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                14. lower-*.f6469.8

                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                              4. Applied rewrites69.8%

                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                              5. Taylor expanded in c around 0

                                                                                                                                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                              6. Step-by-step derivation
                                                                                                                                                                                1. Applied rewrites51.7%

                                                                                                                                                                                  \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]
                                                                                                                                                                              7. Recombined 4 regimes into one program.
                                                                                                                                                                              8. Final simplification40.1%

                                                                                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.1 \cdot 10^{+195}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                                                                                                                              9. Add Preprocessing

                                                                                                                                                                              Alternative 24: 29.8% accurate, 2.1× speedup?

                                                                                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+80}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                                                                                                                                              (FPCore (x y z t a b c i j)
                                                                                                                                                                               :precision binary64
                                                                                                                                                                               (if (<= z -1.5e+80)
                                                                                                                                                                                 (* (* (- z) c) b)
                                                                                                                                                                                 (if (<= z 2.1e-224)
                                                                                                                                                                                   (* (* (- x) t) a)
                                                                                                                                                                                   (if (<= z 75000000000.0) (* (* i t) b) (* (* z x) y)))))
                                                                                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                              	double tmp;
                                                                                                                                                                              	if (z <= -1.5e+80) {
                                                                                                                                                                              		tmp = (-z * c) * b;
                                                                                                                                                                              	} else if (z <= 2.1e-224) {
                                                                                                                                                                              		tmp = (-x * t) * a;
                                                                                                                                                                              	} else if (z <= 75000000000.0) {
                                                                                                                                                                              		tmp = (i * t) * b;
                                                                                                                                                                              	} else {
                                                                                                                                                                              		tmp = (z * x) * y;
                                                                                                                                                                              	}
                                                                                                                                                                              	return tmp;
                                                                                                                                                                              }
                                                                                                                                                                              
                                                                                                                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                  real(8), intent (in) :: x
                                                                                                                                                                                  real(8), intent (in) :: y
                                                                                                                                                                                  real(8), intent (in) :: z
                                                                                                                                                                                  real(8), intent (in) :: t
                                                                                                                                                                                  real(8), intent (in) :: a
                                                                                                                                                                                  real(8), intent (in) :: b
                                                                                                                                                                                  real(8), intent (in) :: c
                                                                                                                                                                                  real(8), intent (in) :: i
                                                                                                                                                                                  real(8), intent (in) :: j
                                                                                                                                                                                  real(8) :: tmp
                                                                                                                                                                                  if (z <= (-1.5d+80)) then
                                                                                                                                                                                      tmp = (-z * c) * b
                                                                                                                                                                                  else if (z <= 2.1d-224) then
                                                                                                                                                                                      tmp = (-x * t) * a
                                                                                                                                                                                  else if (z <= 75000000000.0d0) then
                                                                                                                                                                                      tmp = (i * t) * b
                                                                                                                                                                                  else
                                                                                                                                                                                      tmp = (z * x) * y
                                                                                                                                                                                  end if
                                                                                                                                                                                  code = tmp
                                                                                                                                                                              end function
                                                                                                                                                                              
                                                                                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                              	double tmp;
                                                                                                                                                                              	if (z <= -1.5e+80) {
                                                                                                                                                                              		tmp = (-z * c) * b;
                                                                                                                                                                              	} else if (z <= 2.1e-224) {
                                                                                                                                                                              		tmp = (-x * t) * a;
                                                                                                                                                                              	} else if (z <= 75000000000.0) {
                                                                                                                                                                              		tmp = (i * t) * b;
                                                                                                                                                                              	} else {
                                                                                                                                                                              		tmp = (z * x) * y;
                                                                                                                                                                              	}
                                                                                                                                                                              	return tmp;
                                                                                                                                                                              }
                                                                                                                                                                              
                                                                                                                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                              	tmp = 0
                                                                                                                                                                              	if z <= -1.5e+80:
                                                                                                                                                                              		tmp = (-z * c) * b
                                                                                                                                                                              	elif z <= 2.1e-224:
                                                                                                                                                                              		tmp = (-x * t) * a
                                                                                                                                                                              	elif z <= 75000000000.0:
                                                                                                                                                                              		tmp = (i * t) * b
                                                                                                                                                                              	else:
                                                                                                                                                                              		tmp = (z * x) * y
                                                                                                                                                                              	return tmp
                                                                                                                                                                              
                                                                                                                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                              	tmp = 0.0
                                                                                                                                                                              	if (z <= -1.5e+80)
                                                                                                                                                                              		tmp = Float64(Float64(Float64(-z) * c) * b);
                                                                                                                                                                              	elseif (z <= 2.1e-224)
                                                                                                                                                                              		tmp = Float64(Float64(Float64(-x) * t) * a);
                                                                                                                                                                              	elseif (z <= 75000000000.0)
                                                                                                                                                                              		tmp = Float64(Float64(i * t) * b);
                                                                                                                                                                              	else
                                                                                                                                                                              		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                                              	end
                                                                                                                                                                              	return tmp
                                                                                                                                                                              end
                                                                                                                                                                              
                                                                                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                              	tmp = 0.0;
                                                                                                                                                                              	if (z <= -1.5e+80)
                                                                                                                                                                              		tmp = (-z * c) * b;
                                                                                                                                                                              	elseif (z <= 2.1e-224)
                                                                                                                                                                              		tmp = (-x * t) * a;
                                                                                                                                                                              	elseif (z <= 75000000000.0)
                                                                                                                                                                              		tmp = (i * t) * b;
                                                                                                                                                                              	else
                                                                                                                                                                              		tmp = (z * x) * y;
                                                                                                                                                                              	end
                                                                                                                                                                              	tmp_2 = tmp;
                                                                                                                                                                              end
                                                                                                                                                                              
                                                                                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.5e+80], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[z, 2.1e-224], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 75000000000.0], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
                                                                                                                                                                              
                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                              
                                                                                                                                                                              \\
                                                                                                                                                                              \begin{array}{l}
                                                                                                                                                                              \mathbf{if}\;z \leq -1.5 \cdot 10^{+80}:\\
                                                                                                                                                                              \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
                                                                                                                                                                              
                                                                                                                                                                              \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\
                                                                                                                                                                              \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
                                                                                                                                                                              
                                                                                                                                                                              \mathbf{elif}\;z \leq 75000000000:\\
                                                                                                                                                                              \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                                                                                                              
                                                                                                                                                                              \mathbf{else}:\\
                                                                                                                                                                              \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              \end{array}
                                                                                                                                                                              \end{array}
                                                                                                                                                                              
                                                                                                                                                                              Derivation
                                                                                                                                                                              1. Split input into 4 regimes
                                                                                                                                                                              2. if z < -1.49999999999999993e80

                                                                                                                                                                                1. Initial program 55.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 a around 0

                                                                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                4. Applied rewrites66.4%

                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                5. Step-by-step derivation
                                                                                                                                                                                  1. Applied rewrites66.4%

                                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                  2. Taylor expanded in z around inf

                                                                                                                                                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                  3. 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. mul-1-negN/A

                                                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                    7. *-commutativeN/A

                                                                                                                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                    8. distribute-lft-neg-inN/A

                                                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                    9. mul-1-negN/A

                                                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                    10. lower-fma.f64N/A

                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                    11. mul-1-negN/A

                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                    12. lower-neg.f64N/A

                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                    13. *-commutativeN/A

                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                    14. lower-*.f6465.5

                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                  4. Applied rewrites65.5%

                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                  5. Taylor expanded in c around inf

                                                                                                                                                                                    \[\leadsto -1 \cdot \color{blue}{\left(b \cdot \left(c \cdot z\right)\right)} \]
                                                                                                                                                                                  6. Step-by-step derivation
                                                                                                                                                                                    1. Applied rewrites41.9%

                                                                                                                                                                                      \[\leadsto \left(-b\right) \cdot \color{blue}{\left(z \cdot c\right)} \]

                                                                                                                                                                                    if -1.49999999999999993e80 < z < 2.10000000000000006e-224

                                                                                                                                                                                    1. Initial program 81.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. lower-*.f6445.2

                                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(-x, a, \color{blue}{b \cdot i}\right) \cdot t \]
                                                                                                                                                                                    5. Applied rewrites45.2%

                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-x, a, b \cdot i\right) \cdot t} \]
                                                                                                                                                                                    6. Taylor expanded in b around 0

                                                                                                                                                                                      \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                                                      1. Applied rewrites32.5%

                                                                                                                                                                                        \[\leadsto \left(-a\right) \cdot \color{blue}{\left(x \cdot t\right)} \]

                                                                                                                                                                                      if 2.10000000000000006e-224 < z < 7.5e10

                                                                                                                                                                                      1. Initial program 80.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 0

                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                      4. Step-by-step derivation
                                                                                                                                                                                        1. sub-negN/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                                        2. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        3. associate-*r*N/A

                                                                                                                                                                                          \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        4. associate-*r*N/A

                                                                                                                                                                                          \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        5. associate-*r*N/A

                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        6. distribute-rgt-inN/A

                                                                                                                                                                                          \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        7. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        8. lower-fma.f64N/A

                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                                        9. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        10. associate-*r*N/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        11. lower-fma.f64N/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        12. mul-1-negN/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        13. lower-neg.f64N/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        14. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        15. lower-*.f64N/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                        16. *-commutativeN/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                                                        17. distribute-lft-neg-inN/A

                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                                                      5. Applied rewrites62.9%

                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                                                      6. Taylor expanded in t around inf

                                                                                                                                                                                        \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                                                        1. Applied rewrites37.1%

                                                                                                                                                                                          \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                                                                                                                        if 7.5e10 < z

                                                                                                                                                                                        1. Initial program 61.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 a around 0

                                                                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                        4. Applied rewrites70.8%

                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                        5. Step-by-step derivation
                                                                                                                                                                                          1. Applied rewrites70.8%

                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                          2. Taylor expanded in z around inf

                                                                                                                                                                                            \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                          3. 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. mul-1-negN/A

                                                                                                                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                            7. *-commutativeN/A

                                                                                                                                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                            8. distribute-lft-neg-inN/A

                                                                                                                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                            9. mul-1-negN/A

                                                                                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                            10. lower-fma.f64N/A

                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                            11. mul-1-negN/A

                                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                            12. lower-neg.f64N/A

                                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                            13. *-commutativeN/A

                                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                            14. lower-*.f6469.8

                                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                          4. Applied rewrites69.8%

                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                          5. Taylor expanded in c around 0

                                                                                                                                                                                            \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                                          6. Step-by-step derivation
                                                                                                                                                                                            1. Applied rewrites51.7%

                                                                                                                                                                                              \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]
                                                                                                                                                                                          7. Recombined 4 regimes into one program.
                                                                                                                                                                                          8. Final simplification40.1%

                                                                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.5 \cdot 10^{+80}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;z \leq 2.1 \cdot 10^{-224}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;z \leq 75000000000:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                                                                                                                                          9. Add Preprocessing

                                                                                                                                                                                          Alternative 25: 29.0% accurate, 2.1× speedup?

                                                                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -6.2 \cdot 10^{+147}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                                                                                                                                                                          (FPCore (x y z t a b c i j)
                                                                                                                                                                                           :precision binary64
                                                                                                                                                                                           (if (<= y -6.2e+147)
                                                                                                                                                                                             (* (* z x) y)
                                                                                                                                                                                             (if (<= y 6.8e-118)
                                                                                                                                                                                               (* (* j c) a)
                                                                                                                                                                                               (if (<= y 5.8e+62) (* (* i t) b) (* (* y x) z)))))
                                                                                                                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                          	double tmp;
                                                                                                                                                                                          	if (y <= -6.2e+147) {
                                                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                                                          	} else if (y <= 6.8e-118) {
                                                                                                                                                                                          		tmp = (j * c) * a;
                                                                                                                                                                                          	} else if (y <= 5.8e+62) {
                                                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                                                          	} else {
                                                                                                                                                                                          		tmp = (y * x) * z;
                                                                                                                                                                                          	}
                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                          }
                                                                                                                                                                                          
                                                                                                                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                              real(8), intent (in) :: x
                                                                                                                                                                                              real(8), intent (in) :: y
                                                                                                                                                                                              real(8), intent (in) :: z
                                                                                                                                                                                              real(8), intent (in) :: t
                                                                                                                                                                                              real(8), intent (in) :: a
                                                                                                                                                                                              real(8), intent (in) :: b
                                                                                                                                                                                              real(8), intent (in) :: c
                                                                                                                                                                                              real(8), intent (in) :: i
                                                                                                                                                                                              real(8), intent (in) :: j
                                                                                                                                                                                              real(8) :: tmp
                                                                                                                                                                                              if (y <= (-6.2d+147)) then
                                                                                                                                                                                                  tmp = (z * x) * y
                                                                                                                                                                                              else if (y <= 6.8d-118) then
                                                                                                                                                                                                  tmp = (j * c) * a
                                                                                                                                                                                              else if (y <= 5.8d+62) then
                                                                                                                                                                                                  tmp = (i * t) * b
                                                                                                                                                                                              else
                                                                                                                                                                                                  tmp = (y * x) * z
                                                                                                                                                                                              end if
                                                                                                                                                                                              code = tmp
                                                                                                                                                                                          end function
                                                                                                                                                                                          
                                                                                                                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                          	double tmp;
                                                                                                                                                                                          	if (y <= -6.2e+147) {
                                                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                                                          	} else if (y <= 6.8e-118) {
                                                                                                                                                                                          		tmp = (j * c) * a;
                                                                                                                                                                                          	} else if (y <= 5.8e+62) {
                                                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                                                          	} else {
                                                                                                                                                                                          		tmp = (y * x) * z;
                                                                                                                                                                                          	}
                                                                                                                                                                                          	return tmp;
                                                                                                                                                                                          }
                                                                                                                                                                                          
                                                                                                                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                                          	tmp = 0
                                                                                                                                                                                          	if y <= -6.2e+147:
                                                                                                                                                                                          		tmp = (z * x) * y
                                                                                                                                                                                          	elif y <= 6.8e-118:
                                                                                                                                                                                          		tmp = (j * c) * a
                                                                                                                                                                                          	elif y <= 5.8e+62:
                                                                                                                                                                                          		tmp = (i * t) * b
                                                                                                                                                                                          	else:
                                                                                                                                                                                          		tmp = (y * x) * z
                                                                                                                                                                                          	return tmp
                                                                                                                                                                                          
                                                                                                                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                          	tmp = 0.0
                                                                                                                                                                                          	if (y <= -6.2e+147)
                                                                                                                                                                                          		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                                                          	elseif (y <= 6.8e-118)
                                                                                                                                                                                          		tmp = Float64(Float64(j * c) * a);
                                                                                                                                                                                          	elseif (y <= 5.8e+62)
                                                                                                                                                                                          		tmp = Float64(Float64(i * t) * b);
                                                                                                                                                                                          	else
                                                                                                                                                                                          		tmp = Float64(Float64(y * x) * z);
                                                                                                                                                                                          	end
                                                                                                                                                                                          	return tmp
                                                                                                                                                                                          end
                                                                                                                                                                                          
                                                                                                                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                          	tmp = 0.0;
                                                                                                                                                                                          	if (y <= -6.2e+147)
                                                                                                                                                                                          		tmp = (z * x) * y;
                                                                                                                                                                                          	elseif (y <= 6.8e-118)
                                                                                                                                                                                          		tmp = (j * c) * a;
                                                                                                                                                                                          	elseif (y <= 5.8e+62)
                                                                                                                                                                                          		tmp = (i * t) * b;
                                                                                                                                                                                          	else
                                                                                                                                                                                          		tmp = (y * x) * z;
                                                                                                                                                                                          	end
                                                                                                                                                                                          	tmp_2 = tmp;
                                                                                                                                                                                          end
                                                                                                                                                                                          
                                                                                                                                                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -6.2e+147], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y, 6.8e-118], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 5.8e+62], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
                                                                                                                                                                                          
                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                          
                                                                                                                                                                                          \\
                                                                                                                                                                                          \begin{array}{l}
                                                                                                                                                                                          \mathbf{if}\;y \leq -6.2 \cdot 10^{+147}:\\
                                                                                                                                                                                          \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                                                          
                                                                                                                                                                                          \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\
                                                                                                                                                                                          \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                                                                                                                                          
                                                                                                                                                                                          \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\
                                                                                                                                                                                          \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                                                                                                                          
                                                                                                                                                                                          \mathbf{else}:\\
                                                                                                                                                                                          \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                                                                                                                          
                                                                                                                                                                                          
                                                                                                                                                                                          \end{array}
                                                                                                                                                                                          \end{array}
                                                                                                                                                                                          
                                                                                                                                                                                          Derivation
                                                                                                                                                                                          1. Split input into 4 regimes
                                                                                                                                                                                          2. if y < -6.2000000000000001e147

                                                                                                                                                                                            1. Initial program 58.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 a around 0

                                                                                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                            4. Applied rewrites80.1%

                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                            5. Step-by-step derivation
                                                                                                                                                                                              1. Applied rewrites82.6%

                                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                              2. Taylor expanded in z around inf

                                                                                                                                                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                              3. 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. mul-1-negN/A

                                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                7. *-commutativeN/A

                                                                                                                                                                                                  \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                8. distribute-lft-neg-inN/A

                                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                9. mul-1-negN/A

                                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                10. lower-fma.f64N/A

                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                                11. mul-1-negN/A

                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                12. lower-neg.f64N/A

                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                13. *-commutativeN/A

                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                14. lower-*.f6466.7

                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                              4. Applied rewrites66.7%

                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                              5. Taylor expanded in c around 0

                                                                                                                                                                                                \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                                              6. Step-by-step derivation
                                                                                                                                                                                                1. Applied rewrites63.9%

                                                                                                                                                                                                  \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]

                                                                                                                                                                                                if -6.2000000000000001e147 < y < 6.79999999999999981e-118

                                                                                                                                                                                                1. Initial program 76.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 j around inf

                                                                                                                                                                                                  \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                                                                4. 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. cancel-sign-sub-invN/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                                                                  4. +-commutativeN/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                  5. neg-mul-1N/A

                                                                                                                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                                                                  6. lower-fma.f64N/A

                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                  7. neg-mul-1N/A

                                                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                  8. lower-neg.f64N/A

                                                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                  9. *-commutativeN/A

                                                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                  10. lower-*.f6443.0

                                                                                                                                                                                                    \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                5. Applied rewrites43.0%

                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                                                                6. Taylor expanded in c around inf

                                                                                                                                                                                                  \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                                                                                                                                7. Step-by-step derivation
                                                                                                                                                                                                  1. Applied rewrites31.5%

                                                                                                                                                                                                    \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]

                                                                                                                                                                                                  if 6.79999999999999981e-118 < y < 5.79999999999999968e62

                                                                                                                                                                                                  1. Initial program 80.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 a around 0

                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                                                                    1. sub-negN/A

                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                                                    2. *-commutativeN/A

                                                                                                                                                                                                      \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \color{blue}{\left(z \cdot y\right)}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    3. associate-*r*N/A

                                                                                                                                                                                                      \[\leadsto \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(x \cdot z\right) \cdot y}\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    4. associate-*r*N/A

                                                                                                                                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(\left(i \cdot j\right) \cdot y\right)} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    5. associate-*r*N/A

                                                                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right) \cdot y} + \left(x \cdot z\right) \cdot y\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    6. distribute-rgt-inN/A

                                                                                                                                                                                                      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    7. *-commutativeN/A

                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    8. lower-fma.f64N/A

                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot \left(i \cdot j\right) + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right)} \]
                                                                                                                                                                                                    9. *-commutativeN/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    10. associate-*r*N/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    11. lower-fma.f64N/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)}, y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    12. mul-1-negN/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    13. lower-neg.f64N/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    14. *-commutativeN/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    15. lower-*.f64N/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right), y, \mathsf{neg}\left(b \cdot \left(c \cdot z - i \cdot t\right)\right)\right) \]
                                                                                                                                                                                                    16. *-commutativeN/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right) \cdot b}\right)\right) \]
                                                                                                                                                                                                    17. distribute-lft-neg-inN/A

                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right) \cdot b}\right) \]
                                                                                                                                                                                                  5. Applied rewrites60.8%

                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)} \]
                                                                                                                                                                                                  6. Taylor expanded in t around inf

                                                                                                                                                                                                    \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                                                    1. Applied rewrites35.5%

                                                                                                                                                                                                      \[\leadsto \left(t \cdot i\right) \cdot \color{blue}{b} \]

                                                                                                                                                                                                    if 5.79999999999999968e62 < y

                                                                                                                                                                                                    1. Initial program 62.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 a around 0

                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                                    4. Applied rewrites76.6%

                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                                    5. Step-by-step derivation
                                                                                                                                                                                                      1. Applied rewrites74.4%

                                                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                                      2. Taylor expanded in z around inf

                                                                                                                                                                                                        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                                      3. 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. mul-1-negN/A

                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        7. *-commutativeN/A

                                                                                                                                                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        8. distribute-lft-neg-inN/A

                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        9. mul-1-negN/A

                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        10. lower-fma.f64N/A

                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                                        11. mul-1-negN/A

                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        12. lower-neg.f64N/A

                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                        13. *-commutativeN/A

                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                        14. lower-*.f6446.1

                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                      4. Applied rewrites46.1%

                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                                      5. Taylor expanded in c around 0

                                                                                                                                                                                                        \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                        1. Applied rewrites42.2%

                                                                                                                                                                                                          \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                                                                                                                                                      7. Recombined 4 regimes into one program.
                                                                                                                                                                                                      8. Final simplification39.3%

                                                                                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -6.2 \cdot 10^{+147}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;y \leq 6.8 \cdot 10^{-118}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;y \leq 5.8 \cdot 10^{+62}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \]
                                                                                                                                                                                                      9. Add Preprocessing

                                                                                                                                                                                                      Alternative 26: 28.5% accurate, 2.6× speedup?

                                                                                                                                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                                                                                                                                                                                      (FPCore (x y z t a b c i j)
                                                                                                                                                                                                       :precision binary64
                                                                                                                                                                                                       (if (<= a -1.16e+70)
                                                                                                                                                                                                         (* (* j c) a)
                                                                                                                                                                                                         (if (<= a 7.2e+177) (* (* z x) y) (* (* j a) c))))
                                                                                                                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                      	if (a <= -1.16e+70) {
                                                                                                                                                                                                      		tmp = (j * c) * a;
                                                                                                                                                                                                      	} else if (a <= 7.2e+177) {
                                                                                                                                                                                                      		tmp = (z * x) * y;
                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                      		tmp = (j * a) * c;
                                                                                                                                                                                                      	}
                                                                                                                                                                                                      	return tmp;
                                                                                                                                                                                                      }
                                                                                                                                                                                                      
                                                                                                                                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                          real(8), intent (in) :: z
                                                                                                                                                                                                          real(8), intent (in) :: t
                                                                                                                                                                                                          real(8), intent (in) :: a
                                                                                                                                                                                                          real(8), intent (in) :: b
                                                                                                                                                                                                          real(8), intent (in) :: c
                                                                                                                                                                                                          real(8), intent (in) :: i
                                                                                                                                                                                                          real(8), intent (in) :: j
                                                                                                                                                                                                          real(8) :: tmp
                                                                                                                                                                                                          if (a <= (-1.16d+70)) then
                                                                                                                                                                                                              tmp = (j * c) * a
                                                                                                                                                                                                          else if (a <= 7.2d+177) then
                                                                                                                                                                                                              tmp = (z * x) * y
                                                                                                                                                                                                          else
                                                                                                                                                                                                              tmp = (j * a) * c
                                                                                                                                                                                                          end if
                                                                                                                                                                                                          code = tmp
                                                                                                                                                                                                      end function
                                                                                                                                                                                                      
                                                                                                                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                      	double tmp;
                                                                                                                                                                                                      	if (a <= -1.16e+70) {
                                                                                                                                                                                                      		tmp = (j * c) * a;
                                                                                                                                                                                                      	} else if (a <= 7.2e+177) {
                                                                                                                                                                                                      		tmp = (z * x) * y;
                                                                                                                                                                                                      	} else {
                                                                                                                                                                                                      		tmp = (j * a) * c;
                                                                                                                                                                                                      	}
                                                                                                                                                                                                      	return tmp;
                                                                                                                                                                                                      }
                                                                                                                                                                                                      
                                                                                                                                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                                                      	tmp = 0
                                                                                                                                                                                                      	if a <= -1.16e+70:
                                                                                                                                                                                                      		tmp = (j * c) * a
                                                                                                                                                                                                      	elif a <= 7.2e+177:
                                                                                                                                                                                                      		tmp = (z * x) * y
                                                                                                                                                                                                      	else:
                                                                                                                                                                                                      		tmp = (j * a) * c
                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                      
                                                                                                                                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                      	tmp = 0.0
                                                                                                                                                                                                      	if (a <= -1.16e+70)
                                                                                                                                                                                                      		tmp = Float64(Float64(j * c) * a);
                                                                                                                                                                                                      	elseif (a <= 7.2e+177)
                                                                                                                                                                                                      		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                                                                      	else
                                                                                                                                                                                                      		tmp = Float64(Float64(j * a) * c);
                                                                                                                                                                                                      	end
                                                                                                                                                                                                      	return tmp
                                                                                                                                                                                                      end
                                                                                                                                                                                                      
                                                                                                                                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                      	tmp = 0.0;
                                                                                                                                                                                                      	if (a <= -1.16e+70)
                                                                                                                                                                                                      		tmp = (j * c) * a;
                                                                                                                                                                                                      	elseif (a <= 7.2e+177)
                                                                                                                                                                                                      		tmp = (z * x) * y;
                                                                                                                                                                                                      	else
                                                                                                                                                                                                      		tmp = (j * a) * c;
                                                                                                                                                                                                      	end
                                                                                                                                                                                                      	tmp_2 = tmp;
                                                                                                                                                                                                      end
                                                                                                                                                                                                      
                                                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.16e+70], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[a, 7.2e+177], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
                                                                                                                                                                                                      
                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                      
                                                                                                                                                                                                      \\
                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                      \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
                                                                                                                                                                                                      \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                                                                                                                                                                      
                                                                                                                                                                                                      \mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\
                                                                                                                                                                                                      \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                                                                      
                                                                                                                                                                                                      \mathbf{else}:\\
                                                                                                                                                                                                      \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                                                                                                                                                      
                                                                                                                                                                                                      
                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                      
                                                                                                                                                                                                      Derivation
                                                                                                                                                                                                      1. Split input into 3 regimes
                                                                                                                                                                                                      2. if a < -1.1599999999999999e70

                                                                                                                                                                                                        1. Initial program 52.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 j around inf

                                                                                                                                                                                                          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                                                                        4. 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. cancel-sign-sub-invN/A

                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                                                                          4. +-commutativeN/A

                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                          5. neg-mul-1N/A

                                                                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                                                                          6. lower-fma.f64N/A

                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                          7. neg-mul-1N/A

                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                          8. lower-neg.f64N/A

                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                          9. *-commutativeN/A

                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                          10. lower-*.f6453.2

                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                        5. Applied rewrites53.2%

                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                                                                        6. Taylor expanded in c around inf

                                                                                                                                                                                                          \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                                                                                                                                        7. Step-by-step derivation
                                                                                                                                                                                                          1. Applied rewrites55.0%

                                                                                                                                                                                                            \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]

                                                                                                                                                                                                          if -1.1599999999999999e70 < a < 7.20000000000000005e177

                                                                                                                                                                                                          1. Initial program 83.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 a around 0

                                                                                                                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                                          4. Applied rewrites83.1%

                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                                          5. Step-by-step derivation
                                                                                                                                                                                                            1. Applied rewrites82.5%

                                                                                                                                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                                            2. Taylor expanded in z around inf

                                                                                                                                                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                                            3. 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. mul-1-negN/A

                                                                                                                                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              7. *-commutativeN/A

                                                                                                                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              8. distribute-lft-neg-inN/A

                                                                                                                                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              9. mul-1-negN/A

                                                                                                                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              10. lower-fma.f64N/A

                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                                              11. mul-1-negN/A

                                                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              12. lower-neg.f64N/A

                                                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                              13. *-commutativeN/A

                                                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                              14. lower-*.f6446.6

                                                                                                                                                                                                                \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                            4. Applied rewrites46.6%

                                                                                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                                            5. Taylor expanded in c around 0

                                                                                                                                                                                                              \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                                                            6. Step-by-step derivation
                                                                                                                                                                                                              1. Applied rewrites29.7%

                                                                                                                                                                                                                \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]

                                                                                                                                                                                                              if 7.20000000000000005e177 < a

                                                                                                                                                                                                              1. Initial program 38.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 j around inf

                                                                                                                                                                                                                \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                                                                              4. 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. cancel-sign-sub-invN/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                                                                                4. +-commutativeN/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                                5. neg-mul-1N/A

                                                                                                                                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                6. lower-fma.f64N/A

                                                                                                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                                7. neg-mul-1N/A

                                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                8. lower-neg.f64N/A

                                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                9. *-commutativeN/A

                                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                                10. lower-*.f6448.5

                                                                                                                                                                                                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                              5. Applied rewrites48.5%

                                                                                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                                                                              6. Taylor expanded in c around inf

                                                                                                                                                                                                                \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                                                                                1. Applied rewrites48.7%

                                                                                                                                                                                                                  \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                                                                                                                                                                                2. Step-by-step derivation
                                                                                                                                                                                                                  1. Applied rewrites51.3%

                                                                                                                                                                                                                    \[\leadsto \color{blue}{\left(j \cdot a\right) \cdot c} \]
                                                                                                                                                                                                                3. Recombined 3 regimes into one program.
                                                                                                                                                                                                                4. Final simplification36.9%

                                                                                                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq 7.2 \cdot 10^{+177}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                                                                                                                                                5. Add Preprocessing

                                                                                                                                                                                                                Alternative 27: 28.8% accurate, 2.6× speedup?

                                                                                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(j \cdot c\right) \cdot a\\ \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+96}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                                                                                                                (FPCore (x y z t a b c i j)
                                                                                                                                                                                                                 :precision binary64
                                                                                                                                                                                                                 (let* ((t_1 (* (* j c) a)))
                                                                                                                                                                                                                   (if (<= a -1.16e+70) t_1 (if (<= a 3.8e+96) (* (* z x) y) t_1))))
                                                                                                                                                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                                	double t_1 = (j * c) * a;
                                                                                                                                                                                                                	double tmp;
                                                                                                                                                                                                                	if (a <= -1.16e+70) {
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	} else if (a <= 3.8e+96) {
                                                                                                                                                                                                                		tmp = (z * x) * y;
                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	}
                                                                                                                                                                                                                	return tmp;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                
                                                                                                                                                                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                    real(8), intent (in) :: x
                                                                                                                                                                                                                    real(8), intent (in) :: y
                                                                                                                                                                                                                    real(8), intent (in) :: z
                                                                                                                                                                                                                    real(8), intent (in) :: t
                                                                                                                                                                                                                    real(8), intent (in) :: a
                                                                                                                                                                                                                    real(8), intent (in) :: b
                                                                                                                                                                                                                    real(8), intent (in) :: c
                                                                                                                                                                                                                    real(8), intent (in) :: i
                                                                                                                                                                                                                    real(8), intent (in) :: j
                                                                                                                                                                                                                    real(8) :: t_1
                                                                                                                                                                                                                    real(8) :: tmp
                                                                                                                                                                                                                    t_1 = (j * c) * a
                                                                                                                                                                                                                    if (a <= (-1.16d+70)) then
                                                                                                                                                                                                                        tmp = t_1
                                                                                                                                                                                                                    else if (a <= 3.8d+96) then
                                                                                                                                                                                                                        tmp = (z * x) * y
                                                                                                                                                                                                                    else
                                                                                                                                                                                                                        tmp = t_1
                                                                                                                                                                                                                    end if
                                                                                                                                                                                                                    code = tmp
                                                                                                                                                                                                                end function
                                                                                                                                                                                                                
                                                                                                                                                                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                                	double t_1 = (j * c) * a;
                                                                                                                                                                                                                	double tmp;
                                                                                                                                                                                                                	if (a <= -1.16e+70) {
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	} else if (a <= 3.8e+96) {
                                                                                                                                                                                                                		tmp = (z * x) * y;
                                                                                                                                                                                                                	} else {
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	}
                                                                                                                                                                                                                	return tmp;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                
                                                                                                                                                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                                                                	t_1 = (j * c) * a
                                                                                                                                                                                                                	tmp = 0
                                                                                                                                                                                                                	if a <= -1.16e+70:
                                                                                                                                                                                                                		tmp = t_1
                                                                                                                                                                                                                	elif a <= 3.8e+96:
                                                                                                                                                                                                                		tmp = (z * x) * y
                                                                                                                                                                                                                	else:
                                                                                                                                                                                                                		tmp = t_1
                                                                                                                                                                                                                	return tmp
                                                                                                                                                                                                                
                                                                                                                                                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                	t_1 = Float64(Float64(j * c) * a)
                                                                                                                                                                                                                	tmp = 0.0
                                                                                                                                                                                                                	if (a <= -1.16e+70)
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	elseif (a <= 3.8e+96)
                                                                                                                                                                                                                		tmp = Float64(Float64(z * x) * y);
                                                                                                                                                                                                                	else
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	end
                                                                                                                                                                                                                	return tmp
                                                                                                                                                                                                                end
                                                                                                                                                                                                                
                                                                                                                                                                                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                	t_1 = (j * c) * a;
                                                                                                                                                                                                                	tmp = 0.0;
                                                                                                                                                                                                                	if (a <= -1.16e+70)
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	elseif (a <= 3.8e+96)
                                                                                                                                                                                                                		tmp = (z * x) * y;
                                                                                                                                                                                                                	else
                                                                                                                                                                                                                		tmp = t_1;
                                                                                                                                                                                                                	end
                                                                                                                                                                                                                	tmp_2 = tmp;
                                                                                                                                                                                                                end
                                                                                                                                                                                                                
                                                                                                                                                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.16e+70], t$95$1, If[LessEqual[a, 3.8e+96], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
                                                                                                                                                                                                                
                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                
                                                                                                                                                                                                                \\
                                                                                                                                                                                                                \begin{array}{l}
                                                                                                                                                                                                                t_1 := \left(j \cdot c\right) \cdot a\\
                                                                                                                                                                                                                \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\
                                                                                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                                                                                
                                                                                                                                                                                                                \mathbf{elif}\;a \leq 3.8 \cdot 10^{+96}:\\
                                                                                                                                                                                                                \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                                                                                                                
                                                                                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                                                                                
                                                                                                                                                                                                                
                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                \end{array}
                                                                                                                                                                                                                
                                                                                                                                                                                                                Derivation
                                                                                                                                                                                                                1. Split input into 2 regimes
                                                                                                                                                                                                                2. if a < -1.1599999999999999e70 or 3.8000000000000002e96 < a

                                                                                                                                                                                                                  1. Initial program 52.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 j around inf

                                                                                                                                                                                                                    \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                                                                                                                                                                  4. 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. cancel-sign-sub-invN/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                                                                                                                                                                    4. +-commutativeN/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                                    5. neg-mul-1N/A

                                                                                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                    6. lower-fma.f64N/A

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                                                                                                                                                                                    7. neg-mul-1N/A

                                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                    8. lower-neg.f64N/A

                                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                                                                                                                    9. *-commutativeN/A

                                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                                    10. lower-*.f6447.7

                                                                                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                                                                                                                                                                  5. Applied rewrites47.7%

                                                                                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                                                                                                                                                                  6. Taylor expanded in c around inf

                                                                                                                                                                                                                    \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                                                                                    1. Applied rewrites47.4%

                                                                                                                                                                                                                      \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]

                                                                                                                                                                                                                    if -1.1599999999999999e70 < a < 3.8000000000000002e96

                                                                                                                                                                                                                    1. Initial program 83.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 a around 0

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                                                    4. Applied rewrites82.9%

                                                                                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                                                    5. Step-by-step derivation
                                                                                                                                                                                                                      1. Applied rewrites82.3%

                                                                                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                                                      2. Taylor expanded in z around inf

                                                                                                                                                                                                                        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                                                      3. 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. mul-1-negN/A

                                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        7. *-commutativeN/A

                                                                                                                                                                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        8. distribute-lft-neg-inN/A

                                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        9. mul-1-negN/A

                                                                                                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        10. lower-fma.f64N/A

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                                                        11. mul-1-negN/A

                                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        12. lower-neg.f64N/A

                                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                        13. *-commutativeN/A

                                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                                        14. lower-*.f6447.0

                                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                                      4. Applied rewrites47.0%

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                                                      5. Taylor expanded in c around 0

                                                                                                                                                                                                                        \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                                                                      6. Step-by-step derivation
                                                                                                                                                                                                                        1. Applied rewrites29.8%

                                                                                                                                                                                                                          \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]
                                                                                                                                                                                                                      7. Recombined 2 regimes into one program.
                                                                                                                                                                                                                      8. Final simplification36.5%

                                                                                                                                                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.16 \cdot 10^{+70}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;a \leq 3.8 \cdot 10^{+96}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \end{array} \]
                                                                                                                                                                                                                      9. Add Preprocessing

                                                                                                                                                                                                                      Alternative 28: 21.8% accurate, 5.5× speedup?

                                                                                                                                                                                                                      \[\begin{array}{l} \\ \left(z \cdot x\right) \cdot y \end{array} \]
                                                                                                                                                                                                                      (FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
                                                                                                                                                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                                      	return (z * x) * y;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                          real(8), intent (in) :: x
                                                                                                                                                                                                                          real(8), intent (in) :: y
                                                                                                                                                                                                                          real(8), intent (in) :: z
                                                                                                                                                                                                                          real(8), intent (in) :: t
                                                                                                                                                                                                                          real(8), intent (in) :: a
                                                                                                                                                                                                                          real(8), intent (in) :: b
                                                                                                                                                                                                                          real(8), intent (in) :: c
                                                                                                                                                                                                                          real(8), intent (in) :: i
                                                                                                                                                                                                                          real(8), intent (in) :: j
                                                                                                                                                                                                                          code = (z * x) * y
                                                                                                                                                                                                                      end function
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                                                                                                                      	return (z * x) * y;
                                                                                                                                                                                                                      }
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                                                                                      	return (z * x) * y
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                      	return Float64(Float64(z * x) * y)
                                                                                                                                                                                                                      end
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                                                                                                                                      	tmp = (z * x) * y;
                                                                                                                                                                                                                      end
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      \begin{array}{l}
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      \\
                                                                                                                                                                                                                      \left(z \cdot x\right) \cdot y
                                                                                                                                                                                                                      \end{array}
                                                                                                                                                                                                                      
                                                                                                                                                                                                                      Derivation
                                                                                                                                                                                                                      1. Initial program 71.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 a around 0

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + \left(a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) + x \cdot \left(y \cdot z\right)\right)\right) - b \cdot \left(c \cdot z - i \cdot t\right)} \]
                                                                                                                                                                                                                      4. Applied rewrites80.1%

                                                                                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(-x, t, c \cdot j\right) \cdot a\right)\right)} \]
                                                                                                                                                                                                                      5. Step-by-step derivation
                                                                                                                                                                                                                        1. Applied rewrites79.4%

                                                                                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, t \cdot i\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-j, i, z \cdot x\right), y, \mathsf{fma}\left(\left(-x\right) \cdot t, a, \left(j \cdot c\right) \cdot a\right)\right)\right) \]
                                                                                                                                                                                                                        2. Taylor expanded in z around inf

                                                                                                                                                                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                                                                                                                                                        3. 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. mul-1-negN/A

                                                                                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          7. *-commutativeN/A

                                                                                                                                                                                                                            \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          8. distribute-lft-neg-inN/A

                                                                                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          9. mul-1-negN/A

                                                                                                                                                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          10. lower-fma.f64N/A

                                                                                                                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                                                                                                          11. mul-1-negN/A

                                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          12. lower-neg.f64N/A

                                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                                                                                                          13. *-commutativeN/A

                                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                                          14. lower-*.f6440.6

                                                                                                                                                                                                                            \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                                                                                                                                                                        4. Applied rewrites40.6%

                                                                                                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                                                                                                                                                                                                        5. Taylor expanded in c around 0

                                                                                                                                                                                                                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                                                                                                                                                                        6. Step-by-step derivation
                                                                                                                                                                                                                          1. Applied rewrites25.4%

                                                                                                                                                                                                                            \[\leadsto \left(z \cdot x\right) \cdot \color{blue}{y} \]
                                                                                                                                                                                                                          2. Add Preprocessing

                                                                                                                                                                                                                          Developer Target 1: 59.4% 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 2024250 
                                                                                                                                                                                                                          (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)))))