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

Percentage Accurate: 73.4% → 84.8%
Time: 16.9s
Alternatives: 20
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 20 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.4% 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: 84.8% accurate, 0.4× speedup?

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

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

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


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

    1. Initial program 90.0%

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

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

    1. Initial program 0.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in 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 rewrites49.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. Taylor expanded in z around -inf

      \[\leadsto -1 \cdot \color{blue}{\left(z \cdot \left(-1 \cdot \left(x \cdot y\right) + \left(-1 \cdot \frac{-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) + b \cdot \left(i \cdot t\right)\right)}{z} + b \cdot c\right)\right)\right)} \]
    6. Step-by-step derivation
      1. Applied rewrites79.4%

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

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

    Alternative 2: 83.8% accurate, 0.5× speedup?

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

      1. Initial program 90.0%

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

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

      1. Initial program 0.0%

        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. Add Preprocessing
      3. Taylor expanded in 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 rewrites49.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. Taylor expanded in b around 0

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

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

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

      Alternative 3: 77.2% accurate, 1.0× speedup?

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

        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 rewrites79.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)} \]

        if 8.8000000000000003e138 < t

        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 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-*.f6483.4

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq 8.8 \cdot 10^{+138}:\\ \;\;\;\;\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, a, i \cdot b\right) \cdot t\\ \end{array} \]
      5. Add Preprocessing

      Alternative 4: 67.1% accurate, 1.1× speedup?

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

        1. Initial program 67.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{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-*.f6475.1

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

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

        if -4.19999999999999971e131 < b < 2.2000000000000001e-158

        1. Initial program 69.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 rewrites72.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. Taylor expanded in b around 0

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

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

          if 2.2000000000000001e-158 < b < 3.4e167

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

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

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

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

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

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

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

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

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

        Alternative 5: 65.6% accurate, 1.2× speedup?

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

          1. Initial program 61.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 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-*.f6485.0

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

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

          if -1.35e141 < t < 3.60000000000000006e136

          1. Initial program 75.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) + \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.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. Taylor expanded in b around 0

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

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

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

          Alternative 6: 58.3% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -5.8 \cdot 10^{+98}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.35 \cdot 10^{-97}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\ \mathbf{elif}\;t \leq 140000000:\\ \;\;\;\;\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 (- x) a (* i b)) t)))
             (if (<= t -5.8e+98)
               t_1
               (if (<= t 1.35e-97)
                 (+ (* (* z y) x) (* (- (* c a) (* i y)) j))
                 (if (<= t 140000000.0) (* (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(-x, a, (i * b)) * t;
          	double tmp;
          	if (t <= -5.8e+98) {
          		tmp = t_1;
          	} else if (t <= 1.35e-97) {
          		tmp = ((z * y) * x) + (((c * a) - (i * y)) * j);
          	} else if (t <= 140000000.0) {
          		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(-x), a, Float64(i * b)) * t)
          	tmp = 0.0
          	if (t <= -5.8e+98)
          		tmp = t_1;
          	elseif (t <= 1.35e-97)
          		tmp = Float64(Float64(Float64(z * y) * x) + Float64(Float64(Float64(c * a) - Float64(i * y)) * j));
          	elseif (t <= 140000000.0)
          		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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -5.8e+98], t$95$1, If[LessEqual[t, 1.35e-97], N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] + N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 140000000.0], 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(-x, a, i \cdot b\right) \cdot t\\
          \mathbf{if}\;t \leq -5.8 \cdot 10^{+98}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \leq 1.35 \cdot 10^{-97}:\\
          \;\;\;\;\left(z \cdot y\right) \cdot x + \left(c \cdot a - i \cdot y\right) \cdot j\\
          
          \mathbf{elif}\;t \leq 140000000:\\
          \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if t < -5.8000000000000002e98 or 1.4e8 < t

            1. Initial program 63.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-*.f6475.0

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

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

            if -5.8000000000000002e98 < t < 1.34999999999999993e-97

            1. Initial program 81.6%

              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
            2. Add Preprocessing
            3. Taylor expanded in y around 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-*.f6468.6

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

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

            if 1.34999999999999993e-97 < t < 1.4e8

            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 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-*.f6461.2

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

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

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

          Alternative 7: 50.9% accurate, 1.4× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -1.7 \cdot 10^{-77}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.25 \cdot 10^{-226}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 9.8 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;t \leq 140000000:\\ \;\;\;\;\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 (- x) a (* i b)) t)))
             (if (<= t -1.7e-77)
               t_1
               (if (<= t -1.25e-226)
                 (* (fma (- c) b (* y x)) z)
                 (if (<= t 9.8e-98)
                   (* (fma (- i) y (* c a)) j)
                   (if (<= t 140000000.0) (* (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(-x, a, (i * b)) * t;
          	double tmp;
          	if (t <= -1.7e-77) {
          		tmp = t_1;
          	} else if (t <= -1.25e-226) {
          		tmp = fma(-c, b, (y * x)) * z;
          	} else if (t <= 9.8e-98) {
          		tmp = fma(-i, y, (c * a)) * j;
          	} else if (t <= 140000000.0) {
          		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(-x), a, Float64(i * b)) * t)
          	tmp = 0.0
          	if (t <= -1.7e-77)
          		tmp = t_1;
          	elseif (t <= -1.25e-226)
          		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
          	elseif (t <= 9.8e-98)
          		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
          	elseif (t <= 140000000.0)
          		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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.7e-77], t$95$1, If[LessEqual[t, -1.25e-226], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 9.8e-98], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 140000000.0], 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(-x, a, i \cdot b\right) \cdot t\\
          \mathbf{if}\;t \leq -1.7 \cdot 10^{-77}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;t \leq -1.25 \cdot 10^{-226}:\\
          \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
          
          \mathbf{elif}\;t \leq 9.8 \cdot 10^{-98}:\\
          \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
          
          \mathbf{elif}\;t \leq 140000000:\\
          \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if t < -1.69999999999999991e-77 or 1.4e8 < t

            1. Initial program 66.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 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-*.f6468.6

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

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

            if -1.69999999999999991e-77 < t < -1.2499999999999999e-226

            1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -1.2499999999999999e-226 < t < 9.80000000000000028e-98

            1. Initial program 86.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-*.f6467.2

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

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

            if 9.80000000000000028e-98 < t < 1.4e8

            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 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-*.f6461.2

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.7 \cdot 10^{-77}:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{elif}\;t \leq -1.25 \cdot 10^{-226}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 9.8 \cdot 10^{-98}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;t \leq 140000000:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \end{array} \]
          5. Add Preprocessing

          Alternative 8: 50.1% accurate, 1.5× speedup?

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

            1. Initial program 67.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-*.f6467.5

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

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

            if -1.69999999999999991e-77 < t < -6.79999999999999981e-228

            1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -6.79999999999999981e-228 < t < 1.70000000000000003e-6

            1. Initial program 77.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 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-*.f6461.0

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

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

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

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

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

            Alternative 9: 30.0% accurate, 1.6× speedup?

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

              1. Initial program 64.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\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 rewrites47.5%

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

                if -4.4000000000000003e39 < t < -2.9000000000000001e-228

                1. Initial program 76.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-*.f6438.2

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

                  \[\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 rewrites31.8%

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

                  if -2.9000000000000001e-228 < t < 1.70000000000000003e-6

                  1. Initial program 77.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 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-*.f6461.0

                      \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                  5. Applied rewrites61.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 rewrites40.2%

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

                    if 1.70000000000000003e-6 < t < 2.35e139

                    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. Applied rewrites79.7%

                      \[\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)}}} \]
                    4. Taylor expanded in t around inf

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

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

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

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

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

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

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

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

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

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

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

                      if 2.35e139 < t

                      1. Initial program 63.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-*.f6468.2

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

                        \[\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 rewrites64.1%

                          \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                      8. Recombined 5 regimes into one program.
                      9. Final simplification43.7%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -4.4 \cdot 10^{+39}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \mathbf{elif}\;t \leq -2.9 \cdot 10^{-228}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-6}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;t \leq 2.35 \cdot 10^{+139}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                      10. Add Preprocessing

                      Alternative 10: 53.0% accurate, 1.6× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -1.05 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 5 \cdot 10^{-274}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                         (if (<= x -1.05e+40)
                           t_1
                           (if (<= x 5e-274)
                             (* (fma (- b) z (* j a)) c)
                             (if (<= x 3.8e-53) (* (fma (- i) y (* c a)) j) t_1)))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = fma(-a, t, (z * y)) * x;
                      	double tmp;
                      	if (x <= -1.05e+40) {
                      		tmp = t_1;
                      	} else if (x <= 5e-274) {
                      		tmp = fma(-b, z, (j * a)) * c;
                      	} else if (x <= 3.8e-53) {
                      		tmp = fma(-i, y, (c * a)) * j;
                      	} 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.05e+40)
                      		tmp = t_1;
                      	elseif (x <= 5e-274)
                      		tmp = Float64(fma(Float64(-b), z, Float64(j * a)) * c);
                      	elseif (x <= 3.8e-53)
                      		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.05e+40], t$95$1, If[LessEqual[x, 5e-274], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 3.8e-53], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $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.05 \cdot 10^{+40}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;x \leq 5 \cdot 10^{-274}:\\
                      \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
                      
                      \mathbf{elif}\;x \leq 3.8 \cdot 10^{-53}:\\
                      \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if x < -1.05000000000000005e40 or 3.7999999999999998e-53 < x

                        1. Initial program 69.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-*.f6461.9

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

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

                        if -1.05000000000000005e40 < x < 5e-274

                        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 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-*.f6456.4

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

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

                        if 5e-274 < x < 3.7999999999999998e-53

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

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

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

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

                      Alternative 11: 52.4% accurate, 1.6× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -1.05 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.25 \cdot 10^{-286}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 8.5 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                         (if (<= x -1.05e+40)
                           t_1
                           (if (<= x 1.25e-286)
                             (* (fma (- b) z (* j a)) c)
                             (if (<= x 8.5e-53) (* (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(-a, t, (z * y)) * x;
                      	double tmp;
                      	if (x <= -1.05e+40) {
                      		tmp = t_1;
                      	} else if (x <= 1.25e-286) {
                      		tmp = fma(-b, z, (j * a)) * c;
                      	} else if (x <= 8.5e-53) {
                      		tmp = 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(-a), t, Float64(z * y)) * x)
                      	tmp = 0.0
                      	if (x <= -1.05e+40)
                      		tmp = t_1;
                      	elseif (x <= 1.25e-286)
                      		tmp = Float64(fma(Float64(-b), z, Float64(j * a)) * c);
                      	elseif (x <= 8.5e-53)
                      		tmp = 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.05e+40], t$95$1, If[LessEqual[x, 1.25e-286], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 8.5e-53], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                      \mathbf{if}\;x \leq -1.05 \cdot 10^{+40}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;x \leq 1.25 \cdot 10^{-286}:\\
                      \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
                      
                      \mathbf{elif}\;x \leq 8.5 \cdot 10^{-53}:\\
                      \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 3 regimes
                      2. if x < -1.05000000000000005e40 or 8.50000000000000044e-53 < x

                        1. Initial program 69.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-*.f6461.9

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

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

                        if -1.05000000000000005e40 < x < 1.25000000000000009e-286

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

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

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

                        if 1.25000000000000009e-286 < x < 8.50000000000000044e-53

                        1. Initial program 73.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{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-*.f6450.8

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

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

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

                      Alternative 12: 43.0% accurate, 1.6× speedup?

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

                        1. Initial program 69.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-*.f6461.9

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

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

                        if -2.0499999999999999e37 < x < -1.5999999999999999e-111

                        1. Initial program 80.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-*.f6450.2

                            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                        5. Applied rewrites50.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 rewrites41.6%

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

                          if -1.5999999999999999e-111 < x < 2.3000000000000001e-53

                          1. Initial program 71.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. Applied rewrites72.2%

                            \[\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)}}} \]
                          4. Taylor expanded in t around inf

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(i \cdot b\right) \cdot t \]
                          9. Recombined 3 regimes into one program.
                          10. Final simplification50.2%

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

                          Alternative 13: 29.5% accurate, 1.7× speedup?

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

                            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. Applied rewrites79.6%

                              \[\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)}}} \]
                            4. Taylor expanded in t around inf

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

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

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

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

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

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

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

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

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

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

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

                              if -2.8999999999999998e147 < b < -7.0000000000000001e-111 or 1.50000000000000012e-306 < b < 76

                              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-*.f6449.5

                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                              5. Applied rewrites49.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 rewrites34.2%

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

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

                                  if -7.0000000000000001e-111 < b < 1.50000000000000012e-306

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \left(z \cdot y\right) \cdot x \]
                                  8. Recombined 3 regimes into one program.
                                  9. Add Preprocessing

                                  Alternative 14: 29.2% accurate, 1.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -7.20000000000000041e147 < b < -7.0000000000000001e-111 or 1.50000000000000012e-306 < b < 76

                                      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-*.f6449.5

                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                      5. Applied rewrites49.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 rewrites34.2%

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

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

                                          if -7.0000000000000001e-111 < b < 1.50000000000000012e-306

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if 76 < b

                                            1. Initial program 74.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\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 rewrites41.8%

                                                \[\leadsto \left(t \cdot b\right) \cdot i \]
                                            8. Recombined 4 regimes into one program.
                                            9. Final simplification40.4%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7.2 \cdot 10^{+147}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;b \leq -7 \cdot 10^{-111}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-306}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 76:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 15: 29.0% accurate, 1.7× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if -7.20000000000000041e147 < b < -7.0000000000000001e-111 or 1.50000000000000012e-306 < b < 76

                                                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-*.f6449.5

                                                    \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                5. Applied rewrites49.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 rewrites34.2%

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

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

                                                    if -7.0000000000000001e-111 < b < 1.50000000000000012e-306

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -7.2 \cdot 10^{+147}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;b \leq -7 \cdot 10^{-111}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;b \leq 1.5 \cdot 10^{-306}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;b \leq 76:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                                    10. Add Preprocessing

                                                    Alternative 16: 30.0% accurate, 2.0× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{if}\;x \leq -3.3 \cdot 10^{+41}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.6 \cdot 10^{-111}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;x \leq 8.7 \cdot 10^{-51}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i j)
                                                     :precision binary64
                                                     (let* ((t_1 (* (* (- x) t) a)))
                                                       (if (<= x -3.3e+41)
                                                         t_1
                                                         (if (<= x -1.6e-111)
                                                           (* (* j c) a)
                                                           (if (<= x 8.7e-51) (* (* i b) t) t_1)))))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double t_1 = (-x * t) * a;
                                                    	double tmp;
                                                    	if (x <= -3.3e+41) {
                                                    		tmp = t_1;
                                                    	} else if (x <= -1.6e-111) {
                                                    		tmp = (j * c) * a;
                                                    	} else if (x <= 8.7e-51) {
                                                    		tmp = (i * b) * t;
                                                    	} 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 = (-x * t) * a
                                                        if (x <= (-3.3d+41)) then
                                                            tmp = t_1
                                                        else if (x <= (-1.6d-111)) then
                                                            tmp = (j * c) * a
                                                        else if (x <= 8.7d-51) then
                                                            tmp = (i * b) * t
                                                        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 = (-x * t) * a;
                                                    	double tmp;
                                                    	if (x <= -3.3e+41) {
                                                    		tmp = t_1;
                                                    	} else if (x <= -1.6e-111) {
                                                    		tmp = (j * c) * a;
                                                    	} else if (x <= 8.7e-51) {
                                                    		tmp = (i * b) * t;
                                                    	} else {
                                                    		tmp = t_1;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	t_1 = (-x * t) * a
                                                    	tmp = 0
                                                    	if x <= -3.3e+41:
                                                    		tmp = t_1
                                                    	elif x <= -1.6e-111:
                                                    		tmp = (j * c) * a
                                                    	elif x <= 8.7e-51:
                                                    		tmp = (i * b) * t
                                                    	else:
                                                    		tmp = t_1
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	t_1 = Float64(Float64(Float64(-x) * t) * a)
                                                    	tmp = 0.0
                                                    	if (x <= -3.3e+41)
                                                    		tmp = t_1;
                                                    	elseif (x <= -1.6e-111)
                                                    		tmp = Float64(Float64(j * c) * a);
                                                    	elseif (x <= 8.7e-51)
                                                    		tmp = Float64(Float64(i * b) * t);
                                                    	else
                                                    		tmp = t_1;
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	t_1 = (-x * t) * a;
                                                    	tmp = 0.0;
                                                    	if (x <= -3.3e+41)
                                                    		tmp = t_1;
                                                    	elseif (x <= -1.6e-111)
                                                    		tmp = (j * c) * a;
                                                    	elseif (x <= 8.7e-51)
                                                    		tmp = (i * b) * t;
                                                    	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[((-x) * t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -3.3e+41], t$95$1, If[LessEqual[x, -1.6e-111], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 8.7e-51], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    t_1 := \left(\left(-x\right) \cdot t\right) \cdot a\\
                                                    \mathbf{if}\;x \leq -3.3 \cdot 10^{+41}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    \mathbf{elif}\;x \leq -1.6 \cdot 10^{-111}:\\
                                                    \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                    
                                                    \mathbf{elif}\;x \leq 8.7 \cdot 10^{-51}:\\
                                                    \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;t\_1\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if x < -3.3e41 or 8.6999999999999998e-51 < x

                                                      1. Initial program 69.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-*.f6461.9

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

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

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

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

                                                        if -3.3e41 < x < -1.5999999999999999e-111

                                                        1. Initial program 80.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-*.f6450.2

                                                            \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                        5. Applied rewrites50.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 rewrites41.6%

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

                                                          if -1.5999999999999999e-111 < x < 8.6999999999999998e-51

                                                          1. Initial program 71.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. Applied rewrites72.2%

                                                            \[\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)}}} \]
                                                          4. Taylor expanded in t around inf

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \left(i \cdot b\right) \cdot t \]
                                                          9. Recombined 3 regimes into one program.
                                                          10. Final simplification40.2%

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.3 \cdot 10^{+41}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;x \leq -1.6 \cdot 10^{-111}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;x \leq 8.7 \cdot 10^{-51}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \end{array} \]
                                                          11. Add Preprocessing

                                                          Alternative 17: 53.0% 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.05 \cdot 10^{+40}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.7 \cdot 10^{-5}:\\ \;\;\;\;\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.05e+40)
                                                               t_1
                                                               (if (<= x 2.7e-5) (* (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.05e+40) {
                                                          		tmp = t_1;
                                                          	} else if (x <= 2.7e-5) {
                                                          		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.05e+40)
                                                          		tmp = t_1;
                                                          	elseif (x <= 2.7e-5)
                                                          		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.05e+40], t$95$1, If[LessEqual[x, 2.7e-5], 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.05 \cdot 10^{+40}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;x \leq 2.7 \cdot 10^{-5}:\\
                                                          \;\;\;\;\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.05000000000000005e40 or 2.6999999999999999e-5 < x

                                                            1. Initial program 69.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 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-*.f6465.7

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

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

                                                            if -1.05000000000000005e40 < x < 2.6999999999999999e-5

                                                            1. Initial program 72.6%

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

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

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

                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.05 \cdot 10^{+40}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq 2.7 \cdot 10^{-5}:\\ \;\;\;\;\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 18: 28.4% accurate, 2.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -7.20000000000000041e147 < b < 76

                                                              1. Initial program 71.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 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-*.f6445.8

                                                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                              5. Applied rewrites45.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 rewrites30.7%

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

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

                                                              Alternative 19: 22.0% accurate, 5.5× speedup?

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

                                                                  \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                              5. Applied rewrites38.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 rewrites24.2%

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

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

                                                                  Alternative 20: 22.0% accurate, 5.5× speedup?

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

                                                                      \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                                  5. Applied rewrites38.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 rewrites24.2%

                                                                      \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                                    2. Final simplification24.2%

                                                                      \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                                    3. Add Preprocessing

                                                                    Developer Target 1: 58.9% 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 2024255 
                                                                    (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)))))