Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.4% → 81.9%
Time: 16.0s
Alternatives: 15
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 15 alternatives:

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

Initial Program: 73.4% accurate, 1.0× speedup?

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

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

Alternative 1: 81.9% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 91.2%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 53.7% accurate, 1.1× speedup?

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

      1. Initial program 60.8%

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

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

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

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

          \[\leadsto c \cdot \left(j \cdot t + \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) + j \cdot t\right)} \]
        5. mul-1-negN/A

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

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

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

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

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

          \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
        11. lower-*.f6479.7

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

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

      if -3.1999999999999999e83 < c < -9.4999999999999997e-210

      1. Initial program 81.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -9.4999999999999997e-210 < c < 3.1999999999999999e83

        1. Initial program 74.7%

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

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

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

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

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

            \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
          5. lower-*.f6462.0

            \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
        5. Applied rewrites62.0%

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

        if 3.1999999999999999e83 < c

        1. Initial program 76.1%

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

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

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

          \[\leadsto c \cdot \color{blue}{\left(x \cdot \left(-1 \cdot \frac{b \cdot z}{x} + \frac{j \cdot t}{x}\right)\right)} \]
        6. Step-by-step derivation
          1. Applied rewrites75.0%

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

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

        Alternative 3: 64.2% accurate, 1.2× speedup?

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

          1. Initial program 78.9%

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

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

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

              \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
            5. lower-*.f6485.0

              \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
          5. Applied rewrites85.0%

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

          if -1.25000000000000003e63 < x < 4.40000000000000001e70

          1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 4.40000000000000001e70 < x

          1. Initial program 71.9%

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

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

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

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

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

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

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

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

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

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

          Alternative 4: 59.7% accurate, 1.4× speedup?

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

            1. Initial program 65.9%

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

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

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

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

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

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

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

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

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

              if -2.39999999999999994e102 < t < 1.5e61

              1. Initial program 78.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if 1.5e61 < t

                1. Initial program 63.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 5: 30.1% accurate, 1.6× speedup?

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

                1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.02000000000000004e-21 < c < -7.4999999999999997e-210

                  1. Initial program 82.1%

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

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

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

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

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

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

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

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

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

                      \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                    4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -7.4999999999999997e-210 < c < 2.4e-285

                    1. Initial program 79.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if 2.4e-285 < c < 34000

                      1. Initial program 78.7%

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

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

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

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

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

                          \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
                        5. lower-*.f6467.6

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

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

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

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

                        if 34000 < c

                        1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

                            \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                          4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.02 \cdot 10^{-21}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;c \leq -7.5 \cdot 10^{-210}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;c \leq 2.4 \cdot 10^{-285}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;c \leq 34000:\\ \;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \end{array} \]
                        15. Add Preprocessing

                        Alternative 6: 30.1% accurate, 1.6× speedup?

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

                          1. Initial program 66.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.02000000000000004e-21 < c < -1.02e-228

                            1. Initial program 82.3%

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

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

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

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

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

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

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

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

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

                                \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                              4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -1.02e-228 < c < 9.20000000000000045e-143

                              1. Initial program 77.0%

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

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

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

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

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

                                  \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
                                5. lower-*.f6463.7

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

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

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

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

                                if 9.20000000000000045e-143 < c < 34000

                                1. Initial program 80.9%

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

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

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

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

                                    \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                  8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

                                  if 34000 < c

                                  1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

                                      \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                    4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto j \cdot \left(c \cdot \color{blue}{t}\right) \]
                                  13. Recombined 5 regimes into one program.
                                  14. Final simplification44.1%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.02 \cdot 10^{-21}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;c \leq -1.02 \cdot 10^{-228}:\\ \;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-143}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;c \leq 34000:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \end{array} \]
                                  15. Add Preprocessing

                                  Alternative 7: 52.1% accurate, 1.6× speedup?

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

                                    1. Initial program 76.0%

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

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

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

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

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

                                        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
                                      5. lower-*.f6472.9

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

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

                                    if -2.3000000000000001e-32 < x < 8.19999999999999931e-170

                                    1. Initial program 68.6%

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

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

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

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

                                        \[\leadsto c \cdot \left(j \cdot t + \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) + j \cdot t\right)} \]
                                      5. mul-1-negN/A

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

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

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

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

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

                                        \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
                                      11. lower-*.f6459.4

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

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

                                    if 8.19999999999999931e-170 < x < 2.8e20

                                    1. Initial program 76.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 8: 30.0% accurate, 2.0× speedup?

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

                                    1. Initial program 61.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -5.4999999999999997e26 < c < 9.20000000000000045e-143

                                      1. Initial program 81.4%

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

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

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

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

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

                                          \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
                                        5. lower-*.f6454.0

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

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

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

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

                                        if 9.20000000000000045e-143 < c < 34000

                                        1. Initial program 80.9%

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

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

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

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

                                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                          8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

                                          if 34000 < c

                                          1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

                                              \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                            4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto j \cdot \left(c \cdot \color{blue}{t}\right) \]
                                          13. Recombined 4 regimes into one program.
                                          14. Final simplification42.3%

                                            \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -5.5 \cdot 10^{+26}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;c \leq 9.2 \cdot 10^{-143}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;c \leq 34000:\\ \;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \end{array} \]
                                          15. Add Preprocessing

                                          Alternative 9: 52.5% accurate, 2.0× speedup?

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

                                            1. Initial program 69.7%

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

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

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

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

                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                              8. lower-fma.f64N/A

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

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

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

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

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

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

                                            if -2.20000000000000021e93 < a < 2.10000000000000004e98

                                            1. Initial program 76.1%

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

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

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

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

                                                \[\leadsto c \cdot \left(j \cdot t + \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) + j \cdot t\right)} \]
                                              5. mul-1-negN/A

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

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

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

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

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

                                                \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
                                              11. lower-*.f6451.4

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

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

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

                                          Alternative 10: 44.4% accurate, 2.0× speedup?

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

                                            1. Initial program 68.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            if -8.50000000000000025e-121 < c < 2.32000000000000008e139

                                            1. Initial program 78.1%

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

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

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

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

                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                              8. lower-fma.f64N/A

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

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

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

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

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

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

                                            if 2.32000000000000008e139 < c

                                            1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

                                                \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                              4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto j \cdot \left(c \cdot \color{blue}{t}\right) \]
                                            13. Recombined 3 regimes into one program.
                                            14. Final simplification50.2%

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

                                            Alternative 11: 43.0% accurate, 2.0× speedup?

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

                                              1. Initial program 63.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                if -2.14999999999999996e58 < c < 2.32000000000000008e139

                                                1. Initial program 78.1%

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

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

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

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

                                                    \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                  8. lower-fma.f64N/A

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

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

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

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

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

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

                                                if 2.32000000000000008e139 < c

                                                1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                                  4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                    \[\leadsto j \cdot \left(c \cdot \color{blue}{t}\right) \]
                                                13. Recombined 3 regimes into one program.
                                                14. Final simplification48.7%

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

                                                Alternative 12: 29.6% accurate, 2.1× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;x \leq -250000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.6 \cdot 10^{-166}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+35}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (let* ((t_1 (* x (* y z))))
                                                   (if (<= x -250000000.0)
                                                     t_1
                                                     (if (<= x -1.6e-166)
                                                       (* j (* t c))
                                                       (if (<= x 2.8e+35) (* i (* a b)) t_1)))))
                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                	double t_1 = x * (y * z);
                                                	double tmp;
                                                	if (x <= -250000000.0) {
                                                		tmp = t_1;
                                                	} else if (x <= -1.6e-166) {
                                                		tmp = j * (t * c);
                                                	} else if (x <= 2.8e+35) {
                                                		tmp = i * (a * b);
                                                	} 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 (x <= (-250000000.0d0)) then
                                                        tmp = t_1
                                                    else if (x <= (-1.6d-166)) then
                                                        tmp = j * (t * c)
                                                    else if (x <= 2.8d+35) then
                                                        tmp = i * (a * b)
                                                    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 (x <= -250000000.0) {
                                                		tmp = t_1;
                                                	} else if (x <= -1.6e-166) {
                                                		tmp = j * (t * c);
                                                	} else if (x <= 2.8e+35) {
                                                		tmp = i * (a * b);
                                                	} 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 x <= -250000000.0:
                                                		tmp = t_1
                                                	elif x <= -1.6e-166:
                                                		tmp = j * (t * c)
                                                	elif x <= 2.8e+35:
                                                		tmp = i * (a * b)
                                                	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 (x <= -250000000.0)
                                                		tmp = t_1;
                                                	elseif (x <= -1.6e-166)
                                                		tmp = Float64(j * Float64(t * c));
                                                	elseif (x <= 2.8e+35)
                                                		tmp = Float64(i * Float64(a * b));
                                                	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 (x <= -250000000.0)
                                                		tmp = t_1;
                                                	elseif (x <= -1.6e-166)
                                                		tmp = j * (t * c);
                                                	elseif (x <= 2.8e+35)
                                                		tmp = i * (a * b);
                                                	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[x, -250000000.0], t$95$1, If[LessEqual[x, -1.6e-166], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e+35], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                t_1 := x \cdot \left(y \cdot z\right)\\
                                                \mathbf{if}\;x \leq -250000000:\\
                                                \;\;\;\;t\_1\\
                                                
                                                \mathbf{elif}\;x \leq -1.6 \cdot 10^{-166}:\\
                                                \;\;\;\;j \cdot \left(t \cdot c\right)\\
                                                
                                                \mathbf{elif}\;x \leq 2.8 \cdot 10^{+35}:\\
                                                \;\;\;\;i \cdot \left(a \cdot b\right)\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;t\_1\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if x < -2.5e8 or 2.79999999999999999e35 < x

                                                  1. Initial program 75.1%

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

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

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

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

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

                                                      \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
                                                    5. lower-*.f6475.6

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

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

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

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

                                                    if -2.5e8 < x < -1.6e-166

                                                    1. Initial program 76.2%

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

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

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

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

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

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

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

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

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

                                                        \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                                      4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if -1.6e-166 < x < 2.79999999999999999e35

                                                      1. Initial program 71.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                          \[\leadsto i \cdot \left(b \cdot \color{blue}{a}\right) \]
                                                      8. Recombined 3 regimes into one program.
                                                      9. Final simplification40.2%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -250000000:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq -1.6 \cdot 10^{-166}:\\ \;\;\;\;j \cdot \left(t \cdot c\right)\\ \mathbf{elif}\;x \leq 2.8 \cdot 10^{+35}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 13: 29.9% accurate, 2.6× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(b \cdot i\right)\\ \mathbf{if}\;i \leq -3.65 \cdot 10^{+168}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 7.6 \cdot 10^{-7}:\\ \;\;\;\;j \cdot \left(t \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 (* a (* b i))))
                                                         (if (<= i -3.65e+168) t_1 (if (<= i 7.6e-7) (* j (* t 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 = a * (b * i);
                                                      	double tmp;
                                                      	if (i <= -3.65e+168) {
                                                      		tmp = t_1;
                                                      	} else if (i <= 7.6e-7) {
                                                      		tmp = j * (t * 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 = a * (b * i)
                                                          if (i <= (-3.65d+168)) then
                                                              tmp = t_1
                                                          else if (i <= 7.6d-7) then
                                                              tmp = j * (t * 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 = a * (b * i);
                                                      	double tmp;
                                                      	if (i <= -3.65e+168) {
                                                      		tmp = t_1;
                                                      	} else if (i <= 7.6e-7) {
                                                      		tmp = j * (t * c);
                                                      	} else {
                                                      		tmp = t_1;
                                                      	}
                                                      	return tmp;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b, c, i, j):
                                                      	t_1 = a * (b * i)
                                                      	tmp = 0
                                                      	if i <= -3.65e+168:
                                                      		tmp = t_1
                                                      	elif i <= 7.6e-7:
                                                      		tmp = j * (t * c)
                                                      	else:
                                                      		tmp = t_1
                                                      	return tmp
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	t_1 = Float64(a * Float64(b * i))
                                                      	tmp = 0.0
                                                      	if (i <= -3.65e+168)
                                                      		tmp = t_1;
                                                      	elseif (i <= 7.6e-7)
                                                      		tmp = Float64(j * Float64(t * c));
                                                      	else
                                                      		tmp = t_1;
                                                      	end
                                                      	return tmp
                                                      end
                                                      
                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                      	t_1 = a * (b * i);
                                                      	tmp = 0.0;
                                                      	if (i <= -3.65e+168)
                                                      		tmp = t_1;
                                                      	elseif (i <= 7.6e-7)
                                                      		tmp = j * (t * 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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.65e+168], t$95$1, If[LessEqual[i, 7.6e-7], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      t_1 := a \cdot \left(b \cdot i\right)\\
                                                      \mathbf{if}\;i \leq -3.65 \cdot 10^{+168}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      \mathbf{elif}\;i \leq 7.6 \cdot 10^{-7}:\\
                                                      \;\;\;\;j \cdot \left(t \cdot c\right)\\
                                                      
                                                      \mathbf{else}:\\
                                                      \;\;\;\;t\_1\\
                                                      
                                                      
                                                      \end{array}
                                                      \end{array}
                                                      
                                                      Derivation
                                                      1. Split input into 2 regimes
                                                      2. if i < -3.6499999999999998e168 or 7.60000000000000029e-7 < i

                                                        1. Initial program 69.7%

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

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

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

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

                                                            \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                          8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

                                                          if -3.6499999999999998e168 < i < 7.60000000000000029e-7

                                                          1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto j \cdot \left(c \cdot t + \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) + c \cdot t\right)} \]
                                                            4. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto j \cdot \left(c \cdot \color{blue}{t}\right) \]
                                                          13. Recombined 2 regimes into one program.
                                                          14. Final simplification32.9%

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

                                                          Alternative 14: 29.6% accurate, 2.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(b \cdot i\right)\\ \mathbf{if}\;i \leq -3.65 \cdot 10^{+168}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 7.6 \cdot 10^{-7}:\\ \;\;\;\;c \cdot \left(t \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 (* a (* b i))))
                                                             (if (<= i -3.65e+168) t_1 (if (<= i 7.6e-7) (* c (* t 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 = a * (b * i);
                                                          	double tmp;
                                                          	if (i <= -3.65e+168) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 7.6e-7) {
                                                          		tmp = c * (t * 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 = a * (b * i)
                                                              if (i <= (-3.65d+168)) then
                                                                  tmp = t_1
                                                              else if (i <= 7.6d-7) then
                                                                  tmp = c * (t * 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 = a * (b * i);
                                                          	double tmp;
                                                          	if (i <= -3.65e+168) {
                                                          		tmp = t_1;
                                                          	} else if (i <= 7.6e-7) {
                                                          		tmp = c * (t * j);
                                                          	} else {
                                                          		tmp = t_1;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	t_1 = a * (b * i)
                                                          	tmp = 0
                                                          	if i <= -3.65e+168:
                                                          		tmp = t_1
                                                          	elif i <= 7.6e-7:
                                                          		tmp = c * (t * j)
                                                          	else:
                                                          		tmp = t_1
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = Float64(a * Float64(b * i))
                                                          	tmp = 0.0
                                                          	if (i <= -3.65e+168)
                                                          		tmp = t_1;
                                                          	elseif (i <= 7.6e-7)
                                                          		tmp = Float64(c * Float64(t * j));
                                                          	else
                                                          		tmp = t_1;
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	t_1 = a * (b * i);
                                                          	tmp = 0.0;
                                                          	if (i <= -3.65e+168)
                                                          		tmp = t_1;
                                                          	elseif (i <= 7.6e-7)
                                                          		tmp = c * (t * 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[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.65e+168], t$95$1, If[LessEqual[i, 7.6e-7], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          t_1 := a \cdot \left(b \cdot i\right)\\
                                                          \mathbf{if}\;i \leq -3.65 \cdot 10^{+168}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          \mathbf{elif}\;i \leq 7.6 \cdot 10^{-7}:\\
                                                          \;\;\;\;c \cdot \left(t \cdot j\right)\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;t\_1\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 2 regimes
                                                          2. if i < -3.6499999999999998e168 or 7.60000000000000029e-7 < i

                                                            1. Initial program 69.7%

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

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

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

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

                                                                \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                              8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

                                                              if -3.6499999999999998e168 < i < 7.60000000000000029e-7

                                                              1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

                                                                  \[\leadsto c \cdot \left(j \cdot t\right) \]
                                                                3. Step-by-step derivation
                                                                  1. Applied rewrites30.0%

                                                                    \[\leadsto c \cdot \left(j \cdot t\right) \]
                                                                4. Recombined 2 regimes into one program.
                                                                5. Final simplification32.9%

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

                                                                Alternative 15: 22.5% accurate, 5.5× speedup?

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

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

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

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

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

                                                                    \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \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 a \cdot \left(\color{blue}{t \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 a \cdot \left(t \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 a \cdot \left(t \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 a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
                                                                  8. lower-fma.f64N/A

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

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

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

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

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

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

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

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

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

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

                                                                  Reproduce

                                                                  ?
                                                                  herbie shell --seed 2024233 
                                                                  (FPCore (x y z t a b c i j)
                                                                    :name "Linear.Matrix:det33 from linear-1.19.1.3"
                                                                    :precision binary64
                                                                  
                                                                    :alt
                                                                    (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
                                                                  
                                                                    (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))