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

Percentage Accurate: 73.5% → 82.3%
Time: 20.3s
Alternatives: 25
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 25 alternatives:

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

Initial Program: 73.5% accurate, 1.0× speedup?

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

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

Alternative 1: 82.3% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 89.1%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 67.0% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -1.8 \cdot 10^{+153}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.7 \cdot 10^{-70}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{+66}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\ \mathbf{elif}\;t \leq 4.5 \cdot 10^{+104}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, a \cdot c\right), j, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* (fma (- a) x (* i b)) t)))
   (if (<= t -1.8e+153)
     t_1
     (if (<= t 1.7e-70)
       (fma (fma (- i) y (* c a)) j (* (fma (- b) c (* y x)) z))
       (if (<= t 2.8e+66)
         (fma (fma (- z) b (* j a)) c (* (* (- a) t) x))
         (if (<= t 4.5e+104)
           (fma (fma (- y) i (* a c)) j (* (fma (- c) z (* t i)) 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, x, (i * b)) * t;
	double tmp;
	if (t <= -1.8e+153) {
		tmp = t_1;
	} else if (t <= 1.7e-70) {
		tmp = fma(fma(-i, y, (c * a)), j, (fma(-b, c, (y * x)) * z));
	} else if (t <= 2.8e+66) {
		tmp = fma(fma(-z, b, (j * a)), c, ((-a * t) * x));
	} else if (t <= 4.5e+104) {
		tmp = fma(fma(-y, i, (a * c)), j, (fma(-c, z, (t * i)) * b));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(fma(Float64(-a), x, Float64(i * b)) * t)
	tmp = 0.0
	if (t <= -1.8e+153)
		tmp = t_1;
	elseif (t <= 1.7e-70)
		tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-b), c, Float64(y * x)) * z));
	elseif (t <= 2.8e+66)
		tmp = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(Float64(-a) * t) * x));
	elseif (t <= 4.5e+104)
		tmp = fma(fma(Float64(-y), i, Float64(a * c)), j, Float64(fma(Float64(-c), z, Float64(t * i)) * 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) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -1.8e+153], t$95$1, If[LessEqual[t, 1.7e-70], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+66], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[((-a) * t), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e+104], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * z + N[(t * i), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 1.7 \cdot 10^{-70}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\

\mathbf{elif}\;t \leq 2.8 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(\left(-a\right) \cdot t\right) \cdot x\right)\\

