Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 73.7% → 82.4%
Time: 16.4s
Alternatives: 27
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 27 alternatives:

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(i, b, \left(-t\right) \cdot x\right) \cdot a \]
    8. Recombined 2 regimes into one program.
    9. Final simplification87.1%

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

    Alternative 2: 52.4% accurate, 1.1× speedup?

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

      1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -4.6999999999999997e23 < x < -1.05e-74

      1. Initial program 59.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 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. sub-negN/A

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

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

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

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

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

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

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

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

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

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

      if -1.05e-74 < x < -3.50000000000000016e-240

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.50000000000000016e-240 < x < 1.95000000000000001e-146

      1. Initial program 80.9%

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

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

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

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

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

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

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

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

      if 1.95000000000000001e-146 < x < 2.9500000000000001e91

      1. Initial program 76.0%

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

        \[\leadsto \color{blue}{-1 \cdot \left(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 \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
        2. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(-b\right) \cdot \left(c \cdot z\right) + \left(-i\right) \cdot \color{blue}{\left(y \cdot j\right)} \]
        6. lower-*.f6451.3

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

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

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

    Alternative 3: 60.1% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-209}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;x \leq 2.2 \cdot 10^{-144}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\ \mathbf{elif}\;x \leq 9.2 \cdot 10^{+91}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b - \left(i \cdot y - 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 (* (fma (- a) t (* z y)) x)))
       (if (<= x -6.8e+25)
         t_1
         (if (<= x -1.75e-209)
           (fma (fma (- c) z (* i a)) b (* (* j c) t))
           (if (<= x 2.2e-144)
             (+ (* (* i b) a) (* (- (* c t) (* i y)) j))
             (if (<= x 9.2e+91)
               (- (* (* (- z) c) b) (* (- (* i y) (* 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 = fma(-a, t, (z * y)) * x;
    	double tmp;
    	if (x <= -6.8e+25) {
    		tmp = t_1;
    	} else if (x <= -1.75e-209) {
    		tmp = fma(fma(-c, z, (i * a)), b, ((j * c) * t));
    	} else if (x <= 2.2e-144) {
    		tmp = ((i * b) * a) + (((c * t) - (i * y)) * j);
    	} else if (x <= 9.2e+91) {
    		tmp = ((-z * c) * b) - (((i * y) - (c * t)) * j);
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
    	tmp = 0.0
    	if (x <= -6.8e+25)
    		tmp = t_1;
    	elseif (x <= -1.75e-209)
    		tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(Float64(j * c) * t));
    	elseif (x <= 2.2e-144)
    		tmp = Float64(Float64(Float64(i * b) * a) + Float64(Float64(Float64(c * t) - Float64(i * y)) * j));
    	elseif (x <= 9.2e+91)
    		tmp = Float64(Float64(Float64(Float64(-z) * c) * b) - Float64(Float64(Float64(i * y) - Float64(c * t)) * j));
    	else
    		tmp = t_1;
    	end
    	return tmp
    end
    
    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.8e+25], t$95$1, If[LessEqual[x, -1.75e-209], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2e-144], N[(N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision] + N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.2e+91], N[(N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision] - N[(N[(N[(i * y), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
    \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;x \leq -1.75 \cdot 10^{-209}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\
    
    \mathbf{elif}\;x \leq 2.2 \cdot 10^{-144}:\\
    \;\;\;\;\left(i \cdot b\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\
    
    \mathbf{elif}\;x \leq 9.2 \cdot 10^{+91}:\\
    \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b - \left(i \cdot y - c \cdot t\right) \cdot j\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 4 regimes
    2. if x < -6.79999999999999967e25 or 9.19999999999999965e91 < x

      1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -6.79999999999999967e25 < x < -1.75000000000000001e-209

      1. Initial program 74.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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
        2. +-commutativeN/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)} \]
        3. *-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) \]
        4. 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) \]
        5. 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) \]
        6. 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)} \]
        7. mul-1-negN/A

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

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

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

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

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

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

          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
        14. neg-mul-1N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
        15. lower-neg.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
        16. lower-*.f64N/A

          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites68.4%

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

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

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

        if -1.75000000000000001e-209 < x < 2.20000000000000006e-144

        1. Initial program 80.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}{a \cdot \left(b \cdot i\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
        4. Step-by-step derivation
          1. *-commutativeN/A

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

            \[\leadsto \color{blue}{\left(b \cdot i\right) \cdot a} + j \cdot \left(c \cdot t - i \cdot y\right) \]
          3. lower-*.f6477.1

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

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

        if 2.20000000000000006e-144 < x < 9.19999999999999965e91

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

          \[\leadsto \color{blue}{-1 \cdot \left(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 \color{blue}{\left(-1 \cdot b\right) \cdot \left(c \cdot z\right)} + j \cdot \left(c \cdot t - i \cdot y\right) \]
          2. lower-*.f64N/A

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

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

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

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

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

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

      Alternative 4: 60.2% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right)\\ t_2 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-209}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;x \leq 5.3 \cdot 10^{-235}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\ \mathbf{elif}\;x \leq 4.3 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(\left(-y\right) \cdot i\right) \cdot j\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 (- c) z (* i a))) (t_2 (* (fma (- a) t (* z y)) x)))
         (if (<= x -6.8e+25)
           t_2
           (if (<= x -1.75e-209)
             (fma t_1 b (* (* j c) t))
             (if (<= x 5.3e-235)
               (+ (* (* i b) a) (* (- (* c t) (* i y)) j))
               (if (<= x 4.3e+95) (fma t_1 b (* (* (- y) i) j)) 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(-c, z, (i * a));
      	double t_2 = fma(-a, t, (z * y)) * x;
      	double tmp;
      	if (x <= -6.8e+25) {
      		tmp = t_2;
      	} else if (x <= -1.75e-209) {
      		tmp = fma(t_1, b, ((j * c) * t));
      	} else if (x <= 5.3e-235) {
      		tmp = ((i * b) * a) + (((c * t) - (i * y)) * j);
      	} else if (x <= 4.3e+95) {
      		tmp = fma(t_1, b, ((-y * i) * j));
      	} else {
      		tmp = t_2;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = fma(Float64(-c), z, Float64(i * a))
      	t_2 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
      	tmp = 0.0
      	if (x <= -6.8e+25)
      		tmp = t_2;
      	elseif (x <= -1.75e-209)
      		tmp = fma(t_1, b, Float64(Float64(j * c) * t));
      	elseif (x <= 5.3e-235)
      		tmp = Float64(Float64(Float64(i * b) * a) + Float64(Float64(Float64(c * t) - Float64(i * y)) * j));
      	elseif (x <= 4.3e+95)
      		tmp = fma(t_1, b, Float64(Float64(Float64(-y) * i) * j));
      	else
      		tmp = t_2;
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.8e+25], t$95$2, If[LessEqual[x, -1.75e-209], N[(t$95$1 * b + N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.3e-235], N[(N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision] + N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e+95], N[(t$95$1 * b + N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right)\\
      t_2 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
      \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;x \leq -1.75 \cdot 10^{-209}:\\
      \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(j \cdot c\right) \cdot t\right)\\
      
      \mathbf{elif}\;x \leq 5.3 \cdot 10^{-235}:\\
      \;\;\;\;\left(i \cdot b\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\
      
      \mathbf{elif}\;x \leq 4.3 \cdot 10^{+95}:\\
      \;\;\;\;\mathsf{fma}\left(t\_1, b, \left(\left(-y\right) \cdot i\right) \cdot j\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 4 regimes
      2. if x < -6.79999999999999967e25 or 4.3e95 < x

        1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -6.79999999999999967e25 < x < -1.75000000000000001e-209

        1. Initial program 74.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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
          2. +-commutativeN/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)} \]
          3. *-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) \]
          4. 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) \]
          5. 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) \]
          6. 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)} \]
          7. mul-1-negN/A

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

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

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

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

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

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

            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
          14. neg-mul-1N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
          15. lower-neg.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
          16. lower-*.f64N/A

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites68.4%

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

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

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

          if -1.75000000000000001e-209 < x < 5.3000000000000002e-235

          1. Initial program 78.1%

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

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

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

              \[\leadsto \color{blue}{\left(b \cdot i\right) \cdot a} + j \cdot \left(c \cdot t - i \cdot y\right) \]
            3. lower-*.f6477.6

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

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

          if 5.3000000000000002e-235 < x < 4.3e95

          1. Initial program 78.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \left(\left(-y\right) \cdot i\right) \cdot j\right) \]
          8. Recombined 4 regimes into one program.
          9. Final simplification71.7%

            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.75 \cdot 10^{-209}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;x \leq 5.3 \cdot 10^{-235}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a + \left(c \cdot t - i \cdot y\right) \cdot j\\ \mathbf{elif}\;x \leq 4.3 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(\left(-y\right) \cdot i\right) \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
          10. Add Preprocessing

          Alternative 5: 60.4% accurate, 1.2× speedup?

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

            1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -6.79999999999999967e25 < x < -3.69999999999999994e-294

            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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
              2. +-commutativeN/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)} \]
              3. *-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) \]
              4. 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) \]
              5. 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) \]
              6. 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)} \]
              7. mul-1-negN/A

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
              14. neg-mul-1N/A

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
              15. lower-neg.f64N/A

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
              16. lower-*.f64N/A

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites64.4%

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

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

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

              if -3.69999999999999994e-294 < x < 4.3e95

              1. Initial program 81.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 6: 58.5% accurate, 1.2× speedup?

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

                1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if -6.79999999999999967e25 < x < 8.19999999999999968e-81

                1. Initial program 79.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) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                4. Step-by-step derivation
                  1. sub-negN/A

                    \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                  2. +-commutativeN/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)} \]
                  3. *-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) \]
                  4. 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) \]
                  5. 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) \]
                  6. 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)} \]
                  7. mul-1-negN/A

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

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

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

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

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

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

                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                  14. neg-mul-1N/A

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                  15. lower-neg.f64N/A

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                  16. lower-*.f64N/A

                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites65.7%

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

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

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

                  if 8.19999999999999968e-81 < x < 2.84999999999999982e91

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(-1 \cdot \left(z \cdot \left(-1 \cdot x + \frac{i \cdot j}{z}\right)\right)\right) \cdot y \]
                  7. Step-by-step derivation
                    1. Applied rewrites51.8%

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

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

                  Alternative 7: 68.0% accurate, 1.2× speedup?

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

                    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -1.05999999999999997e26 < x < 4.3e95

                    1. Initial program 77.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 8: 52.9% accurate, 1.2× speedup?

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

                    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.6999999999999997e23 < x < -1.05e-74

                    1. Initial program 59.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 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. sub-negN/A

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

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

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

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

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

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

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

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

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

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

                    if -1.05e-74 < x < -3.50000000000000016e-240

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

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

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

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

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

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

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

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

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

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

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

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

                    if -3.50000000000000016e-240 < x < 1.70000000000000002e-49

                    1. Initial program 81.4%

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

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

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

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

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

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

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

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

                    if 1.70000000000000002e-49 < x < 1.35e95

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 9: 52.4% accurate, 1.2× speedup?

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

                    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.6999999999999997e23 < x < -1.05e-74

                    1. Initial program 59.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 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. sub-negN/A

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

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

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

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

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

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

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

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

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

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

                    if -1.05e-74 < x < 1.74999999999999998e-181

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.74999999999999998e-181 < x < 5.79999999999999978e-81

                    1. Initial program 90.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 b around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 5.79999999999999978e-81 < x < 2.84999999999999982e91

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{-74}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;x \leq 1.75 \cdot 10^{-181}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{elif}\;x \leq 5.8 \cdot 10^{-81}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;x \leq 2.85 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 10: 52.9% accurate, 1.2× speedup?

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

                    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.6999999999999997e23 < x < -1.05e-74

                    1. Initial program 59.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 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. sub-negN/A

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

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

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

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

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

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

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

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

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

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

                    if -1.05e-74 < x < 1.74999999999999998e-181

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.74999999999999998e-181 < x < 1.70000000000000002e-49

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 1.70000000000000002e-49 < x < 1.35e95

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{-74}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;x \leq 1.75 \cdot 10^{-181}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\ \mathbf{elif}\;x \leq 1.7 \cdot 10^{-49}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                  5. Add Preprocessing

                  Alternative 11: 44.7% accurate, 1.2× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ t_2 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -4.4 \cdot 10^{+21}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -9.2 \cdot 10^{-58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4 \cdot 10^{-146}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\ \;\;\;\;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 (* (fma (- b) c (* y x)) z)) (t_2 (* (fma (- a) t (* z y)) x)))
                     (if (<= x -4.4e+21)
                       t_2
                       (if (<= x -9.2e-58)
                         t_1
                         (if (<= x -4.1e-240)
                           (* (* j c) t)
                           (if (<= x 4e-146) (* (* i b) a) (if (<= x 1.35e+95) 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 = fma(-b, c, (y * x)) * z;
                  	double t_2 = fma(-a, t, (z * y)) * x;
                  	double tmp;
                  	if (x <= -4.4e+21) {
                  		tmp = t_2;
                  	} else if (x <= -9.2e-58) {
                  		tmp = t_1;
                  	} else if (x <= -4.1e-240) {
                  		tmp = (j * c) * t;
                  	} else if (x <= 4e-146) {
                  		tmp = (i * b) * a;
                  	} else if (x <= 1.35e+95) {
                  		tmp = t_1;
                  	} else {
                  		tmp = t_2;
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z)
                  	t_2 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                  	tmp = 0.0
                  	if (x <= -4.4e+21)
                  		tmp = t_2;
                  	elseif (x <= -9.2e-58)
                  		tmp = t_1;
                  	elseif (x <= -4.1e-240)
                  		tmp = Float64(Float64(j * c) * t);
                  	elseif (x <= 4e-146)
                  		tmp = Float64(Float64(i * b) * a);
                  	elseif (x <= 1.35e+95)
                  		tmp = t_1;
                  	else
                  		tmp = t_2;
                  	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]}, Block[{t$95$2 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4.4e+21], t$95$2, If[LessEqual[x, -9.2e-58], t$95$1, If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 4e-146], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 1.35e+95], t$95$1, t$95$2]]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                  t_2 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                  \mathbf{if}\;x \leq -4.4 \cdot 10^{+21}:\\
                  \;\;\;\;t\_2\\
                  
                  \mathbf{elif}\;x \leq -9.2 \cdot 10^{-58}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                  \;\;\;\;\left(j \cdot c\right) \cdot t\\
                  
                  \mathbf{elif}\;x \leq 4 \cdot 10^{-146}:\\
                  \;\;\;\;\left(i \cdot b\right) \cdot a\\
                  
                  \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;t\_2\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if x < -4.4e21 or 1.35e95 < x

                    1. Initial program 75.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -4.4e21 < x < -9.1999999999999995e-58 or 4.0000000000000001e-146 < x < 1.35e95

                    1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if -9.1999999999999995e-58 < x < -4.1000000000000001e-240

                    1. Initial program 79.0%

                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                    2. Add Preprocessing
                    3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                      2. +-commutativeN/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)} \]
                      3. *-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) \]
                      4. 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) \]
                      5. 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) \]
                      6. 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)} \]
                      7. mul-1-negN/A

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

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

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

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

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

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

                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                      14. neg-mul-1N/A

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                      15. lower-neg.f64N/A

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                      16. lower-*.f64N/A

                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

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

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

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

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

                        if -4.1000000000000001e-240 < x < 4.0000000000000001e-146

                        1. Initial program 80.9%

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(b \cdot i\right) \cdot a \]
                        9. Recombined 4 regimes into one program.
                        10. Final simplification56.9%

                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.4 \cdot 10^{+21}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -9.2 \cdot 10^{-58}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4 \cdot 10^{-146}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                        11. Add Preprocessing

                        Alternative 12: 30.3% accurate, 1.4× speedup?

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

                          1. Initial program 74.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 t around -inf

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

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

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

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

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

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

                              if -3.49999999999999999e25 < x < -3.09999999999999987e-56

                              1. Initial program 58.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. Applied rewrites67.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
                              11. Step-by-step derivation
                                1. Applied rewrites67.5%

                                  \[\leadsto \left(\left(-c\right) \cdot b\right) \cdot z \]

                                if -3.09999999999999987e-56 < x < -4.1000000000000001e-240

                                1. Initial program 79.0%

                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                2. Add Preprocessing
                                3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                  2. +-commutativeN/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)} \]
                                  3. *-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) \]
                                  4. 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) \]
                                  5. 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) \]
                                  6. 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)} \]
                                  7. mul-1-negN/A

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

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

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

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

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

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

                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                  14. neg-mul-1N/A

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                  15. lower-neg.f64N/A

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                  16. lower-*.f64N/A

                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

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

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

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

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

                                    if -4.1000000000000001e-240 < x < 3.79999999999999985e-274

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if 3.79999999999999985e-274 < x < 5.3999999999999999e70

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 5.3999999999999999e70 < x

                                        1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.5 \cdot 10^{+25}:\\ \;\;\;\;\left(a \cdot x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-274}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                                        10. Add Preprocessing

                                        Alternative 13: 30.4% accurate, 1.4× speedup?

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

                                          1. Initial program 74.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 t around -inf

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

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

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

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

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

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

                                              if -6.50000000000000005e25 < x < -1.02e-56

                                              1. Initial program 58.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \left(\left(-z\right) \cdot c\right) \cdot b \]

                                                if -1.02e-56 < x < -4.1000000000000001e-240

                                                1. Initial program 79.0%

                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                  2. +-commutativeN/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)} \]
                                                  3. *-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) \]
                                                  4. 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) \]
                                                  5. 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) \]
                                                  6. 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)} \]
                                                  7. mul-1-negN/A

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

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

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

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

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

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

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                  14. neg-mul-1N/A

                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                  15. lower-neg.f64N/A

                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                  16. lower-*.f64N/A

                                                    \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

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

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

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

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

                                                    if -4.1000000000000001e-240 < x < 3.79999999999999985e-274

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                      if 3.79999999999999985e-274 < x < 5.3999999999999999e70

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                        if 5.3999999999999999e70 < x

                                                        1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                                                        8. Recombined 6 regimes into one program.
                                                        9. Final simplification46.4%

                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.5 \cdot 10^{+25}:\\ \;\;\;\;\left(a \cdot x\right) \cdot \left(-t\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-274}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                                                        10. Add Preprocessing

                                                        Alternative 14: 30.2% accurate, 1.4× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if -6.50000000000000005e25 < x < -1.02e-56

                                                            1. Initial program 58.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                \[\leadsto \left(\left(-z\right) \cdot c\right) \cdot b \]

                                                              if -1.02e-56 < x < -4.1000000000000001e-240

                                                              1. Initial program 79.0%

                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                2. +-commutativeN/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)} \]
                                                                3. *-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) \]
                                                                4. 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) \]
                                                                5. 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) \]
                                                                6. 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)} \]
                                                                7. mul-1-negN/A

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

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

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

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

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

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

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                14. neg-mul-1N/A

                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                15. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                16. lower-*.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

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

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

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

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

                                                                  if -4.1000000000000001e-240 < x < 3.79999999999999985e-274

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                    if 3.79999999999999985e-274 < x < 5.3999999999999999e70

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.5 \cdot 10^{+25}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 3.8 \cdot 10^{-274}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                                                                    10. Add Preprocessing

                                                                    Alternative 15: 30.0% accurate, 1.4× speedup?

                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{if}\;x \leq -6.5 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                    (FPCore (x y z t a b c i j)
                                                                     :precision binary64
                                                                     (let* ((t_1 (* (* (- a) t) x)))
                                                                       (if (<= x -6.5e+25)
                                                                         t_1
                                                                         (if (<= x -1.02e-56)
                                                                           (* (* (- z) c) b)
                                                                           (if (<= x -4.1e-240)
                                                                             (* (* j c) t)
                                                                             (if (<= x 4.4e-98)
                                                                               (* (* i b) a)
                                                                               (if (<= x 6.8e+70) (* (* (- j) y) i) t_1)))))))
                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = (-a * t) * x;
                                                                    	double tmp;
                                                                    	if (x <= -6.5e+25) {
                                                                    		tmp = t_1;
                                                                    	} else if (x <= -1.02e-56) {
                                                                    		tmp = (-z * c) * b;
                                                                    	} else if (x <= -4.1e-240) {
                                                                    		tmp = (j * c) * t;
                                                                    	} else if (x <= 4.4e-98) {
                                                                    		tmp = (i * b) * a;
                                                                    	} else if (x <= 6.8e+70) {
                                                                    		tmp = (-j * y) * i;
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                        real(8), intent (in) :: x
                                                                        real(8), intent (in) :: y
                                                                        real(8), intent (in) :: z
                                                                        real(8), intent (in) :: t
                                                                        real(8), intent (in) :: a
                                                                        real(8), intent (in) :: b
                                                                        real(8), intent (in) :: c
                                                                        real(8), intent (in) :: i
                                                                        real(8), intent (in) :: j
                                                                        real(8) :: t_1
                                                                        real(8) :: tmp
                                                                        t_1 = (-a * t) * x
                                                                        if (x <= (-6.5d+25)) then
                                                                            tmp = t_1
                                                                        else if (x <= (-1.02d-56)) then
                                                                            tmp = (-z * c) * b
                                                                        else if (x <= (-4.1d-240)) then
                                                                            tmp = (j * c) * t
                                                                        else if (x <= 4.4d-98) then
                                                                            tmp = (i * b) * a
                                                                        else if (x <= 6.8d+70) then
                                                                            tmp = (-j * y) * i
                                                                        else
                                                                            tmp = t_1
                                                                        end if
                                                                        code = tmp
                                                                    end function
                                                                    
                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                    	double t_1 = (-a * t) * x;
                                                                    	double tmp;
                                                                    	if (x <= -6.5e+25) {
                                                                    		tmp = t_1;
                                                                    	} else if (x <= -1.02e-56) {
                                                                    		tmp = (-z * c) * b;
                                                                    	} else if (x <= -4.1e-240) {
                                                                    		tmp = (j * c) * t;
                                                                    	} else if (x <= 4.4e-98) {
                                                                    		tmp = (i * b) * a;
                                                                    	} else if (x <= 6.8e+70) {
                                                                    		tmp = (-j * y) * i;
                                                                    	} else {
                                                                    		tmp = t_1;
                                                                    	}
                                                                    	return tmp;
                                                                    }
                                                                    
                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                    	t_1 = (-a * t) * x
                                                                    	tmp = 0
                                                                    	if x <= -6.5e+25:
                                                                    		tmp = t_1
                                                                    	elif x <= -1.02e-56:
                                                                    		tmp = (-z * c) * b
                                                                    	elif x <= -4.1e-240:
                                                                    		tmp = (j * c) * t
                                                                    	elif x <= 4.4e-98:
                                                                    		tmp = (i * b) * a
                                                                    	elif x <= 6.8e+70:
                                                                    		tmp = (-j * y) * i
                                                                    	else:
                                                                    		tmp = t_1
                                                                    	return tmp
                                                                    
                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = Float64(Float64(Float64(-a) * t) * x)
                                                                    	tmp = 0.0
                                                                    	if (x <= -6.5e+25)
                                                                    		tmp = t_1;
                                                                    	elseif (x <= -1.02e-56)
                                                                    		tmp = Float64(Float64(Float64(-z) * c) * b);
                                                                    	elseif (x <= -4.1e-240)
                                                                    		tmp = Float64(Float64(j * c) * t);
                                                                    	elseif (x <= 4.4e-98)
                                                                    		tmp = Float64(Float64(i * b) * a);
                                                                    	elseif (x <= 6.8e+70)
                                                                    		tmp = Float64(Float64(Float64(-j) * y) * i);
                                                                    	else
                                                                    		tmp = t_1;
                                                                    	end
                                                                    	return tmp
                                                                    end
                                                                    
                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                    	t_1 = (-a * t) * x;
                                                                    	tmp = 0.0;
                                                                    	if (x <= -6.5e+25)
                                                                    		tmp = t_1;
                                                                    	elseif (x <= -1.02e-56)
                                                                    		tmp = (-z * c) * b;
                                                                    	elseif (x <= -4.1e-240)
                                                                    		tmp = (j * c) * t;
                                                                    	elseif (x <= 4.4e-98)
                                                                    		tmp = (i * b) * a;
                                                                    	elseif (x <= 6.8e+70)
                                                                    		tmp = (-j * y) * i;
                                                                    	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[((-a) * t), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.5e+25], t$95$1, If[LessEqual[x, -1.02e-56], N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 4.4e-98], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 6.8e+70], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]]]
                                                                    
                                                                    \begin{array}{l}
                                                                    
                                                                    \\
                                                                    \begin{array}{l}
                                                                    t_1 := \left(\left(-a\right) \cdot t\right) \cdot x\\
                                                                    \mathbf{if}\;x \leq -6.5 \cdot 10^{+25}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    \mathbf{elif}\;x \leq -1.02 \cdot 10^{-56}:\\
                                                                    \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
                                                                    
                                                                    \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                    \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                    
                                                                    \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\
                                                                    \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                    
                                                                    \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\
                                                                    \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                                                                    
                                                                    \mathbf{else}:\\
                                                                    \;\;\;\;t\_1\\
                                                                    
                                                                    
                                                                    \end{array}
                                                                    \end{array}
                                                                    
                                                                    Derivation
                                                                    1. Split input into 5 regimes
                                                                    2. if x < -6.50000000000000005e25 or 6.8000000000000002e70 < x

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                        if -6.50000000000000005e25 < x < -1.02e-56

                                                                        1. Initial program 58.9%

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

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

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

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

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

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

                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                          6. sub-negN/A

                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \cdot b \]
                                                                          7. mul-1-negN/A

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \cdot b \]
                                                                          8. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                                          9. mul-1-negN/A

                                                                            \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                                                          10. sub-negN/A

                                                                            \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \cdot b \]
                                                                          11. distribute-neg-inN/A

                                                                            \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                          12. distribute-lft-neg-inN/A

                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                          13. neg-mul-1N/A

                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                          14. remove-double-negN/A

                                                                            \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                                                          15. lower-fma.f64N/A

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, z, a \cdot i\right)} \cdot b \]
                                                                          16. neg-mul-1N/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, z, a \cdot i\right) \cdot b \]
                                                                          17. lower-neg.f64N/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                                                          18. lower-*.f6467.6

                                                                            \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{a \cdot i}\right) \cdot b \]
                                                                        5. Applied rewrites67.6%

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, a \cdot i\right) \cdot b} \]
                                                                        6. Taylor expanded in c around inf

                                                                          \[\leadsto \left(-1 \cdot \left(c \cdot z\right)\right) \cdot b \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites59.8%

                                                                            \[\leadsto \left(\left(-z\right) \cdot c\right) \cdot b \]

                                                                          if -1.02e-56 < x < -4.1000000000000001e-240

                                                                          1. Initial program 79.0%

                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                          2. Add Preprocessing
                                                                          3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                            2. +-commutativeN/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)} \]
                                                                            3. *-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) \]
                                                                            4. 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) \]
                                                                            5. 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) \]
                                                                            6. 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)} \]
                                                                            7. mul-1-negN/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            8. sub-negN/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            9. distribute-neg-inN/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            10. distribute-lft-neg-inN/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            11. neg-mul-1N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            12. remove-double-negN/A

                                                                              \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                            13. lower-fma.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                            14. neg-mul-1N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                            15. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                            16. lower-*.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                          6. Taylor expanded in j around inf

                                                                            \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites40.4%

                                                                              \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                            2. Step-by-step derivation
                                                                              1. Applied rewrites42.7%

                                                                                \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                              if -4.1000000000000001e-240 < x < 4.39999999999999993e-98

                                                                              1. Initial program 82.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. Applied rewrites82.7%

                                                                                \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                              4. Taylor expanded in a around inf

                                                                                \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                              5. Step-by-step derivation
                                                                                1. *-commutativeN/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                2. lower-*.f64N/A

                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                3. associate-*r*N/A

                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                4. lower-fma.f64N/A

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                5. mul-1-negN/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                6. lower-neg.f64N/A

                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                7. lower-*.f6441.5

                                                                                  \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                              6. Applied rewrites41.5%

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                              7. Taylor expanded in b around inf

                                                                                \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                              8. Step-by-step derivation
                                                                                1. Applied rewrites41.2%

                                                                                  \[\leadsto \left(b \cdot i\right) \cdot a \]

                                                                                if 4.39999999999999993e-98 < x < 6.8000000000000002e70

                                                                                1. Initial program 70.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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                4. Step-by-step derivation
                                                                                  1. *-commutativeN/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                  2. lower-*.f64N/A

                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                  3. *-commutativeN/A

                                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                  4. associate-*r*N/A

                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                  5. lower-fma.f64N/A

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                  6. mul-1-negN/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                  7. lower-neg.f64N/A

                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                  8. *-commutativeN/A

                                                                                    \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                  9. lower-*.f6449.5

                                                                                    \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                5. Applied rewrites49.5%

                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                6. Taylor expanded in x around 0

                                                                                  \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(j \cdot y\right)\right)} \]
                                                                                7. Step-by-step derivation
                                                                                  1. Applied rewrites29.5%

                                                                                    \[\leadsto \left(-i\right) \cdot \color{blue}{\left(y \cdot j\right)} \]
                                                                                8. Recombined 5 regimes into one program.
                                                                                9. Final simplification45.5%

                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.5 \cdot 10^{+25}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                                                                                10. Add Preprocessing

                                                                                Alternative 16: 52.7% accurate, 1.4× speedup?

                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-283}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;x \leq 1.7 \cdot 10^{-49}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                (FPCore (x y z t a b c i j)
                                                                                 :precision binary64
                                                                                 (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                                                                                   (if (<= x -4.7e+23)
                                                                                     t_1
                                                                                     (if (<= x -1.7e-283)
                                                                                       (* (fma (- b) z (* j t)) c)
                                                                                       (if (<= x 1.7e-49)
                                                                                         (* (fma (- c) z (* i a)) b)
                                                                                         (if (<= x 1.35e+95) (* (fma (- b) c (* y x)) z) t_1))))))
                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                	double t_1 = fma(-a, t, (z * y)) * x;
                                                                                	double tmp;
                                                                                	if (x <= -4.7e+23) {
                                                                                		tmp = t_1;
                                                                                	} else if (x <= -1.7e-283) {
                                                                                		tmp = fma(-b, z, (j * t)) * c;
                                                                                	} else if (x <= 1.7e-49) {
                                                                                		tmp = fma(-c, z, (i * a)) * b;
                                                                                	} else if (x <= 1.35e+95) {
                                                                                		tmp = fma(-b, c, (y * x)) * z;
                                                                                	} else {
                                                                                		tmp = t_1;
                                                                                	}
                                                                                	return tmp;
                                                                                }
                                                                                
                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                                                                                	tmp = 0.0
                                                                                	if (x <= -4.7e+23)
                                                                                		tmp = t_1;
                                                                                	elseif (x <= -1.7e-283)
                                                                                		tmp = Float64(fma(Float64(-b), z, Float64(j * t)) * c);
                                                                                	elseif (x <= 1.7e-49)
                                                                                		tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b);
                                                                                	elseif (x <= 1.35e+95)
                                                                                		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                                                                                	else
                                                                                		tmp = t_1;
                                                                                	end
                                                                                	return tmp
                                                                                end
                                                                                
                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4.7e+23], t$95$1, If[LessEqual[x, -1.7e-283], N[(N[((-b) * z + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 1.7e-49], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1.35e+95], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]]
                                                                                
                                                                                \begin{array}{l}
                                                                                
                                                                                \\
                                                                                \begin{array}{l}
                                                                                t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                \mathbf{elif}\;x \leq -1.7 \cdot 10^{-283}:\\
                                                                                \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\
                                                                                
                                                                                \mathbf{elif}\;x \leq 1.7 \cdot 10^{-49}:\\
                                                                                \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
                                                                                
                                                                                \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\
                                                                                \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                                                                
                                                                                \mathbf{else}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                
                                                                                \end{array}
                                                                                \end{array}
                                                                                
                                                                                Derivation
                                                                                1. Split input into 4 regimes
                                                                                2. if x < -4.6999999999999997e23 or 1.35e95 < x

                                                                                  1. Initial program 75.0%

                                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                  2. Add Preprocessing
                                                                                  3. Taylor expanded in x around inf

                                                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                    3. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                    4. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                    5. mul-1-negN/A

                                                                                      \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                    6. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                    7. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                    8. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                    9. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                    10. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                    11. lower-*.f6478.3

                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                  5. Applied rewrites78.3%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]

                                                                                  if -4.6999999999999997e23 < x < -1.6999999999999999e-283

                                                                                  1. Initial program 73.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 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. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                                    4. mul-1-negN/A

                                                                                      \[\leadsto \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                    5. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + j \cdot t\right)} \cdot c \]
                                                                                    6. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot z} + j \cdot t\right) \cdot c \]
                                                                                    7. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, z, j \cdot t\right)} \cdot c \]
                                                                                    8. neg-mul-1N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, z, j \cdot t\right) \cdot c \]
                                                                                    9. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, z, j \cdot t\right) \cdot c \]
                                                                                    10. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{t \cdot j}\right) \cdot c \]
                                                                                    11. lower-*.f6453.2

                                                                                      \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{t \cdot j}\right) \cdot c \]
                                                                                  5. Applied rewrites53.2%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-b, z, t \cdot j\right) \cdot c} \]

                                                                                  if -1.6999999999999999e-283 < x < 1.70000000000000002e-49

                                                                                  1. Initial program 83.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 b around inf

                                                                                    \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                                                                                    2. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \cdot b \]
                                                                                    3. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                                                                                    4. remove-double-negN/A

                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                                                                                    5. distribute-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                    6. sub-negN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \cdot b \]
                                                                                    7. mul-1-negN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \cdot b \]
                                                                                    8. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                                                    9. mul-1-negN/A

                                                                                      \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                                                                    10. sub-negN/A

                                                                                      \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \cdot b \]
                                                                                    11. distribute-neg-inN/A

                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                    12. distribute-lft-neg-inN/A

                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                    13. neg-mul-1N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                    14. remove-double-negN/A

                                                                                      \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                    15. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, z, a \cdot i\right)} \cdot b \]
                                                                                    16. neg-mul-1N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, z, a \cdot i\right) \cdot b \]
                                                                                    17. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                                                                    18. lower-*.f6453.6

                                                                                      \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                  5. Applied rewrites53.6%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, a \cdot i\right) \cdot b} \]

                                                                                  if 1.70000000000000002e-49 < x < 1.35e95

                                                                                  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 z around inf

                                                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                    3. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                    4. mul-1-negN/A

                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                    5. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                    6. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                                    7. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, c, x \cdot y\right)} \cdot z \]
                                                                                    8. neg-mul-1N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, c, x \cdot y\right) \cdot z \]
                                                                                    9. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                                    10. lower-*.f6452.3

                                                                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{x \cdot y}\right) \cdot z \]
                                                                                  5. Applied rewrites52.3%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, x \cdot y\right) \cdot z} \]
                                                                                3. Recombined 4 regimes into one program.
                                                                                4. Final simplification61.8%

                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.7 \cdot 10^{-283}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{elif}\;x \leq 1.7 \cdot 10^{-49}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\ \mathbf{elif}\;x \leq 1.35 \cdot 10^{+95}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                5. Add Preprocessing

                                                                                Alternative 17: 43.5% accurate, 1.4× speedup?

                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 5.6 \cdot 10^{-62}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                (FPCore (x y z t a b c i j)
                                                                                 :precision binary64
                                                                                 (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                                                                                   (if (<= x -4.7e+23)
                                                                                     t_1
                                                                                     (if (<= x -3.1e-56)
                                                                                       (* (* (- b) c) z)
                                                                                       (if (<= x -4.1e-240)
                                                                                         (* (* j c) t)
                                                                                         (if (<= x 5.6e-62) (* (* i b) a) t_1))))))
                                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                	double t_1 = fma(-a, t, (z * y)) * x;
                                                                                	double tmp;
                                                                                	if (x <= -4.7e+23) {
                                                                                		tmp = t_1;
                                                                                	} else if (x <= -3.1e-56) {
                                                                                		tmp = (-b * c) * z;
                                                                                	} else if (x <= -4.1e-240) {
                                                                                		tmp = (j * c) * t;
                                                                                	} else if (x <= 5.6e-62) {
                                                                                		tmp = (i * b) * a;
                                                                                	} else {
                                                                                		tmp = t_1;
                                                                                	}
                                                                                	return tmp;
                                                                                }
                                                                                
                                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                                	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                                                                                	tmp = 0.0
                                                                                	if (x <= -4.7e+23)
                                                                                		tmp = t_1;
                                                                                	elseif (x <= -3.1e-56)
                                                                                		tmp = Float64(Float64(Float64(-b) * c) * z);
                                                                                	elseif (x <= -4.1e-240)
                                                                                		tmp = Float64(Float64(j * c) * t);
                                                                                	elseif (x <= 5.6e-62)
                                                                                		tmp = Float64(Float64(i * b) * a);
                                                                                	else
                                                                                		tmp = t_1;
                                                                                	end
                                                                                	return tmp
                                                                                end
                                                                                
                                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4.7e+23], t$95$1, If[LessEqual[x, -3.1e-56], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 5.6e-62], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]]
                                                                                
                                                                                \begin{array}{l}
                                                                                
                                                                                \\
                                                                                \begin{array}{l}
                                                                                t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                \mathbf{elif}\;x \leq -3.1 \cdot 10^{-56}:\\
                                                                                \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
                                                                                
                                                                                \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                                \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                
                                                                                \mathbf{elif}\;x \leq 5.6 \cdot 10^{-62}:\\
                                                                                \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                
                                                                                \mathbf{else}:\\
                                                                                \;\;\;\;t\_1\\
                                                                                
                                                                                
                                                                                \end{array}
                                                                                \end{array}
                                                                                
                                                                                Derivation
                                                                                1. Split input into 4 regimes
                                                                                2. if x < -4.6999999999999997e23 or 5.60000000000000005e-62 < x

                                                                                  1. Initial program 73.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 x around inf

                                                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                  4. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                    3. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                    4. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                    5. mul-1-negN/A

                                                                                      \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                    6. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                    7. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                    8. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                    9. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                    10. *-commutativeN/A

                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                    11. lower-*.f6465.3

                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                  5. Applied rewrites65.3%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]

                                                                                  if -4.6999999999999997e23 < x < -3.09999999999999987e-56

                                                                                  1. Initial program 58.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. Applied rewrites67.2%

                                                                                    \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                  4. Taylor expanded in a around inf

                                                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                  5. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                    2. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                    3. associate-*r*N/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                    4. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                    5. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                    6. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                    7. lower-*.f6418.8

                                                                                      \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                  6. Applied rewrites18.8%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                  7. Taylor expanded in z around inf

                                                                                    \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                  8. Step-by-step derivation
                                                                                    1. *-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right) \cdot z} \]
                                                                                    2. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y + -1 \cdot \left(b \cdot c\right)\right)} \cdot z \]
                                                                                    3. mul-1-negN/A

                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                    4. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right)} \cdot z \]
                                                                                    5. lower-*.f64N/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                    6. sub-negN/A

                                                                                      \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                    7. mul-1-negN/A

                                                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                    8. +-commutativeN/A

                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                    9. mul-1-negN/A

                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                    10. *-commutativeN/A

                                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                    11. distribute-lft-neg-inN/A

                                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                    12. mul-1-negN/A

                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                    13. lower-fma.f64N/A

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                    14. mul-1-negN/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                    15. lower-neg.f64N/A

                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                    16. lower-*.f6475.5

                                                                                      \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{x \cdot y}\right) \cdot z \]
                                                                                  9. Applied rewrites75.5%

                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, x \cdot y\right) \cdot z} \]
                                                                                  10. Taylor expanded in c around inf

                                                                                    \[\leadsto \left(-1 \cdot \left(b \cdot c\right)\right) \cdot z \]
                                                                                  11. Step-by-step derivation
                                                                                    1. Applied rewrites67.5%

                                                                                      \[\leadsto \left(\left(-c\right) \cdot b\right) \cdot z \]

                                                                                    if -3.09999999999999987e-56 < x < -4.1000000000000001e-240

                                                                                    1. Initial program 79.0%

                                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                    2. Add Preprocessing
                                                                                    3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                      2. +-commutativeN/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)} \]
                                                                                      3. *-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) \]
                                                                                      4. 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) \]
                                                                                      5. 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) \]
                                                                                      6. 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)} \]
                                                                                      7. mul-1-negN/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      8. sub-negN/A

                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      9. distribute-neg-inN/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      10. distribute-lft-neg-inN/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      11. neg-mul-1N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      12. remove-double-negN/A

                                                                                        \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                      13. lower-fma.f64N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                      14. neg-mul-1N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                      15. lower-neg.f64N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                      16. lower-*.f64N/A

                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.3%

                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                    6. Taylor expanded in j around inf

                                                                                      \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                    7. Step-by-step derivation
                                                                                      1. Applied rewrites40.4%

                                                                                        \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                      2. Step-by-step derivation
                                                                                        1. Applied rewrites42.7%

                                                                                          \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                                        if -4.1000000000000001e-240 < x < 5.60000000000000005e-62

                                                                                        1. Initial program 82.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. Applied rewrites82.7%

                                                                                          \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                        4. Taylor expanded in a around inf

                                                                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                        5. Step-by-step derivation
                                                                                          1. *-commutativeN/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                          2. lower-*.f64N/A

                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                          3. associate-*r*N/A

                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                          4. lower-fma.f64N/A

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                          5. mul-1-negN/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                          6. lower-neg.f64N/A

                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                          7. lower-*.f6438.9

                                                                                            \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                        6. Applied rewrites38.9%

                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                        7. Taylor expanded in b around inf

                                                                                          \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                        8. Step-by-step derivation
                                                                                          1. Applied rewrites38.7%

                                                                                            \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                        9. Recombined 4 regimes into one program.
                                                                                        10. Final simplification54.1%

                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -3.1 \cdot 10^{-56}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 5.6 \cdot 10^{-62}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                        11. Add Preprocessing

                                                                                        Alternative 18: 58.4% accurate, 1.5× speedup?

                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 8 \cdot 10^{-81}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;x \leq 2.85 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                        (FPCore (x y z t a b c i j)
                                                                                         :precision binary64
                                                                                         (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                                                                                           (if (<= x -6.8e+25)
                                                                                             t_1
                                                                                             (if (<= x 8e-81)
                                                                                               (fma (fma (- c) z (* i a)) b (* (* j c) t))
                                                                                               (if (<= x 2.85e+91) (* (fma (- j) i (* z x)) y) t_1)))))
                                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                        	double t_1 = fma(-a, t, (z * y)) * x;
                                                                                        	double tmp;
                                                                                        	if (x <= -6.8e+25) {
                                                                                        		tmp = t_1;
                                                                                        	} else if (x <= 8e-81) {
                                                                                        		tmp = fma(fma(-c, z, (i * a)), b, ((j * c) * t));
                                                                                        	} else if (x <= 2.85e+91) {
                                                                                        		tmp = fma(-j, i, (z * x)) * y;
                                                                                        	} else {
                                                                                        		tmp = t_1;
                                                                                        	}
                                                                                        	return tmp;
                                                                                        }
                                                                                        
                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                        	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                                                                                        	tmp = 0.0
                                                                                        	if (x <= -6.8e+25)
                                                                                        		tmp = t_1;
                                                                                        	elseif (x <= 8e-81)
                                                                                        		tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(Float64(j * c) * t));
                                                                                        	elseif (x <= 2.85e+91)
                                                                                        		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
                                                                                        	else
                                                                                        		tmp = t_1;
                                                                                        	end
                                                                                        	return tmp
                                                                                        end
                                                                                        
                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -6.8e+25], t$95$1, If[LessEqual[x, 8e-81], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.85e+91], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
                                                                                        
                                                                                        \begin{array}{l}
                                                                                        
                                                                                        \\
                                                                                        \begin{array}{l}
                                                                                        t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                        \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        \mathbf{elif}\;x \leq 8 \cdot 10^{-81}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\
                                                                                        
                                                                                        \mathbf{elif}\;x \leq 2.85 \cdot 10^{+91}:\\
                                                                                        \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                                                                                        
                                                                                        \mathbf{else}:\\
                                                                                        \;\;\;\;t\_1\\
                                                                                        
                                                                                        
                                                                                        \end{array}
                                                                                        \end{array}
                                                                                        
                                                                                        Derivation
                                                                                        1. Split input into 3 regimes
                                                                                        2. if x < -6.79999999999999967e25 or 2.84999999999999982e91 < x

                                                                                          1. Initial program 75.0%

                                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                          2. Add Preprocessing
                                                                                          3. Taylor expanded in x around inf

                                                                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. *-commutativeN/A

                                                                                              \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                            2. lower-*.f64N/A

                                                                                              \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                            3. sub-negN/A

                                                                                              \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                            4. +-commutativeN/A

                                                                                              \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                            5. mul-1-negN/A

                                                                                              \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                            6. associate-*r*N/A

                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                            7. lower-fma.f64N/A

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                            8. mul-1-negN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                            9. lower-neg.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                            10. *-commutativeN/A

                                                                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                            11. lower-*.f6478.3

                                                                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                          5. Applied rewrites78.3%

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]

                                                                                          if -6.79999999999999967e25 < x < 7.9999999999999997e-81

                                                                                          1. Initial program 79.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) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                                                                                          4. Step-by-step derivation
                                                                                            1. sub-negN/A

                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                            2. +-commutativeN/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)} \]
                                                                                            3. *-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) \]
                                                                                            4. 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) \]
                                                                                            5. 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) \]
                                                                                            6. 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)} \]
                                                                                            7. mul-1-negN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            8. sub-negN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            9. distribute-neg-inN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            10. distribute-lft-neg-inN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            11. neg-mul-1N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            12. remove-double-negN/A

                                                                                              \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                            13. lower-fma.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                            14. neg-mul-1N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                            15. lower-neg.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                            16. lower-*.f64N/A

                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites65.7%

                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                          6. Taylor expanded in c around inf

                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \left(c \cdot j\right) \cdot t\right) \]
                                                                                          7. Step-by-step derivation
                                                                                            1. Applied rewrites65.7%

                                                                                              \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \left(c \cdot j\right) \cdot t\right) \]

                                                                                            if 7.9999999999999997e-81 < x < 2.84999999999999982e91

                                                                                            1. Initial program 70.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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                            4. Step-by-step derivation
                                                                                              1. *-commutativeN/A

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                              2. lower-*.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                              3. *-commutativeN/A

                                                                                                \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                              4. associate-*r*N/A

                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                              5. lower-fma.f64N/A

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                              6. mul-1-negN/A

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                              7. lower-neg.f64N/A

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                              8. *-commutativeN/A

                                                                                                \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                              9. lower-*.f6451.7

                                                                                                \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                            5. Applied rewrites51.7%

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                          8. Recombined 3 regimes into one program.
                                                                                          9. Final simplification67.7%

                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -6.8 \cdot 10^{+25}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq 8 \cdot 10^{-81}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(j \cdot c\right) \cdot t\right)\\ \mathbf{elif}\;x \leq 2.85 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                          10. Add Preprocessing

                                                                                          Alternative 19: 29.8% accurate, 1.6× speedup?

                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                          (FPCore (x y z t a b c i j)
                                                                                           :precision binary64
                                                                                           (let* ((t_1 (* (* (- a) t) x)))
                                                                                             (if (<= x -78000000.0)
                                                                                               t_1
                                                                                               (if (<= x -4.1e-240)
                                                                                                 (* (* j c) t)
                                                                                                 (if (<= x 4.4e-98)
                                                                                                   (* (* i b) a)
                                                                                                   (if (<= x 6.8e+70) (* (* (- j) y) i) t_1))))))
                                                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double t_1 = (-a * t) * x;
                                                                                          	double tmp;
                                                                                          	if (x <= -78000000.0) {
                                                                                          		tmp = t_1;
                                                                                          	} else if (x <= -4.1e-240) {
                                                                                          		tmp = (j * c) * t;
                                                                                          	} else if (x <= 4.4e-98) {
                                                                                          		tmp = (i * b) * a;
                                                                                          	} else if (x <= 6.8e+70) {
                                                                                          		tmp = (-j * y) * i;
                                                                                          	} else {
                                                                                          		tmp = t_1;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                              real(8), intent (in) :: x
                                                                                              real(8), intent (in) :: y
                                                                                              real(8), intent (in) :: z
                                                                                              real(8), intent (in) :: t
                                                                                              real(8), intent (in) :: a
                                                                                              real(8), intent (in) :: b
                                                                                              real(8), intent (in) :: c
                                                                                              real(8), intent (in) :: i
                                                                                              real(8), intent (in) :: j
                                                                                              real(8) :: t_1
                                                                                              real(8) :: tmp
                                                                                              t_1 = (-a * t) * x
                                                                                              if (x <= (-78000000.0d0)) then
                                                                                                  tmp = t_1
                                                                                              else if (x <= (-4.1d-240)) then
                                                                                                  tmp = (j * c) * t
                                                                                              else if (x <= 4.4d-98) then
                                                                                                  tmp = (i * b) * a
                                                                                              else if (x <= 6.8d+70) then
                                                                                                  tmp = (-j * y) * i
                                                                                              else
                                                                                                  tmp = t_1
                                                                                              end if
                                                                                              code = tmp
                                                                                          end function
                                                                                          
                                                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                          	double t_1 = (-a * t) * x;
                                                                                          	double tmp;
                                                                                          	if (x <= -78000000.0) {
                                                                                          		tmp = t_1;
                                                                                          	} else if (x <= -4.1e-240) {
                                                                                          		tmp = (j * c) * t;
                                                                                          	} else if (x <= 4.4e-98) {
                                                                                          		tmp = (i * b) * a;
                                                                                          	} else if (x <= 6.8e+70) {
                                                                                          		tmp = (-j * y) * i;
                                                                                          	} else {
                                                                                          		tmp = t_1;
                                                                                          	}
                                                                                          	return tmp;
                                                                                          }
                                                                                          
                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                          	t_1 = (-a * t) * x
                                                                                          	tmp = 0
                                                                                          	if x <= -78000000.0:
                                                                                          		tmp = t_1
                                                                                          	elif x <= -4.1e-240:
                                                                                          		tmp = (j * c) * t
                                                                                          	elif x <= 4.4e-98:
                                                                                          		tmp = (i * b) * a
                                                                                          	elif x <= 6.8e+70:
                                                                                          		tmp = (-j * y) * i
                                                                                          	else:
                                                                                          		tmp = t_1
                                                                                          	return tmp
                                                                                          
                                                                                          function code(x, y, z, t, a, b, c, i, j)
                                                                                          	t_1 = Float64(Float64(Float64(-a) * t) * x)
                                                                                          	tmp = 0.0
                                                                                          	if (x <= -78000000.0)
                                                                                          		tmp = t_1;
                                                                                          	elseif (x <= -4.1e-240)
                                                                                          		tmp = Float64(Float64(j * c) * t);
                                                                                          	elseif (x <= 4.4e-98)
                                                                                          		tmp = Float64(Float64(i * b) * a);
                                                                                          	elseif (x <= 6.8e+70)
                                                                                          		tmp = Float64(Float64(Float64(-j) * y) * i);
                                                                                          	else
                                                                                          		tmp = t_1;
                                                                                          	end
                                                                                          	return tmp
                                                                                          end
                                                                                          
                                                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                          	t_1 = (-a * t) * x;
                                                                                          	tmp = 0.0;
                                                                                          	if (x <= -78000000.0)
                                                                                          		tmp = t_1;
                                                                                          	elseif (x <= -4.1e-240)
                                                                                          		tmp = (j * c) * t;
                                                                                          	elseif (x <= 4.4e-98)
                                                                                          		tmp = (i * b) * a;
                                                                                          	elseif (x <= 6.8e+70)
                                                                                          		tmp = (-j * y) * i;
                                                                                          	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[((-a) * t), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -78000000.0], t$95$1, If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 4.4e-98], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 6.8e+70], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]]
                                                                                          
                                                                                          \begin{array}{l}
                                                                                          
                                                                                          \\
                                                                                          \begin{array}{l}
                                                                                          t_1 := \left(\left(-a\right) \cdot t\right) \cdot x\\
                                                                                          \mathbf{if}\;x \leq -78000000:\\
                                                                                          \;\;\;\;t\_1\\
                                                                                          
                                                                                          \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                                          \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                          
                                                                                          \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\
                                                                                          \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                          
                                                                                          \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\
                                                                                          \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                                                                                          
                                                                                          \mathbf{else}:\\
                                                                                          \;\;\;\;t\_1\\
                                                                                          
                                                                                          
                                                                                          \end{array}
                                                                                          \end{array}
                                                                                          
                                                                                          Derivation
                                                                                          1. Split input into 4 regimes
                                                                                          2. if x < -7.8e7 or 6.8000000000000002e70 < x

                                                                                            1. Initial program 74.2%

                                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                            2. Add Preprocessing
                                                                                            3. Taylor expanded in x around inf

                                                                                              \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                            4. Step-by-step derivation
                                                                                              1. *-commutativeN/A

                                                                                                \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                              2. lower-*.f64N/A

                                                                                                \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                              3. sub-negN/A

                                                                                                \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                              4. +-commutativeN/A

                                                                                                \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                              5. mul-1-negN/A

                                                                                                \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                              6. associate-*r*N/A

                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                              7. lower-fma.f64N/A

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                              8. mul-1-negN/A

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                              9. lower-neg.f64N/A

                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                              10. *-commutativeN/A

                                                                                                \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                              11. lower-*.f6472.4

                                                                                                \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                            5. Applied rewrites72.4%

                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                                                                            6. Taylor expanded in a around inf

                                                                                              \[\leadsto \left(-1 \cdot \left(a \cdot t\right)\right) \cdot x \]
                                                                                            7. Step-by-step derivation
                                                                                              1. Applied rewrites52.3%

                                                                                                \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]

                                                                                              if -7.8e7 < x < -4.1000000000000001e-240

                                                                                              1. Initial program 77.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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                2. +-commutativeN/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)} \]
                                                                                                3. *-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) \]
                                                                                                4. 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) \]
                                                                                                5. 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) \]
                                                                                                6. 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)} \]
                                                                                                7. mul-1-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                8. sub-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                9. distribute-neg-inN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                10. distribute-lft-neg-inN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                11. neg-mul-1N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                12. remove-double-negN/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                13. lower-fma.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                14. neg-mul-1N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                15. lower-neg.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                16. lower-*.f64N/A

                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.1%

                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                              6. Taylor expanded in j around inf

                                                                                                \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                              7. Step-by-step derivation
                                                                                                1. Applied rewrites39.8%

                                                                                                  \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                2. Step-by-step derivation
                                                                                                  1. Applied rewrites41.9%

                                                                                                    \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                                                  if -4.1000000000000001e-240 < x < 4.39999999999999993e-98

                                                                                                  1. Initial program 82.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. Applied rewrites82.7%

                                                                                                    \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                  4. Taylor expanded in a around inf

                                                                                                    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                  5. Step-by-step derivation
                                                                                                    1. *-commutativeN/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                    2. lower-*.f64N/A

                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                    3. associate-*r*N/A

                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                    4. lower-fma.f64N/A

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                    5. mul-1-negN/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                    6. lower-neg.f64N/A

                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                    7. lower-*.f6441.5

                                                                                                      \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                  6. Applied rewrites41.5%

                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                  7. Taylor expanded in b around inf

                                                                                                    \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                                  8. Step-by-step derivation
                                                                                                    1. Applied rewrites41.2%

                                                                                                      \[\leadsto \left(b \cdot i\right) \cdot a \]

                                                                                                    if 4.39999999999999993e-98 < x < 6.8000000000000002e70

                                                                                                    1. Initial program 70.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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                                    4. Step-by-step derivation
                                                                                                      1. *-commutativeN/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                      2. lower-*.f64N/A

                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                      3. *-commutativeN/A

                                                                                                        \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                                      4. associate-*r*N/A

                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                                      5. lower-fma.f64N/A

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                                      6. mul-1-negN/A

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                                      7. lower-neg.f64N/A

                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                                      8. *-commutativeN/A

                                                                                                        \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                      9. lower-*.f6449.5

                                                                                                        \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                    5. Applied rewrites49.5%

                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                                    6. Taylor expanded in x around 0

                                                                                                      \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(j \cdot y\right)\right)} \]
                                                                                                    7. Step-by-step derivation
                                                                                                      1. Applied rewrites29.5%

                                                                                                        \[\leadsto \left(-i\right) \cdot \color{blue}{\left(y \cdot j\right)} \]
                                                                                                    8. Recombined 4 regimes into one program.
                                                                                                    9. Final simplification43.6%

                                                                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 6.8 \cdot 10^{+70}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \end{array} \]
                                                                                                    10. Add Preprocessing

                                                                                                    Alternative 20: 30.4% accurate, 1.6× speedup?

                                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 2.02 \cdot 10^{+71}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                    (FPCore (x y z t a b c i j)
                                                                                                     :precision binary64
                                                                                                     (let* ((t_1 (* (* (- t) x) a)))
                                                                                                       (if (<= x -78000000.0)
                                                                                                         t_1
                                                                                                         (if (<= x -4.1e-240)
                                                                                                           (* (* j c) t)
                                                                                                           (if (<= x 4.4e-98)
                                                                                                             (* (* i b) a)
                                                                                                             (if (<= x 2.02e+71) (* (* (- j) y) i) t_1))))))
                                                                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                    	double t_1 = (-t * x) * a;
                                                                                                    	double tmp;
                                                                                                    	if (x <= -78000000.0) {
                                                                                                    		tmp = t_1;
                                                                                                    	} else if (x <= -4.1e-240) {
                                                                                                    		tmp = (j * c) * t;
                                                                                                    	} else if (x <= 4.4e-98) {
                                                                                                    		tmp = (i * b) * a;
                                                                                                    	} else if (x <= 2.02e+71) {
                                                                                                    		tmp = (-j * y) * i;
                                                                                                    	} 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 = (-t * x) * a
                                                                                                        if (x <= (-78000000.0d0)) then
                                                                                                            tmp = t_1
                                                                                                        else if (x <= (-4.1d-240)) then
                                                                                                            tmp = (j * c) * t
                                                                                                        else if (x <= 4.4d-98) then
                                                                                                            tmp = (i * b) * a
                                                                                                        else if (x <= 2.02d+71) then
                                                                                                            tmp = (-j * y) * i
                                                                                                        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 = (-t * x) * a;
                                                                                                    	double tmp;
                                                                                                    	if (x <= -78000000.0) {
                                                                                                    		tmp = t_1;
                                                                                                    	} else if (x <= -4.1e-240) {
                                                                                                    		tmp = (j * c) * t;
                                                                                                    	} else if (x <= 4.4e-98) {
                                                                                                    		tmp = (i * b) * a;
                                                                                                    	} else if (x <= 2.02e+71) {
                                                                                                    		tmp = (-j * y) * i;
                                                                                                    	} else {
                                                                                                    		tmp = t_1;
                                                                                                    	}
                                                                                                    	return tmp;
                                                                                                    }
                                                                                                    
                                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                                    	t_1 = (-t * x) * a
                                                                                                    	tmp = 0
                                                                                                    	if x <= -78000000.0:
                                                                                                    		tmp = t_1
                                                                                                    	elif x <= -4.1e-240:
                                                                                                    		tmp = (j * c) * t
                                                                                                    	elif x <= 4.4e-98:
                                                                                                    		tmp = (i * b) * a
                                                                                                    	elif x <= 2.02e+71:
                                                                                                    		tmp = (-j * y) * i
                                                                                                    	else:
                                                                                                    		tmp = t_1
                                                                                                    	return tmp
                                                                                                    
                                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                                    	t_1 = Float64(Float64(Float64(-t) * x) * a)
                                                                                                    	tmp = 0.0
                                                                                                    	if (x <= -78000000.0)
                                                                                                    		tmp = t_1;
                                                                                                    	elseif (x <= -4.1e-240)
                                                                                                    		tmp = Float64(Float64(j * c) * t);
                                                                                                    	elseif (x <= 4.4e-98)
                                                                                                    		tmp = Float64(Float64(i * b) * a);
                                                                                                    	elseif (x <= 2.02e+71)
                                                                                                    		tmp = Float64(Float64(Float64(-j) * y) * i);
                                                                                                    	else
                                                                                                    		tmp = t_1;
                                                                                                    	end
                                                                                                    	return tmp
                                                                                                    end
                                                                                                    
                                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                    	t_1 = (-t * x) * a;
                                                                                                    	tmp = 0.0;
                                                                                                    	if (x <= -78000000.0)
                                                                                                    		tmp = t_1;
                                                                                                    	elseif (x <= -4.1e-240)
                                                                                                    		tmp = (j * c) * t;
                                                                                                    	elseif (x <= 4.4e-98)
                                                                                                    		tmp = (i * b) * a;
                                                                                                    	elseif (x <= 2.02e+71)
                                                                                                    		tmp = (-j * y) * i;
                                                                                                    	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[((-t) * x), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -78000000.0], t$95$1, If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 4.4e-98], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 2.02e+71], N[(N[((-j) * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]]
                                                                                                    
                                                                                                    \begin{array}{l}
                                                                                                    
                                                                                                    \\
                                                                                                    \begin{array}{l}
                                                                                                    t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\
                                                                                                    \mathbf{if}\;x \leq -78000000:\\
                                                                                                    \;\;\;\;t\_1\\
                                                                                                    
                                                                                                    \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                                                    \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                                    
                                                                                                    \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\
                                                                                                    \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                                    
                                                                                                    \mathbf{elif}\;x \leq 2.02 \cdot 10^{+71}:\\
                                                                                                    \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\
                                                                                                    
                                                                                                    \mathbf{else}:\\
                                                                                                    \;\;\;\;t\_1\\
                                                                                                    
                                                                                                    
                                                                                                    \end{array}
                                                                                                    \end{array}
                                                                                                    
                                                                                                    Derivation
                                                                                                    1. Split input into 4 regimes
                                                                                                    2. if x < -7.8e7 or 2.01999999999999995e71 < x

                                                                                                      1. Initial program 74.2%

                                                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                      2. Add Preprocessing
                                                                                                      3. Taylor expanded in x around inf

                                                                                                        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                      4. Step-by-step derivation
                                                                                                        1. *-commutativeN/A

                                                                                                          \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                        2. lower-*.f64N/A

                                                                                                          \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                        3. sub-negN/A

                                                                                                          \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                        4. +-commutativeN/A

                                                                                                          \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                        5. mul-1-negN/A

                                                                                                          \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                        6. associate-*r*N/A

                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                        7. lower-fma.f64N/A

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                        8. mul-1-negN/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                        9. lower-neg.f64N/A

                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                        10. *-commutativeN/A

                                                                                                          \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                        11. lower-*.f6472.4

                                                                                                          \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                      5. Applied rewrites72.4%

                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                                                                                      6. Taylor expanded in a around inf

                                                                                                        \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                                                                      7. Step-by-step derivation
                                                                                                        1. Applied rewrites49.3%

                                                                                                          \[\leadsto \left(-a\right) \cdot \color{blue}{\left(t \cdot x\right)} \]

                                                                                                        if -7.8e7 < x < -4.1000000000000001e-240

                                                                                                        1. Initial program 77.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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                          2. +-commutativeN/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)} \]
                                                                                                          3. *-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) \]
                                                                                                          4. 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) \]
                                                                                                          5. 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) \]
                                                                                                          6. 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)} \]
                                                                                                          7. mul-1-negN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          8. sub-negN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          9. distribute-neg-inN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          10. distribute-lft-neg-inN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          11. neg-mul-1N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          12. remove-double-negN/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                          13. lower-fma.f64N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                          14. neg-mul-1N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                          15. lower-neg.f64N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                          16. lower-*.f64N/A

                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.1%

                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                        6. Taylor expanded in j around inf

                                                                                                          \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                        7. Step-by-step derivation
                                                                                                          1. Applied rewrites39.8%

                                                                                                            \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                          2. Step-by-step derivation
                                                                                                            1. Applied rewrites41.9%

                                                                                                              \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                                                            if -4.1000000000000001e-240 < x < 4.39999999999999993e-98

                                                                                                            1. Initial program 82.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. Applied rewrites82.7%

                                                                                                              \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                            4. Taylor expanded in a around inf

                                                                                                              \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                            5. Step-by-step derivation
                                                                                                              1. *-commutativeN/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                              2. lower-*.f64N/A

                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                              3. associate-*r*N/A

                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                              4. lower-fma.f64N/A

                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                              5. mul-1-negN/A

                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                              6. lower-neg.f64N/A

                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                              7. lower-*.f6441.5

                                                                                                                \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                            6. Applied rewrites41.5%

                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                            7. Taylor expanded in b around inf

                                                                                                              \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                                            8. Step-by-step derivation
                                                                                                              1. Applied rewrites41.2%

                                                                                                                \[\leadsto \left(b \cdot i\right) \cdot a \]

                                                                                                              if 4.39999999999999993e-98 < x < 2.01999999999999995e71

                                                                                                              1. Initial program 70.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}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                                              4. Step-by-step derivation
                                                                                                                1. *-commutativeN/A

                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                2. lower-*.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                3. *-commutativeN/A

                                                                                                                  \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                                                4. associate-*r*N/A

                                                                                                                  \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                                                5. lower-fma.f64N/A

                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                                                6. mul-1-negN/A

                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                                                7. lower-neg.f64N/A

                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                                                8. *-commutativeN/A

                                                                                                                  \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                                9. lower-*.f6449.5

                                                                                                                  \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                              5. Applied rewrites49.5%

                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                                              6. Taylor expanded in x around 0

                                                                                                                \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(j \cdot y\right)\right)} \]
                                                                                                              7. Step-by-step derivation
                                                                                                                1. Applied rewrites29.5%

                                                                                                                  \[\leadsto \left(-i\right) \cdot \color{blue}{\left(y \cdot j\right)} \]
                                                                                                              8. Recombined 4 regimes into one program.
                                                                                                              9. Final simplification42.5%

                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 4.4 \cdot 10^{-98}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 2.02 \cdot 10^{+71}:\\ \;\;\;\;\left(\left(-j\right) \cdot y\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \end{array} \]
                                                                                                              10. Add Preprocessing

                                                                                                              Alternative 21: 30.7% accurate, 1.6× speedup?

                                                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 3 \cdot 10^{+108}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                              (FPCore (x y z t a b c i j)
                                                                                                               :precision binary64
                                                                                                               (let* ((t_1 (* (* (- t) x) a)))
                                                                                                                 (if (<= x -78000000.0)
                                                                                                                   t_1
                                                                                                                   (if (<= x -4.1e-240)
                                                                                                                     (* (* j c) t)
                                                                                                                     (if (<= x 1.3e-34)
                                                                                                                       (* (* i b) a)
                                                                                                                       (if (<= x 3e+108) (* (* z x) y) t_1))))))
                                                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                              	double t_1 = (-t * x) * a;
                                                                                                              	double tmp;
                                                                                                              	if (x <= -78000000.0) {
                                                                                                              		tmp = t_1;
                                                                                                              	} else if (x <= -4.1e-240) {
                                                                                                              		tmp = (j * c) * t;
                                                                                                              	} else if (x <= 1.3e-34) {
                                                                                                              		tmp = (i * b) * a;
                                                                                                              	} else if (x <= 3e+108) {
                                                                                                              		tmp = (z * x) * y;
                                                                                                              	} else {
                                                                                                              		tmp = t_1;
                                                                                                              	}
                                                                                                              	return tmp;
                                                                                                              }
                                                                                                              
                                                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                  real(8), intent (in) :: x
                                                                                                                  real(8), intent (in) :: y
                                                                                                                  real(8), intent (in) :: z
                                                                                                                  real(8), intent (in) :: t
                                                                                                                  real(8), intent (in) :: a
                                                                                                                  real(8), intent (in) :: b
                                                                                                                  real(8), intent (in) :: c
                                                                                                                  real(8), intent (in) :: i
                                                                                                                  real(8), intent (in) :: j
                                                                                                                  real(8) :: t_1
                                                                                                                  real(8) :: tmp
                                                                                                                  t_1 = (-t * x) * a
                                                                                                                  if (x <= (-78000000.0d0)) then
                                                                                                                      tmp = t_1
                                                                                                                  else if (x <= (-4.1d-240)) then
                                                                                                                      tmp = (j * c) * t
                                                                                                                  else if (x <= 1.3d-34) then
                                                                                                                      tmp = (i * b) * a
                                                                                                                  else if (x <= 3d+108) then
                                                                                                                      tmp = (z * x) * y
                                                                                                                  else
                                                                                                                      tmp = t_1
                                                                                                                  end if
                                                                                                                  code = tmp
                                                                                                              end function
                                                                                                              
                                                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                              	double t_1 = (-t * x) * a;
                                                                                                              	double tmp;
                                                                                                              	if (x <= -78000000.0) {
                                                                                                              		tmp = t_1;
                                                                                                              	} else if (x <= -4.1e-240) {
                                                                                                              		tmp = (j * c) * t;
                                                                                                              	} else if (x <= 1.3e-34) {
                                                                                                              		tmp = (i * b) * a;
                                                                                                              	} else if (x <= 3e+108) {
                                                                                                              		tmp = (z * x) * y;
                                                                                                              	} else {
                                                                                                              		tmp = t_1;
                                                                                                              	}
                                                                                                              	return tmp;
                                                                                                              }
                                                                                                              
                                                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                                                              	t_1 = (-t * x) * a
                                                                                                              	tmp = 0
                                                                                                              	if x <= -78000000.0:
                                                                                                              		tmp = t_1
                                                                                                              	elif x <= -4.1e-240:
                                                                                                              		tmp = (j * c) * t
                                                                                                              	elif x <= 1.3e-34:
                                                                                                              		tmp = (i * b) * a
                                                                                                              	elif x <= 3e+108:
                                                                                                              		tmp = (z * x) * y
                                                                                                              	else:
                                                                                                              		tmp = t_1
                                                                                                              	return tmp
                                                                                                              
                                                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                                                              	t_1 = Float64(Float64(Float64(-t) * x) * a)
                                                                                                              	tmp = 0.0
                                                                                                              	if (x <= -78000000.0)
                                                                                                              		tmp = t_1;
                                                                                                              	elseif (x <= -4.1e-240)
                                                                                                              		tmp = Float64(Float64(j * c) * t);
                                                                                                              	elseif (x <= 1.3e-34)
                                                                                                              		tmp = Float64(Float64(i * b) * a);
                                                                                                              	elseif (x <= 3e+108)
                                                                                                              		tmp = Float64(Float64(z * x) * y);
                                                                                                              	else
                                                                                                              		tmp = t_1;
                                                                                                              	end
                                                                                                              	return tmp
                                                                                                              end
                                                                                                              
                                                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                              	t_1 = (-t * x) * a;
                                                                                                              	tmp = 0.0;
                                                                                                              	if (x <= -78000000.0)
                                                                                                              		tmp = t_1;
                                                                                                              	elseif (x <= -4.1e-240)
                                                                                                              		tmp = (j * c) * t;
                                                                                                              	elseif (x <= 1.3e-34)
                                                                                                              		tmp = (i * b) * a;
                                                                                                              	elseif (x <= 3e+108)
                                                                                                              		tmp = (z * x) * y;
                                                                                                              	else
                                                                                                              		tmp = t_1;
                                                                                                              	end
                                                                                                              	tmp_2 = tmp;
                                                                                                              end
                                                                                                              
                                                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -78000000.0], t$95$1, If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 1.3e-34], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 3e+108], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
                                                                                                              
                                                                                                              \begin{array}{l}
                                                                                                              
                                                                                                              \\
                                                                                                              \begin{array}{l}
                                                                                                              t_1 := \left(\left(-t\right) \cdot x\right) \cdot a\\
                                                                                                              \mathbf{if}\;x \leq -78000000:\\
                                                                                                              \;\;\;\;t\_1\\
                                                                                                              
                                                                                                              \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                                                              \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                                              
                                                                                                              \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\
                                                                                                              \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                                              
                                                                                                              \mathbf{elif}\;x \leq 3 \cdot 10^{+108}:\\
                                                                                                              \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                              
                                                                                                              \mathbf{else}:\\
                                                                                                              \;\;\;\;t\_1\\
                                                                                                              
                                                                                                              
                                                                                                              \end{array}
                                                                                                              \end{array}
                                                                                                              
                                                                                                              Derivation
                                                                                                              1. Split input into 4 regimes
                                                                                                              2. if x < -7.8e7 or 2.99999999999999984e108 < x

                                                                                                                1. Initial program 72.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 x around inf

                                                                                                                  \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                                4. Step-by-step derivation
                                                                                                                  1. *-commutativeN/A

                                                                                                                    \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                  2. lower-*.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                  3. sub-negN/A

                                                                                                                    \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                                  4. +-commutativeN/A

                                                                                                                    \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                                  5. mul-1-negN/A

                                                                                                                    \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                                  6. associate-*r*N/A

                                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                                  7. lower-fma.f64N/A

                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                                  8. mul-1-negN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                                  9. lower-neg.f64N/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                                  10. *-commutativeN/A

                                                                                                                    \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                  11. lower-*.f6473.1

                                                                                                                    \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                5. Applied rewrites73.1%

                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                                                                                                6. Taylor expanded in a around inf

                                                                                                                  \[\leadsto -1 \cdot \color{blue}{\left(a \cdot \left(t \cdot x\right)\right)} \]
                                                                                                                7. Step-by-step derivation
                                                                                                                  1. Applied rewrites50.8%

                                                                                                                    \[\leadsto \left(-a\right) \cdot \color{blue}{\left(t \cdot x\right)} \]

                                                                                                                  if -7.8e7 < x < -4.1000000000000001e-240

                                                                                                                  1. Initial program 77.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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                    2. +-commutativeN/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)} \]
                                                                                                                    3. *-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) \]
                                                                                                                    4. 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) \]
                                                                                                                    5. 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) \]
                                                                                                                    6. 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)} \]
                                                                                                                    7. mul-1-negN/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    8. sub-negN/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    9. distribute-neg-inN/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    10. distribute-lft-neg-inN/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    11. neg-mul-1N/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    12. remove-double-negN/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                    13. lower-fma.f64N/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                    14. neg-mul-1N/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                    15. lower-neg.f64N/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                    16. lower-*.f64N/A

                                                                                                                      \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.1%

                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                  6. Taylor expanded in j around inf

                                                                                                                    \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                  7. Step-by-step derivation
                                                                                                                    1. Applied rewrites39.8%

                                                                                                                      \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                    2. Step-by-step derivation
                                                                                                                      1. Applied rewrites41.9%

                                                                                                                        \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                                                                      if -4.1000000000000001e-240 < x < 1.3e-34

                                                                                                                      1. Initial program 79.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. Applied rewrites79.2%

                                                                                                                        \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                                      4. Taylor expanded in a around inf

                                                                                                                        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                                      5. Step-by-step derivation
                                                                                                                        1. *-commutativeN/A

                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                        2. lower-*.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                        3. associate-*r*N/A

                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                                        4. lower-fma.f64N/A

                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                                        5. mul-1-negN/A

                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                                        6. lower-neg.f64N/A

                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                                        7. lower-*.f6440.6

                                                                                                                          \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                                      6. Applied rewrites40.6%

                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                                      7. Taylor expanded in b around inf

                                                                                                                        \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                                                      8. Step-by-step derivation
                                                                                                                        1. Applied rewrites37.9%

                                                                                                                          \[\leadsto \left(b \cdot i\right) \cdot a \]

                                                                                                                        if 1.3e-34 < x < 2.99999999999999984e108

                                                                                                                        1. Initial program 77.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 inf

                                                                                                                          \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                                                        4. Step-by-step derivation
                                                                                                                          1. *-commutativeN/A

                                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                          2. lower-*.f64N/A

                                                                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                          3. *-commutativeN/A

                                                                                                                            \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                                                          4. associate-*r*N/A

                                                                                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                                                          5. lower-fma.f64N/A

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                                                          6. mul-1-negN/A

                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                                                          7. lower-neg.f64N/A

                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                                                          8. *-commutativeN/A

                                                                                                                            \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                                          9. lower-*.f6451.7

                                                                                                                            \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                                        5. Applied rewrites51.7%

                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                                                        6. Taylor expanded in x around inf

                                                                                                                          \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                                                                        7. Step-by-step derivation
                                                                                                                          1. Applied rewrites29.1%

                                                                                                                            \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                                                                        8. Recombined 4 regimes into one program.
                                                                                                                        9. Final simplification42.2%

                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{elif}\;x \leq 3 \cdot 10^{+108}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\ \end{array} \]
                                                                                                                        10. Add Preprocessing

                                                                                                                        Alternative 22: 52.5% accurate, 2.0× speedup?

                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 2.95 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                                                                                                        (FPCore (x y z t a b c i j)
                                                                                                                         :precision binary64
                                                                                                                         (let* ((t_1 (* (fma (- a) t (* z y)) x)))
                                                                                                                           (if (<= x -4.7e+23)
                                                                                                                             t_1
                                                                                                                             (if (<= x 2.95e+91) (* (fma (- b) z (* j t)) c) t_1))))
                                                                                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                        	double t_1 = fma(-a, t, (z * y)) * x;
                                                                                                                        	double tmp;
                                                                                                                        	if (x <= -4.7e+23) {
                                                                                                                        		tmp = t_1;
                                                                                                                        	} else if (x <= 2.95e+91) {
                                                                                                                        		tmp = fma(-b, z, (j * t)) * c;
                                                                                                                        	} else {
                                                                                                                        		tmp = t_1;
                                                                                                                        	}
                                                                                                                        	return tmp;
                                                                                                                        }
                                                                                                                        
                                                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                                                        	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
                                                                                                                        	tmp = 0.0
                                                                                                                        	if (x <= -4.7e+23)
                                                                                                                        		tmp = t_1;
                                                                                                                        	elseif (x <= 2.95e+91)
                                                                                                                        		tmp = Float64(fma(Float64(-b), z, Float64(j * t)) * c);
                                                                                                                        	else
                                                                                                                        		tmp = t_1;
                                                                                                                        	end
                                                                                                                        	return tmp
                                                                                                                        end
                                                                                                                        
                                                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4.7e+23], t$95$1, If[LessEqual[x, 2.95e+91], N[(N[((-b) * z + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]
                                                                                                                        
                                                                                                                        \begin{array}{l}
                                                                                                                        
                                                                                                                        \\
                                                                                                                        \begin{array}{l}
                                                                                                                        t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
                                                                                                                        \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\
                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                        
                                                                                                                        \mathbf{elif}\;x \leq 2.95 \cdot 10^{+91}:\\
                                                                                                                        \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\
                                                                                                                        
                                                                                                                        \mathbf{else}:\\
                                                                                                                        \;\;\;\;t\_1\\
                                                                                                                        
                                                                                                                        
                                                                                                                        \end{array}
                                                                                                                        \end{array}
                                                                                                                        
                                                                                                                        Derivation
                                                                                                                        1. Split input into 2 regimes
                                                                                                                        2. if x < -4.6999999999999997e23 or 2.9500000000000001e91 < x

                                                                                                                          1. Initial program 75.0%

                                                                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                                          2. Add Preprocessing
                                                                                                                          3. Taylor expanded in x around inf

                                                                                                                            \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                                          4. Step-by-step derivation
                                                                                                                            1. *-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                            2. lower-*.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                            3. sub-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                                            4. +-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                                            5. mul-1-negN/A

                                                                                                                              \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                                            6. associate-*r*N/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                                            7. lower-fma.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                                            8. mul-1-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                                            9. lower-neg.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                                            10. *-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                            11. lower-*.f6478.3

                                                                                                                              \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                          5. Applied rewrites78.3%

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]

                                                                                                                          if -4.6999999999999997e23 < x < 2.9500000000000001e91

                                                                                                                          1. Initial program 77.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. sub-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                                                                                            4. mul-1-negN/A

                                                                                                                              \[\leadsto \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                                                                            5. +-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + j \cdot t\right)} \cdot c \]
                                                                                                                            6. associate-*r*N/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot z} + j \cdot t\right) \cdot c \]
                                                                                                                            7. lower-fma.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, z, j \cdot t\right)} \cdot c \]
                                                                                                                            8. neg-mul-1N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, z, j \cdot t\right) \cdot c \]
                                                                                                                            9. lower-neg.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, z, j \cdot t\right) \cdot c \]
                                                                                                                            10. *-commutativeN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{t \cdot j}\right) \cdot c \]
                                                                                                                            11. lower-*.f6443.9

                                                                                                                              \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{t \cdot j}\right) \cdot c \]
                                                                                                                          5. Applied rewrites43.9%

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-b, z, t \cdot j\right) \cdot c} \]
                                                                                                                        3. Recombined 2 regimes into one program.
                                                                                                                        4. Final simplification55.7%

                                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.7 \cdot 10^{+23}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq 2.95 \cdot 10^{+91}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                                                                                                                        5. Add Preprocessing

                                                                                                                        Alternative 23: 30.3% accurate, 2.1× speedup?

                                                                                                                        \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \end{array} \]
                                                                                                                        (FPCore (x y z t a b c i j)
                                                                                                                         :precision binary64
                                                                                                                         (if (<= x -78000000.0)
                                                                                                                           (* (* y x) z)
                                                                                                                           (if (<= x -4.1e-240)
                                                                                                                             (* (* j c) t)
                                                                                                                             (if (<= x 1.3e-34) (* (* i b) a) (* (* 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 (x <= -78000000.0) {
                                                                                                                        		tmp = (y * x) * z;
                                                                                                                        	} else if (x <= -4.1e-240) {
                                                                                                                        		tmp = (j * c) * t;
                                                                                                                        	} else if (x <= 1.3e-34) {
                                                                                                                        		tmp = (i * b) * a;
                                                                                                                        	} else {
                                                                                                                        		tmp = (z * x) * y;
                                                                                                                        	}
                                                                                                                        	return tmp;
                                                                                                                        }
                                                                                                                        
                                                                                                                        real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                                                            real(8), intent (in) :: x
                                                                                                                            real(8), intent (in) :: y
                                                                                                                            real(8), intent (in) :: z
                                                                                                                            real(8), intent (in) :: t
                                                                                                                            real(8), intent (in) :: a
                                                                                                                            real(8), intent (in) :: b
                                                                                                                            real(8), intent (in) :: c
                                                                                                                            real(8), intent (in) :: i
                                                                                                                            real(8), intent (in) :: j
                                                                                                                            real(8) :: tmp
                                                                                                                            if (x <= (-78000000.0d0)) then
                                                                                                                                tmp = (y * x) * z
                                                                                                                            else if (x <= (-4.1d-240)) then
                                                                                                                                tmp = (j * c) * t
                                                                                                                            else if (x <= 1.3d-34) then
                                                                                                                                tmp = (i * b) * a
                                                                                                                            else
                                                                                                                                tmp = (z * x) * y
                                                                                                                            end if
                                                                                                                            code = tmp
                                                                                                                        end function
                                                                                                                        
                                                                                                                        public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                                                        	double tmp;
                                                                                                                        	if (x <= -78000000.0) {
                                                                                                                        		tmp = (y * x) * z;
                                                                                                                        	} else if (x <= -4.1e-240) {
                                                                                                                        		tmp = (j * c) * t;
                                                                                                                        	} else if (x <= 1.3e-34) {
                                                                                                                        		tmp = (i * b) * a;
                                                                                                                        	} else {
                                                                                                                        		tmp = (z * x) * y;
                                                                                                                        	}
                                                                                                                        	return tmp;
                                                                                                                        }
                                                                                                                        
                                                                                                                        def code(x, y, z, t, a, b, c, i, j):
                                                                                                                        	tmp = 0
                                                                                                                        	if x <= -78000000.0:
                                                                                                                        		tmp = (y * x) * z
                                                                                                                        	elif x <= -4.1e-240:
                                                                                                                        		tmp = (j * c) * t
                                                                                                                        	elif x <= 1.3e-34:
                                                                                                                        		tmp = (i * b) * a
                                                                                                                        	else:
                                                                                                                        		tmp = (z * x) * y
                                                                                                                        	return tmp
                                                                                                                        
                                                                                                                        function code(x, y, z, t, a, b, c, i, j)
                                                                                                                        	tmp = 0.0
                                                                                                                        	if (x <= -78000000.0)
                                                                                                                        		tmp = Float64(Float64(y * x) * z);
                                                                                                                        	elseif (x <= -4.1e-240)
                                                                                                                        		tmp = Float64(Float64(j * c) * t);
                                                                                                                        	elseif (x <= 1.3e-34)
                                                                                                                        		tmp = Float64(Float64(i * b) * a);
                                                                                                                        	else
                                                                                                                        		tmp = Float64(Float64(z * x) * y);
                                                                                                                        	end
                                                                                                                        	return tmp
                                                                                                                        end
                                                                                                                        
                                                                                                                        function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                                                        	tmp = 0.0;
                                                                                                                        	if (x <= -78000000.0)
                                                                                                                        		tmp = (y * x) * z;
                                                                                                                        	elseif (x <= -4.1e-240)
                                                                                                                        		tmp = (j * c) * t;
                                                                                                                        	elseif (x <= 1.3e-34)
                                                                                                                        		tmp = (i * b) * a;
                                                                                                                        	else
                                                                                                                        		tmp = (z * x) * y;
                                                                                                                        	end
                                                                                                                        	tmp_2 = tmp;
                                                                                                                        end
                                                                                                                        
                                                                                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -78000000.0], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -4.1e-240], N[(N[(j * c), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 1.3e-34], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
                                                                                                                        
                                                                                                                        \begin{array}{l}
                                                                                                                        
                                                                                                                        \\
                                                                                                                        \begin{array}{l}
                                                                                                                        \mathbf{if}\;x \leq -78000000:\\
                                                                                                                        \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                                                        
                                                                                                                        \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\
                                                                                                                        \;\;\;\;\left(j \cdot c\right) \cdot t\\
                                                                                                                        
                                                                                                                        \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\
                                                                                                                        \;\;\;\;\left(i \cdot b\right) \cdot a\\
                                                                                                                        
                                                                                                                        \mathbf{else}:\\
                                                                                                                        \;\;\;\;\left(z \cdot x\right) \cdot y\\
                                                                                                                        
                                                                                                                        
                                                                                                                        \end{array}
                                                                                                                        \end{array}
                                                                                                                        
                                                                                                                        Derivation
                                                                                                                        1. Split input into 4 regimes
                                                                                                                        2. if x < -7.8e7

                                                                                                                          1. Initial program 72.6%

                                                                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                                          2. Add Preprocessing
                                                                                                                          3. Applied rewrites78.7%

                                                                                                                            \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                                          4. Taylor expanded in a around inf

                                                                                                                            \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                                          5. Step-by-step derivation
                                                                                                                            1. *-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                            2. lower-*.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                            3. associate-*r*N/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                                            4. lower-fma.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                                            5. mul-1-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                                            6. lower-neg.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                                            7. lower-*.f6452.2

                                                                                                                              \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                                          6. Applied rewrites52.2%

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                                          7. Taylor expanded in z around inf

                                                                                                                            \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                                                          8. Step-by-step derivation
                                                                                                                            1. *-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right) \cdot z} \]
                                                                                                                            2. +-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(x \cdot y + -1 \cdot \left(b \cdot c\right)\right)} \cdot z \]
                                                                                                                            3. mul-1-negN/A

                                                                                                                              \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                                                            4. sub-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right)} \cdot z \]
                                                                                                                            5. lower-*.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                                            6. sub-negN/A

                                                                                                                              \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                                                            7. mul-1-negN/A

                                                                                                                              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                                            8. +-commutativeN/A

                                                                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                                            9. mul-1-negN/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                            10. *-commutativeN/A

                                                                                                                              \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                            11. distribute-lft-neg-inN/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                            12. mul-1-negN/A

                                                                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                            13. lower-fma.f64N/A

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                            14. mul-1-negN/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                            15. lower-neg.f64N/A

                                                                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                            16. lower-*.f6442.3

                                                                                                                              \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{x \cdot y}\right) \cdot z \]
                                                                                                                          9. Applied rewrites42.3%

                                                                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, x \cdot y\right) \cdot z} \]
                                                                                                                          10. Taylor expanded in c around 0

                                                                                                                            \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                                                                          11. Step-by-step derivation
                                                                                                                            1. Applied rewrites32.1%

                                                                                                                              \[\leadsto \left(x \cdot y\right) \cdot z \]

                                                                                                                            if -7.8e7 < x < -4.1000000000000001e-240

                                                                                                                            1. Initial program 77.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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                              2. +-commutativeN/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)} \]
                                                                                                                              3. *-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) \]
                                                                                                                              4. 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) \]
                                                                                                                              5. 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) \]
                                                                                                                              6. 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)} \]
                                                                                                                              7. mul-1-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              8. sub-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              9. distribute-neg-inN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              10. distribute-lft-neg-inN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              11. neg-mul-1N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              12. remove-double-negN/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                              13. lower-fma.f64N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                              14. neg-mul-1N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                              15. lower-neg.f64N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                              16. lower-*.f64N/A

                                                                                                                                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites69.1%

                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                            6. Taylor expanded in j around inf

                                                                                                                              \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                            7. Step-by-step derivation
                                                                                                                              1. Applied rewrites39.8%

                                                                                                                                \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                              2. Step-by-step derivation
                                                                                                                                1. Applied rewrites41.9%

                                                                                                                                  \[\leadsto \left(j \cdot c\right) \cdot t \]

                                                                                                                                if -4.1000000000000001e-240 < x < 1.3e-34

                                                                                                                                1. Initial program 79.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. Applied rewrites79.2%

                                                                                                                                  \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                                                4. Taylor expanded in a around inf

                                                                                                                                  \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                                                5. Step-by-step derivation
                                                                                                                                  1. *-commutativeN/A

                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                                  2. lower-*.f64N/A

                                                                                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                                  3. associate-*r*N/A

                                                                                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                                                  4. lower-fma.f64N/A

                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                                                  5. mul-1-negN/A

                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                                                  6. lower-neg.f64N/A

                                                                                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                                                  7. lower-*.f6440.6

                                                                                                                                    \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                                                6. Applied rewrites40.6%

                                                                                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                                                7. Taylor expanded in b around inf

                                                                                                                                  \[\leadsto \left(b \cdot i\right) \cdot a \]
                                                                                                                                8. Step-by-step derivation
                                                                                                                                  1. Applied rewrites37.9%

                                                                                                                                    \[\leadsto \left(b \cdot i\right) \cdot a \]

                                                                                                                                  if 1.3e-34 < x

                                                                                                                                  1. Initial program 75.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 inf

                                                                                                                                    \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
                                                                                                                                  4. Step-by-step derivation
                                                                                                                                    1. *-commutativeN/A

                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                                    2. lower-*.f64N/A

                                                                                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right) \cdot y} \]
                                                                                                                                    3. *-commutativeN/A

                                                                                                                                      \[\leadsto \left(-1 \cdot \color{blue}{\left(j \cdot i\right)} + x \cdot z\right) \cdot y \]
                                                                                                                                    4. associate-*r*N/A

                                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot j\right) \cdot i} + x \cdot z\right) \cdot y \]
                                                                                                                                    5. lower-fma.f64N/A

                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot j, i, x \cdot z\right)} \cdot y \]
                                                                                                                                    6. mul-1-negN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(j\right)}, i, x \cdot z\right) \cdot y \]
                                                                                                                                    7. lower-neg.f64N/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-j}, i, x \cdot z\right) \cdot y \]
                                                                                                                                    8. *-commutativeN/A

                                                                                                                                      \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                                                    9. lower-*.f6446.6

                                                                                                                                      \[\leadsto \mathsf{fma}\left(-j, i, \color{blue}{z \cdot x}\right) \cdot y \]
                                                                                                                                  5. Applied rewrites46.6%

                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y} \]
                                                                                                                                  6. Taylor expanded in x around inf

                                                                                                                                    \[\leadsto \left(x \cdot z\right) \cdot y \]
                                                                                                                                  7. Step-by-step derivation
                                                                                                                                    1. Applied rewrites33.5%

                                                                                                                                      \[\leadsto \left(z \cdot x\right) \cdot y \]
                                                                                                                                  8. Recombined 4 regimes into one program.
                                                                                                                                  9. Final simplification36.2%

                                                                                                                                    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -78000000:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -4.1 \cdot 10^{-240}:\\ \;\;\;\;\left(j \cdot c\right) \cdot t\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\ \;\;\;\;\left(i \cdot b\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                                                                                  10. Add Preprocessing

                                                                                                                                  Alternative 24: 29.5% accurate, 2.1× speedup?

                                                                                                                                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot a\right) \cdot b\\ \mathbf{if}\;i \leq -7400000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{-289}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\ \;\;\;\;\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 (* (* i a) b)))
                                                                                                                                     (if (<= i -7400000000.0)
                                                                                                                                       t_1
                                                                                                                                       (if (<= i 1.05e-289)
                                                                                                                                         (* (* y x) z)
                                                                                                                                         (if (<= i 2.3e+54) (* (* 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 = (i * a) * b;
                                                                                                                                  	double tmp;
                                                                                                                                  	if (i <= -7400000000.0) {
                                                                                                                                  		tmp = t_1;
                                                                                                                                  	} else if (i <= 1.05e-289) {
                                                                                                                                  		tmp = (y * x) * z;
                                                                                                                                  	} else if (i <= 2.3e+54) {
                                                                                                                                  		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 = (i * a) * b
                                                                                                                                      if (i <= (-7400000000.0d0)) then
                                                                                                                                          tmp = t_1
                                                                                                                                      else if (i <= 1.05d-289) then
                                                                                                                                          tmp = (y * x) * z
                                                                                                                                      else if (i <= 2.3d+54) 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 = (i * a) * b;
                                                                                                                                  	double tmp;
                                                                                                                                  	if (i <= -7400000000.0) {
                                                                                                                                  		tmp = t_1;
                                                                                                                                  	} else if (i <= 1.05e-289) {
                                                                                                                                  		tmp = (y * x) * z;
                                                                                                                                  	} else if (i <= 2.3e+54) {
                                                                                                                                  		tmp = (c * t) * j;
                                                                                                                                  	} else {
                                                                                                                                  		tmp = t_1;
                                                                                                                                  	}
                                                                                                                                  	return tmp;
                                                                                                                                  }
                                                                                                                                  
                                                                                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                  	t_1 = (i * a) * b
                                                                                                                                  	tmp = 0
                                                                                                                                  	if i <= -7400000000.0:
                                                                                                                                  		tmp = t_1
                                                                                                                                  	elif i <= 1.05e-289:
                                                                                                                                  		tmp = (y * x) * z
                                                                                                                                  	elif i <= 2.3e+54:
                                                                                                                                  		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(i * a) * b)
                                                                                                                                  	tmp = 0.0
                                                                                                                                  	if (i <= -7400000000.0)
                                                                                                                                  		tmp = t_1;
                                                                                                                                  	elseif (i <= 1.05e-289)
                                                                                                                                  		tmp = Float64(Float64(y * x) * z);
                                                                                                                                  	elseif (i <= 2.3e+54)
                                                                                                                                  		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 = (i * a) * b;
                                                                                                                                  	tmp = 0.0;
                                                                                                                                  	if (i <= -7400000000.0)
                                                                                                                                  		tmp = t_1;
                                                                                                                                  	elseif (i <= 1.05e-289)
                                                                                                                                  		tmp = (y * x) * z;
                                                                                                                                  	elseif (i <= 2.3e+54)
                                                                                                                                  		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[(i * a), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[i, -7400000000.0], t$95$1, If[LessEqual[i, 1.05e-289], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 2.3e+54], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
                                                                                                                                  
                                                                                                                                  \begin{array}{l}
                                                                                                                                  
                                                                                                                                  \\
                                                                                                                                  \begin{array}{l}
                                                                                                                                  t_1 := \left(i \cdot a\right) \cdot b\\
                                                                                                                                  \mathbf{if}\;i \leq -7400000000:\\
                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                  
                                                                                                                                  \mathbf{elif}\;i \leq 1.05 \cdot 10^{-289}:\\
                                                                                                                                  \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                                                                                  
                                                                                                                                  \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\
                                                                                                                                  \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                                                                                                  
                                                                                                                                  \mathbf{else}:\\
                                                                                                                                  \;\;\;\;t\_1\\
                                                                                                                                  
                                                                                                                                  
                                                                                                                                  \end{array}
                                                                                                                                  \end{array}
                                                                                                                                  
                                                                                                                                  Derivation
                                                                                                                                  1. Split input into 3 regimes
                                                                                                                                  2. if i < -7.4e9 or 2.29999999999999994e54 < i

                                                                                                                                    1. Initial program 69.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 b around inf

                                                                                                                                      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                                                                                                                    4. Step-by-step derivation
                                                                                                                                      1. *-commutativeN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                                                                                                                                      2. sub-negN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \cdot b \]
                                                                                                                                      3. +-commutativeN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                                                                                                                                      4. remove-double-negN/A

                                                                                                                                        \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                                                                                                                                      5. distribute-neg-inN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                                                                      6. sub-negN/A

                                                                                                                                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \cdot b \]
                                                                                                                                      7. mul-1-negN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \cdot b \]
                                                                                                                                      8. lower-*.f64N/A

                                                                                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                                                                                                      9. mul-1-negN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                                                                                                                      10. sub-negN/A

                                                                                                                                        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \cdot b \]
                                                                                                                                      11. distribute-neg-inN/A

                                                                                                                                        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                                                                      12. distribute-lft-neg-inN/A

                                                                                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                                                                      13. neg-mul-1N/A

                                                                                                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                                                                      14. remove-double-negN/A

                                                                                                                                        \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                                                                      15. lower-fma.f64N/A

                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, z, a \cdot i\right)} \cdot b \]
                                                                                                                                      16. neg-mul-1N/A

                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, z, a \cdot i\right) \cdot b \]
                                                                                                                                      17. lower-neg.f64N/A

                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                                                                                                                      18. lower-*.f6450.8

                                                                                                                                        \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                                                                    5. Applied rewrites50.8%

                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, a \cdot i\right) \cdot b} \]
                                                                                                                                    6. Taylor expanded in c around 0

                                                                                                                                      \[\leadsto \left(a \cdot i\right) \cdot b \]
                                                                                                                                    7. Step-by-step derivation
                                                                                                                                      1. Applied rewrites39.0%

                                                                                                                                        \[\leadsto \left(a \cdot i\right) \cdot b \]

                                                                                                                                      if -7.4e9 < i < 1.0499999999999999e-289

                                                                                                                                      1. Initial program 82.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. Applied rewrites82.1%

                                                                                                                                        \[\leadsto \color{blue}{\frac{1}{\frac{1}{\mathsf{fma}\left(\mathsf{fma}\left(-y, i, c \cdot t\right), j, \mathsf{fma}\left(-b, \mathsf{fma}\left(-a, i, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\right)}}} \]
                                                                                                                                      4. Taylor expanded in a around inf

                                                                                                                                        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right)} \]
                                                                                                                                      5. Step-by-step derivation
                                                                                                                                        1. *-commutativeN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                                        2. lower-*.f64N/A

                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + b \cdot i\right) \cdot a} \]
                                                                                                                                        3. associate-*r*N/A

                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right) \cdot x} + b \cdot i\right) \cdot a \]
                                                                                                                                        4. lower-fma.f64N/A

                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, x, b \cdot i\right)} \cdot a \]
                                                                                                                                        5. mul-1-negN/A

                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, x, b \cdot i\right) \cdot a \]
                                                                                                                                        6. lower-neg.f64N/A

                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-t}, x, b \cdot i\right) \cdot a \]
                                                                                                                                        7. lower-*.f6442.2

                                                                                                                                          \[\leadsto \mathsf{fma}\left(-t, x, \color{blue}{b \cdot i}\right) \cdot a \]
                                                                                                                                      6. Applied rewrites42.2%

                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-t, x, b \cdot i\right) \cdot a} \]
                                                                                                                                      7. Taylor expanded in z around inf

                                                                                                                                        \[\leadsto \color{blue}{z \cdot \left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
                                                                                                                                      8. Step-by-step derivation
                                                                                                                                        1. *-commutativeN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right) \cdot z} \]
                                                                                                                                        2. +-commutativeN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(x \cdot y + -1 \cdot \left(b \cdot c\right)\right)} \cdot z \]
                                                                                                                                        3. mul-1-negN/A

                                                                                                                                          \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                                                                                        4. sub-negN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right)} \cdot z \]
                                                                                                                                        5. lower-*.f64N/A

                                                                                                                                          \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                                                                                        6. sub-negN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \cdot z \]
                                                                                                                                        7. mul-1-negN/A

                                                                                                                                          \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                                                                                        8. +-commutativeN/A

                                                                                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                                                                                        9. mul-1-negN/A

                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                                                                                        10. *-commutativeN/A

                                                                                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) + x \cdot y\right) \cdot z \]
                                                                                                                                        11. distribute-lft-neg-inN/A

                                                                                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot b} + x \cdot y\right) \cdot z \]
                                                                                                                                        12. mul-1-negN/A

                                                                                                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot b + x \cdot y\right) \cdot z \]
                                                                                                                                        13. lower-fma.f64N/A

                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, b, x \cdot y\right)} \cdot z \]
                                                                                                                                        14. mul-1-negN/A

                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, b, x \cdot y\right) \cdot z \]
                                                                                                                                        15. lower-neg.f64N/A

                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, b, x \cdot y\right) \cdot z \]
                                                                                                                                        16. lower-*.f6443.5

                                                                                                                                          \[\leadsto \mathsf{fma}\left(-c, b, \color{blue}{x \cdot y}\right) \cdot z \]
                                                                                                                                      9. Applied rewrites43.5%

                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, x \cdot y\right) \cdot z} \]
                                                                                                                                      10. Taylor expanded in c around 0

                                                                                                                                        \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                                                                                      11. Step-by-step derivation
                                                                                                                                        1. Applied rewrites26.8%

                                                                                                                                          \[\leadsto \left(x \cdot y\right) \cdot z \]

                                                                                                                                        if 1.0499999999999999e-289 < i < 2.29999999999999994e54

                                                                                                                                        1. Initial program 81.4%

                                                                                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
                                                                                                                                        2. Add Preprocessing
                                                                                                                                        3. Taylor expanded in 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                                          2. +-commutativeN/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)} \]
                                                                                                                                          3. *-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) \]
                                                                                                                                          4. 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) \]
                                                                                                                                          5. 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) \]
                                                                                                                                          6. 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)} \]
                                                                                                                                          7. mul-1-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          8. sub-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          9. distribute-neg-inN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          10. distribute-lft-neg-inN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          11. neg-mul-1N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          12. remove-double-negN/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                          13. lower-fma.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                                          14. neg-mul-1N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                                          15. lower-neg.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                                          16. lower-*.f64N/A

                                                                                                                                            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites68.1%

                                                                                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                                        6. Taylor expanded in j around inf

                                                                                                                                          \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                                        7. Step-by-step derivation
                                                                                                                                          1. Applied rewrites39.7%

                                                                                                                                            \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                                          2. Step-by-step derivation
                                                                                                                                            1. Applied rewrites39.8%

                                                                                                                                              \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                                                          3. Recombined 3 regimes into one program.
                                                                                                                                          4. Final simplification35.5%

                                                                                                                                            \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -7400000000:\\ \;\;\;\;\left(i \cdot a\right) \cdot b\\ \mathbf{elif}\;i \leq 1.05 \cdot 10^{-289}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot a\right) \cdot b\\ \end{array} \]
                                                                                                                                          5. Add Preprocessing

                                                                                                                                          Alternative 25: 29.4% accurate, 2.6× speedup?

                                                                                                                                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot a\right) \cdot b\\ \mathbf{if}\;i \leq -400000000:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\ \;\;\;\;\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 (* (* i a) b)))
                                                                                                                                             (if (<= i -400000000.0) t_1 (if (<= i 2.3e+54) (* (* 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 = (i * a) * b;
                                                                                                                                          	double tmp;
                                                                                                                                          	if (i <= -400000000.0) {
                                                                                                                                          		tmp = t_1;
                                                                                                                                          	} else if (i <= 2.3e+54) {
                                                                                                                                          		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 = (i * a) * b
                                                                                                                                              if (i <= (-400000000.0d0)) then
                                                                                                                                                  tmp = t_1
                                                                                                                                              else if (i <= 2.3d+54) 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 = (i * a) * b;
                                                                                                                                          	double tmp;
                                                                                                                                          	if (i <= -400000000.0) {
                                                                                                                                          		tmp = t_1;
                                                                                                                                          	} else if (i <= 2.3e+54) {
                                                                                                                                          		tmp = (c * t) * j;
                                                                                                                                          	} else {
                                                                                                                                          		tmp = t_1;
                                                                                                                                          	}
                                                                                                                                          	return tmp;
                                                                                                                                          }
                                                                                                                                          
                                                                                                                                          def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                          	t_1 = (i * a) * b
                                                                                                                                          	tmp = 0
                                                                                                                                          	if i <= -400000000.0:
                                                                                                                                          		tmp = t_1
                                                                                                                                          	elif i <= 2.3e+54:
                                                                                                                                          		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(i * a) * b)
                                                                                                                                          	tmp = 0.0
                                                                                                                                          	if (i <= -400000000.0)
                                                                                                                                          		tmp = t_1;
                                                                                                                                          	elseif (i <= 2.3e+54)
                                                                                                                                          		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 = (i * a) * b;
                                                                                                                                          	tmp = 0.0;
                                                                                                                                          	if (i <= -400000000.0)
                                                                                                                                          		tmp = t_1;
                                                                                                                                          	elseif (i <= 2.3e+54)
                                                                                                                                          		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[(i * a), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[i, -400000000.0], t$95$1, If[LessEqual[i, 2.3e+54], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                                                                                                                                          
                                                                                                                                          \begin{array}{l}
                                                                                                                                          
                                                                                                                                          \\
                                                                                                                                          \begin{array}{l}
                                                                                                                                          t_1 := \left(i \cdot a\right) \cdot b\\
                                                                                                                                          \mathbf{if}\;i \leq -400000000:\\
                                                                                                                                          \;\;\;\;t\_1\\
                                                                                                                                          
                                                                                                                                          \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\
                                                                                                                                          \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                                                                                                          
                                                                                                                                          \mathbf{else}:\\
                                                                                                                                          \;\;\;\;t\_1\\
                                                                                                                                          
                                                                                                                                          
                                                                                                                                          \end{array}
                                                                                                                                          \end{array}
                                                                                                                                          
                                                                                                                                          Derivation
                                                                                                                                          1. Split input into 2 regimes
                                                                                                                                          2. if i < -4e8 or 2.29999999999999994e54 < i

                                                                                                                                            1. Initial program 69.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 b around inf

                                                                                                                                              \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
                                                                                                                                            4. Step-by-step derivation
                                                                                                                                              1. *-commutativeN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(a \cdot i - c \cdot z\right) \cdot b} \]
                                                                                                                                              2. sub-negN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \cdot b \]
                                                                                                                                              3. +-commutativeN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \cdot b \]
                                                                                                                                              4. remove-double-negN/A

                                                                                                                                                \[\leadsto \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \cdot b \]
                                                                                                                                              5. distribute-neg-inN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                                                                              6. sub-negN/A

                                                                                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \cdot b \]
                                                                                                                                              7. mul-1-negN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \cdot b \]
                                                                                                                                              8. lower-*.f64N/A

                                                                                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right) \cdot b} \]
                                                                                                                                              9. mul-1-negN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \cdot b \]
                                                                                                                                              10. sub-negN/A

                                                                                                                                                \[\leadsto \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \cdot b \]
                                                                                                                                              11. distribute-neg-inN/A

                                                                                                                                                \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \cdot b \]
                                                                                                                                              12. distribute-lft-neg-inN/A

                                                                                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                                                                              13. neg-mul-1N/A

                                                                                                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right) \cdot b \]
                                                                                                                                              14. remove-double-negN/A

                                                                                                                                                \[\leadsto \left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                                                                              15. lower-fma.f64N/A

                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot c, z, a \cdot i\right)} \cdot b \]
                                                                                                                                              16. neg-mul-1N/A

                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, z, a \cdot i\right) \cdot b \]
                                                                                                                                              17. lower-neg.f64N/A

                                                                                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-c}, z, a \cdot i\right) \cdot b \]
                                                                                                                                              18. lower-*.f6450.8

                                                                                                                                                \[\leadsto \mathsf{fma}\left(-c, z, \color{blue}{a \cdot i}\right) \cdot b \]
                                                                                                                                            5. Applied rewrites50.8%

                                                                                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-c, z, a \cdot i\right) \cdot b} \]
                                                                                                                                            6. Taylor expanded in c around 0

                                                                                                                                              \[\leadsto \left(a \cdot i\right) \cdot b \]
                                                                                                                                            7. Step-by-step derivation
                                                                                                                                              1. Applied rewrites39.0%

                                                                                                                                                \[\leadsto \left(a \cdot i\right) \cdot b \]

                                                                                                                                              if -4e8 < i < 2.29999999999999994e54

                                                                                                                                              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) + c \cdot \left(j \cdot t\right)\right) - b \cdot \left(c \cdot z - a \cdot i\right)} \]
                                                                                                                                              4. Step-by-step derivation
                                                                                                                                                1. sub-negN/A

                                                                                                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) + \left(\mathsf{neg}\left(b \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                                                2. +-commutativeN/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)} \]
                                                                                                                                                3. *-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) \]
                                                                                                                                                4. 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) \]
                                                                                                                                                5. 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) \]
                                                                                                                                                6. 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)} \]
                                                                                                                                                7. mul-1-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                8. sub-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                9. distribute-neg-inN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                10. distribute-lft-neg-inN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                11. neg-mul-1N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                12. remove-double-negN/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                13. lower-fma.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                                                14. neg-mul-1N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                                                15. lower-neg.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                                                16. lower-*.f64N/A

                                                                                                                                                  \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites66.8%

                                                                                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                                              6. Taylor expanded in j around inf

                                                                                                                                                \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                                              7. Step-by-step derivation
                                                                                                                                                1. Applied rewrites26.5%

                                                                                                                                                  \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                                                2. Step-by-step derivation
                                                                                                                                                  1. Applied rewrites29.2%

                                                                                                                                                    \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                                                                3. Recombined 2 regimes into one program.
                                                                                                                                                4. Final simplification33.6%

                                                                                                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -400000000:\\ \;\;\;\;\left(i \cdot a\right) \cdot b\\ \mathbf{elif}\;i \leq 2.3 \cdot 10^{+54}:\\ \;\;\;\;\left(c \cdot t\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot a\right) \cdot b\\ \end{array} \]
                                                                                                                                                5. Add Preprocessing

                                                                                                                                                Alternative 26: 30.3% accurate, 2.6× speedup?

                                                                                                                                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot y\right) \cdot x\\ \mathbf{if}\;y \leq -4.8 \cdot 10^{+81}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;y \leq 2.25 \cdot 10^{-22}:\\ \;\;\;\;\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 (* (* z y) x)))
                                                                                                                                                   (if (<= y -4.8e+81) t_1 (if (<= y 2.25e-22) (* (* 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 = (z * y) * x;
                                                                                                                                                	double tmp;
                                                                                                                                                	if (y <= -4.8e+81) {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	} else if (y <= 2.25e-22) {
                                                                                                                                                		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 = (z * y) * x
                                                                                                                                                    if (y <= (-4.8d+81)) then
                                                                                                                                                        tmp = t_1
                                                                                                                                                    else if (y <= 2.25d-22) 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 = (z * y) * x;
                                                                                                                                                	double tmp;
                                                                                                                                                	if (y <= -4.8e+81) {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	} else if (y <= 2.25e-22) {
                                                                                                                                                		tmp = (c * t) * j;
                                                                                                                                                	} else {
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	}
                                                                                                                                                	return tmp;
                                                                                                                                                }
                                                                                                                                                
                                                                                                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                                                                                                	t_1 = (z * y) * x
                                                                                                                                                	tmp = 0
                                                                                                                                                	if y <= -4.8e+81:
                                                                                                                                                		tmp = t_1
                                                                                                                                                	elif y <= 2.25e-22:
                                                                                                                                                		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(z * y) * x)
                                                                                                                                                	tmp = 0.0
                                                                                                                                                	if (y <= -4.8e+81)
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	elseif (y <= 2.25e-22)
                                                                                                                                                		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 = (z * y) * x;
                                                                                                                                                	tmp = 0.0;
                                                                                                                                                	if (y <= -4.8e+81)
                                                                                                                                                		tmp = t_1;
                                                                                                                                                	elseif (y <= 2.25e-22)
                                                                                                                                                		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[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -4.8e+81], t$95$1, If[LessEqual[y, 2.25e-22], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]
                                                                                                                                                
                                                                                                                                                \begin{array}{l}
                                                                                                                                                
                                                                                                                                                \\
                                                                                                                                                \begin{array}{l}
                                                                                                                                                t_1 := \left(z \cdot y\right) \cdot x\\
                                                                                                                                                \mathbf{if}\;y \leq -4.8 \cdot 10^{+81}:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                \mathbf{elif}\;y \leq 2.25 \cdot 10^{-22}:\\
                                                                                                                                                \;\;\;\;\left(c \cdot t\right) \cdot j\\
                                                                                                                                                
                                                                                                                                                \mathbf{else}:\\
                                                                                                                                                \;\;\;\;t\_1\\
                                                                                                                                                
                                                                                                                                                
                                                                                                                                                \end{array}
                                                                                                                                                \end{array}
                                                                                                                                                
                                                                                                                                                Derivation
                                                                                                                                                1. Split input into 2 regimes
                                                                                                                                                2. if y < -4.79999999999999979e81 or 2.24999999999999993e-22 < y

                                                                                                                                                  1. Initial program 71.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 x around inf

                                                                                                                                                    \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                                                                                                                  4. Step-by-step derivation
                                                                                                                                                    1. *-commutativeN/A

                                                                                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                    2. lower-*.f64N/A

                                                                                                                                                      \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                                                                                                                    3. sub-negN/A

                                                                                                                                                      \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                                                                                                                    4. +-commutativeN/A

                                                                                                                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                                                                                                                    5. mul-1-negN/A

                                                                                                                                                      \[\leadsto \left(\color{blue}{-1 \cdot \left(a \cdot t\right)} + y \cdot z\right) \cdot x \]
                                                                                                                                                    6. associate-*r*N/A

                                                                                                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot t} + y \cdot z\right) \cdot x \]
                                                                                                                                                    7. lower-fma.f64N/A

                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot a, t, y \cdot z\right)} \cdot x \]
                                                                                                                                                    8. mul-1-negN/A

                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(a\right)}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                    9. lower-neg.f64N/A

                                                                                                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, t, y \cdot z\right) \cdot x \]
                                                                                                                                                    10. *-commutativeN/A

                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                    11. lower-*.f6444.6

                                                                                                                                                      \[\leadsto \mathsf{fma}\left(-a, t, \color{blue}{z \cdot y}\right) \cdot x \]
                                                                                                                                                  5. Applied rewrites44.6%

                                                                                                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x} \]
                                                                                                                                                  6. Taylor expanded in a around 0

                                                                                                                                                    \[\leadsto \left(y \cdot z\right) \cdot x \]
                                                                                                                                                  7. Step-by-step derivation
                                                                                                                                                    1. Applied rewrites34.6%

                                                                                                                                                      \[\leadsto \left(z \cdot y\right) \cdot x \]

                                                                                                                                                    if -4.79999999999999979e81 < y < 2.24999999999999993e-22

                                                                                                                                                    1. Initial program 79.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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                                                      2. +-commutativeN/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)} \]
                                                                                                                                                      3. *-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) \]
                                                                                                                                                      4. 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) \]
                                                                                                                                                      5. 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) \]
                                                                                                                                                      6. 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)} \]
                                                                                                                                                      7. mul-1-negN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      8. sub-negN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      9. distribute-neg-inN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      10. distribute-lft-neg-inN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      11. neg-mul-1N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      12. remove-double-negN/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                      13. lower-fma.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                                                      14. neg-mul-1N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                                                      15. lower-neg.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                                                      16. lower-*.f64N/A

                                                                                                                                                        \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites74.7%

                                                                                                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                                                    6. Taylor expanded in j around inf

                                                                                                                                                      \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                                                    7. Step-by-step derivation
                                                                                                                                                      1. Applied rewrites28.4%

                                                                                                                                                        \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                                                      2. Step-by-step derivation
                                                                                                                                                        1. Applied rewrites30.4%

                                                                                                                                                          \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                                                                      3. Recombined 2 regimes into one program.
                                                                                                                                                      4. Add Preprocessing

                                                                                                                                                      Alternative 27: 22.2% 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 76.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 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. sub-negN/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 \cdot \left(c \cdot z - a \cdot i\right)\right)\right)} \]
                                                                                                                                                        2. +-commutativeN/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)} \]
                                                                                                                                                        3. *-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) \]
                                                                                                                                                        4. 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) \]
                                                                                                                                                        5. 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) \]
                                                                                                                                                        6. 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)} \]
                                                                                                                                                        7. mul-1-negN/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        8. sub-negN/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        9. distribute-neg-inN/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        10. distribute-lft-neg-inN/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(\mathsf{neg}\left(c\right)\right) \cdot z} + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        11. neg-mul-1N/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\left(-1 \cdot c\right)} \cdot z + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right), b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        12. remove-double-negN/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\left(-1 \cdot c\right) \cdot z + \color{blue}{a \cdot i}, b, -1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + c \cdot \left(j \cdot t\right)\right) \]
                                                                                                                                                        13. lower-fma.f64N/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{fma}\left(-1 \cdot c, 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) \]
                                                                                                                                                        14. neg-mul-1N/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(c\right)}, 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) \]
                                                                                                                                                        15. lower-neg.f64N/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\color{blue}{-c}, 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) \]
                                                                                                                                                        16. lower-*.f64N/A

                                                                                                                                                          \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-c, z, \color{blue}{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 rewrites61.3%

                                                                                                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-c, z, a \cdot i\right), b, \mathsf{fma}\left(-x, a, c \cdot j\right) \cdot t\right)} \]
                                                                                                                                                      6. Taylor expanded in j around inf

                                                                                                                                                        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
                                                                                                                                                      7. Step-by-step derivation
                                                                                                                                                        1. Applied rewrites21.3%

                                                                                                                                                          \[\leadsto \left(t \cdot j\right) \cdot \color{blue}{c} \]
                                                                                                                                                        2. Step-by-step derivation
                                                                                                                                                          1. Applied rewrites23.2%

                                                                                                                                                            \[\leadsto \left(c \cdot t\right) \cdot j \]
                                                                                                                                                          2. Add Preprocessing

                                                                                                                                                          Developer Target 1: 69.2% 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 2024255 
                                                                                                                                                          (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)))))