Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 72.9% → 85.0%
Time: 13.3s
Alternatives: 23
Speedup: 0.9×

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

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

Initial Program: 72.9% 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: 85.0% accurate, 0.5× speedup?

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

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


\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 89.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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 2: 71.8% accurate, 0.9× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -2e101 < i < -9.9999999999999998e-20

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -9.9999999999999998e-20 < i < 3.09999999999999969e-73

          1. Initial program 86.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 z around inf

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

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

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

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

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

            \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(c \cdot b\right) \cdot z}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
        8. Recombined 3 regimes into one program.
        9. Add Preprocessing

        Alternative 3: 79.5% accurate, 0.9× speedup?

        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -5.5 \cdot 10^{+153} \lor \neg \left(i \leq 1.85 \cdot 10^{+81}\right):\\ \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\ \end{array} \end{array} \]
        (FPCore (x y z t a b c i j)
         :precision binary64
         (if (or (<= i -5.5e+153) (not (<= i 1.85e+81)))
           (* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x)
           (fma
            (fma (- z) c (* i a))
            b
            (fma (fma (- a) x (* j c)) t (* (fma (- i) j (* z x)) y)))))
        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
        	double tmp;
        	if ((i <= -5.5e+153) || !(i <= 1.85e+81)) {
        		tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
        	} else {
        		tmp = fma(fma(-z, c, (i * a)), b, fma(fma(-a, x, (j * c)), t, (fma(-i, j, (z * x)) * y)));
        	}
        	return tmp;
        }
        
        function code(x, y, z, t, a, b, c, i, j)
        	tmp = 0.0
        	if ((i <= -5.5e+153) || !(i <= 1.85e+81))
        		tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x);
        	else
        		tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, fma(fma(Float64(-a), x, Float64(j * c)), t, Float64(fma(Float64(-i), j, Float64(z * x)) * y)));
        	end
        	return tmp
        end
        
        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -5.5e+153], N[Not[LessEqual[i, 1.85e+81]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
        
        \begin{array}{l}
        
        \\
        \begin{array}{l}
        \mathbf{if}\;i \leq -5.5 \cdot 10^{+153} \lor \neg \left(i \leq 1.85 \cdot 10^{+81}\right):\\
        \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
        
        \mathbf{else}:\\
        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, j \cdot c\right), t, \mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\right)\right)\\
        
        
        \end{array}
        \end{array}
        
        Derivation
        1. Split input into 2 regimes
        2. if i < -5.5000000000000003e153 or 1.85e81 < i

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -5.5000000000000003e153 < i < 1.85e81

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

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

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

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

          Alternative 4: 72.6% accurate, 0.9× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;i \leq -1.55 \cdot 10^{+68} \lor \neg \left(i \leq 3.1 \cdot 10^{-73}\right):\\ \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i j)
           :precision binary64
           (if (or (<= i -1.55e+68) (not (<= i 3.1e-73)))
             (* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x)
             (+ (- (* x (- (* y z) (* t a))) (* (* c b) z)) (* 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) {
          	double tmp;
          	if ((i <= -1.55e+68) || !(i <= 3.1e-73)) {
          		tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
          	} else {
          		tmp = ((x * ((y * z) - (t * a))) - ((c * b) * z)) + (j * ((c * t) - (i * y)));
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i, j)
          	tmp = 0.0
          	if ((i <= -1.55e+68) || !(i <= 3.1e-73))
          		tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x);
          	else
          		tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(c * b) * z)) + Float64(j * Float64(Float64(c * t) - Float64(i * y))));
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.55e+68], N[Not[LessEqual[i, 3.1e-73]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;i \leq -1.55 \cdot 10^{+68} \lor \neg \left(i \leq 3.1 \cdot 10^{-73}\right):\\
          \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if i < -1.5499999999999999e68 or 3.09999999999999969e-73 < i

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.5499999999999999e68 < i < 3.09999999999999969e-73

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

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

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

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

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

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

                \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(c \cdot b\right) \cdot z}\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
            8. Recombined 2 regimes into one program.
            9. Final simplification77.5%

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

            Alternative 5: 70.7% accurate, 1.0× speedup?

            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -2.7 \cdot 10^{+16} \lor \neg \left(y \leq 4.2 \cdot 10^{-45}\right):\\ \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\ \end{array} \end{array} \]
            (FPCore (x y z t a b c i j)
             :precision binary64
             (if (or (<= y -2.7e+16) (not (<= y 4.2e-45)))
               (* (fma (- t) a (fma z y (/ (* (fma (- y) j (* b a)) i) x))) x)
               (fma (fma (- z) c (* i a)) b (* (fma (- a) x (* j c)) t))))
            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
            	double tmp;
            	if ((y <= -2.7e+16) || !(y <= 4.2e-45)) {
            		tmp = fma(-t, a, fma(z, y, ((fma(-y, j, (b * a)) * i) / x))) * x;
            	} else {
            		tmp = fma(fma(-z, c, (i * a)), b, (fma(-a, x, (j * c)) * t));
            	}
            	return tmp;
            }
            
            function code(x, y, z, t, a, b, c, i, j)
            	tmp = 0.0
            	if ((y <= -2.7e+16) || !(y <= 4.2e-45))
            		tmp = Float64(fma(Float64(-t), a, fma(z, y, Float64(Float64(fma(Float64(-y), j, Float64(b * a)) * i) / x))) * x);
            	else
            		tmp = fma(fma(Float64(-z), c, Float64(i * a)), b, Float64(fma(Float64(-a), x, Float64(j * c)) * t));
            	end
            	return tmp
            end
            
            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -2.7e+16], N[Not[LessEqual[y, 4.2e-45]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y + N[(N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]]
            
            \begin{array}{l}
            
            \\
            \begin{array}{l}
            \mathbf{if}\;y \leq -2.7 \cdot 10^{+16} \lor \neg \left(y \leq 4.2 \cdot 10^{-45}\right):\\
            \;\;\;\;\mathsf{fma}\left(-t, a, \mathsf{fma}\left(z, y, \frac{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i}{x}\right)\right) \cdot x\\
            
            \mathbf{else}:\\
            \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot a\right), b, \mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\right)\\
            
            
            \end{array}
            \end{array}
            
            Derivation
            1. Split input into 2 regimes
            2. if y < -2.7e16 or 4.1999999999999999e-45 < y

              1. Initial program 66.5%

                \[\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 0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -2.7e16 < y < 4.1999999999999999e-45

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 67.6% accurate, 1.2× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.15 \cdot 10^{+70} \lor \neg \left(y \leq 1.3 \cdot 10^{-15}\right):\\ \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t a b c i j)
               :precision binary64
               (if (or (<= y -1.15e+70) (not (<= y 1.3e-15)))
                 (+ (* (* z x) y) (* j (- (* c t) (* i y))))
                 (fma (fma (- x) a (* j c)) t (* (fma (- c) z (* i a)) b))))
              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
              	double tmp;
              	if ((y <= -1.15e+70) || !(y <= 1.3e-15)) {
              		tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
              	} else {
              		tmp = fma(fma(-x, a, (j * c)), t, (fma(-c, z, (i * a)) * b));
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a, b, c, i, j)
              	tmp = 0.0
              	if ((y <= -1.15e+70) || !(y <= 1.3e-15))
              		tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y))));
              	else
              		tmp = fma(fma(Float64(-x), a, Float64(j * c)), t, Float64(fma(Float64(-c), z, Float64(i * a)) * b));
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.15e+70], N[Not[LessEqual[y, 1.3e-15]], $MachinePrecision]], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;y \leq -1.15 \cdot 10^{+70} \lor \neg \left(y \leq 1.3 \cdot 10^{-15}\right):\\
              \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, a, j \cdot c\right), t, \mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if y < -1.14999999999999997e70 or 1.30000000000000002e-15 < y

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

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

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

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

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

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

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

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

                if -1.14999999999999997e70 < y < 1.30000000000000002e-15

                1. Initial program 78.5%

                  \[\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 y around 0

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

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

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

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

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

                Alternative 7: 57.9% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

                  if -1.14999999999999997e70 < y < 3.4999999999999999e40

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

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

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

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

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

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

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

                      if 3.4999999999999999e40 < y < 2.15000000000000016e119

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if 2.15000000000000016e119 < y

                        1. Initial program 65.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 8: 58.5% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                        if -2.50000000000000018e69 < y < 3.4999999999999999e40

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

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

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

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

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

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

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

                            if 3.4999999999999999e40 < y < 2.15000000000000016e119

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if 2.15000000000000016e119 < y

                              1. Initial program 65.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 9: 68.8% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

                              if -2.39999999999999989e123 < y < 5.49999999999999964e-16

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

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

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

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

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

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

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

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

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

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

                              if 5.49999999999999964e-16 < y

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            Alternative 10: 68.9% accurate, 1.2× speedup?

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

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

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

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

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

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

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

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

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

                              if -1.14999999999999997e70 < y < 5.49999999999999964e-16

                              1. Initial program 78.5%

                                \[\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 y around 0

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

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

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

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

                                if 5.49999999999999964e-16 < y

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              Alternative 11: 57.9% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                                if -2.50000000000000018e69 < y < 3.7e40

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

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

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

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

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

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

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

                                    if 3.7e40 < y < 7.500000000000001e119

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if 7.500000000000001e119 < y

                                    1. Initial program 65.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  Alternative 12: 41.1% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -2.85000000000000009e90 < b < -5.4999999999999998e-244 or 5.7999999999999999e29 < b

                                      1. Initial program 74.5%

                                        \[\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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -5.4999999999999998e-244 < b < 9.19999999999999956e-281

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

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

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

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

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

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

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

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

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

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

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

                                      if 9.19999999999999956e-281 < b < 5.7999999999999999e29

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

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

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

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

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

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

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

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

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

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

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

                                    Alternative 13: 27.9% accurate, 1.6× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;b \leq -4.6 \cdot 10^{+95}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \mathbf{elif}\;b \leq -4.5 \cdot 10^{-290}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;b \leq 2.1 \cdot 10^{+195}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (if (<= b -4.6e+95)
                                       (* (* b a) i)
                                       (if (<= b -4.5e-290)
                                         (* (* (- y) j) i)
                                         (if (<= b 2.4e+145)
                                           (* (* (- x) t) a)
                                           (if (<= b 2.1e+195) (* (* c t) j) (* (* (- b) z) c))))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double tmp;
                                    	if (b <= -4.6e+95) {
                                    		tmp = (b * a) * i;
                                    	} else if (b <= -4.5e-290) {
                                    		tmp = (-y * j) * i;
                                    	} else if (b <= 2.4e+145) {
                                    		tmp = (-x * t) * a;
                                    	} else if (b <= 2.1e+195) {
                                    		tmp = (c * t) * j;
                                    	} else {
                                    		tmp = (-b * z) * 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 (b <= (-4.6d+95)) then
                                            tmp = (b * a) * i
                                        else if (b <= (-4.5d-290)) then
                                            tmp = (-y * j) * i
                                        else if (b <= 2.4d+145) then
                                            tmp = (-x * t) * a
                                        else if (b <= 2.1d+195) then
                                            tmp = (c * t) * j
                                        else
                                            tmp = (-b * z) * 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 (b <= -4.6e+95) {
                                    		tmp = (b * a) * i;
                                    	} else if (b <= -4.5e-290) {
                                    		tmp = (-y * j) * i;
                                    	} else if (b <= 2.4e+145) {
                                    		tmp = (-x * t) * a;
                                    	} else if (b <= 2.1e+195) {
                                    		tmp = (c * t) * j;
                                    	} else {
                                    		tmp = (-b * z) * c;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b, c, i, j):
                                    	tmp = 0
                                    	if b <= -4.6e+95:
                                    		tmp = (b * a) * i
                                    	elif b <= -4.5e-290:
                                    		tmp = (-y * j) * i
                                    	elif b <= 2.4e+145:
                                    		tmp = (-x * t) * a
                                    	elif b <= 2.1e+195:
                                    		tmp = (c * t) * j
                                    	else:
                                    		tmp = (-b * z) * c
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	tmp = 0.0
                                    	if (b <= -4.6e+95)
                                    		tmp = Float64(Float64(b * a) * i);
                                    	elseif (b <= -4.5e-290)
                                    		tmp = Float64(Float64(Float64(-y) * j) * i);
                                    	elseif (b <= 2.4e+145)
                                    		tmp = Float64(Float64(Float64(-x) * t) * a);
                                    	elseif (b <= 2.1e+195)
                                    		tmp = Float64(Float64(c * t) * j);
                                    	else
                                    		tmp = Float64(Float64(Float64(-b) * z) * c);
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                    	tmp = 0.0;
                                    	if (b <= -4.6e+95)
                                    		tmp = (b * a) * i;
                                    	elseif (b <= -4.5e-290)
                                    		tmp = (-y * j) * i;
                                    	elseif (b <= 2.4e+145)
                                    		tmp = (-x * t) * a;
                                    	elseif (b <= 2.1e+195)
                                    		tmp = (c * t) * j;
                                    	else
                                    		tmp = (-b * z) * c;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.6e+95], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, -4.5e-290], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 2.1e+195], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[((-b) * z), $MachinePrecision] * c), $MachinePrecision]]]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    \mathbf{if}\;b \leq -4.6 \cdot 10^{+95}:\\
                                    \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                    
                                    \mathbf{elif}\;b \leq -4.5 \cdot 10^{-290}:\\
                                    \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                                    
                                    \mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
                                    \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
                                    
                                    \mathbf{elif}\;b \leq 2.1 \cdot 10^{+195}:\\
                                    \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;\left(\left(-b\right) \cdot z\right) \cdot c\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 5 regimes
                                    2. if b < -4.59999999999999994e95

                                      1. Initial program 78.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -4.59999999999999994e95 < b < -4.5e-290

                                        1. Initial program 70.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if -4.5e-290 < b < 2.39999999999999992e145

                                          1. Initial program 72.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                            if 2.39999999999999992e145 < b < 2.10000000000000009e195

                                            1. Initial program 66.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                if 2.10000000000000009e195 < b

                                                1. Initial program 79.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. *-commutativeN/A

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

                                                    \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                                                  3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \left(-1 \cdot \left(b \cdot z\right)\right) \cdot c \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites55.8%

                                                    \[\leadsto \left(\left(-b\right) \cdot z\right) \cdot c \]
                                                8. Recombined 5 regimes into one program.
                                                9. Add Preprocessing

                                                Alternative 14: 27.7% accurate, 1.6× speedup?

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

                                                  1. Initial program 78.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if -4.59999999999999994e95 < b < -4.5e-290

                                                    1. Initial program 70.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if -4.5e-290 < b < 2.39999999999999992e145

                                                      1. Initial program 72.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                        if 2.39999999999999992e145 < b < 2.10000000000000009e195

                                                        1. Initial program 66.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if 2.10000000000000009e195 < b

                                                            1. Initial program 79.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. *-commutativeN/A

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

                                                                \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                                                              3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \left(-b\right) \cdot \color{blue}{\left(c \cdot z\right)} \]
                                                            8. Recombined 5 regimes into one program.
                                                            9. Add Preprocessing

                                                            Alternative 15: 51.7% accurate, 2.0× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -2.25 \cdot 10^{-26} \lor \neg \left(a \leq 7.8 \cdot 10^{-75}\right):\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (if (or (<= a -2.25e-26) (not (<= a 7.8e-75)))
                                                               (* (fma (- x) t (* i b)) a)
                                                               (* (fma (- b) c (* y x)) z)))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double tmp;
                                                            	if ((a <= -2.25e-26) || !(a <= 7.8e-75)) {
                                                            		tmp = fma(-x, t, (i * b)) * a;
                                                            	} else {
                                                            		tmp = fma(-b, c, (y * x)) * z;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	tmp = 0.0
                                                            	if ((a <= -2.25e-26) || !(a <= 7.8e-75))
                                                            		tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a);
                                                            	else
                                                            		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.25e-26], N[Not[LessEqual[a, 7.8e-75]], $MachinePrecision]], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            \mathbf{if}\;a \leq -2.25 \cdot 10^{-26} \lor \neg \left(a \leq 7.8 \cdot 10^{-75}\right):\\
                                                            \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 2 regimes
                                                            2. if a < -2.2499999999999999e-26 or 7.8000000000000003e-75 < a

                                                              1. Initial program 69.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if -2.2499999999999999e-26 < a < 7.8000000000000003e-75

                                                              1. Initial program 79.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.25 \cdot 10^{-26} \lor \neg \left(a \leq 7.8 \cdot 10^{-75}\right):\\ \;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \]
                                                            5. Add Preprocessing

                                                            Alternative 16: 49.5% accurate, 2.0× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -6.5 \cdot 10^{+193} \lor \neg \left(t \leq 5.4 \cdot 10^{+149}\right):\\ \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (if (or (<= t -6.5e+193) (not (<= t 5.4e+149)))
                                                               (* (fma (- a) x (* j c)) t)
                                                               (* (fma (- b) c (* y x)) z)))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double tmp;
                                                            	if ((t <= -6.5e+193) || !(t <= 5.4e+149)) {
                                                            		tmp = fma(-a, x, (j * c)) * t;
                                                            	} else {
                                                            		tmp = fma(-b, c, (y * x)) * z;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	tmp = 0.0
                                                            	if ((t <= -6.5e+193) || !(t <= 5.4e+149))
                                                            		tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t);
                                                            	else
                                                            		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -6.5e+193], N[Not[LessEqual[t, 5.4e+149]], $MachinePrecision]], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            \mathbf{if}\;t \leq -6.5 \cdot 10^{+193} \lor \neg \left(t \leq 5.4 \cdot 10^{+149}\right):\\
                                                            \;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            
                                                            Derivation
                                                            1. Split input into 2 regimes
                                                            2. if t < -6.4999999999999997e193 or 5.4000000000000002e149 < t

                                                              1. Initial program 61.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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

                                                              if -6.4999999999999997e193 < t < 5.4000000000000002e149

                                                              1. Initial program 77.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 z around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            Alternative 17: 28.0% accurate, 2.0× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                if -3.9e6 < b < 2.39999999999999992e145

                                                                1. Initial program 70.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                  if 2.39999999999999992e145 < b < 2.10000000000000009e195

                                                                  1. Initial program 66.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if 2.10000000000000009e195 < b

                                                                      1. Initial program 79.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. *-commutativeN/A

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

                                                                          \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                                                                        3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          \[\leadsto \left(-b\right) \cdot \color{blue}{\left(c \cdot z\right)} \]
                                                                      8. Recombined 4 regimes into one program.
                                                                      9. Add Preprocessing

                                                                      Alternative 18: 41.8% accurate, 2.0× speedup?

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

                                                                        1. Initial program 78.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                          if -8.19999999999999972e95 < b < 2.26000000000000001e195

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

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

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

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

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

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

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

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

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

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

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

                                                                          if 2.26000000000000001e195 < b

                                                                          1. Initial program 79.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. *-commutativeN/A

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

                                                                              \[\leadsto \color{blue}{\left(j \cdot t - b \cdot z\right) \cdot c} \]
                                                                            3. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                            \[\leadsto \left(-1 \cdot \left(b \cdot z\right)\right) \cdot c \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites55.8%

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

                                                                          Alternative 19: 28.3% accurate, 2.1× speedup?

                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(b \cdot a\right) \cdot i\\ \mathbf{if}\;b \leq -3900000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;b \leq 9.6 \cdot 10^{+201}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                          (FPCore (x y z t a b c i j)
                                                                           :precision binary64
                                                                           (let* ((t_1 (* (* b a) i)))
                                                                             (if (<= b -3900000.0)
                                                                               t_1
                                                                               (if (<= b 2.4e+145)
                                                                                 (* (* (- x) t) a)
                                                                                 (if (<= b 9.6e+201) (* (* 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 = (b * a) * i;
                                                                          	double tmp;
                                                                          	if (b <= -3900000.0) {
                                                                          		tmp = t_1;
                                                                          	} else if (b <= 2.4e+145) {
                                                                          		tmp = (-x * t) * a;
                                                                          	} else if (b <= 9.6e+201) {
                                                                          		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 = (b * a) * i
                                                                              if (b <= (-3900000.0d0)) then
                                                                                  tmp = t_1
                                                                              else if (b <= 2.4d+145) then
                                                                                  tmp = (-x * t) * a
                                                                              else if (b <= 9.6d+201) 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 = (b * a) * i;
                                                                          	double tmp;
                                                                          	if (b <= -3900000.0) {
                                                                          		tmp = t_1;
                                                                          	} else if (b <= 2.4e+145) {
                                                                          		tmp = (-x * t) * a;
                                                                          	} else if (b <= 9.6e+201) {
                                                                          		tmp = (c * t) * j;
                                                                          	} else {
                                                                          		tmp = t_1;
                                                                          	}
                                                                          	return tmp;
                                                                          }
                                                                          
                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                          	t_1 = (b * a) * i
                                                                          	tmp = 0
                                                                          	if b <= -3900000.0:
                                                                          		tmp = t_1
                                                                          	elif b <= 2.4e+145:
                                                                          		tmp = (-x * t) * a
                                                                          	elif b <= 9.6e+201:
                                                                          		tmp = (c * t) * j
                                                                          	else:
                                                                          		tmp = t_1
                                                                          	return tmp
                                                                          
                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                          	t_1 = Float64(Float64(b * a) * i)
                                                                          	tmp = 0.0
                                                                          	if (b <= -3900000.0)
                                                                          		tmp = t_1;
                                                                          	elseif (b <= 2.4e+145)
                                                                          		tmp = Float64(Float64(Float64(-x) * t) * a);
                                                                          	elseif (b <= 9.6e+201)
                                                                          		tmp = Float64(Float64(c * 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 = (b * a) * i;
                                                                          	tmp = 0.0;
                                                                          	if (b <= -3900000.0)
                                                                          		tmp = t_1;
                                                                          	elseif (b <= 2.4e+145)
                                                                          		tmp = (-x * t) * a;
                                                                          	elseif (b <= 9.6e+201)
                                                                          		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[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[b, -3900000.0], t$95$1, If[LessEqual[b, 2.4e+145], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[b, 9.6e+201], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
                                                                          
                                                                          \begin{array}{l}
                                                                          
                                                                          \\
                                                                          \begin{array}{l}
                                                                          t_1 := \left(b \cdot a\right) \cdot i\\
                                                                          \mathbf{if}\;b \leq -3900000:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          \mathbf{elif}\;b \leq 2.4 \cdot 10^{+145}:\\
                                                                          \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
                                                                          
                                                                          \mathbf{elif}\;b \leq 9.6 \cdot 10^{+201}:\\
                                                                          \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                                          
                                                                          \mathbf{else}:\\
                                                                          \;\;\;\;t\_1\\
                                                                          
                                                                          
                                                                          \end{array}
                                                                          \end{array}
                                                                          
                                                                          Derivation
                                                                          1. Split input into 3 regimes
                                                                          2. if b < -3.9e6 or 9.59999999999999971e201 < b

                                                                            1. Initial program 78.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                              if -3.9e6 < b < 2.39999999999999992e145

                                                                              1. Initial program 70.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                if 2.39999999999999992e145 < b < 9.59999999999999971e201

                                                                                1. Initial program 72.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

                                                                                      \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                  3. Recombined 3 regimes into one program.
                                                                                  4. Add Preprocessing

                                                                                  Alternative 20: 30.2% accurate, 2.6× speedup?

                                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 4.2 \cdot 10^{+85}\right):\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \end{array} \]
                                                                                  (FPCore (x y z t a b c i j)
                                                                                   :precision binary64
                                                                                   (if (or (<= j -1.08e-12) (not (<= j 4.2e+85))) (* (* j c) t) (* (* b a) i)))
                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double tmp;
                                                                                  	if ((j <= -1.08e-12) || !(j <= 4.2e+85)) {
                                                                                  		tmp = (j * c) * t;
                                                                                  	} else {
                                                                                  		tmp = (b * a) * i;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                      real(8), intent (in) :: x
                                                                                      real(8), intent (in) :: y
                                                                                      real(8), intent (in) :: z
                                                                                      real(8), intent (in) :: t
                                                                                      real(8), intent (in) :: a
                                                                                      real(8), intent (in) :: b
                                                                                      real(8), intent (in) :: c
                                                                                      real(8), intent (in) :: i
                                                                                      real(8), intent (in) :: j
                                                                                      real(8) :: tmp
                                                                                      if ((j <= (-1.08d-12)) .or. (.not. (j <= 4.2d+85))) then
                                                                                          tmp = (j * c) * t
                                                                                      else
                                                                                          tmp = (b * a) * i
                                                                                      end if
                                                                                      code = tmp
                                                                                  end function
                                                                                  
                                                                                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                  	double tmp;
                                                                                  	if ((j <= -1.08e-12) || !(j <= 4.2e+85)) {
                                                                                  		tmp = (j * c) * t;
                                                                                  	} else {
                                                                                  		tmp = (b * a) * i;
                                                                                  	}
                                                                                  	return tmp;
                                                                                  }
                                                                                  
                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                  	tmp = 0
                                                                                  	if (j <= -1.08e-12) or not (j <= 4.2e+85):
                                                                                  		tmp = (j * c) * t
                                                                                  	else:
                                                                                  		tmp = (b * a) * i
                                                                                  	return tmp
                                                                                  
                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0
                                                                                  	if ((j <= -1.08e-12) || !(j <= 4.2e+85))
                                                                                  		tmp = Float64(Float64(j * c) * t);
                                                                                  	else
                                                                                  		tmp = Float64(Float64(b * a) * i);
                                                                                  	end
                                                                                  	return tmp
                                                                                  end
                                                                                  
                                                                                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                  	tmp = 0.0;
                                                                                  	if ((j <= -1.08e-12) || ~((j <= 4.2e+85)))
                                                                                  		tmp = (j * c) * t;
                                                                                  	else
                                                                                  		tmp = (b * a) * i;
                                                                                  	end
                                                                                  	tmp_2 = tmp;
                                                                                  end
                                                                                  
                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.08e-12], N[Not[LessEqual[j, 4.2e+85]], $MachinePrecision]], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]
                                                                                  
                                                                                  \begin{array}{l}
                                                                                  
                                                                                  \\
                                                                                  \begin{array}{l}
                                                                                  \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 4.2 \cdot 10^{+85}\right):\\
                                                                                  \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                  
                                                                                  \mathbf{else}:\\
                                                                                  \;\;\;\;\left(b \cdot a\right) \cdot i\\
                                                                                  
                                                                                  
                                                                                  \end{array}
                                                                                  \end{array}
                                                                                  
                                                                                  Derivation
                                                                                  1. Split input into 2 regimes
                                                                                  2. if j < -1.08000000000000004e-12 or 4.2000000000000002e85 < j

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                      if -1.08000000000000004e-12 < j < 4.2000000000000002e85

                                                                                      1. Initial program 73.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \left(b \cdot a\right) \cdot i \]
                                                                                      8. Recombined 2 regimes into one program.
                                                                                      9. Final simplification37.6%

                                                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 4.2 \cdot 10^{+85}\right):\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot a\right) \cdot i\\ \end{array} \]
                                                                                      10. Add Preprocessing

                                                                                      Alternative 21: 29.8% accurate, 2.6× speedup?

                                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 6 \cdot 10^{+85}\right):\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \end{array} \]
                                                                                      (FPCore (x y z t a b c i j)
                                                                                       :precision binary64
                                                                                       (if (or (<= j -1.08e-12) (not (<= j 6e+85))) (* (* j c) t) (* (* i b) a)))
                                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                      	double tmp;
                                                                                      	if ((j <= -1.08e-12) || !(j <= 6e+85)) {
                                                                                      		tmp = (j * c) * t;
                                                                                      	} else {
                                                                                      		tmp = (i * b) * a;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                          real(8), intent (in) :: x
                                                                                          real(8), intent (in) :: y
                                                                                          real(8), intent (in) :: z
                                                                                          real(8), intent (in) :: t
                                                                                          real(8), intent (in) :: a
                                                                                          real(8), intent (in) :: b
                                                                                          real(8), intent (in) :: c
                                                                                          real(8), intent (in) :: i
                                                                                          real(8), intent (in) :: j
                                                                                          real(8) :: tmp
                                                                                          if ((j <= (-1.08d-12)) .or. (.not. (j <= 6d+85))) then
                                                                                              tmp = (j * c) * t
                                                                                          else
                                                                                              tmp = (i * b) * a
                                                                                          end if
                                                                                          code = tmp
                                                                                      end function
                                                                                      
                                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                      	double tmp;
                                                                                      	if ((j <= -1.08e-12) || !(j <= 6e+85)) {
                                                                                      		tmp = (j * c) * t;
                                                                                      	} else {
                                                                                      		tmp = (i * b) * a;
                                                                                      	}
                                                                                      	return tmp;
                                                                                      }
                                                                                      
                                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                                      	tmp = 0
                                                                                      	if (j <= -1.08e-12) or not (j <= 6e+85):
                                                                                      		tmp = (j * c) * t
                                                                                      	else:
                                                                                      		tmp = (i * b) * a
                                                                                      	return tmp
                                                                                      
                                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0
                                                                                      	if ((j <= -1.08e-12) || !(j <= 6e+85))
                                                                                      		tmp = Float64(Float64(j * c) * t);
                                                                                      	else
                                                                                      		tmp = Float64(Float64(i * b) * a);
                                                                                      	end
                                                                                      	return tmp
                                                                                      end
                                                                                      
                                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                      	tmp = 0.0;
                                                                                      	if ((j <= -1.08e-12) || ~((j <= 6e+85)))
                                                                                      		tmp = (j * c) * t;
                                                                                      	else
                                                                                      		tmp = (i * b) * a;
                                                                                      	end
                                                                                      	tmp_2 = tmp;
                                                                                      end
                                                                                      
                                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.08e-12], N[Not[LessEqual[j, 6e+85]], $MachinePrecision]], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]
                                                                                      
                                                                                      \begin{array}{l}
                                                                                      
                                                                                      \\
                                                                                      \begin{array}{l}
                                                                                      \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 6 \cdot 10^{+85}\right):\\
                                                                                      \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                      
                                                                                      \mathbf{else}:\\
                                                                                      \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                      
                                                                                      
                                                                                      \end{array}
                                                                                      \end{array}
                                                                                      
                                                                                      Derivation
                                                                                      1. Split input into 2 regimes
                                                                                      2. if j < -1.08000000000000004e-12 or 6.0000000000000001e85 < j

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          if -1.08000000000000004e-12 < j < 6.0000000000000001e85

                                                                                          1. Initial program 73.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 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. *-commutativeN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.08 \cdot 10^{-12} \lor \neg \left(j \leq 6 \cdot 10^{+85}\right):\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \end{array} \]
                                                                                          10. Add Preprocessing

                                                                                          Alternative 22: 28.1% accurate, 2.6× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites45.6%

                                                                                                \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]

                                                                                              if -6.5000000000000001e158 < t < 1.35000000000000007e123

                                                                                              1. Initial program 77.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 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. *-commutativeN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                                                                                2. lower-*.f64N/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right) \cdot i} \]
                                                                                                3. fp-cancel-sub-sign-invN/A

                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(a \cdot b\right)\right)} \cdot i \]
                                                                                                4. metadata-evalN/A

                                                                                                  \[\leadsto \left(-1 \cdot \left(j \cdot y\right) + \color{blue}{1} \cdot \left(a \cdot b\right)\right) \cdot i \]
                                                                                                5. *-lft-identityN/A

                                                                                                  \[\leadsto \left(-1 \cdot \left(j \cdot y\right) + \color{blue}{a \cdot b}\right) \cdot i \]
                                                                                                6. *-commutativeN/A

                                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(y \cdot j\right)} + a \cdot b\right) \cdot i \]
                                                                                                7. associate-*r*N/A

                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right) \cdot j} + a \cdot b\right) \cdot i \]
                                                                                                8. lower-fma.f64N/A

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, j, a \cdot b\right)} \cdot i \]
                                                                                                9. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, j, a \cdot b\right) \cdot i \]
                                                                                                10. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, j, a \cdot b\right) \cdot i \]
                                                                                                11. *-commutativeN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                                                                12. lower-*.f6447.6

                                                                                                  \[\leadsto \mathsf{fma}\left(-y, j, \color{blue}{b \cdot a}\right) \cdot i \]
                                                                                              5. Applied rewrites47.6%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i} \]
                                                                                              6. Taylor expanded in y around 0

                                                                                                \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites33.7%

                                                                                                  \[\leadsto \left(i \cdot b\right) \cdot \color{blue}{a} \]

                                                                                                if 1.35000000000000007e123 < t

                                                                                                1. Initial program 67.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 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. *-commutativeN/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                  2. lower-*.f64N/A

                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                  3. associate-*r*N/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + c \cdot j\right) \cdot t \]
                                                                                                  4. mul-1-negN/A

                                                                                                    \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + c \cdot j\right) \cdot t \]
                                                                                                  5. lower-fma.f64N/A

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, c \cdot j\right)} \cdot t \]
                                                                                                  6. lower-neg.f64N/A

                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, c \cdot j\right) \cdot t \]
                                                                                                  7. *-commutativeN/A

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                  8. lower-*.f6462.4

                                                                                                    \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                5. Applied rewrites62.4%

                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t} \]
                                                                                                6. Taylor expanded in x around 0

                                                                                                  \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                7. Step-by-step derivation
                                                                                                  1. Applied rewrites35.5%

                                                                                                    \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                                                  2. Step-by-step derivation
                                                                                                    1. Applied rewrites40.2%

                                                                                                      \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                  3. Recombined 3 regimes into one program.
                                                                                                  4. Add Preprocessing

                                                                                                  Alternative 23: 22.1% accurate, 5.5× speedup?

                                                                                                  \[\begin{array}{l} \\ \left(c \cdot t\right) \cdot j \end{array} \]
                                                                                                  (FPCore (x y z t a b c i j) :precision binary64 (* (* c t) j))
                                                                                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                  	return (c * t) * j;
                                                                                                  }
                                                                                                  
                                                                                                  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 = (c * t) * j
                                                                                                  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 (c * t) * j;
                                                                                                  }
                                                                                                  
                                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                                  	return (c * t) * j
                                                                                                  
                                                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                                                  	return Float64(Float64(c * t) * j)
                                                                                                  end
                                                                                                  
                                                                                                  function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                                                  	tmp = (c * t) * j;
                                                                                                  end
                                                                                                  
                                                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]
                                                                                                  
                                                                                                  \begin{array}{l}
                                                                                                  
                                                                                                  \\
                                                                                                  \left(c \cdot t\right) \cdot j
                                                                                                  \end{array}
                                                                                                  
                                                                                                  Derivation
                                                                                                  1. Initial program 73.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 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. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + c \cdot j\right) \cdot t} \]
                                                                                                    3. associate-*r*N/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + c \cdot j\right) \cdot t \]
                                                                                                    4. mul-1-negN/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + c \cdot j\right) \cdot t \]
                                                                                                    5. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, c \cdot j\right)} \cdot t \]
                                                                                                    6. lower-neg.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, c \cdot j\right) \cdot t \]
                                                                                                    7. *-commutativeN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                    8. lower-*.f6437.3

                                                                                                      \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{j \cdot c}\right) \cdot t \]
                                                                                                  5. Applied rewrites37.3%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t} \]
                                                                                                  6. Taylor expanded in x around 0

                                                                                                    \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                  7. Step-by-step derivation
                                                                                                    1. Applied rewrites19.7%

                                                                                                      \[\leadsto \left(j \cdot t\right) \cdot \color{blue}{c} \]
                                                                                                    2. Step-by-step derivation
                                                                                                      1. Applied rewrites20.1%

                                                                                                        \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                      2. Add Preprocessing

                                                                                                      Developer Target 1: 67.9% 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 2024326 
                                                                                                      (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)))))