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

Percentage Accurate: 73.5% → 82.7%
Time: 21.6s
Alternatives: 25
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 25 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.5% accurate, 1.0× speedup?

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

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

Alternative 1: 82.7% accurate, 0.5× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot \left(z - \frac{i \cdot j}{x}\right)\right)\\


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

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

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

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

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

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

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

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

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

        \[\leadsto x \cdot \left(y \cdot \color{blue}{\left(z - \frac{j \cdot i}{x}\right)}\right) \]
    10. Recombined 2 regimes into one program.
    11. Final simplification84.0%

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

    Alternative 2: 78.8% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -5.99999999999999981e152 < x < 8.80000000000000013e86

      1. Initial program 75.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 y around 0

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

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

      if 8.80000000000000013e86 < x

      1. Initial program 61.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 69.3% accurate, 1.0× speedup?

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

      1. Initial program 67.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 i around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.70000000000000014e169 < c < -1.1e-17

      1. Initial program 64.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \color{blue}{\left(c \cdot a - y \cdot i\right) \cdot j} + a \cdot \left(t \cdot \left(\mathsf{neg}\left(x\right)\right)\right) \]
        5. lower-fma.f6457.4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.1e-17 < c < 3.1999999999999998e-128

        1. Initial program 77.4%

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

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

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

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

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

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

        Alternative 4: 68.4% accurate, 1.1× speedup?

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

          1. Initial program 57.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                \[\leadsto \left(t \cdot b\right) \cdot i \]
              2. Taylor expanded in i around 0

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

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

              if -2.70000000000000022e145 < z < -1.9999999999999999e-126

              1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.9999999999999999e-126 < z < 6.79999999999999979e126

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  \[\leadsto \color{blue}{\left(c \cdot a - y \cdot i\right) \cdot j} + a \cdot \left(t \cdot \left(\mathsf{neg}\left(x\right)\right)\right) \]
                5. lower-fma.f6455.3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 6.79999999999999979e126 < z

              1. Initial program 61.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 i around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 5: 69.0% accurate, 1.1× speedup?

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

              1. Initial program 57.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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(t \cdot b\right) \cdot i \]
                  2. Taylor expanded in i around 0

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

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

                  if -2.70000000000000022e145 < z < -1.9999999999999999e-126

                  1. Initial program 82.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.9999999999999999e-126 < z < 4.3e-97

                  1. Initial program 72.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 4.3e-97 < z

                  1. Initial program 66.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 6: 67.8% accurate, 1.1× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -7.0000000000000002e-84 < b < 5.90000000000000026e-6

                  1. Initial program 65.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 i around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 4.4000000000000001e138 < b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                    16. lower-*.f6485.7

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

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

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

                Alternative 7: 67.8% accurate, 1.2× speedup?

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

                  1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -2.20000000000000004e-56 < t < 4.6e20

                  1. Initial program 74.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                Alternative 8: 70.5% accurate, 1.2× speedup?

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

                  1. Initial program 53.6%

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

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

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

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

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

                    if -2.49999999999999986e57 < a < 3.9000000000000001e48

                    1. Initial program 81.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 58.8% accurate, 1.4× speedup?

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

                    1. Initial program 65.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -5.2e15 < t < 3.5000000000000002e23

                    1. Initial program 76.0%

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

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

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

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

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

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

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

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

                      \[\leadsto \color{blue}{y \cdot \left(z \cdot x\right)} + j \cdot \left(c \cdot a - y \cdot i\right) \]
                  3. Recombined 2 regimes into one program.
                  4. Final simplification64.7%

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

                  Alternative 10: 54.2% accurate, 1.5× speedup?

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

                    1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -8.2e12 < t < -2.7000000000000001e-248

                    1. Initial program 71.0%

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

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

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

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

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

                      if -2.7000000000000001e-248 < t < 2.70000000000000003e-4

                      1. Initial program 75.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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    Alternative 11: 30.9% accurate, 1.6× speedup?

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

                      1. Initial program 66.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -3.8000000000000001e30 < z < -1.24999999999999993e-107

                        1. Initial program 88.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.24999999999999993e-107 < z < -2.60000000000000001e-290

                            1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -2.60000000000000001e-290 < z < 1.75

                              1. Initial program 68.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -1.25 \cdot 10^{-107}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq -2.6 \cdot 10^{-290}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{elif}\;z \leq 1.75:\\ \;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                              10. Add Preprocessing

                              Alternative 12: 26.9% accurate, 1.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -3.2e230 < b < -2.19999999999999999e111 or 1.45000000000000006e-66 < b

                                    1. Initial program 76.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -2.19999999999999999e111 < b < -1.89999999999999997e-75

                                      1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]
                                      8. Recombined 3 regimes into one program.
                                      9. Final simplification42.3%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+230}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{elif}\;b \leq -2.2 \cdot 10^{+111}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;b \leq -1.9 \cdot 10^{-75}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;b \leq 1.45 \cdot 10^{-66}:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
                                      10. Add Preprocessing

                                      Alternative 13: 52.0% accurate, 1.6× speedup?

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

                                        1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -2.65e11 < t < -3.4000000000000001e-247

                                        1. Initial program 71.0%

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.4000000000000001e-247 < t < 2.70000000000000003e-4

                                        1. Initial program 75.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 y around 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 14: 52.0% accurate, 1.6× speedup?

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

                                        1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -2.65e11 < t < -3.4000000000000001e-247

                                        1. Initial program 71.0%

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.4000000000000001e-247 < t < 2.70000000000000003e-4

                                        1. Initial program 75.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 15: 51.7% accurate, 1.6× speedup?

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

                                        1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -2.65e11 < t < -9.49999999999999939e-247

                                        1. Initial program 70.4%

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

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

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

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

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

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

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

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

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

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

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

                                        if -9.49999999999999939e-247 < t < 2.70000000000000003e-4

                                        1. Initial program 76.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 c around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 16: 51.5% accurate, 1.6× speedup?

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

                                        1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -7.2e12 < t < -9.49999999999999939e-247

                                        1. Initial program 70.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -9.49999999999999939e-247 < t < 2.70000000000000003e-4

                                        1. Initial program 76.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 c around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      Alternative 17: 48.6% accurate, 1.6× speedup?

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

                                        1. Initial program 50.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -3.2e230 < b < -2.15000000000000015e-81 or 9e-42 < b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
                                          16. lower-*.f6457.1

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

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

                                        if -2.15000000000000015e-81 < b < 9e-42

                                        1. Initial program 63.5%

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

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

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

                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                          3. *-commutativeN/A

                                            \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                          4. lower-fma.f64N/A

                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                          5. mul-1-negN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                          6. distribute-rgt-neg-inN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                          7. mul-1-negN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                          8. lower-*.f64N/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                          9. mul-1-negN/A

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                          10. lower-neg.f6453.1

                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                        5. Applied rewrites53.1%

                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                        6. Step-by-step derivation
                                          1. Applied rewrites54.2%

                                            \[\leadsto a \cdot \mathsf{fma}\left(-x, \color{blue}{t}, c \cdot j\right) \]
                                        7. Recombined 3 regimes into one program.
                                        8. Final simplification55.8%

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;b \leq -3.2 \cdot 10^{+230}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;b \leq -2.15 \cdot 10^{-81}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{elif}\;b \leq 9 \cdot 10^{-42}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \end{array} \]
                                        9. Add Preprocessing

                                        Alternative 18: 40.5% accurate, 1.6× speedup?

                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                        (FPCore (x y z t a b c i j)
                                         :precision binary64
                                         (let* ((t_1 (* x (* y z))))
                                           (if (<= z -3.8e+30)
                                             t_1
                                             (if (<= z -2.5e-98)
                                               (* i (* t b))
                                               (if (<= z 3.7e+90) (* a (fma (- x) t (* c 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 = x * (y * z);
                                        	double tmp;
                                        	if (z <= -3.8e+30) {
                                        		tmp = t_1;
                                        	} else if (z <= -2.5e-98) {
                                        		tmp = i * (t * b);
                                        	} else if (z <= 3.7e+90) {
                                        		tmp = a * fma(-x, t, (c * j));
                                        	} else {
                                        		tmp = t_1;
                                        	}
                                        	return tmp;
                                        }
                                        
                                        function code(x, y, z, t, a, b, c, i, j)
                                        	t_1 = Float64(x * Float64(y * z))
                                        	tmp = 0.0
                                        	if (z <= -3.8e+30)
                                        		tmp = t_1;
                                        	elseif (z <= -2.5e-98)
                                        		tmp = Float64(i * Float64(t * b));
                                        	elseif (z <= 3.7e+90)
                                        		tmp = Float64(a * fma(Float64(-x), t, Float64(c * j)));
                                        	else
                                        		tmp = t_1;
                                        	end
                                        	return tmp
                                        end
                                        
                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+30], t$95$1, If[LessEqual[z, -2.5e-98], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+90], N[(a * N[((-x) * t + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                        
                                        \begin{array}{l}
                                        
                                        \\
                                        \begin{array}{l}
                                        t_1 := x \cdot \left(y \cdot z\right)\\
                                        \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\
                                        \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                        
                                        \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\
                                        \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\
                                        
                                        \mathbf{else}:\\
                                        \;\;\;\;t\_1\\
                                        
                                        
                                        \end{array}
                                        \end{array}
                                        
                                        Derivation
                                        1. Split input into 3 regimes
                                        2. if z < -3.8000000000000001e30 or 3.7e90 < z

                                          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 x around inf

                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                          4. Step-by-step derivation
                                            1. lower-*.f64N/A

                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                            2. sub-negN/A

                                              \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
                                            3. +-commutativeN/A

                                              \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
                                            4. *-commutativeN/A

                                              \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
                                            5. distribute-rgt-neg-inN/A

                                              \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
                                            6. mul-1-negN/A

                                              \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
                                            7. lower-fma.f64N/A

                                              \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
                                            8. mul-1-negN/A

                                              \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                            9. lower-neg.f64N/A

                                              \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                            10. lower-*.f6452.6

                                              \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
                                          5. Applied rewrites52.6%

                                            \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)} \]
                                          6. Taylor expanded in t around 0

                                            \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites45.7%

                                              \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]

                                            if -3.8000000000000001e30 < z < -2.50000000000000009e-98

                                            1. Initial program 93.3%

                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in t around inf

                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                            4. Step-by-step derivation
                                              1. lower-*.f64N/A

                                                \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                              2. sub-negN/A

                                                \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                              3. mul-1-negN/A

                                                \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              4. distribute-rgt-neg-inN/A

                                                \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              5. mul-1-negN/A

                                                \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                              6. mul-1-negN/A

                                                \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                              7. remove-double-negN/A

                                                \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                              8. lower-fma.f64N/A

                                                \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                              9. mul-1-negN/A

                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              10. lower-neg.f64N/A

                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                              11. *-commutativeN/A

                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                              12. lower-*.f6454.4

                                                \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                            5. Applied rewrites54.4%

                                              \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                            6. Taylor expanded in a around 0

                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                            7. Step-by-step derivation
                                              1. Applied rewrites47.9%

                                                \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                              2. Step-by-step derivation
                                                1. Applied rewrites48.0%

                                                  \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                if -2.50000000000000009e-98 < z < 3.7e90

                                                1. Initial program 68.7%

                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in a around inf

                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                4. Step-by-step derivation
                                                  1. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                  2. +-commutativeN/A

                                                    \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                  3. *-commutativeN/A

                                                    \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                  4. lower-fma.f64N/A

                                                    \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                  5. mul-1-negN/A

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                  6. distribute-rgt-neg-inN/A

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                  7. mul-1-negN/A

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                  8. lower-*.f64N/A

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                  9. mul-1-negN/A

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                  10. lower-neg.f6451.3

                                                    \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                5. Applied rewrites51.3%

                                                  \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites51.3%

                                                    \[\leadsto a \cdot \mathsf{fma}\left(-x, \color{blue}{t}, c \cdot j\right) \]
                                                7. Recombined 3 regimes into one program.
                                                8. Final simplification48.7%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                9. Add Preprocessing

                                                Alternative 19: 40.6% accurate, 1.6× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (let* ((t_1 (* x (* y z))))
                                                   (if (<= z -3.8e+30)
                                                     t_1
                                                     (if (<= z -2.5e-98)
                                                       (* i (* t b))
                                                       (if (<= z 3.7e+90) (* a (fma j c (* x (- 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 * (y * z);
                                                	double tmp;
                                                	if (z <= -3.8e+30) {
                                                		tmp = t_1;
                                                	} else if (z <= -2.5e-98) {
                                                		tmp = i * (t * b);
                                                	} else if (z <= 3.7e+90) {
                                                		tmp = a * fma(j, c, (x * -t));
                                                	} else {
                                                		tmp = t_1;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	t_1 = Float64(x * Float64(y * z))
                                                	tmp = 0.0
                                                	if (z <= -3.8e+30)
                                                		tmp = t_1;
                                                	elseif (z <= -2.5e-98)
                                                		tmp = Float64(i * Float64(t * b));
                                                	elseif (z <= 3.7e+90)
                                                		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
                                                	else
                                                		tmp = t_1;
                                                	end
                                                	return tmp
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+30], t$95$1, If[LessEqual[z, -2.5e-98], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+90], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := x \cdot \left(y \cdot z\right)\\
                                                \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\
                                                \;\;\;\;i \cdot \left(t \cdot b\right)\\
                                                
                                                \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\
                                                \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if z < -3.8000000000000001e30 or 3.7e90 < z

                                                  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 x around inf

                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                  4. Step-by-step derivation
                                                    1. lower-*.f64N/A

                                                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                    2. sub-negN/A

                                                      \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
                                                    3. +-commutativeN/A

                                                      \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
                                                    4. *-commutativeN/A

                                                      \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
                                                    5. distribute-rgt-neg-inN/A

                                                      \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
                                                    6. mul-1-negN/A

                                                      \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
                                                    7. lower-fma.f64N/A

                                                      \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
                                                    8. mul-1-negN/A

                                                      \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                                    9. lower-neg.f64N/A

                                                      \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                                    10. lower-*.f6452.6

                                                      \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
                                                  5. Applied rewrites52.6%

                                                    \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)} \]
                                                  6. Taylor expanded in t around 0

                                                    \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites45.7%

                                                      \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]

                                                    if -3.8000000000000001e30 < z < -2.50000000000000009e-98

                                                    1. Initial program 93.3%

                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in t around inf

                                                      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                    4. Step-by-step derivation
                                                      1. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                      2. sub-negN/A

                                                        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                      3. mul-1-negN/A

                                                        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                      4. distribute-rgt-neg-inN/A

                                                        \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                      5. mul-1-negN/A

                                                        \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                      6. mul-1-negN/A

                                                        \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                      7. remove-double-negN/A

                                                        \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                      8. lower-fma.f64N/A

                                                        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                      9. mul-1-negN/A

                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                      10. lower-neg.f64N/A

                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                      11. *-commutativeN/A

                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                      12. lower-*.f6454.4

                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                    5. Applied rewrites54.4%

                                                      \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                    6. Taylor expanded in a around 0

                                                      \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites47.9%

                                                        \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                      2. Step-by-step derivation
                                                        1. Applied rewrites48.0%

                                                          \[\leadsto \left(t \cdot b\right) \cdot i \]

                                                        if -2.50000000000000009e-98 < z < 3.7e90

                                                        1. Initial program 68.7%

                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in a around inf

                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                        4. Step-by-step derivation
                                                          1. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                          2. +-commutativeN/A

                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                          3. *-commutativeN/A

                                                            \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                          4. lower-fma.f64N/A

                                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                          5. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                          6. distribute-rgt-neg-inN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                          7. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                          8. lower-*.f64N/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                          9. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                          10. lower-neg.f6451.3

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                        5. Applied rewrites51.3%

                                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                      3. Recombined 3 regimes into one program.
                                                      4. Final simplification48.7%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq -2.5 \cdot 10^{-98}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;z \leq 3.7 \cdot 10^{+90}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                      5. Add Preprocessing

                                                      Alternative 20: 51.0% accurate, 2.0× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.5 \cdot 10^{-92}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-34}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \end{array} \]
                                                      (FPCore (x y z t a b c i j)
                                                       :precision binary64
                                                       (if (<= a -2.5e-92)
                                                         (* a (fma (- x) t (* c j)))
                                                         (if (<= a 5.2e-34)
                                                           (* i (fma j (- y) (* t b)))
                                                           (* a (fma j c (* x (- t)))))))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	double tmp;
                                                      	if (a <= -2.5e-92) {
                                                      		tmp = a * fma(-x, t, (c * j));
                                                      	} else if (a <= 5.2e-34) {
                                                      		tmp = i * fma(j, -y, (t * b));
                                                      	} else {
                                                      		tmp = a * fma(j, c, (x * -t));
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = 0.0
                                                      	if (a <= -2.5e-92)
                                                      		tmp = Float64(a * fma(Float64(-x), t, Float64(c * j)));
                                                      	elseif (a <= 5.2e-34)
                                                      		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
                                                      	else
                                                      		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.5e-92], N[(a * N[((-x) * t + N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.2e-34], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;a \leq -2.5 \cdot 10^{-92}:\\
                                                      \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\
                                                      
                                                      \mathbf{elif}\;a \leq 5.2 \cdot 10^{-34}:\\
                                                      \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 3 regimes
                                                      2. if a < -2.50000000000000006e-92

                                                        1. Initial program 65.3%

                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in a around inf

                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                        4. Step-by-step derivation
                                                          1. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                          2. +-commutativeN/A

                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                          3. *-commutativeN/A

                                                            \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                          4. lower-fma.f64N/A

                                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                          5. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                          6. distribute-rgt-neg-inN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                          7. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                          8. lower-*.f64N/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                          9. mul-1-negN/A

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                          10. lower-neg.f6454.4

                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                        5. Applied rewrites54.4%

                                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                        6. Step-by-step derivation
                                                          1. Applied rewrites55.7%

                                                            \[\leadsto a \cdot \mathsf{fma}\left(-x, \color{blue}{t}, c \cdot j\right) \]

                                                          if -2.50000000000000006e-92 < a < 5.1999999999999999e-34

                                                          1. Initial program 82.0%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in 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. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                                            2. cancel-sign-sub-invN/A

                                                              \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right)} \]
                                                            3. mul-1-negN/A

                                                              \[\leadsto i \cdot \left(\color{blue}{\left(\mathsf{neg}\left(j \cdot y\right)\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right) \]
                                                            4. distribute-rgt-neg-inN/A

                                                              \[\leadsto i \cdot \left(\color{blue}{j \cdot \left(\mathsf{neg}\left(y\right)\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right) \]
                                                            5. mul-1-negN/A

                                                              \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-1 \cdot y\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right) \]
                                                            6. metadata-evalN/A

                                                              \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \]
                                                            7. *-lft-identityN/A

                                                              \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{b \cdot t}\right) \]
                                                            8. lower-fma.f64N/A

                                                              \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, b \cdot t\right)} \]
                                                            9. mul-1-negN/A

                                                              \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
                                                            10. lower-neg.f64N/A

                                                              \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
                                                            11. lower-*.f6451.8

                                                              \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot t}\right) \]
                                                          5. Applied rewrites51.8%

                                                            \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(j, -y, b \cdot t\right)} \]

                                                          if 5.1999999999999999e-34 < a

                                                          1. Initial program 59.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 a around inf

                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                          4. Step-by-step derivation
                                                            1. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                            2. +-commutativeN/A

                                                              \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                            3. *-commutativeN/A

                                                              \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                            4. lower-fma.f64N/A

                                                              \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                            5. mul-1-negN/A

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                            6. distribute-rgt-neg-inN/A

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                            7. mul-1-negN/A

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                            8. lower-*.f64N/A

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                            9. mul-1-negN/A

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                            10. lower-neg.f6457.6

                                                              \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                          5. Applied rewrites57.6%

                                                            \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                        7. Recombined 3 regimes into one program.
                                                        8. Final simplification54.5%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.5 \cdot 10^{-92}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(-x, t, c \cdot j\right)\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-34}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
                                                        9. Add Preprocessing

                                                        Alternative 21: 31.0% accurate, 2.1× speedup?

                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-126}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+18}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                        (FPCore (x y z t a b c i j)
                                                         :precision binary64
                                                         (let* ((t_1 (* x (* y z))))
                                                           (if (<= z -3.8e+30)
                                                             t_1
                                                             (if (<= z 5.6e-126)
                                                               (* b (* t i))
                                                               (if (<= z 9.5e+18) (* a (* c 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 = x * (y * z);
                                                        	double tmp;
                                                        	if (z <= -3.8e+30) {
                                                        		tmp = t_1;
                                                        	} else if (z <= 5.6e-126) {
                                                        		tmp = b * (t * i);
                                                        	} else if (z <= 9.5e+18) {
                                                        		tmp = a * (c * j);
                                                        	} else {
                                                        		tmp = t_1;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                                            real(8), intent (in) :: x
                                                            real(8), intent (in) :: y
                                                            real(8), intent (in) :: z
                                                            real(8), intent (in) :: t
                                                            real(8), intent (in) :: a
                                                            real(8), intent (in) :: b
                                                            real(8), intent (in) :: c
                                                            real(8), intent (in) :: i
                                                            real(8), intent (in) :: j
                                                            real(8) :: t_1
                                                            real(8) :: tmp
                                                            t_1 = x * (y * z)
                                                            if (z <= (-3.8d+30)) then
                                                                tmp = t_1
                                                            else if (z <= 5.6d-126) then
                                                                tmp = b * (t * i)
                                                            else if (z <= 9.5d+18) then
                                                                tmp = a * (c * j)
                                                            else
                                                                tmp = t_1
                                                            end if
                                                            code = tmp
                                                        end function
                                                        
                                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                        	double t_1 = x * (y * z);
                                                        	double tmp;
                                                        	if (z <= -3.8e+30) {
                                                        		tmp = t_1;
                                                        	} else if (z <= 5.6e-126) {
                                                        		tmp = b * (t * i);
                                                        	} else if (z <= 9.5e+18) {
                                                        		tmp = a * (c * j);
                                                        	} else {
                                                        		tmp = t_1;
                                                        	}
                                                        	return tmp;
                                                        }
                                                        
                                                        def code(x, y, z, t, a, b, c, i, j):
                                                        	t_1 = x * (y * z)
                                                        	tmp = 0
                                                        	if z <= -3.8e+30:
                                                        		tmp = t_1
                                                        	elif z <= 5.6e-126:
                                                        		tmp = b * (t * i)
                                                        	elif z <= 9.5e+18:
                                                        		tmp = a * (c * j)
                                                        	else:
                                                        		tmp = t_1
                                                        	return tmp
                                                        
                                                        function code(x, y, z, t, a, b, c, i, j)
                                                        	t_1 = Float64(x * Float64(y * z))
                                                        	tmp = 0.0
                                                        	if (z <= -3.8e+30)
                                                        		tmp = t_1;
                                                        	elseif (z <= 5.6e-126)
                                                        		tmp = Float64(b * Float64(t * i));
                                                        	elseif (z <= 9.5e+18)
                                                        		tmp = Float64(a * Float64(c * j));
                                                        	else
                                                        		tmp = t_1;
                                                        	end
                                                        	return tmp
                                                        end
                                                        
                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                        	t_1 = x * (y * z);
                                                        	tmp = 0.0;
                                                        	if (z <= -3.8e+30)
                                                        		tmp = t_1;
                                                        	elseif (z <= 5.6e-126)
                                                        		tmp = b * (t * i);
                                                        	elseif (z <= 9.5e+18)
                                                        		tmp = a * (c * j);
                                                        	else
                                                        		tmp = t_1;
                                                        	end
                                                        	tmp_2 = tmp;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+30], t$95$1, If[LessEqual[z, 5.6e-126], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+18], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \begin{array}{l}
                                                        t_1 := x \cdot \left(y \cdot z\right)\\
                                                        \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        \mathbf{elif}\;z \leq 5.6 \cdot 10^{-126}:\\
                                                        \;\;\;\;b \cdot \left(t \cdot i\right)\\
                                                        
                                                        \mathbf{elif}\;z \leq 9.5 \cdot 10^{+18}:\\
                                                        \;\;\;\;a \cdot \left(c \cdot j\right)\\
                                                        
                                                        \mathbf{else}:\\
                                                        \;\;\;\;t\_1\\
                                                        
                                                        
                                                        \end{array}
                                                        \end{array}
                                                        
                                                        Derivation
                                                        1. Split input into 3 regimes
                                                        2. if z < -3.8000000000000001e30 or 9.5e18 < z

                                                          1. Initial program 67.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 x around inf

                                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                          4. Step-by-step derivation
                                                            1. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                            2. sub-negN/A

                                                              \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
                                                            3. +-commutativeN/A

                                                              \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
                                                            4. *-commutativeN/A

                                                              \[\leadsto x \cdot \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \]
                                                            5. distribute-rgt-neg-inN/A

                                                              \[\leadsto x \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(a\right)\right)} + y \cdot z\right) \]
                                                            6. mul-1-negN/A

                                                              \[\leadsto x \cdot \left(t \cdot \color{blue}{\left(-1 \cdot a\right)} + y \cdot z\right) \]
                                                            7. lower-fma.f64N/A

                                                              \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot a, y \cdot z\right)} \]
                                                            8. mul-1-negN/A

                                                              \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                                            9. lower-neg.f64N/A

                                                              \[\leadsto x \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(a\right)}, y \cdot z\right) \]
                                                            10. lower-*.f6453.9

                                                              \[\leadsto x \cdot \mathsf{fma}\left(t, -a, \color{blue}{y \cdot z}\right) \]
                                                          5. Applied rewrites53.9%

                                                            \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(t, -a, y \cdot z\right)} \]
                                                          6. Taylor expanded in t around 0

                                                            \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites44.2%

                                                              \[\leadsto x \cdot \left(y \cdot \color{blue}{z}\right) \]

                                                            if -3.8000000000000001e30 < z < 5.59999999999999983e-126

                                                            1. Initial program 75.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 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. lower-*.f64N/A

                                                                \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                              2. sub-negN/A

                                                                \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                              3. mul-1-negN/A

                                                                \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                              4. distribute-rgt-neg-inN/A

                                                                \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                              5. mul-1-negN/A

                                                                \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                              6. mul-1-negN/A

                                                                \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                              7. remove-double-negN/A

                                                                \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                              8. lower-fma.f64N/A

                                                                \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                              9. mul-1-negN/A

                                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                              10. lower-neg.f64N/A

                                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                              11. *-commutativeN/A

                                                                \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                              12. lower-*.f6454.7

                                                                \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                            5. Applied rewrites54.7%

                                                              \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                            6. Taylor expanded in a around 0

                                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                            7. Step-by-step derivation
                                                              1. Applied rewrites34.6%

                                                                \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]

                                                              if 5.59999999999999983e-126 < z < 9.5e18

                                                              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 a around inf

                                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                              4. Step-by-step derivation
                                                                1. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                2. +-commutativeN/A

                                                                  \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                3. *-commutativeN/A

                                                                  \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                                4. lower-fma.f64N/A

                                                                  \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                5. mul-1-negN/A

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                6. distribute-rgt-neg-inN/A

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                7. mul-1-negN/A

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                                8. lower-*.f64N/A

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                                9. mul-1-negN/A

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                10. lower-neg.f6455.4

                                                                  \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                              5. Applied rewrites55.4%

                                                                \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                              6. Taylor expanded in j around inf

                                                                \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites39.0%

                                                                  \[\leadsto a \cdot \left(j \cdot \color{blue}{c}\right) \]
                                                              8. Recombined 3 regimes into one program.
                                                              9. Final simplification39.6%

                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{+30}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;z \leq 5.6 \cdot 10^{-126}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;z \leq 9.5 \cdot 10^{+18}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                              10. Add Preprocessing

                                                              Alternative 22: 29.5% accurate, 2.6× speedup?

                                                              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -210000:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \end{array} \]
                                                              (FPCore (x y z t a b c i j)
                                                               :precision binary64
                                                               (if (<= t -210000.0)
                                                                 (* t (* b i))
                                                                 (if (<= t 3.5e-5) (* a (* c j)) (* b (* t i)))))
                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                              	double tmp;
                                                              	if (t <= -210000.0) {
                                                              		tmp = t * (b * i);
                                                              	} else if (t <= 3.5e-5) {
                                                              		tmp = a * (c * j);
                                                              	} 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) :: tmp
                                                                  if (t <= (-210000.0d0)) then
                                                                      tmp = t * (b * i)
                                                                  else if (t <= 3.5d-5) then
                                                                      tmp = a * (c * j)
                                                                  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 tmp;
                                                              	if (t <= -210000.0) {
                                                              		tmp = t * (b * i);
                                                              	} else if (t <= 3.5e-5) {
                                                              		tmp = a * (c * j);
                                                              	} else {
                                                              		tmp = b * (t * i);
                                                              	}
                                                              	return tmp;
                                                              }
                                                              
                                                              def code(x, y, z, t, a, b, c, i, j):
                                                              	tmp = 0
                                                              	if t <= -210000.0:
                                                              		tmp = t * (b * i)
                                                              	elif t <= 3.5e-5:
                                                              		tmp = a * (c * j)
                                                              	else:
                                                              		tmp = b * (t * i)
                                                              	return tmp
                                                              
                                                              function code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0
                                                              	if (t <= -210000.0)
                                                              		tmp = Float64(t * Float64(b * i));
                                                              	elseif (t <= 3.5e-5)
                                                              		tmp = Float64(a * Float64(c * j));
                                                              	else
                                                              		tmp = Float64(b * Float64(t * i));
                                                              	end
                                                              	return tmp
                                                              end
                                                              
                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                              	tmp = 0.0;
                                                              	if (t <= -210000.0)
                                                              		tmp = t * (b * i);
                                                              	elseif (t <= 3.5e-5)
                                                              		tmp = a * (c * j);
                                                              	else
                                                              		tmp = b * (t * i);
                                                              	end
                                                              	tmp_2 = tmp;
                                                              end
                                                              
                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -210000.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-5], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
                                                              
                                                              \begin{array}{l}
                                                              
                                                              \\
                                                              \begin{array}{l}
                                                              \mathbf{if}\;t \leq -210000:\\
                                                              \;\;\;\;t \cdot \left(b \cdot i\right)\\
                                                              
                                                              \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\
                                                              \;\;\;\;a \cdot \left(c \cdot j\right)\\
                                                              
                                                              \mathbf{else}:\\
                                                              \;\;\;\;b \cdot \left(t \cdot i\right)\\
                                                              
                                                              
                                                              \end{array}
                                                              \end{array}
                                                              
                                                              Derivation
                                                              1. Split input into 3 regimes
                                                              2. if t < -2.1e5

                                                                1. Initial program 70.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. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                  2. sub-negN/A

                                                                    \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                  3. mul-1-negN/A

                                                                    \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  4. distribute-rgt-neg-inN/A

                                                                    \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  5. mul-1-negN/A

                                                                    \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                  6. mul-1-negN/A

                                                                    \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                  7. remove-double-negN/A

                                                                    \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                  8. lower-fma.f64N/A

                                                                    \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                  9. mul-1-negN/A

                                                                    \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                  10. lower-neg.f64N/A

                                                                    \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                  11. *-commutativeN/A

                                                                    \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                  12. lower-*.f6472.6

                                                                    \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                5. Applied rewrites72.6%

                                                                  \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                6. Taylor expanded in a around 0

                                                                  \[\leadsto t \cdot \left(b \cdot \color{blue}{i}\right) \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites44.0%

                                                                    \[\leadsto t \cdot \left(i \cdot \color{blue}{b}\right) \]

                                                                  if -2.1e5 < t < 3.4999999999999997e-5

                                                                  1. Initial program 73.9%

                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in a around inf

                                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                  4. Step-by-step derivation
                                                                    1. lower-*.f64N/A

                                                                      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                    2. +-commutativeN/A

                                                                      \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                    3. *-commutativeN/A

                                                                      \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                                    4. lower-fma.f64N/A

                                                                      \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                    5. mul-1-negN/A

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                    6. distribute-rgt-neg-inN/A

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                    7. mul-1-negN/A

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                                    8. lower-*.f64N/A

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                                    9. mul-1-negN/A

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                    10. lower-neg.f6432.2

                                                                      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                                  5. Applied rewrites32.2%

                                                                    \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                                  6. Taylor expanded in j around inf

                                                                    \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                  7. Step-by-step derivation
                                                                    1. Applied rewrites25.4%

                                                                      \[\leadsto a \cdot \left(j \cdot \color{blue}{c}\right) \]

                                                                    if 3.4999999999999997e-5 < t

                                                                    1. Initial program 65.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. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                      2. sub-negN/A

                                                                        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                      3. mul-1-negN/A

                                                                        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      4. distribute-rgt-neg-inN/A

                                                                        \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      5. mul-1-negN/A

                                                                        \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                      6. mul-1-negN/A

                                                                        \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                      7. remove-double-negN/A

                                                                        \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                      8. lower-fma.f64N/A

                                                                        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                      9. mul-1-negN/A

                                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                      11. *-commutativeN/A

                                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                      12. lower-*.f6469.5

                                                                        \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                    5. Applied rewrites69.5%

                                                                      \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                    6. Taylor expanded in a around 0

                                                                      \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                    7. Step-by-step derivation
                                                                      1. Applied rewrites38.7%

                                                                        \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                    8. Recombined 3 regimes into one program.
                                                                    9. Final simplification33.5%

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -210000:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
                                                                    10. Add Preprocessing

                                                                    Alternative 23: 29.9% accurate, 2.6× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;t \leq -210000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i j)
                                                                     :precision binary64
                                                                     (let* ((t_1 (* b (* t i))))
                                                                       (if (<= t -210000.0) t_1 (if (<= t 3.5e-5) (* a (* c j)) t_1))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = b * (t * i);
                                                                    	double tmp;
                                                                    	if (t <= -210000.0) {
                                                                    		tmp = t_1;
                                                                    	} else if (t <= 3.5e-5) {
                                                                    		tmp = a * (c * j);
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                        real(8), intent (in) :: x
                                                                        real(8), intent (in) :: y
                                                                        real(8), intent (in) :: z
                                                                        real(8), intent (in) :: t
                                                                        real(8), intent (in) :: a
                                                                        real(8), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: i
                                                                        real(8), intent (in) :: j
                                                                        real(8) :: t_1
                                                                        real(8) :: tmp
                                                                        t_1 = b * (t * i)
                                                                        if (t <= (-210000.0d0)) then
                                                                            tmp = t_1
                                                                        else if (t <= 3.5d-5) then
                                                                            tmp = a * (c * j)
                                                                        else
                                                                            tmp = t_1
                                                                        end if
                                                                        code = tmp
                                                                    end function
                                                                    
                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = b * (t * i);
                                                                    	double tmp;
                                                                    	if (t <= -210000.0) {
                                                                    		tmp = t_1;
                                                                    	} else if (t <= 3.5e-5) {
                                                                    		tmp = a * (c * j);
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	t_1 = b * (t * i)
                                                                    	tmp = 0
                                                                    	if t <= -210000.0:
                                                                    		tmp = t_1
                                                                    	elif t <= 3.5e-5:
                                                                    		tmp = a * (c * j)
                                                                    	else:
                                                                    		tmp = t_1
                                                                    	return tmp
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = Float64(b * Float64(t * i))
                                                                    	tmp = 0.0
                                                                    	if (t <= -210000.0)
                                                                    		tmp = t_1;
                                                                    	elseif (t <= 3.5e-5)
                                                                    		tmp = Float64(a * Float64(c * j));
                                                                    	else
                                                                    		tmp = t_1;
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = b * (t * i);
                                                                    	tmp = 0.0;
                                                                    	if (t <= -210000.0)
                                                                    		tmp = t_1;
                                                                    	elseif (t <= 3.5e-5)
                                                                    		tmp = a * (c * j);
                                                                    	else
                                                                    		tmp = t_1;
                                                                    	end
                                                                    	tmp_2 = tmp;
                                                                    end
                                                                    
                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -210000.0], t$95$1, If[LessEqual[t, 3.5e-5], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := b \cdot \left(t \cdot i\right)\\
                                                                    \mathbf{if}\;t \leq -210000:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\
                                                                    \;\;\;\;a \cdot \left(c \cdot j\right)\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 2 regimes
                                                                    2. if t < -2.1e5 or 3.4999999999999997e-5 < t

                                                                      1. Initial program 68.2%

                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in t around inf

                                                                        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. lower-*.f64N/A

                                                                          \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                        2. sub-negN/A

                                                                          \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                        3. mul-1-negN/A

                                                                          \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                        4. distribute-rgt-neg-inN/A

                                                                          \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                        5. mul-1-negN/A

                                                                          \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                        6. mul-1-negN/A

                                                                          \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                        7. remove-double-negN/A

                                                                          \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                        8. lower-fma.f64N/A

                                                                          \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                        9. mul-1-negN/A

                                                                          \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                        10. lower-neg.f64N/A

                                                                          \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                        11. *-commutativeN/A

                                                                          \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                        12. lower-*.f6471.0

                                                                          \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                      5. Applied rewrites71.0%

                                                                        \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                      6. Taylor expanded in a around 0

                                                                        \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites41.3%

                                                                          \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]

                                                                        if -2.1e5 < t < 3.4999999999999997e-5

                                                                        1. Initial program 73.9%

                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                        2. Add Preprocessing
                                                                        3. Taylor expanded in a around inf

                                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                        4. Step-by-step derivation
                                                                          1. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                          2. +-commutativeN/A

                                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                          3. *-commutativeN/A

                                                                            \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                                          4. lower-fma.f64N/A

                                                                            \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                          5. mul-1-negN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                          6. distribute-rgt-neg-inN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                          7. mul-1-negN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                                          8. lower-*.f64N/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                                          9. mul-1-negN/A

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                          10. lower-neg.f6432.2

                                                                            \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                                        5. Applied rewrites32.2%

                                                                          \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                                        6. Taylor expanded in j around inf

                                                                          \[\leadsto a \cdot \left(c \cdot \color{blue}{j}\right) \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites25.4%

                                                                            \[\leadsto a \cdot \left(j \cdot \color{blue}{c}\right) \]
                                                                        8. Recombined 2 regimes into one program.
                                                                        9. Final simplification33.5%

                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -210000:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;t \leq 3.5 \cdot 10^{-5}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
                                                                        10. Add Preprocessing

                                                                        Alternative 24: 29.6% accurate, 2.6× speedup?

                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;t \leq -1900000000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 0.000235:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                        (FPCore (x y z t a b c i j)
                                                                         :precision binary64
                                                                         (let* ((t_1 (* b (* t i))))
                                                                           (if (<= t -1900000000000.0) t_1 (if (<= t 0.000235) (* 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 = b * (t * i);
                                                                        	double tmp;
                                                                        	if (t <= -1900000000000.0) {
                                                                        		tmp = t_1;
                                                                        	} else if (t <= 0.000235) {
                                                                        		tmp = j * (a * c);
                                                                        	} 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 = b * (t * i)
                                                                            if (t <= (-1900000000000.0d0)) then
                                                                                tmp = t_1
                                                                            else if (t <= 0.000235d0) then
                                                                                tmp = j * (a * c)
                                                                            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 = b * (t * i);
                                                                        	double tmp;
                                                                        	if (t <= -1900000000000.0) {
                                                                        		tmp = t_1;
                                                                        	} else if (t <= 0.000235) {
                                                                        		tmp = j * (a * c);
                                                                        	} else {
                                                                        		tmp = t_1;
                                                                        	}
                                                                        	return tmp;
                                                                        }
                                                                        
                                                                        def code(x, y, z, t, a, b, c, i, j):
                                                                        	t_1 = b * (t * i)
                                                                        	tmp = 0
                                                                        	if t <= -1900000000000.0:
                                                                        		tmp = t_1
                                                                        	elif t <= 0.000235:
                                                                        		tmp = j * (a * c)
                                                                        	else:
                                                                        		tmp = t_1
                                                                        	return tmp
                                                                        
                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                        	t_1 = Float64(b * Float64(t * i))
                                                                        	tmp = 0.0
                                                                        	if (t <= -1900000000000.0)
                                                                        		tmp = t_1;
                                                                        	elseif (t <= 0.000235)
                                                                        		tmp = Float64(j * Float64(a * c));
                                                                        	else
                                                                        		tmp = t_1;
                                                                        	end
                                                                        	return tmp
                                                                        end
                                                                        
                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                        	t_1 = b * (t * i);
                                                                        	tmp = 0.0;
                                                                        	if (t <= -1900000000000.0)
                                                                        		tmp = t_1;
                                                                        	elseif (t <= 0.000235)
                                                                        		tmp = j * (a * c);
                                                                        	else
                                                                        		tmp = t_1;
                                                                        	end
                                                                        	tmp_2 = tmp;
                                                                        end
                                                                        
                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1900000000000.0], t$95$1, If[LessEqual[t, 0.000235], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                                        
                                                                        \begin{array}{l}
                                                                        
                                                                        \\
                                                                        \begin{array}{l}
                                                                        t_1 := b \cdot \left(t \cdot i\right)\\
                                                                        \mathbf{if}\;t \leq -1900000000000:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        \mathbf{elif}\;t \leq 0.000235:\\
                                                                        \;\;\;\;j \cdot \left(a \cdot c\right)\\
                                                                        
                                                                        \mathbf{else}:\\
                                                                        \;\;\;\;t\_1\\
                                                                        
                                                                        
                                                                        \end{array}
                                                                        \end{array}
                                                                        
                                                                        Derivation
                                                                        1. Split input into 2 regimes
                                                                        2. if t < -1.9e12 or 2.34999999999999993e-4 < t

                                                                          1. Initial program 68.2%

                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                          2. Add Preprocessing
                                                                          3. Taylor expanded in t around inf

                                                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                          4. Step-by-step derivation
                                                                            1. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                            2. sub-negN/A

                                                                              \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                            3. mul-1-negN/A

                                                                              \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                            4. distribute-rgt-neg-inN/A

                                                                              \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                            5. mul-1-negN/A

                                                                              \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                            6. mul-1-negN/A

                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                            7. remove-double-negN/A

                                                                              \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                            8. lower-fma.f64N/A

                                                                              \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                            9. mul-1-negN/A

                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                            10. lower-neg.f64N/A

                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                            11. *-commutativeN/A

                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                            12. lower-*.f6471.0

                                                                              \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                          5. Applied rewrites71.0%

                                                                            \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                          6. Taylor expanded in a around 0

                                                                            \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites41.3%

                                                                              \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]

                                                                            if -1.9e12 < t < 2.34999999999999993e-4

                                                                            1. Initial program 73.9%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in a around inf

                                                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                              2. +-commutativeN/A

                                                                                \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                              3. *-commutativeN/A

                                                                                \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
                                                                              4. lower-fma.f64N/A

                                                                                \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
                                                                              5. mul-1-negN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
                                                                              6. distribute-rgt-neg-inN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                              7. mul-1-negN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
                                                                              8. lower-*.f64N/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
                                                                              9. mul-1-negN/A

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
                                                                              10. lower-neg.f6432.2

                                                                                \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
                                                                            5. Applied rewrites32.2%

                                                                              \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
                                                                            6. Step-by-step derivation
                                                                              1. Applied rewrites32.2%

                                                                                \[\leadsto \mathsf{fma}\left(t \cdot \left(-x\right), \color{blue}{a}, a \cdot \left(c \cdot j\right)\right) \]
                                                                              2. Taylor expanded in t around 0

                                                                                \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                                              3. Step-by-step derivation
                                                                                1. Applied rewrites24.6%

                                                                                  \[\leadsto \left(a \cdot c\right) \cdot \color{blue}{j} \]
                                                                              4. Recombined 2 regimes into one program.
                                                                              5. Final simplification33.1%

                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1900000000000:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;t \leq 0.000235:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
                                                                              6. Add Preprocessing

                                                                              Alternative 25: 22.4% accurate, 5.5× speedup?

                                                                              \[\begin{array}{l} \\ b \cdot \left(t \cdot i\right) \end{array} \]
                                                                              (FPCore (x y z t a b c i j) :precision binary64 (* b (* t i)))
                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	return b * (t * i);
                                                                              }
                                                                              
                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  real(8), intent (in) :: z
                                                                                  real(8), intent (in) :: t
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: i
                                                                                  real(8), intent (in) :: j
                                                                                  code = b * (t * i)
                                                                              end function
                                                                              
                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	return b * (t * i);
                                                                              }
                                                                              
                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                              	return b * (t * i)
                                                                              
                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                              	return Float64(b * Float64(t * i))
                                                                              end
                                                                              
                                                                              function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                              	tmp = b * (t * i);
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              b \cdot \left(t \cdot i\right)
                                                                              \end{array}
                                                                              
                                                                              Derivation
                                                                              1. Initial program 71.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. lower-*.f64N/A

                                                                                  \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                                2. sub-negN/A

                                                                                  \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
                                                                                3. mul-1-negN/A

                                                                                  \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                4. distribute-rgt-neg-inN/A

                                                                                  \[\leadsto t \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                5. mul-1-negN/A

                                                                                  \[\leadsto t \cdot \left(a \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
                                                                                6. mul-1-negN/A

                                                                                  \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
                                                                                7. remove-double-negN/A

                                                                                  \[\leadsto t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                                8. lower-fma.f64N/A

                                                                                  \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
                                                                                9. mul-1-negN/A

                                                                                  \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                10. lower-neg.f64N/A

                                                                                  \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
                                                                                11. *-commutativeN/A

                                                                                  \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
                                                                                12. lower-*.f6443.3

                                                                                  \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
                                                                              5. Applied rewrites43.3%

                                                                                \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]
                                                                              6. Taylor expanded in a around 0

                                                                                \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                              7. Step-by-step derivation
                                                                                1. Applied rewrites25.6%

                                                                                  \[\leadsto b \cdot \color{blue}{\left(i \cdot t\right)} \]
                                                                                2. Final simplification25.6%

                                                                                  \[\leadsto b \cdot \left(t \cdot i\right) \]
                                                                                3. Add Preprocessing

                                                                                Developer Target 1: 60.0% 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 2024221 
                                                                                (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)))))