\mathbf{elif}\;t \leq 4.5 \cdot 10^{+104}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, i, a \cdot c\right), j, \mathsf{fma}\left(-c, z, t \cdot i\right) \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -1.8e153 or 4.4999999999999998e104 < t

    1. Initial program 60.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.8e153 < t < 1.69999999999999998e-70

    1. Initial program 77.6%

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

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

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

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

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

        \[\leadsto \left(a \cdot c - i \cdot y\right) \cdot j + \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(b \cdot c\right) \cdot z}\right) \]
      5. distribute-rgt-out--N/A

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, z \cdot \left(x \cdot y - b \cdot c\right)\right)} \]
      7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

    if 1.69999999999999998e-70 < t < 2.8000000000000001e66

    1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 2.8000000000000001e66 < t < 4.4999999999999998e104

      1. Initial program 83.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 3: 59.8% accurate, 1.1× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\ t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -5.4 \cdot 10^{+67}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 1.45 \cdot 10^{-161}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\ \;\;\;\;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 (fma (- z) b (* j a)) c (* (* z y) x)))
            (t_2 (* (fma (- a) x (* i b)) t)))
       (if (<= t -6.5e+141)
         t_2
         (if (<= t -5.4e+67)
           t_1
           (if (<= t 1.45e-161)
             (+ (* (* z x) y) (* j (- (* c a) (* y i))))
             (if (<= t 2.15e+74) 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(fma(-z, b, (j * a)), c, ((z * y) * x));
    	double t_2 = fma(-a, x, (i * b)) * t;
    	double tmp;
    	if (t <= -6.5e+141) {
    		tmp = t_2;
    	} else if (t <= -5.4e+67) {
    		tmp = t_1;
    	} else if (t <= 1.45e-161) {
    		tmp = ((z * x) * y) + (j * ((c * a) - (y * i)));
    	} else if (t <= 2.15e+74) {
    		tmp = t_1;
    	} else {
    		tmp = t_2;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(z * y) * x))
    	t_2 = Float64(fma(Float64(-a), x, Float64(i * b)) * t)
    	tmp = 0.0
    	if (t <= -6.5e+141)
    		tmp = t_2;
    	elseif (t <= -5.4e+67)
    		tmp = t_1;
    	elseif (t <= 1.45e-161)
    		tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * a) - Float64(y * i))));
    	elseif (t <= 2.15e+74)
    		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[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$2, If[LessEqual[t, -5.4e+67], t$95$1, If[LessEqual[t, 1.45e-161], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e+74], t$95$1, t$95$2]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\
    t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
    \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
    \;\;\;\;t\_2\\
    
    \mathbf{elif}\;t \leq -5.4 \cdot 10^{+67}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq 1.45 \cdot 10^{-161}:\\
    \;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\
    
    \mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_2\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 3 regimes
    2. if t < -6.50000000000000053e141 or 2.15e74 < t

      1. Initial program 63.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -6.50000000000000053e141 < t < -5.3999999999999998e67 or 1.45e-161 < t < 2.15e74

      1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -5.3999999999999998e67 < t < 1.45e-161

        1. Initial program 79.6%

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

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

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

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

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

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

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

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

      Alternative 4: 55.4% accurate, 1.1× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\ t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -1.1 \cdot 10^{+120}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1 \cdot 10^{-289}:\\ \;\;\;\;\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j\\ \mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\ \;\;\;\;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 (fma (- z) b (* j a)) c (* (* z y) x)))
              (t_2 (* (fma (- a) x (* i b)) t)))
         (if (<= t -6.5e+141)
           t_2
           (if (<= t -1.1e+120)
             t_1
             (if (<= t -1e-289)
               (* (fma (- y) i (* a c)) j)
               (if (<= t 2.15e+74) 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(fma(-z, b, (j * a)), c, ((z * y) * x));
      	double t_2 = fma(-a, x, (i * b)) * t;
      	double tmp;
      	if (t <= -6.5e+141) {
      		tmp = t_2;
      	} else if (t <= -1.1e+120) {
      		tmp = t_1;
      	} else if (t <= -1e-289) {
      		tmp = fma(-y, i, (a * c)) * j;
      	} else if (t <= 2.15e+74) {
      		tmp = t_1;
      	} else {
      		tmp = t_2;
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	t_1 = fma(fma(Float64(-z), b, Float64(j * a)), c, Float64(Float64(z * y) * x))
      	t_2 = Float64(fma(Float64(-a), x, Float64(i * b)) * t)
      	tmp = 0.0
      	if (t <= -6.5e+141)
      		tmp = t_2;
      	elseif (t <= -1.1e+120)
      		tmp = t_1;
      	elseif (t <= -1e-289)
      		tmp = Float64(fma(Float64(-y), i, Float64(a * c)) * j);
      	elseif (t <= 2.15e+74)
      		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[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$2, If[LessEqual[t, -1.1e+120], t$95$1, If[LessEqual[t, -1e-289], N[(N[((-y) * i + N[(a * c), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 2.15e+74], t$95$1, t$95$2]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-z, b, j \cdot a\right), c, \left(z \cdot y\right) \cdot x\right)\\
      t_2 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\
      \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
      \;\;\;\;t\_2\\
      
      \mathbf{elif}\;t \leq -1.1 \cdot 10^{+120}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{elif}\;t \leq -1 \cdot 10^{-289}:\\
      \;\;\;\;\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j\\
      
      \mathbf{elif}\;t \leq 2.15 \cdot 10^{+74}:\\
      \;\;\;\;t\_1\\
      
      \mathbf{else}:\\
      \;\;\;\;t\_2\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 3 regimes
      2. if t < -6.50000000000000053e141 or 2.15e74 < t

        1. Initial program 63.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -6.50000000000000053e141 < t < -1.1000000000000001e120 or -1e-289 < t < 2.15e74

        1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.1000000000000001e120 < t < -1e-289

          1. Initial program 79.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 5: 71.0% accurate, 1.2× speedup?

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

          1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.1999999999999999e54 < x < 4.49999999999999999e-102

          1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 6: 68.3% accurate, 1.2× speedup?

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

          1. Initial program 62.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -1.8e153 < t < 5.30000000000000005e87

          1. Initial program 77.6%

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

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

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

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

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

              \[\leadsto \left(a \cdot c - i \cdot y\right) \cdot j + \left(\left(x \cdot y\right) \cdot z - \color{blue}{\left(b \cdot c\right) \cdot z}\right) \]
            5. distribute-rgt-out--N/A

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

              \[\leadsto \color{blue}{\mathsf{fma}\left(a \cdot c - i \cdot y, j, z \cdot \left(x \cdot y - b \cdot c\right)\right)} \]
            7. fp-cancel-sub-sign-invN/A

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

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

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

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

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

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

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

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

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

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

        Alternative 7: 70.7% accurate, 1.2× speedup?

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

          1. Initial program 61.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.10000000000000017e56 < x < 2.20000000000000008e-4

          1. Initial program 75.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          if 2.20000000000000008e-4 < x

          1. Initial program 77.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 8: 60.0% accurate, 1.3× speedup?

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

          1. Initial program 67.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.2e20 < i < -6.9999999999999997e-117

            1. Initial program 77.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -6.9999999999999997e-117 < i < 5.49999999999999973e196

              1. Initial program 72.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                if 5.49999999999999973e196 < i

                1. Initial program 76.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

              Alternative 9: 59.9% accurate, 1.5× speedup?

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

                1. Initial program 68.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.0800000000000001e-69 < i < 5.49999999999999973e196

                  1. Initial program 74.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 5.49999999999999973e196 < i

                    1. Initial program 76.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 10: 28.9% accurate, 1.6× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(t \cdot i\right) \cdot b\\ \mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;\left(\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 (* (* t i) b)))
                     (if (<= t -6.8e+205)
                       t_1
                       (if (<= t -2.45e+165)
                         (* (* (- a) x) t)
                         (if (<= t 2.6e+84)
                           (* (* c a) j)
                           (if (<= t 5.1e+157) t_1 (* (* (- 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 = (t * i) * b;
                  	double tmp;
                  	if (t <= -6.8e+205) {
                  		tmp = t_1;
                  	} else if (t <= -2.45e+165) {
                  		tmp = (-a * x) * t;
                  	} else if (t <= 2.6e+84) {
                  		tmp = (c * a) * j;
                  	} else if (t <= 5.1e+157) {
                  		tmp = t_1;
                  	} else {
                  		tmp = (-t * x) * a;
                  	}
                  	return tmp;
                  }
                  
                  real(8) function code(x, y, z, t, a, b, c, i, j)
                      real(8), intent (in) :: x
                      real(8), intent (in) :: y
                      real(8), intent (in) :: z
                      real(8), intent (in) :: t
                      real(8), intent (in) :: a
                      real(8), intent (in) :: b
                      real(8), intent (in) :: c
                      real(8), intent (in) :: i
                      real(8), intent (in) :: j
                      real(8) :: t_1
                      real(8) :: tmp
                      t_1 = (t * i) * b
                      if (t <= (-6.8d+205)) then
                          tmp = t_1
                      else if (t <= (-2.45d+165)) then
                          tmp = (-a * x) * t
                      else if (t <= 2.6d+84) then
                          tmp = (c * a) * j
                      else if (t <= 5.1d+157) then
                          tmp = t_1
                      else
                          tmp = (-t * x) * a
                      end if
                      code = tmp
                  end function
                  
                  public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                  	double t_1 = (t * i) * b;
                  	double tmp;
                  	if (t <= -6.8e+205) {
                  		tmp = t_1;
                  	} else if (t <= -2.45e+165) {
                  		tmp = (-a * x) * t;
                  	} else if (t <= 2.6e+84) {
                  		tmp = (c * a) * j;
                  	} else if (t <= 5.1e+157) {
                  		tmp = t_1;
                  	} else {
                  		tmp = (-t * x) * a;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b, c, i, j):
                  	t_1 = (t * i) * b
                  	tmp = 0
                  	if t <= -6.8e+205:
                  		tmp = t_1
                  	elif t <= -2.45e+165:
                  		tmp = (-a * x) * t
                  	elif t <= 2.6e+84:
                  		tmp = (c * a) * j
                  	elif t <= 5.1e+157:
                  		tmp = t_1
                  	else:
                  		tmp = (-t * x) * a
                  	return tmp
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	t_1 = Float64(Float64(t * i) * b)
                  	tmp = 0.0
                  	if (t <= -6.8e+205)
                  		tmp = t_1;
                  	elseif (t <= -2.45e+165)
                  		tmp = Float64(Float64(Float64(-a) * x) * t);
                  	elseif (t <= 2.6e+84)
                  		tmp = Float64(Float64(c * a) * j);
                  	elseif (t <= 5.1e+157)
                  		tmp = t_1;
                  	else
                  		tmp = Float64(Float64(Float64(-t) * x) * a);
                  	end
                  	return tmp
                  end
                  
                  function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                  	t_1 = (t * i) * b;
                  	tmp = 0.0;
                  	if (t <= -6.8e+205)
                  		tmp = t_1;
                  	elseif (t <= -2.45e+165)
                  		tmp = (-a * x) * t;
                  	elseif (t <= 2.6e+84)
                  		tmp = (c * a) * j;
                  	elseif (t <= 5.1e+157)
                  		tmp = t_1;
                  	else
                  		tmp = (-t * x) * a;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -6.8e+205], t$95$1, If[LessEqual[t, -2.45e+165], N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[t, 2.6e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 5.1e+157], t$95$1, N[(N[((-t) * x), $MachinePrecision] * a), $MachinePrecision]]]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  t_1 := \left(t \cdot i\right) \cdot b\\
                  \mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\
                  \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\
                  
                  \mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\
                  \;\;\;\;\left(c \cdot a\right) \cdot j\\
                  
                  \mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\
                  \;\;\;\;t\_1\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\left(\left(-t\right) \cdot x\right) \cdot a\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if t < -6.8e205 or 2.6000000000000001e84 < t < 5.09999999999999999e157

                    1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -6.8e205 < t < -2.44999999999999993e165

                      1. Initial program 86.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -2.44999999999999993e165 < t < 2.6000000000000001e84

                        1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          \[\leadsto \left(a \cdot c\right) \cdot j \]
                        9. Step-by-step derivation
                          1. Applied rewrites33.7%

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

                          if 5.09999999999999999e157 < t

                          1. Initial program 53.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot a \]
                          8. Recombined 4 regimes into one program.
                          9. Add Preprocessing

                          Alternative 11: 28.9% accurate, 1.6× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-a\right) \cdot x\right) \cdot t\\ t_2 := \left(t \cdot i\right) \cdot b\\ \mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                          (FPCore (x y z t a b c i j)
                           :precision binary64
                           (let* ((t_1 (* (* (- a) x) t)) (t_2 (* (* t i) b)))
                             (if (<= t -6.8e+205)
                               t_2
                               (if (<= t -2.45e+165)
                                 t_1
                                 (if (<= t 2.6e+84) (* (* c a) j) (if (<= t 5.1e+157) t_2 t_1))))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double t_1 = (-a * x) * t;
                          	double t_2 = (t * i) * b;
                          	double tmp;
                          	if (t <= -6.8e+205) {
                          		tmp = t_2;
                          	} else if (t <= -2.45e+165) {
                          		tmp = t_1;
                          	} else if (t <= 2.6e+84) {
                          		tmp = (c * a) * j;
                          	} else if (t <= 5.1e+157) {
                          		tmp = t_2;
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          real(8) function code(x, y, z, t, a, b, c, i, j)
                              real(8), intent (in) :: x
                              real(8), intent (in) :: y
                              real(8), intent (in) :: z
                              real(8), intent (in) :: t
                              real(8), intent (in) :: a
                              real(8), intent (in) :: b
                              real(8), intent (in) :: c
                              real(8), intent (in) :: i
                              real(8), intent (in) :: j
                              real(8) :: t_1
                              real(8) :: t_2
                              real(8) :: tmp
                              t_1 = (-a * x) * t
                              t_2 = (t * i) * b
                              if (t <= (-6.8d+205)) then
                                  tmp = t_2
                              else if (t <= (-2.45d+165)) then
                                  tmp = t_1
                              else if (t <= 2.6d+84) then
                                  tmp = (c * a) * j
                              else if (t <= 5.1d+157) then
                                  tmp = t_2
                              else
                                  tmp = t_1
                              end if
                              code = tmp
                          end function
                          
                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double t_1 = (-a * x) * t;
                          	double t_2 = (t * i) * b;
                          	double tmp;
                          	if (t <= -6.8e+205) {
                          		tmp = t_2;
                          	} else if (t <= -2.45e+165) {
                          		tmp = t_1;
                          	} else if (t <= 2.6e+84) {
                          		tmp = (c * a) * j;
                          	} else if (t <= 5.1e+157) {
                          		tmp = t_2;
                          	} else {
                          		tmp = t_1;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b, c, i, j):
                          	t_1 = (-a * x) * t
                          	t_2 = (t * i) * b
                          	tmp = 0
                          	if t <= -6.8e+205:
                          		tmp = t_2
                          	elif t <= -2.45e+165:
                          		tmp = t_1
                          	elif t <= 2.6e+84:
                          		tmp = (c * a) * j
                          	elif t <= 5.1e+157:
                          		tmp = t_2
                          	else:
                          		tmp = t_1
                          	return tmp
                          
                          function code(x, y, z, t, a, b, c, i, j)
                          	t_1 = Float64(Float64(Float64(-a) * x) * t)
                          	t_2 = Float64(Float64(t * i) * b)
                          	tmp = 0.0
                          	if (t <= -6.8e+205)
                          		tmp = t_2;
                          	elseif (t <= -2.45e+165)
                          		tmp = t_1;
                          	elseif (t <= 2.6e+84)
                          		tmp = Float64(Float64(c * a) * j);
                          	elseif (t <= 5.1e+157)
                          		tmp = t_2;
                          	else
                          		tmp = t_1;
                          	end
                          	return tmp
                          end
                          
                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                          	t_1 = (-a * x) * t;
                          	t_2 = (t * i) * b;
                          	tmp = 0.0;
                          	if (t <= -6.8e+205)
                          		tmp = t_2;
                          	elseif (t <= -2.45e+165)
                          		tmp = t_1;
                          	elseif (t <= 2.6e+84)
                          		tmp = (c * a) * j;
                          	elseif (t <= 5.1e+157)
                          		tmp = t_2;
                          	else
                          		tmp = t_1;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -6.8e+205], t$95$2, If[LessEqual[t, -2.45e+165], t$95$1, If[LessEqual[t, 2.6e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[t, 5.1e+157], t$95$2, t$95$1]]]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          t_1 := \left(\left(-a\right) \cdot x\right) \cdot t\\
                          t_2 := \left(t \cdot i\right) \cdot b\\
                          \mathbf{if}\;t \leq -6.8 \cdot 10^{+205}:\\
                          \;\;\;\;t\_2\\
                          
                          \mathbf{elif}\;t \leq -2.45 \cdot 10^{+165}:\\
                          \;\;\;\;t\_1\\
                          
                          \mathbf{elif}\;t \leq 2.6 \cdot 10^{+84}:\\
                          \;\;\;\;\left(c \cdot a\right) \cdot j\\
                          
                          \mathbf{elif}\;t \leq 5.1 \cdot 10^{+157}:\\
                          \;\;\;\;t\_2\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;t\_1\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 3 regimes
                          2. if t < -6.8e205 or 2.6000000000000001e84 < t < 5.09999999999999999e157

                            1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                              if -6.8e205 < t < -2.44999999999999993e165 or 5.09999999999999999e157 < t

                              1. Initial program 59.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -2.44999999999999993e165 < t < 2.6000000000000001e84

                                1. Initial program 77.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  \[\leadsto \left(a \cdot c\right) \cdot j \]
                                9. Step-by-step derivation
                                  1. Applied rewrites33.7%

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

                                Alternative 12: 50.9% accurate, 1.6× speedup?

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

                                  1. Initial program 63.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -5.79999999999999996e144 < t < 5.60000000000000011e-190

                                  1. Initial program 80.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 5.60000000000000011e-190 < t < 1.79999999999999994e74

                                  1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 13: 51.2% accurate, 1.6× speedup?

                                \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.66 \cdot 10^{+109}:\\ \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 4.3 \cdot 10^{+88}:\\ \;\;\;\;\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) x (* i b)) t)))
                                   (if (<= t -6.5e+141)
                                     t_1
                                     (if (<= t -1.66e+109)
                                       (* (fma (- b) c (* y x)) z)
                                       (if (<= t 4.3e+88) (* (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, x, (i * b)) * t;
                                	double tmp;
                                	if (t <= -6.5e+141) {
                                		tmp = t_1;
                                	} else if (t <= -1.66e+109) {
                                		tmp = fma(-b, c, (y * x)) * z;
                                	} else if (t <= 4.3e+88) {
                                		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), x, Float64(i * b)) * t)
                                	tmp = 0.0
                                	if (t <= -6.5e+141)
                                		tmp = t_1;
                                	elseif (t <= -1.66e+109)
                                		tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z);
                                	elseif (t <= 4.3e+88)
                                		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) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -6.5e+141], t$95$1, If[LessEqual[t, -1.66e+109], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 4.3e+88], 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, x, i \cdot b\right) \cdot t\\
                                \mathbf{if}\;t \leq -6.5 \cdot 10^{+141}:\\
                                \;\;\;\;t\_1\\
                                
                                \mathbf{elif}\;t \leq -1.66 \cdot 10^{+109}:\\
                                \;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
                                
                                \mathbf{elif}\;t \leq 4.3 \cdot 10^{+88}:\\
                                \;\;\;\;\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 t < -6.50000000000000053e141 or 4.29999999999999974e88 < t

                                  1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -6.50000000000000053e141 < t < -1.6599999999999999e109

                                  1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -1.6599999999999999e109 < t < 4.29999999999999974e88

                                  1. Initial program 77.3%

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\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-*.f6443.5

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

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

                                Alternative 14: 51.4% accurate, 2.0× speedup?

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

                                  1. Initial program 63.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -5.79999999999999996e144 < t < 4.29999999999999974e88

                                  1. Initial program 77.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 15: 52.6% accurate, 2.0× speedup?

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

                                  1. Initial program 69.6%

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -2.36000000000000008e73 < a < 8.2000000000000007e-30

                                  1. Initial program 76.2%

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

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

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

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

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

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

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

                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\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-*.f6452.0

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

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

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

                                Alternative 16: 51.2% accurate, 2.0× speedup?

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

                                  1. Initial program 64.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -6.50000000000000053e141 < t < 1.35000000000000005e40

                                  1. Initial program 77.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                Alternative 17: 39.1% accurate, 2.0× speedup?

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

                                  1. Initial program 63.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                  if -1.94999999999999996e141 < t < 2.1e6

                                  1. Initial program 78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, i, a \cdot c\right) \cdot j \]
                                    14. lower-*.f6452.1

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

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

                                    \[\leadsto \left(a \cdot c\right) \cdot j \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites34.4%

                                      \[\leadsto \left(c \cdot a\right) \cdot j \]
                                  10. Recombined 2 regimes into one program.
                                  11. Final simplification47.6%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -1.95 \cdot 10^{+141} \lor \neg \left(t \leq 2100000\right):\\ \;\;\;\;\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                  12. Add Preprocessing

                                  Alternative 18: 30.0% accurate, 2.1× speedup?

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

                                    1. Initial program 63.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      if -1.06000000000000002e122 < y < -2.6e-82

                                      1. Initial program 78.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                      6. Taylor expanded in x around 0

                                        \[\leadsto \left(b \cdot i\right) \cdot t \]
                                      7. Step-by-step derivation
                                        1. Applied rewrites28.8%

                                          \[\leadsto \left(i \cdot b\right) \cdot t \]

                                        if -2.6e-82 < y < 6e-15

                                        1. Initial program 82.0%

                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in a around inf

                                          \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                        4. Step-by-step derivation
                                          1. *-commutativeN/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) \cdot a} \]
                                          2. lower-*.f64N/A

                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) \cdot a} \]
                                          3. mul-1-negN/A

                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + c \cdot j\right) \cdot a \]
                                          4. *-commutativeN/A

                                            \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{x \cdot t}\right)\right) + c \cdot j\right) \cdot a \]
                                          5. distribute-lft-neg-inN/A

                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(x\right)\right) \cdot t} + c \cdot j\right) \cdot a \]
                                          6. lower-fma.f64N/A

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(x\right), t, c \cdot j\right)} \cdot a \]
                                          7. lower-neg.f64N/A

                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, t, c \cdot j\right) \cdot a \]
                                          8. *-commutativeN/A

                                            \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
                                          9. lower-*.f6453.7

                                            \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
                                        5. Applied rewrites53.7%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a} \]
                                        6. Taylor expanded in x around 0

                                          \[\leadsto \left(c \cdot j\right) \cdot a \]
                                        7. Step-by-step derivation
                                          1. Applied rewrites34.9%

                                            \[\leadsto \left(c \cdot j\right) \cdot a \]

                                          if 6e-15 < y

                                          1. Initial program 58.8%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          2. Add Preprocessing
                                          3. Taylor expanded in z around inf

                                            \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                          4. Step-by-step derivation
                                            1. *-commutativeN/A

                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                            2. lower-*.f64N/A

                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                            3. cancel-sign-sub-invN/A

                                              \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                            4. distribute-lft-neg-inN/A

                                              \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                            5. mul-1-negN/A

                                              \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                            6. +-commutativeN/A

                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                            7. mul-1-negN/A

                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                            8. distribute-lft-neg-inN/A

                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                            9. lower-fma.f64N/A

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                            10. lower-neg.f64N/A

                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                            11. *-commutativeN/A

                                              \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                            12. lower-*.f6450.9

                                              \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                          5. Applied rewrites50.9%

                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                          6. Taylor expanded in x around inf

                                            \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                          7. Step-by-step derivation
                                            1. Applied rewrites41.0%

                                              \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                          8. Recombined 4 regimes into one program.
                                          9. Add Preprocessing

                                          Alternative 19: 30.3% accurate, 2.4× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -80:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{-70}:\\ \;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                          (FPCore (x y z t a b c i j)
                                           :precision binary64
                                           (if (<= a -80.0)
                                             (* (* c a) j)
                                             (if (<= a 7.8e-70) (* (- i) (* y j)) (* (* j a) c))))
                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                          	double tmp;
                                          	if (a <= -80.0) {
                                          		tmp = (c * a) * j;
                                          	} else if (a <= 7.8e-70) {
                                          		tmp = -i * (y * j);
                                          	} else {
                                          		tmp = (j * a) * c;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              real(8), intent (in) :: a
                                              real(8), intent (in) :: b
                                              real(8), intent (in) :: c
                                              real(8), intent (in) :: i
                                              real(8), intent (in) :: j
                                              real(8) :: tmp
                                              if (a <= (-80.0d0)) then
                                                  tmp = (c * a) * j
                                              else if (a <= 7.8d-70) then
                                                  tmp = -i * (y * j)
                                              else
                                                  tmp = (j * a) * c
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                          	double tmp;
                                          	if (a <= -80.0) {
                                          		tmp = (c * a) * j;
                                          	} else if (a <= 7.8e-70) {
                                          		tmp = -i * (y * j);
                                          	} else {
                                          		tmp = (j * a) * c;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a, b, c, i, j):
                                          	tmp = 0
                                          	if a <= -80.0:
                                          		tmp = (c * a) * j
                                          	elif a <= 7.8e-70:
                                          		tmp = -i * (y * j)
                                          	else:
                                          		tmp = (j * a) * c
                                          	return tmp
                                          
                                          function code(x, y, z, t, a, b, c, i, j)
                                          	tmp = 0.0
                                          	if (a <= -80.0)
                                          		tmp = Float64(Float64(c * a) * j);
                                          	elseif (a <= 7.8e-70)
                                          		tmp = Float64(Float64(-i) * Float64(y * j));
                                          	else
                                          		tmp = Float64(Float64(j * a) * c);
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                          	tmp = 0.0;
                                          	if (a <= -80.0)
                                          		tmp = (c * a) * j;
                                          	elseif (a <= 7.8e-70)
                                          		tmp = -i * (y * j);
                                          	else
                                          		tmp = (j * a) * c;
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -80.0], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 7.8e-70], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;a \leq -80:\\
                                          \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                          
                                          \mathbf{elif}\;a \leq 7.8 \cdot 10^{-70}:\\
                                          \;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if a < -80

                                            1. Initial program 69.0%

                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in j around -inf

                                              \[\leadsto \color{blue}{-1 \cdot \left(j \cdot \left(-1 \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \frac{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{j}\right)\right)} \]
                                            4. Applied rewrites79.9%

                                              \[\leadsto \color{blue}{\left(1 \cdot j\right) \cdot \mathsf{fma}\left(c, a, \mathsf{fma}\left(-i, y, \frac{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)}{j}\right)\right)} \]
                                            5. Taylor expanded in j around inf

                                              \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                            6. Step-by-step derivation
                                              1. *-commutativeN/A

                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                              2. lower-*.f64N/A

                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                              3. fp-cancel-sub-sign-invN/A

                                                \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                              4. mul-1-negN/A

                                                \[\leadsto \left(a \cdot c + \color{blue}{\left(-1 \cdot i\right)} \cdot y\right) \cdot j \]
                                              5. associate-*r*N/A

                                                \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                              6. +-commutativeN/A

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                              7. mul-1-negN/A

                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(i \cdot y\right)\right)} + a \cdot c\right) \cdot j \]
                                              8. *-commutativeN/A

                                                \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + a \cdot c\right) \cdot j \]
                                              9. distribute-lft-neg-inN/A

                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot i} + a \cdot c\right) \cdot j \]
                                              10. mul-1-negN/A

                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot i + a \cdot c\right) \cdot j \]
                                              11. lower-fma.f64N/A

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, i, a \cdot c\right)} \cdot j \]
                                              12. mul-1-negN/A

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, i, a \cdot c\right) \cdot j \]
                                              13. lower-neg.f64N/A

                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, i, a \cdot c\right) \cdot j \]
                                              14. lower-*.f6456.0

                                                \[\leadsto \mathsf{fma}\left(-y, i, \color{blue}{a \cdot c}\right) \cdot j \]
                                            7. Applied rewrites56.0%

                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j} \]
                                            8. Taylor expanded in y around 0

                                              \[\leadsto \left(a \cdot c\right) \cdot j \]
                                            9. Step-by-step derivation
                                              1. Applied rewrites46.0%

                                                \[\leadsto \left(c \cdot a\right) \cdot j \]

                                              if -80 < a < 7.80000000000000038e-70

                                              1. Initial program 78.3%

                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                              2. Add Preprocessing
                                              3. Taylor expanded in c around 0

                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + x \cdot \left(y \cdot z - a \cdot t\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
                                              4. Step-by-step derivation
                                                1. +-commutativeN/A

                                                  \[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - a \cdot t\right) + -1 \cdot \left(i \cdot \left(j \cdot y\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
                                                2. associate--l+N/A

                                                  \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right) + \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
                                                3. mul-1-negN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) - \color{blue}{\left(\mathsf{neg}\left(b \cdot \left(i \cdot t\right)\right)\right)}\right) \]
                                                4. distribute-lft-neg-inN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) - \color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot \left(i \cdot t\right)}\right) \]
                                                5. fp-cancel-sign-subN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{\left(-1 \cdot \left(i \cdot \left(j \cdot y\right)\right) + b \cdot \left(i \cdot t\right)\right)} \]
                                                6. mul-1-negN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\color{blue}{\left(\mathsf{neg}\left(i \cdot \left(j \cdot y\right)\right)\right)} + b \cdot \left(i \cdot t\right)\right) \]
                                                7. distribute-rgt-neg-inN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(\color{blue}{i \cdot \left(\mathsf{neg}\left(j \cdot y\right)\right)} + b \cdot \left(i \cdot t\right)\right) \]
                                                8. mul-1-negN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right)\right)} + b \cdot \left(i \cdot t\right)\right) \]
                                                9. *-commutativeN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(-1 \cdot \left(j \cdot y\right)\right) + \color{blue}{\left(i \cdot t\right) \cdot b}\right) \]
                                                10. associate-*r*N/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(-1 \cdot \left(j \cdot y\right)\right) + \color{blue}{i \cdot \left(t \cdot b\right)}\right) \]
                                                11. *-commutativeN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(-1 \cdot \left(j \cdot y\right)\right) + i \cdot \color{blue}{\left(b \cdot t\right)}\right) \]
                                                12. *-lft-identityN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(-1 \cdot \left(j \cdot y\right)\right) + i \cdot \color{blue}{\left(1 \cdot \left(b \cdot t\right)\right)}\right) \]
                                                13. metadata-evalN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(-1 \cdot \left(j \cdot y\right)\right) + i \cdot \left(\color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot t\right)\right)\right) \]
                                                14. distribute-lft-inN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\right)\right)} \]
                                                15. fp-cancel-sub-sign-invN/A

                                                  \[\leadsto x \cdot \left(y \cdot z - a \cdot t\right) + i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
                                              5. Applied rewrites65.6%

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)} \]
                                              6. Taylor expanded in j around inf

                                                \[\leadsto -1 \cdot \color{blue}{\left(i \cdot \left(j \cdot y\right)\right)} \]
                                              7. Step-by-step derivation
                                                1. Applied rewrites31.6%

                                                  \[\leadsto \left(-i\right) \cdot \color{blue}{\left(y \cdot j\right)} \]

                                                if 7.80000000000000038e-70 < a

                                                1. Initial program 69.2%

                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                2. Add Preprocessing
                                                3. Taylor expanded in c around inf

                                                  \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                4. Step-by-step derivation
                                                  1. *-commutativeN/A

                                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                  2. lower-*.f64N/A

                                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                  3. fp-cancel-sub-sign-invN/A

                                                    \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b\right)\right) \cdot z\right)} \cdot c \]
                                                  4. distribute-lft-neg-inN/A

                                                    \[\leadsto \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \cdot c \]
                                                  5. mul-1-negN/A

                                                    \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                  6. +-commutativeN/A

                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                  7. *-commutativeN/A

                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                  8. associate-*r*N/A

                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                  9. lower-fma.f64N/A

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                  10. mul-1-negN/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                  11. lower-neg.f64N/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                  12. *-commutativeN/A

                                                    \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                  13. lower-*.f6453.0

                                                    \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                5. Applied rewrites53.0%

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                6. Taylor expanded in z around 0

                                                  \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites38.3%

                                                    \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                8. Recombined 3 regimes into one program.
                                                9. Add Preprocessing

                                                Alternative 20: 29.8% accurate, 2.6× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.3 \cdot 10^{+53} \lor \neg \left(x \leq 1.45 \cdot 10^{+113}\right):\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \end{array} \end{array} \]
                                                (FPCore (x y z t a b c i j)
                                                 :precision binary64
                                                 (if (or (<= x -1.3e+53) (not (<= x 1.45e+113))) (* (* z y) x) (* (* i b) t)))
                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                	double tmp;
                                                	if ((x <= -1.3e+53) || !(x <= 1.45e+113)) {
                                                		tmp = (z * y) * x;
                                                	} else {
                                                		tmp = (i * b) * t;
                                                	}
                                                	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 <= (-1.3d+53)) .or. (.not. (x <= 1.45d+113))) then
                                                        tmp = (z * y) * x
                                                    else
                                                        tmp = (i * b) * t
                                                    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 <= -1.3e+53) || !(x <= 1.45e+113)) {
                                                		tmp = (z * y) * x;
                                                	} else {
                                                		tmp = (i * b) * t;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b, c, i, j):
                                                	tmp = 0
                                                	if (x <= -1.3e+53) or not (x <= 1.45e+113):
                                                		tmp = (z * y) * x
                                                	else:
                                                		tmp = (i * b) * t
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	tmp = 0.0
                                                	if ((x <= -1.3e+53) || !(x <= 1.45e+113))
                                                		tmp = Float64(Float64(z * y) * x);
                                                	else
                                                		tmp = Float64(Float64(i * b) * t);
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                	tmp = 0.0;
                                                	if ((x <= -1.3e+53) || ~((x <= 1.45e+113)))
                                                		tmp = (z * y) * x;
                                                	else
                                                		tmp = (i * b) * t;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -1.3e+53], N[Not[LessEqual[x, 1.45e+113]], $MachinePrecision]], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;x \leq -1.3 \cdot 10^{+53} \lor \neg \left(x \leq 1.45 \cdot 10^{+113}\right):\\
                                                \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 2 regimes
                                                2. if x < -1.29999999999999999e53 or 1.44999999999999992e113 < x

                                                  1. Initial program 67.4%

                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                  2. Add Preprocessing
                                                  3. Taylor expanded in z around inf

                                                    \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                  4. Step-by-step derivation
                                                    1. *-commutativeN/A

                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                    2. lower-*.f64N/A

                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                    3. cancel-sign-sub-invN/A

                                                      \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                    4. distribute-lft-neg-inN/A

                                                      \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                    5. mul-1-negN/A

                                                      \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                    6. +-commutativeN/A

                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                    7. mul-1-negN/A

                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                    8. distribute-lft-neg-inN/A

                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                    9. lower-fma.f64N/A

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                    10. lower-neg.f64N/A

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                    11. *-commutativeN/A

                                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                    12. lower-*.f6446.0

                                                      \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                  5. Applied rewrites46.0%

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                  6. Taylor expanded in x around inf

                                                    \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites38.0%

                                                      \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]

                                                    if -1.29999999999999999e53 < x < 1.44999999999999992e113

                                                    1. Initial program 76.6%

                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                    2. Add Preprocessing
                                                    3. Taylor expanded in t around inf

                                                      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                    4. Step-by-step derivation
                                                      1. *-commutativeN/A

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                      2. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                      3. fp-cancel-sub-sign-invN/A

                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                      4. metadata-evalN/A

                                                        \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                      5. *-lft-identityN/A

                                                        \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{b \cdot i}\right) \cdot t \]
                                                      6. associate-*r*N/A

                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + b \cdot i\right) \cdot t \]
                                                      7. mul-1-negN/A

                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + b \cdot i\right) \cdot t \]
                                                      8. lower-fma.f64N/A

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                      9. lower-neg.f64N/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                      10. *-commutativeN/A

                                                        \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                      11. lower-*.f6434.8

                                                        \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                    5. Applied rewrites34.8%

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                    6. Taylor expanded in x around 0

                                                      \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites27.1%

                                                        \[\leadsto \left(i \cdot b\right) \cdot t \]
                                                    8. Recombined 2 regimes into one program.
                                                    9. Final simplification31.2%

                                                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.3 \cdot 10^{+53} \lor \neg \left(x \leq 1.45 \cdot 10^{+113}\right):\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \end{array} \]
                                                    10. Add Preprocessing

                                                    Alternative 21: 28.8% accurate, 2.6× speedup?

                                                    \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -1.95 \cdot 10^{+169}:\\ \;\;\;\;\left(t \cdot i\right) \cdot b\\ \mathbf{elif}\;t \leq 2.2 \cdot 10^{+84}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \end{array} \end{array} \]
                                                    (FPCore (x y z t a b c i j)
                                                     :precision binary64
                                                     (if (<= t -1.95e+169)
                                                       (* (* t i) b)
                                                       (if (<= t 2.2e+84) (* (* c a) j) (* (* i b) t))))
                                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (t <= -1.95e+169) {
                                                    		tmp = (t * i) * b;
                                                    	} else if (t <= 2.2e+84) {
                                                    		tmp = (c * a) * j;
                                                    	} else {
                                                    		tmp = (i * b) * t;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                        real(8), intent (in) :: x
                                                        real(8), intent (in) :: y
                                                        real(8), intent (in) :: z
                                                        real(8), intent (in) :: t
                                                        real(8), intent (in) :: a
                                                        real(8), intent (in) :: b
                                                        real(8), intent (in) :: c
                                                        real(8), intent (in) :: i
                                                        real(8), intent (in) :: j
                                                        real(8) :: tmp
                                                        if (t <= (-1.95d+169)) then
                                                            tmp = (t * i) * b
                                                        else if (t <= 2.2d+84) then
                                                            tmp = (c * a) * j
                                                        else
                                                            tmp = (i * b) * t
                                                        end if
                                                        code = tmp
                                                    end function
                                                    
                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                    	double tmp;
                                                    	if (t <= -1.95e+169) {
                                                    		tmp = (t * i) * b;
                                                    	} else if (t <= 2.2e+84) {
                                                    		tmp = (c * a) * j;
                                                    	} else {
                                                    		tmp = (i * b) * t;
                                                    	}
                                                    	return tmp;
                                                    }
                                                    
                                                    def code(x, y, z, t, a, b, c, i, j):
                                                    	tmp = 0
                                                    	if t <= -1.95e+169:
                                                    		tmp = (t * i) * b
                                                    	elif t <= 2.2e+84:
                                                    		tmp = (c * a) * j
                                                    	else:
                                                    		tmp = (i * b) * t
                                                    	return tmp
                                                    
                                                    function code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0
                                                    	if (t <= -1.95e+169)
                                                    		tmp = Float64(Float64(t * i) * b);
                                                    	elseif (t <= 2.2e+84)
                                                    		tmp = Float64(Float64(c * a) * j);
                                                    	else
                                                    		tmp = Float64(Float64(i * b) * t);
                                                    	end
                                                    	return tmp
                                                    end
                                                    
                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                    	tmp = 0.0;
                                                    	if (t <= -1.95e+169)
                                                    		tmp = (t * i) * b;
                                                    	elseif (t <= 2.2e+84)
                                                    		tmp = (c * a) * j;
                                                    	else
                                                    		tmp = (i * b) * t;
                                                    	end
                                                    	tmp_2 = tmp;
                                                    end
                                                    
                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.95e+169], N[(N[(t * i), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 2.2e+84], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]]]
                                                    
                                                    \begin{array}{l}
                                                    
                                                    \\
                                                    \begin{array}{l}
                                                    \mathbf{if}\;t \leq -1.95 \cdot 10^{+169}:\\
                                                    \;\;\;\;\left(t \cdot i\right) \cdot b\\
                                                    
                                                    \mathbf{elif}\;t \leq 2.2 \cdot 10^{+84}:\\
                                                    \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                    
                                                    \mathbf{else}:\\
                                                    \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                    
                                                    
                                                    \end{array}
                                                    \end{array}
                                                    
                                                    Derivation
                                                    1. Split input into 3 regimes
                                                    2. if t < -1.94999999999999991e169

                                                      1. Initial program 56.1%

                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                      2. Add Preprocessing
                                                      3. Taylor expanded in b around inf

                                                        \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
                                                      4. Step-by-step derivation
                                                        1. *-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(i \cdot t - c \cdot z\right) \cdot b} \]
                                                        2. lower-*.f64N/A

                                                          \[\leadsto \color{blue}{\left(i \cdot t - c \cdot z\right) \cdot b} \]
                                                        3. fp-cancel-sub-sign-invN/A

                                                          \[\leadsto \color{blue}{\left(i \cdot t + \left(\mathsf{neg}\left(c\right)\right) \cdot z\right)} \cdot b \]
                                                        4. +-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(c\right)\right) \cdot z + i \cdot t\right)} \cdot b \]
                                                        5. distribute-lft-neg-outN/A

                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right)} + i \cdot t\right) \cdot b \]
                                                        6. *-commutativeN/A

                                                          \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{z \cdot c}\right)\right) + i \cdot t\right) \cdot b \]
                                                        7. distribute-lft-neg-inN/A

                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(z\right)\right) \cdot c} + i \cdot t\right) \cdot b \]
                                                        8. mul-1-negN/A

                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right)} \cdot c + i \cdot t\right) \cdot b \]
                                                        9. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, c, i \cdot t\right)} \cdot b \]
                                                        10. mul-1-negN/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, c, i \cdot t\right) \cdot b \]
                                                        11. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, c, i \cdot t\right) \cdot b \]
                                                        12. lower-*.f6456.8

                                                          \[\leadsto \mathsf{fma}\left(-z, c, \color{blue}{i \cdot t}\right) \cdot b \]
                                                      5. Applied rewrites56.8%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b} \]
                                                      6. Taylor expanded in z around 0

                                                        \[\leadsto \left(i \cdot t\right) \cdot b \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites57.0%

                                                          \[\leadsto \left(t \cdot i\right) \cdot b \]

                                                        if -1.94999999999999991e169 < t < 2.1999999999999998e84

                                                        1. Initial program 77.9%

                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                        2. Add Preprocessing
                                                        3. Taylor expanded in j around -inf

                                                          \[\leadsto \color{blue}{-1 \cdot \left(j \cdot \left(-1 \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \frac{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{j}\right)\right)} \]
                                                        4. Applied rewrites76.4%

                                                          \[\leadsto \color{blue}{\left(1 \cdot j\right) \cdot \mathsf{fma}\left(c, a, \mathsf{fma}\left(-i, y, \frac{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)}{j}\right)\right)} \]
                                                        5. Taylor expanded in j around inf

                                                          \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                        6. Step-by-step derivation
                                                          1. *-commutativeN/A

                                                            \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                          2. lower-*.f64N/A

                                                            \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                          3. fp-cancel-sub-sign-invN/A

                                                            \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                          4. mul-1-negN/A

                                                            \[\leadsto \left(a \cdot c + \color{blue}{\left(-1 \cdot i\right)} \cdot y\right) \cdot j \]
                                                          5. associate-*r*N/A

                                                            \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                                          6. +-commutativeN/A

                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                                          7. mul-1-negN/A

                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(i \cdot y\right)\right)} + a \cdot c\right) \cdot j \]
                                                          8. *-commutativeN/A

                                                            \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + a \cdot c\right) \cdot j \]
                                                          9. distribute-lft-neg-inN/A

                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot i} + a \cdot c\right) \cdot j \]
                                                          10. mul-1-negN/A

                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot i + a \cdot c\right) \cdot j \]
                                                          11. lower-fma.f64N/A

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, i, a \cdot c\right)} \cdot j \]
                                                          12. mul-1-negN/A

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, i, a \cdot c\right) \cdot j \]
                                                          13. lower-neg.f64N/A

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, i, a \cdot c\right) \cdot j \]
                                                          14. lower-*.f6449.9

                                                            \[\leadsto \mathsf{fma}\left(-y, i, \color{blue}{a \cdot c}\right) \cdot j \]
                                                        7. Applied rewrites49.9%

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j} \]
                                                        8. Taylor expanded in y around 0

                                                          \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                        9. Step-by-step derivation
                                                          1. Applied rewrites33.4%

                                                            \[\leadsto \left(c \cdot a\right) \cdot j \]

                                                          if 2.1999999999999998e84 < t

                                                          1. Initial program 62.8%

                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                          2. Add Preprocessing
                                                          3. Taylor expanded in t around inf

                                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                          4. Step-by-step derivation
                                                            1. *-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                            2. lower-*.f64N/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                            3. fp-cancel-sub-sign-invN/A

                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                            4. metadata-evalN/A

                                                              \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                            5. *-lft-identityN/A

                                                              \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{b \cdot i}\right) \cdot t \]
                                                            6. associate-*r*N/A

                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + b \cdot i\right) \cdot t \]
                                                            7. mul-1-negN/A

                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + b \cdot i\right) \cdot t \]
                                                            8. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                            9. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                            10. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                            11. lower-*.f6475.6

                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                          5. Applied rewrites75.6%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                          6. Taylor expanded in x around 0

                                                            \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites39.6%

                                                              \[\leadsto \left(i \cdot b\right) \cdot t \]
                                                          8. Recombined 3 regimes into one program.
                                                          9. Add Preprocessing

                                                          Alternative 22: 30.6% accurate, 2.6× speedup?

                                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \end{array} \]
                                                          (FPCore (x y z t a b c i j)
                                                           :precision binary64
                                                           (if (<= a -6.5e-15)
                                                             (* (* c a) j)
                                                             (if (<= a 4.4e-30) (* (* y x) z) (* (* j a) c))))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double tmp;
                                                          	if (a <= -6.5e-15) {
                                                          		tmp = (c * a) * j;
                                                          	} else if (a <= 4.4e-30) {
                                                          		tmp = (y * x) * z;
                                                          	} else {
                                                          		tmp = (j * a) * c;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                                              real(8), intent (in) :: x
                                                              real(8), intent (in) :: y
                                                              real(8), intent (in) :: z
                                                              real(8), intent (in) :: t
                                                              real(8), intent (in) :: a
                                                              real(8), intent (in) :: b
                                                              real(8), intent (in) :: c
                                                              real(8), intent (in) :: i
                                                              real(8), intent (in) :: j
                                                              real(8) :: tmp
                                                              if (a <= (-6.5d-15)) then
                                                                  tmp = (c * a) * j
                                                              else if (a <= 4.4d-30) then
                                                                  tmp = (y * x) * z
                                                              else
                                                                  tmp = (j * a) * c
                                                              end if
                                                              code = tmp
                                                          end function
                                                          
                                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	double tmp;
                                                          	if (a <= -6.5e-15) {
                                                          		tmp = (c * a) * j;
                                                          	} else if (a <= 4.4e-30) {
                                                          		tmp = (y * x) * z;
                                                          	} else {
                                                          		tmp = (j * a) * c;
                                                          	}
                                                          	return tmp;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	tmp = 0
                                                          	if a <= -6.5e-15:
                                                          		tmp = (c * a) * j
                                                          	elif a <= 4.4e-30:
                                                          		tmp = (y * x) * z
                                                          	else:
                                                          		tmp = (j * a) * c
                                                          	return tmp
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = 0.0
                                                          	if (a <= -6.5e-15)
                                                          		tmp = Float64(Float64(c * a) * j);
                                                          	elseif (a <= 4.4e-30)
                                                          		tmp = Float64(Float64(y * x) * z);
                                                          	else
                                                          		tmp = Float64(Float64(j * a) * c);
                                                          	end
                                                          	return tmp
                                                          end
                                                          
                                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = 0.0;
                                                          	if (a <= -6.5e-15)
                                                          		tmp = (c * a) * j;
                                                          	elseif (a <= 4.4e-30)
                                                          		tmp = (y * x) * z;
                                                          	else
                                                          		tmp = (j * a) * c;
                                                          	end
                                                          	tmp_2 = tmp;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.5e-15], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.4e-30], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]]]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \begin{array}{l}
                                                          \mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\
                                                          \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                          
                                                          \mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\
                                                          \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                          
                                                          \mathbf{else}:\\
                                                          \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                          
                                                          
                                                          \end{array}
                                                          \end{array}
                                                          
                                                          Derivation
                                                          1. Split input into 3 regimes
                                                          2. if a < -6.49999999999999991e-15

                                                            1. Initial program 70.0%

                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                            2. Add Preprocessing
                                                            3. Taylor expanded in j around -inf

                                                              \[\leadsto \color{blue}{-1 \cdot \left(j \cdot \left(-1 \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \frac{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{j}\right)\right)} \]
                                                            4. Applied rewrites80.5%

                                                              \[\leadsto \color{blue}{\left(1 \cdot j\right) \cdot \mathsf{fma}\left(c, a, \mathsf{fma}\left(-i, y, \frac{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)}{j}\right)\right)} \]
                                                            5. Taylor expanded in j around inf

                                                              \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                            6. Step-by-step derivation
                                                              1. *-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                              2. lower-*.f64N/A

                                                                \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                              3. fp-cancel-sub-sign-invN/A

                                                                \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                              4. mul-1-negN/A

                                                                \[\leadsto \left(a \cdot c + \color{blue}{\left(-1 \cdot i\right)} \cdot y\right) \cdot j \]
                                                              5. associate-*r*N/A

                                                                \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                                              6. +-commutativeN/A

                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                                              7. mul-1-negN/A

                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(i \cdot y\right)\right)} + a \cdot c\right) \cdot j \]
                                                              8. *-commutativeN/A

                                                                \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + a \cdot c\right) \cdot j \]
                                                              9. distribute-lft-neg-inN/A

                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot i} + a \cdot c\right) \cdot j \]
                                                              10. mul-1-negN/A

                                                                \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot i + a \cdot c\right) \cdot j \]
                                                              11. lower-fma.f64N/A

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, i, a \cdot c\right)} \cdot j \]
                                                              12. mul-1-negN/A

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, i, a \cdot c\right) \cdot j \]
                                                              13. lower-neg.f64N/A

                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, i, a \cdot c\right) \cdot j \]
                                                              14. lower-*.f6456.2

                                                                \[\leadsto \mathsf{fma}\left(-y, i, \color{blue}{a \cdot c}\right) \cdot j \]
                                                            7. Applied rewrites56.2%

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j} \]
                                                            8. Taylor expanded in y around 0

                                                              \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                            9. Step-by-step derivation
                                                              1. Applied rewrites45.1%

                                                                \[\leadsto \left(c \cdot a\right) \cdot j \]

                                                              if -6.49999999999999991e-15 < a < 4.39999999999999967e-30

                                                              1. Initial program 76.6%

                                                                \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                              2. Add Preprocessing
                                                              3. Taylor expanded in z around inf

                                                                \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                              4. Step-by-step derivation
                                                                1. *-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                2. lower-*.f64N/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                3. cancel-sign-sub-invN/A

                                                                  \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                4. distribute-lft-neg-inN/A

                                                                  \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                5. mul-1-negN/A

                                                                  \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                6. +-commutativeN/A

                                                                  \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                7. mul-1-negN/A

                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                8. distribute-lft-neg-inN/A

                                                                  \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                9. lower-fma.f64N/A

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                10. lower-neg.f64N/A

                                                                  \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                11. *-commutativeN/A

                                                                  \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                12. lower-*.f6444.5

                                                                  \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                              5. Applied rewrites44.5%

                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                              6. Taylor expanded in x around inf

                                                                \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                              7. Step-by-step derivation
                                                                1. Applied rewrites27.6%

                                                                  \[\leadsto \left(y \cdot x\right) \cdot z \]

                                                                if 4.39999999999999967e-30 < a

                                                                1. Initial program 70.0%

                                                                  \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                2. Add Preprocessing
                                                                3. Taylor expanded in c around inf

                                                                  \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
                                                                4. Step-by-step derivation
                                                                  1. *-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                  2. lower-*.f64N/A

                                                                    \[\leadsto \color{blue}{\left(a \cdot j - b \cdot z\right) \cdot c} \]
                                                                  3. fp-cancel-sub-sign-invN/A

                                                                    \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b\right)\right) \cdot z\right)} \cdot c \]
                                                                  4. distribute-lft-neg-inN/A

                                                                    \[\leadsto \left(a \cdot j + \color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)}\right) \cdot c \]
                                                                  5. mul-1-negN/A

                                                                    \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                                  6. +-commutativeN/A

                                                                    \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                                  7. *-commutativeN/A

                                                                    \[\leadsto \left(-1 \cdot \color{blue}{\left(z \cdot b\right)} + a \cdot j\right) \cdot c \]
                                                                  8. associate-*r*N/A

                                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot z\right) \cdot b} + a \cdot j\right) \cdot c \]
                                                                  9. lower-fma.f64N/A

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot z, b, a \cdot j\right)} \cdot c \]
                                                                  10. mul-1-negN/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(z\right)}, b, a \cdot j\right) \cdot c \]
                                                                  11. lower-neg.f64N/A

                                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{-z}, b, a \cdot j\right) \cdot c \]
                                                                  12. *-commutativeN/A

                                                                    \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                  13. lower-*.f6455.3

                                                                    \[\leadsto \mathsf{fma}\left(-z, b, \color{blue}{j \cdot a}\right) \cdot c \]
                                                                5. Applied rewrites55.3%

                                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c} \]
                                                                6. Taylor expanded in z around 0

                                                                  \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                                7. Step-by-step derivation
                                                                  1. Applied rewrites41.1%

                                                                    \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                8. Recombined 3 regimes into one program.
                                                                9. Add Preprocessing

                                                                Alternative 23: 30.3% accurate, 2.6× speedup?

                                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot j\right) \cdot a\\ \end{array} \end{array} \]
                                                                (FPCore (x y z t a b c i j)
                                                                 :precision binary64
                                                                 (if (<= a -6.5e-15)
                                                                   (* (* c a) j)
                                                                   (if (<= a 4.4e-30) (* (* y x) z) (* (* c j) a))))
                                                                double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	double tmp;
                                                                	if (a <= -6.5e-15) {
                                                                		tmp = (c * a) * j;
                                                                	} else if (a <= 4.4e-30) {
                                                                		tmp = (y * x) * z;
                                                                	} else {
                                                                		tmp = (c * j) * a;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                    real(8), intent (in) :: x
                                                                    real(8), intent (in) :: y
                                                                    real(8), intent (in) :: z
                                                                    real(8), intent (in) :: t
                                                                    real(8), intent (in) :: a
                                                                    real(8), intent (in) :: b
                                                                    real(8), intent (in) :: c
                                                                    real(8), intent (in) :: i
                                                                    real(8), intent (in) :: j
                                                                    real(8) :: tmp
                                                                    if (a <= (-6.5d-15)) then
                                                                        tmp = (c * a) * j
                                                                    else if (a <= 4.4d-30) then
                                                                        tmp = (y * x) * z
                                                                    else
                                                                        tmp = (c * j) * a
                                                                    end if
                                                                    code = tmp
                                                                end function
                                                                
                                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                	double tmp;
                                                                	if (a <= -6.5e-15) {
                                                                		tmp = (c * a) * j;
                                                                	} else if (a <= 4.4e-30) {
                                                                		tmp = (y * x) * z;
                                                                	} else {
                                                                		tmp = (c * j) * a;
                                                                	}
                                                                	return tmp;
                                                                }
                                                                
                                                                def code(x, y, z, t, a, b, c, i, j):
                                                                	tmp = 0
                                                                	if a <= -6.5e-15:
                                                                		tmp = (c * a) * j
                                                                	elif a <= 4.4e-30:
                                                                		tmp = (y * x) * z
                                                                	else:
                                                                		tmp = (c * j) * a
                                                                	return tmp
                                                                
                                                                function code(x, y, z, t, a, b, c, i, j)
                                                                	tmp = 0.0
                                                                	if (a <= -6.5e-15)
                                                                		tmp = Float64(Float64(c * a) * j);
                                                                	elseif (a <= 4.4e-30)
                                                                		tmp = Float64(Float64(y * x) * z);
                                                                	else
                                                                		tmp = Float64(Float64(c * j) * a);
                                                                	end
                                                                	return tmp
                                                                end
                                                                
                                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                	tmp = 0.0;
                                                                	if (a <= -6.5e-15)
                                                                		tmp = (c * a) * j;
                                                                	elseif (a <= 4.4e-30)
                                                                		tmp = (y * x) * z;
                                                                	else
                                                                		tmp = (c * j) * a;
                                                                	end
                                                                	tmp_2 = tmp;
                                                                end
                                                                
                                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.5e-15], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.4e-30], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(c * j), $MachinePrecision] * a), $MachinePrecision]]]
                                                                
                                                                \begin{array}{l}
                                                                
                                                                \\
                                                                \begin{array}{l}
                                                                \mathbf{if}\;a \leq -6.5 \cdot 10^{-15}:\\
                                                                \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                                
                                                                \mathbf{elif}\;a \leq 4.4 \cdot 10^{-30}:\\
                                                                \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                
                                                                \mathbf{else}:\\
                                                                \;\;\;\;\left(c \cdot j\right) \cdot a\\
                                                                
                                                                
                                                                \end{array}
                                                                \end{array}
                                                                
                                                                Derivation
                                                                1. Split input into 3 regimes
                                                                2. if a < -6.49999999999999991e-15

                                                                  1. Initial program 70.0%

                                                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                  2. Add Preprocessing
                                                                  3. Taylor expanded in j around -inf

                                                                    \[\leadsto \color{blue}{-1 \cdot \left(j \cdot \left(-1 \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \frac{x \cdot \left(y \cdot z - a \cdot t\right) - b \cdot \left(c \cdot z - i \cdot t\right)}{j}\right)\right)} \]
                                                                  4. Applied rewrites80.5%

                                                                    \[\leadsto \color{blue}{\left(1 \cdot j\right) \cdot \mathsf{fma}\left(c, a, \mathsf{fma}\left(-i, y, \frac{\mathsf{fma}\left(-b, \mathsf{fma}\left(-i, t, c \cdot z\right), \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)}{j}\right)\right)} \]
                                                                  5. Taylor expanded in j around inf

                                                                    \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                                  6. Step-by-step derivation
                                                                    1. *-commutativeN/A

                                                                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                    2. lower-*.f64N/A

                                                                      \[\leadsto \color{blue}{\left(a \cdot c - i \cdot y\right) \cdot j} \]
                                                                    3. fp-cancel-sub-sign-invN/A

                                                                      \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                                    4. mul-1-negN/A

                                                                      \[\leadsto \left(a \cdot c + \color{blue}{\left(-1 \cdot i\right)} \cdot y\right) \cdot j \]
                                                                    5. associate-*r*N/A

                                                                      \[\leadsto \left(a \cdot c + \color{blue}{-1 \cdot \left(i \cdot y\right)}\right) \cdot j \]
                                                                    6. +-commutativeN/A

                                                                      \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot y\right) + a \cdot c\right)} \cdot j \]
                                                                    7. mul-1-negN/A

                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(i \cdot y\right)\right)} + a \cdot c\right) \cdot j \]
                                                                    8. *-commutativeN/A

                                                                      \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) + a \cdot c\right) \cdot j \]
                                                                    9. distribute-lft-neg-inN/A

                                                                      \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(y\right)\right) \cdot i} + a \cdot c\right) \cdot j \]
                                                                    10. mul-1-negN/A

                                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot y\right)} \cdot i + a \cdot c\right) \cdot j \]
                                                                    11. lower-fma.f64N/A

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot y, i, a \cdot c\right)} \cdot j \]
                                                                    12. mul-1-negN/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(y\right)}, i, a \cdot c\right) \cdot j \]
                                                                    13. lower-neg.f64N/A

                                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{-y}, i, a \cdot c\right) \cdot j \]
                                                                    14. lower-*.f6456.2

                                                                      \[\leadsto \mathsf{fma}\left(-y, i, \color{blue}{a \cdot c}\right) \cdot j \]
                                                                  7. Applied rewrites56.2%

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-y, i, a \cdot c\right) \cdot j} \]
                                                                  8. Taylor expanded in y around 0

                                                                    \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                                  9. Step-by-step derivation
                                                                    1. Applied rewrites45.1%

                                                                      \[\leadsto \left(c \cdot a\right) \cdot j \]

                                                                    if -6.49999999999999991e-15 < a < 4.39999999999999967e-30

                                                                    1. Initial program 76.6%

                                                                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                    2. Add Preprocessing
                                                                    3. Taylor expanded in z around inf

                                                                      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                    4. Step-by-step derivation
                                                                      1. *-commutativeN/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                      2. lower-*.f64N/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                      3. cancel-sign-sub-invN/A

                                                                        \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                      4. distribute-lft-neg-inN/A

                                                                        \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                      5. mul-1-negN/A

                                                                        \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                      6. +-commutativeN/A

                                                                        \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                      7. mul-1-negN/A

                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                      8. distribute-lft-neg-inN/A

                                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                      9. lower-fma.f64N/A

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                      10. lower-neg.f64N/A

                                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                      11. *-commutativeN/A

                                                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                      12. lower-*.f6444.5

                                                                        \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                    5. Applied rewrites44.5%

                                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                    6. Taylor expanded in x around inf

                                                                      \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                    7. Step-by-step derivation
                                                                      1. Applied rewrites27.6%

                                                                        \[\leadsto \left(y \cdot x\right) \cdot z \]

                                                                      if 4.39999999999999967e-30 < a

                                                                      1. Initial program 70.0%

                                                                        \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                      2. Add Preprocessing
                                                                      3. Taylor expanded in a around inf

                                                                        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
                                                                      4. Step-by-step derivation
                                                                        1. *-commutativeN/A

                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) \cdot a} \]
                                                                        2. lower-*.f64N/A

                                                                          \[\leadsto \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right) \cdot a} \]
                                                                        3. mul-1-negN/A

                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + c \cdot j\right) \cdot a \]
                                                                        4. *-commutativeN/A

                                                                          \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{x \cdot t}\right)\right) + c \cdot j\right) \cdot a \]
                                                                        5. distribute-lft-neg-inN/A

                                                                          \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(x\right)\right) \cdot t} + c \cdot j\right) \cdot a \]
                                                                        6. lower-fma.f64N/A

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(x\right), t, c \cdot j\right)} \cdot a \]
                                                                        7. lower-neg.f64N/A

                                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{-x}, t, c \cdot j\right) \cdot a \]
                                                                        8. *-commutativeN/A

                                                                          \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
                                                                        9. lower-*.f6464.1

                                                                          \[\leadsto \mathsf{fma}\left(-x, t, \color{blue}{j \cdot c}\right) \cdot a \]
                                                                      5. Applied rewrites64.1%

                                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a} \]
                                                                      6. Taylor expanded in x around 0

                                                                        \[\leadsto \left(c \cdot j\right) \cdot a \]
                                                                      7. Step-by-step derivation
                                                                        1. Applied rewrites41.0%

                                                                          \[\leadsto \left(c \cdot j\right) \cdot a \]
                                                                      8. Recombined 3 regimes into one program.
                                                                      9. Add Preprocessing

                                                                      Alternative 24: 30.1% accurate, 2.6× speedup?

                                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.3 \cdot 10^{+53}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\ \;\;\;\;\left(i \cdot b\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                                                      (FPCore (x y z t a b c i j)
                                                                       :precision binary64
                                                                       (if (<= x -1.3e+53)
                                                                         (* (* z y) x)
                                                                         (if (<= x 1.45e+113) (* (* i b) t) (* (* y x) z))))
                                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                      	double tmp;
                                                                      	if (x <= -1.3e+53) {
                                                                      		tmp = (z * y) * x;
                                                                      	} else if (x <= 1.45e+113) {
                                                                      		tmp = (i * b) * t;
                                                                      	} else {
                                                                      		tmp = (y * x) * z;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                          real(8), intent (in) :: x
                                                                          real(8), intent (in) :: y
                                                                          real(8), intent (in) :: z
                                                                          real(8), intent (in) :: t
                                                                          real(8), intent (in) :: a
                                                                          real(8), intent (in) :: b
                                                                          real(8), intent (in) :: c
                                                                          real(8), intent (in) :: i
                                                                          real(8), intent (in) :: j
                                                                          real(8) :: tmp
                                                                          if (x <= (-1.3d+53)) then
                                                                              tmp = (z * y) * x
                                                                          else if (x <= 1.45d+113) then
                                                                              tmp = (i * b) * t
                                                                          else
                                                                              tmp = (y * x) * z
                                                                          end if
                                                                          code = tmp
                                                                      end function
                                                                      
                                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                      	double tmp;
                                                                      	if (x <= -1.3e+53) {
                                                                      		tmp = (z * y) * x;
                                                                      	} else if (x <= 1.45e+113) {
                                                                      		tmp = (i * b) * t;
                                                                      	} else {
                                                                      		tmp = (y * x) * z;
                                                                      	}
                                                                      	return tmp;
                                                                      }
                                                                      
                                                                      def code(x, y, z, t, a, b, c, i, j):
                                                                      	tmp = 0
                                                                      	if x <= -1.3e+53:
                                                                      		tmp = (z * y) * x
                                                                      	elif x <= 1.45e+113:
                                                                      		tmp = (i * b) * t
                                                                      	else:
                                                                      		tmp = (y * x) * z
                                                                      	return tmp
                                                                      
                                                                      function code(x, y, z, t, a, b, c, i, j)
                                                                      	tmp = 0.0
                                                                      	if (x <= -1.3e+53)
                                                                      		tmp = Float64(Float64(z * y) * x);
                                                                      	elseif (x <= 1.45e+113)
                                                                      		tmp = Float64(Float64(i * b) * t);
                                                                      	else
                                                                      		tmp = Float64(Float64(y * x) * z);
                                                                      	end
                                                                      	return tmp
                                                                      end
                                                                      
                                                                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                      	tmp = 0.0;
                                                                      	if (x <= -1.3e+53)
                                                                      		tmp = (z * y) * x;
                                                                      	elseif (x <= 1.45e+113)
                                                                      		tmp = (i * b) * t;
                                                                      	else
                                                                      		tmp = (y * x) * z;
                                                                      	end
                                                                      	tmp_2 = tmp;
                                                                      end
                                                                      
                                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.3e+53], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, 1.45e+113], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
                                                                      
                                                                      \begin{array}{l}
                                                                      
                                                                      \\
                                                                      \begin{array}{l}
                                                                      \mathbf{if}\;x \leq -1.3 \cdot 10^{+53}:\\
                                                                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                      
                                                                      \mathbf{elif}\;x \leq 1.45 \cdot 10^{+113}:\\
                                                                      \;\;\;\;\left(i \cdot b\right) \cdot t\\
                                                                      
                                                                      \mathbf{else}:\\
                                                                      \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                                                      
                                                                      
                                                                      \end{array}
                                                                      \end{array}
                                                                      
                                                                      Derivation
                                                                      1. Split input into 3 regimes
                                                                      2. if x < -1.29999999999999999e53

                                                                        1. Initial program 62.1%

                                                                          \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                        2. Add Preprocessing
                                                                        3. Taylor expanded in z around inf

                                                                          \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                        4. Step-by-step derivation
                                                                          1. *-commutativeN/A

                                                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                          2. lower-*.f64N/A

                                                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                          3. cancel-sign-sub-invN/A

                                                                            \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                          4. distribute-lft-neg-inN/A

                                                                            \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                          5. mul-1-negN/A

                                                                            \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                          6. +-commutativeN/A

                                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                          7. mul-1-negN/A

                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                          8. distribute-lft-neg-inN/A

                                                                            \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                          9. lower-fma.f64N/A

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                          10. lower-neg.f64N/A

                                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                          11. *-commutativeN/A

                                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                          12. lower-*.f6445.4

                                                                            \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                        5. Applied rewrites45.4%

                                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                        6. Taylor expanded in x around inf

                                                                          \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                        7. Step-by-step derivation
                                                                          1. Applied rewrites38.6%

                                                                            \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]

                                                                          if -1.29999999999999999e53 < x < 1.44999999999999992e113

                                                                          1. Initial program 76.6%

                                                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                          2. Add Preprocessing
                                                                          3. Taylor expanded in t around inf

                                                                            \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
                                                                          4. Step-by-step derivation
                                                                            1. *-commutativeN/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                            2. lower-*.f64N/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right) \cdot t} \]
                                                                            3. fp-cancel-sub-sign-invN/A

                                                                              \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot i\right)\right)} \cdot t \]
                                                                            4. metadata-evalN/A

                                                                              \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1} \cdot \left(b \cdot i\right)\right) \cdot t \]
                                                                            5. *-lft-identityN/A

                                                                              \[\leadsto \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{b \cdot i}\right) \cdot t \]
                                                                            6. associate-*r*N/A

                                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot a\right) \cdot x} + b \cdot i\right) \cdot t \]
                                                                            7. mul-1-negN/A

                                                                              \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(a\right)\right)} \cdot x + b \cdot i\right) \cdot t \]
                                                                            8. lower-fma.f64N/A

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), x, b \cdot i\right)} \cdot t \]
                                                                            9. lower-neg.f64N/A

                                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{-a}, x, b \cdot i\right) \cdot t \]
                                                                            10. *-commutativeN/A

                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                            11. lower-*.f6434.8

                                                                              \[\leadsto \mathsf{fma}\left(-a, x, \color{blue}{i \cdot b}\right) \cdot t \]
                                                                          5. Applied rewrites34.8%

                                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t} \]
                                                                          6. Taylor expanded in x around 0

                                                                            \[\leadsto \left(b \cdot i\right) \cdot t \]
                                                                          7. Step-by-step derivation
                                                                            1. Applied rewrites27.1%

                                                                              \[\leadsto \left(i \cdot b\right) \cdot t \]

                                                                            if 1.44999999999999992e113 < x

                                                                            1. Initial program 75.2%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in z around inf

                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              3. cancel-sign-sub-invN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                              4. distribute-lft-neg-inN/A

                                                                                \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                              5. mul-1-negN/A

                                                                                \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                              6. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                              7. mul-1-negN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                              8. distribute-lft-neg-inN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                              9. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                              12. lower-*.f6446.7

                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                            5. Applied rewrites46.7%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                            6. Taylor expanded in x around inf

                                                                              \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites39.4%

                                                                                \[\leadsto \left(y \cdot x\right) \cdot z \]
                                                                            8. Recombined 3 regimes into one program.
                                                                            9. Add Preprocessing

                                                                            Alternative 25: 22.5% accurate, 5.5× speedup?

                                                                            \[\begin{array}{l} \\ \left(z \cdot y\right) \cdot x \end{array} \]
                                                                            (FPCore (x y z t a b c i j) :precision binary64 (* (* z y) x))
                                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                            	return (z * y) * x;
                                                                            }
                                                                            
                                                                            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 = (z * y) * x
                                                                            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 (z * y) * x;
                                                                            }
                                                                            
                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                            	return (z * y) * x
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                            	return Float64(Float64(z * y) * x)
                                                                            end
                                                                            
                                                                            function tmp = code(x, y, z, t, a, b, c, i, j)
                                                                            	tmp = (z * y) * x;
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \left(z \cdot y\right) \cdot x
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Initial program 73.1%

                                                                              \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                                            2. Add Preprocessing
                                                                            3. Taylor expanded in z around inf

                                                                              \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
                                                                            4. Step-by-step derivation
                                                                              1. *-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              2. lower-*.f64N/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                              3. cancel-sign-sub-invN/A

                                                                                \[\leadsto \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b\right)\right) \cdot c\right)} \cdot z \]
                                                                              4. distribute-lft-neg-inN/A

                                                                                \[\leadsto \left(x \cdot y + \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)}\right) \cdot z \]
                                                                              5. mul-1-negN/A

                                                                                \[\leadsto \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \cdot z \]
                                                                              6. +-commutativeN/A

                                                                                \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \cdot z \]
                                                                              7. mul-1-negN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} + x \cdot y\right) \cdot z \]
                                                                              8. distribute-lft-neg-inN/A

                                                                                \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(b\right)\right) \cdot c} + x \cdot y\right) \cdot z \]
                                                                              9. lower-fma.f64N/A

                                                                                \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(b\right), c, x \cdot y\right)} \cdot z \]
                                                                              10. lower-neg.f64N/A

                                                                                \[\leadsto \mathsf{fma}\left(\color{blue}{-b}, c, x \cdot y\right) \cdot z \]
                                                                              11. *-commutativeN/A

                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                              12. lower-*.f6435.9

                                                                                \[\leadsto \mathsf{fma}\left(-b, c, \color{blue}{y \cdot x}\right) \cdot z \]
                                                                            5. Applied rewrites35.9%

                                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z} \]
                                                                            6. Taylor expanded in x around inf

                                                                              \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
                                                                            7. Step-by-step derivation
                                                                              1. Applied rewrites20.0%

                                                                                \[\leadsto \left(z \cdot y\right) \cdot \color{blue}{x} \]
                                                                              2. Add Preprocessing

                                                                              Developer Target 1: 58.7% accurate, 0.2× speedup?

                                                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                                              (FPCore (x y z t a b c i j)
                                                                               :precision binary64
                                                                               (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                                      (t_2
                                                                                       (+
                                                                                        (-
                                                                                         (* x (- (* y z) (* t a)))
                                                                                         (/
                                                                                          (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                                          (+ (* c z) (* t i))))
                                                                                        t_1)))
                                                                                 (if (< x -1.469694296777705e-64)
                                                                                   t_2
                                                                                   (if (< x 3.2113527362226803e-147)
                                                                                     (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                                                     t_2))))
                                                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double t_1 = j * ((c * a) - (y * i));
                                                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                              	double tmp;
                                                                              	if (x < -1.469694296777705e-64) {
                                                                              		tmp = t_2;
                                                                              	} else if (x < 3.2113527362226803e-147) {
                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                              	} else {
                                                                              		tmp = t_2;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                  real(8), intent (in) :: x
                                                                                  real(8), intent (in) :: y
                                                                                  real(8), intent (in) :: z
                                                                                  real(8), intent (in) :: t
                                                                                  real(8), intent (in) :: a
                                                                                  real(8), intent (in) :: b
                                                                                  real(8), intent (in) :: c
                                                                                  real(8), intent (in) :: i
                                                                                  real(8), intent (in) :: j
                                                                                  real(8) :: t_1
                                                                                  real(8) :: t_2
                                                                                  real(8) :: tmp
                                                                                  t_1 = j * ((c * a) - (y * i))
                                                                                  t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                                  if (x < (-1.469694296777705d-64)) then
                                                                                      tmp = t_2
                                                                                  else if (x < 3.2113527362226803d-147) then
                                                                                      tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                                  else
                                                                                      tmp = t_2
                                                                                  end if
                                                                                  code = tmp
                                                                              end function
                                                                              
                                                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                              	double t_1 = j * ((c * a) - (y * i));
                                                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                              	double tmp;
                                                                              	if (x < -1.469694296777705e-64) {
                                                                              		tmp = t_2;
                                                                              	} else if (x < 3.2113527362226803e-147) {
                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                              	} else {
                                                                              		tmp = t_2;
                                                                              	}
                                                                              	return tmp;
                                                                              }
                                                                              
                                                                              def code(x, y, z, t, a, b, c, i, j):
                                                                              	t_1 = j * ((c * a) - (y * i))
                                                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                                              	tmp = 0
                                                                              	if x < -1.469694296777705e-64:
                                                                              		tmp = t_2
                                                                              	elif x < 3.2113527362226803e-147:
                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                              	else:
                                                                              		tmp = t_2
                                                                              	return tmp
                                                                              
                                                                              function code(x, y, z, t, a, b, c, i, j)
                                                                              	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                                              	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                                              	tmp = 0.0
                                                                              	if (x < -1.469694296777705e-64)
                                                                              		tmp = t_2;
                                                                              	elseif (x < 3.2113527362226803e-147)
                                                                              		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                                                              	else
                                                                              		tmp = t_2;
                                                                              	end
                                                                              	return tmp
                                                                              end
                                                                              
                                                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                              	t_1 = j * ((c * a) - (y * i));
                                                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                                              	tmp = 0.0;
                                                                              	if (x < -1.469694296777705e-64)
                                                                              		tmp = t_2;
                                                                              	elseif (x < 3.2113527362226803e-147)
                                                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                                              	else
                                                                              		tmp = t_2;
                                                                              	end
                                                                              	tmp_2 = tmp;
                                                                              end
                                                                              
                                                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                                              
                                                                              \begin{array}{l}
                                                                              
                                                                              \\
                                                                              \begin{array}{l}
                                                                              t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                                              t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                                              \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                                              \;\;\;\;t\_2\\
                                                                              
                                                                              \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                                              \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                                              
                                                                              \mathbf{else}:\\
                                                                              \;\;\;\;t\_2\\
                                                                              
                                                                              
                                                                              \end{array}
                                                                              \end{array}
                                                                              

                                                                              Reproduce

                                                                              ?
                                                                              herbie shell --seed 2024339 
                                                                              (FPCore (x y z t a b c i j)
                                                                                :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                                                :precision binary64
                                                                              
                                                                                :alt
                                                                                (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                                                              
                                                                                (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))