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

Percentage Accurate: 72.9% → 81.0%
Time: 17.0s
Alternatives: 20
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 20 alternatives:

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

Initial Program: 72.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - 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: 81.0% accurate, 0.5× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 78.3% accurate, 0.9× speedup?

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

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
\mathbf{if}\;c \leq -7.5 \cdot 10^{+126}:\\
\;\;\;\;t\_1\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if c < -7.5000000000000006e126 or 6.5000000000000003e135 < c

    1. Initial program 61.3%

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

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

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

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

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

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

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

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

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

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

    if -7.5000000000000006e126 < c < 6.5000000000000003e135

    1. Initial program 76.7%

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

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

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

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

Alternative 3: 51.6% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{1}{\mathsf{fma}\left(t, -a, z \cdot y\right)}}\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= x -4e+86)
   (* (fma (- t) a (* z y)) x)
   (if (<= x -1.26e-64)
     (* (fma (- j) y (* b t)) i)
     (if (<= x -3e-105)
       (* (fma (- c) b (* y x)) z)
       (if (<= x -2.7e-262)
         (* (fma (- i) y (* c a)) j)
         (if (<= x 8.2e+55)
           (* (fma (- c) z (* i t)) b)
           (/ x (/ 1.0 (fma t (- a) (* z y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -4e+86) {
		tmp = fma(-t, a, (z * y)) * x;
	} else if (x <= -1.26e-64) {
		tmp = fma(-j, y, (b * t)) * i;
	} else if (x <= -3e-105) {
		tmp = fma(-c, b, (y * x)) * z;
	} else if (x <= -2.7e-262) {
		tmp = fma(-i, y, (c * a)) * j;
	} else if (x <= 8.2e+55) {
		tmp = fma(-c, z, (i * t)) * b;
	} else {
		tmp = x / (1.0 / fma(t, -a, (z * y)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= -4e+86)
		tmp = Float64(fma(Float64(-t), a, Float64(z * y)) * x);
	elseif (x <= -1.26e-64)
		tmp = Float64(fma(Float64(-j), y, Float64(b * t)) * i);
	elseif (x <= -3e-105)
		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
	elseif (x <= -2.7e-262)
		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
	elseif (x <= 8.2e+55)
		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b);
	else
		tmp = Float64(x / Float64(1.0 / fma(t, Float64(-a), Float64(z * y))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4e+86], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -1.26e-64], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, -3e-105], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -2.7e-262], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 8.2e+55], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(x / N[(1.0 / N[(t * (-a) + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\

\mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\
\;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\

\mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\

\mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\

\mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if x < -4.0000000000000001e86

    1. Initial program 71.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.0000000000000001e86 < x < -1.2599999999999999e-64

    1. Initial program 67.7%

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

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

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

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

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

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

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

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

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

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

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

    if -1.2599999999999999e-64 < x < -3.0000000000000001e-105

    1. Initial program 47.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.0000000000000001e-105 < x < -2.7000000000000001e-262

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

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

    if -2.7000000000000001e-262 < x < 8.19999999999999962e55

    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 8.19999999999999962e55 < x

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{x}{\color{blue}{\frac{1}{\mathsf{fma}\left(t, -a, y \cdot z\right)}}} \]
    7. Recombined 6 regimes into one program.
    8. Final simplification64.5%

      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{1}{\mathsf{fma}\left(t, -a, z \cdot y\right)}}\\ \end{array} \]
    9. Add Preprocessing

    Alternative 4: 65.3% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -6.5 \cdot 10^{+126}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 1.3 \cdot 10^{+121}:\\ \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- b) z (* j a)) c)))
       (if (<= c -6.5e+126)
         t_1
         (if (<= c 1.3e+121)
           (fma (fma (- c) z (* i t)) b (* (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(-b, z, (j * a)) * c;
    	double tmp;
    	if (c <= -6.5e+126) {
    		tmp = t_1;
    	} else if (c <= 1.3e+121) {
    		tmp = fma(fma(-c, z, (i * t)), b, (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(-b), z, Float64(j * a)) * c)
    	tmp = 0.0
    	if (c <= -6.5e+126)
    		tmp = t_1;
    	elseif (c <= 1.3e+121)
    		tmp = fma(fma(Float64(-c), z, Float64(i * t)), b, 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[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -6.5e+126], t$95$1, If[LessEqual[c, 1.3e+121], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
    \mathbf{if}\;c \leq -6.5 \cdot 10^{+126}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;c \leq 1.3 \cdot 10^{+121}:\\
    \;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot t\right), b, \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if c < -6.5000000000000005e126 or 1.2999999999999999e121 < c

      1. Initial program 61.3%

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

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

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

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

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

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

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

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

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

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

      if -6.5000000000000005e126 < c < 1.2999999999999999e121

      1. Initial program 76.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 5: 51.7% accurate, 1.2× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a b c i j)
     :precision binary64
     (let* ((t_1 (* (fma (- t) a (* z y)) x)))
       (if (<= x -4e+86)
         t_1
         (if (<= x -1.26e-64)
           (* (fma (- j) y (* b t)) i)
           (if (<= x -3e-105)
             (* (fma (- c) b (* y x)) z)
             (if (<= x -2.7e-262)
               (* (fma (- i) y (* c a)) j)
               (if (<= x 8.2e+55) (* (fma (- c) z (* i t)) 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(-t, a, (z * y)) * x;
    	double tmp;
    	if (x <= -4e+86) {
    		tmp = t_1;
    	} else if (x <= -1.26e-64) {
    		tmp = fma(-j, y, (b * t)) * i;
    	} else if (x <= -3e-105) {
    		tmp = fma(-c, b, (y * x)) * z;
    	} else if (x <= -2.7e-262) {
    		tmp = fma(-i, y, (c * a)) * j;
    	} else if (x <= 8.2e+55) {
    		tmp = fma(-c, z, (i * t)) * b;
    	} else {
    		tmp = t_1;
    	}
    	return tmp;
    }
    
    function code(x, y, z, t, a, b, c, i, j)
    	t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x)
    	tmp = 0.0
    	if (x <= -4e+86)
    		tmp = t_1;
    	elseif (x <= -1.26e-64)
    		tmp = Float64(fma(Float64(-j), y, Float64(b * t)) * i);
    	elseif (x <= -3e-105)
    		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
    	elseif (x <= -2.7e-262)
    		tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j);
    	elseif (x <= 8.2e+55)
    		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * 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[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4e+86], t$95$1, If[LessEqual[x, -1.26e-64], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, -3e-105], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -2.7e-262], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 8.2e+55], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
    \mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\
    \;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\
    
    \mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\
    \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
    
    \mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\
    \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
    
    \mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\
    \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
    
    \mathbf{else}:\\
    \;\;\;\;t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 5 regimes
    2. if x < -4.0000000000000001e86 or 8.19999999999999962e55 < x

      1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -4.0000000000000001e86 < x < -1.2599999999999999e-64

      1. Initial program 67.7%

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

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

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

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

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

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

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

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

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

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

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

      if -1.2599999999999999e-64 < x < -3.0000000000000001e-105

      1. Initial program 47.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -3.0000000000000001e-105 < x < -2.7000000000000001e-262

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

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

      if -2.7000000000000001e-262 < x < 8.19999999999999962e55

      1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{+86}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -1.26 \cdot 10^{-64}:\\ \;\;\;\;\mathsf{fma}\left(-j, y, b \cdot t\right) \cdot i\\ \mathbf{elif}\;x \leq -3 \cdot 10^{-105}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -2.7 \cdot 10^{-262}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;x \leq 8.2 \cdot 10^{+55}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\ \end{array} \]
    5. Add Preprocessing

    Alternative 6: 45.9% accurate, 1.6× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{if}\;t \leq -5.8 \cdot 10^{+27}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -4.7 \cdot 10^{-301}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 3.2 \cdot 10^{+36}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, 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 (- c) z (* i t)) b)))
       (if (<= t -5.8e+27)
         t_1
         (if (<= t -4.7e-301)
           (* (fma (- c) b (* y x)) z)
           (if (<= t 3.2e+36) (* (fma (- b) z (* 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(-c, z, (i * t)) * b;
    	double tmp;
    	if (t <= -5.8e+27) {
    		tmp = t_1;
    	} else if (t <= -4.7e-301) {
    		tmp = fma(-c, b, (y * x)) * z;
    	} else if (t <= 3.2e+36) {
    		tmp = fma(-b, z, (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(-c), z, Float64(i * t)) * b)
    	tmp = 0.0
    	if (t <= -5.8e+27)
    		tmp = t_1;
    	elseif (t <= -4.7e-301)
    		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
    	elseif (t <= 3.2e+36)
    		tmp = Float64(fma(Float64(-b), z, 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[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -5.8e+27], t$95$1, If[LessEqual[t, -4.7e-301], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 3.2e+36], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
    \mathbf{if}\;t \leq -5.8 \cdot 10^{+27}:\\
    \;\;\;\;t\_1\\
    
    \mathbf{elif}\;t \leq -4.7 \cdot 10^{-301}:\\
    \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
    
    \mathbf{elif}\;t \leq 3.2 \cdot 10^{+36}:\\
    \;\;\;\;\mathsf{fma}\left(-b, z, 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.8000000000000002e27 or 3.1999999999999999e36 < t

      1. Initial program 64.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -5.8000000000000002e27 < t < -4.6999999999999997e-301

      1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -4.6999999999999997e-301 < t < 3.1999999999999999e36

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

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

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

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

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

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

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

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

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

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

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

    Alternative 7: 42.9% accurate, 1.6× speedup?

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

      1. Initial program 64.1%

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

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

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

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

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

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

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

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

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

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

      if -6.5000000000000002e111 < c < 5.8000000000000003e-257

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if 5.8000000000000003e-257 < c < 1.35e-46

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.5 \cdot 10^{+111}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;c \leq 5.8 \cdot 10^{-257}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;c \leq 1.35 \cdot 10^{-46}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \end{array} \]
      10. Add Preprocessing

      Alternative 8: 41.8% accurate, 1.6× speedup?

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

        1. Initial program 67.2%

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

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

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

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

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

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

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

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

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

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

        if -5.50000000000000023e-53 < c < 5.8000000000000003e-257

        1. Initial program 79.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. Step-by-step derivation
          1. lift-*.f64N/A

            \[\leadsto \left(\color{blue}{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. lift--.f64N/A

            \[\leadsto \left(x \cdot \color{blue}{\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) \]
          3. flip--N/A

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

            \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
          5. un-div-invN/A

            \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
          6. lower-/.f64N/A

            \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
          7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
          21. lower-*.f6479.2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto \left(x \cdot y\right) \cdot z \]
        9. Step-by-step derivation
          1. Applied rewrites32.8%

            \[\leadsto \left(y \cdot x\right) \cdot z \]

          if 5.8000000000000003e-257 < c < 1.35e-46

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -5.5 \cdot 10^{-53}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;c \leq 5.8 \cdot 10^{-257}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;c \leq 1.35 \cdot 10^{-46}:\\ \;\;\;\;\left(\left(-a\right) \cdot t\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \end{array} \]
          10. Add Preprocessing

          Alternative 9: 29.0% accurate, 2.0× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\ \mathbf{elif}\;y \leq 1.85 \cdot 10^{-289}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;y \leq 2.7 \cdot 10^{+41}:\\ \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\ \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 (<= y -3.5e+79)
             (* (* (- i) y) j)
             (if (<= y 1.85e-289)
               (* (* j a) c)
               (if (<= y 2.7e+41) (* (* (- c) b) z) (* (* y x) z)))))
          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
          	double tmp;
          	if (y <= -3.5e+79) {
          		tmp = (-i * y) * j;
          	} else if (y <= 1.85e-289) {
          		tmp = (j * a) * c;
          	} else if (y <= 2.7e+41) {
          		tmp = (-c * b) * z;
          	} 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 (y <= (-3.5d+79)) then
                  tmp = (-i * y) * j
              else if (y <= 1.85d-289) then
                  tmp = (j * a) * c
              else if (y <= 2.7d+41) then
                  tmp = (-c * b) * z
              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 (y <= -3.5e+79) {
          		tmp = (-i * y) * j;
          	} else if (y <= 1.85e-289) {
          		tmp = (j * a) * c;
          	} else if (y <= 2.7e+41) {
          		tmp = (-c * b) * z;
          	} else {
          		tmp = (y * x) * z;
          	}
          	return tmp;
          }
          
          def code(x, y, z, t, a, b, c, i, j):
          	tmp = 0
          	if y <= -3.5e+79:
          		tmp = (-i * y) * j
          	elif y <= 1.85e-289:
          		tmp = (j * a) * c
          	elif y <= 2.7e+41:
          		tmp = (-c * b) * z
          	else:
          		tmp = (y * x) * z
          	return tmp
          
          function code(x, y, z, t, a, b, c, i, j)
          	tmp = 0.0
          	if (y <= -3.5e+79)
          		tmp = Float64(Float64(Float64(-i) * y) * j);
          	elseif (y <= 1.85e-289)
          		tmp = Float64(Float64(j * a) * c);
          	elseif (y <= 2.7e+41)
          		tmp = Float64(Float64(Float64(-c) * b) * z);
          	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 (y <= -3.5e+79)
          		tmp = (-i * y) * j;
          	elseif (y <= 1.85e-289)
          		tmp = (j * a) * c;
          	elseif (y <= 2.7e+41)
          		tmp = (-c * b) * z;
          	else
          		tmp = (y * x) * z;
          	end
          	tmp_2 = tmp;
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.5e+79], N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y, 1.85e-289], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[y, 2.7e+41], N[(N[((-c) * b), $MachinePrecision] * z), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\
          \;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\
          
          \mathbf{elif}\;y \leq 1.85 \cdot 10^{-289}:\\
          \;\;\;\;\left(j \cdot a\right) \cdot c\\
          
          \mathbf{elif}\;y \leq 2.7 \cdot 10^{+41}:\\
          \;\;\;\;\left(\left(-c\right) \cdot b\right) \cdot z\\
          
          \mathbf{else}:\\
          \;\;\;\;\left(y \cdot x\right) \cdot z\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 4 regimes
          2. if y < -3.4999999999999998e79

            1. Initial program 66.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
            4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

              if -3.4999999999999998e79 < y < 1.84999999999999994e-289

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

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

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

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

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

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

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

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

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

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

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

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

                if 1.84999999999999994e-289 < y < 2.7e41

                1. Initial program 81.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. Step-by-step derivation
                  1. lift-*.f64N/A

                    \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                    \[\leadsto \left(x \cdot \color{blue}{\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) \]
                  3. flip--N/A

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

                    \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                  5. un-div-invN/A

                    \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                  6. lower-/.f64N/A

                    \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                  7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                  21. lower-*.f6481.5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 2.7e41 < y

                  1. Initial program 53.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. Step-by-step derivation
                    1. lift-*.f64N/A

                      \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                      \[\leadsto \left(x \cdot \color{blue}{\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) \]
                    3. flip--N/A

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

                      \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                    5. un-div-invN/A

                      \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                    6. lower-/.f64N/A

                      \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                    7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                    18. lower-neg.f6453.9

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

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

                      \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                    21. lower-*.f6453.9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                  9. Step-by-step derivation
                    1. Applied rewrites45.9%

                      \[\leadsto \left(y \cdot x\right) \cdot z \]
                  10. Recombined 4 regimes into one program.
                  11. Add Preprocessing

                  Alternative 10: 28.6% accurate, 2.0× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \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 (<= y -3.5e+79)
                     (* (* (- i) y) j)
                     (if (<= y 2.3e-288)
                       (* (* j a) c)
                       (if (<= y 2.3e-66) (* (* (- c) z) b) (* (* y x) z)))))
                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                  	double tmp;
                  	if (y <= -3.5e+79) {
                  		tmp = (-i * y) * j;
                  	} else if (y <= 2.3e-288) {
                  		tmp = (j * a) * c;
                  	} else if (y <= 2.3e-66) {
                  		tmp = (-c * z) * b;
                  	} 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 (y <= (-3.5d+79)) then
                          tmp = (-i * y) * j
                      else if (y <= 2.3d-288) then
                          tmp = (j * a) * c
                      else if (y <= 2.3d-66) then
                          tmp = (-c * z) * b
                      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 (y <= -3.5e+79) {
                  		tmp = (-i * y) * j;
                  	} else if (y <= 2.3e-288) {
                  		tmp = (j * a) * c;
                  	} else if (y <= 2.3e-66) {
                  		tmp = (-c * z) * b;
                  	} else {
                  		tmp = (y * x) * z;
                  	}
                  	return tmp;
                  }
                  
                  def code(x, y, z, t, a, b, c, i, j):
                  	tmp = 0
                  	if y <= -3.5e+79:
                  		tmp = (-i * y) * j
                  	elif y <= 2.3e-288:
                  		tmp = (j * a) * c
                  	elif y <= 2.3e-66:
                  		tmp = (-c * z) * b
                  	else:
                  		tmp = (y * x) * z
                  	return tmp
                  
                  function code(x, y, z, t, a, b, c, i, j)
                  	tmp = 0.0
                  	if (y <= -3.5e+79)
                  		tmp = Float64(Float64(Float64(-i) * y) * j);
                  	elseif (y <= 2.3e-288)
                  		tmp = Float64(Float64(j * a) * c);
                  	elseif (y <= 2.3e-66)
                  		tmp = Float64(Float64(Float64(-c) * z) * b);
                  	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 (y <= -3.5e+79)
                  		tmp = (-i * y) * j;
                  	elseif (y <= 2.3e-288)
                  		tmp = (j * a) * c;
                  	elseif (y <= 2.3e-66)
                  		tmp = (-c * z) * b;
                  	else
                  		tmp = (y * x) * z;
                  	end
                  	tmp_2 = tmp;
                  end
                  
                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.5e+79], N[(N[((-i) * y), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y, 2.3e-288], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[y, 2.3e-66], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\
                  \;\;\;\;\left(\left(-i\right) \cdot y\right) \cdot j\\
                  
                  \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\
                  \;\;\;\;\left(j \cdot a\right) \cdot c\\
                  
                  \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\
                  \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\left(y \cdot x\right) \cdot z\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 4 regimes
                  2. if y < -3.4999999999999998e79

                    1. Initial program 66.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                    4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                      if -3.4999999999999998e79 < y < 2.3e-288

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

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

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

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

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

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

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

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

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

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

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

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

                        if 2.3e-288 < y < 2.29999999999999992e-66

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

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

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

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

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

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

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

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

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

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

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

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

                          if 2.29999999999999992e-66 < y

                          1. Initial program 57.7%

                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                          2. Add Preprocessing
                          3. Step-by-step derivation
                            1. lift-*.f64N/A

                              \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                              \[\leadsto \left(x \cdot \color{blue}{\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) \]
                            3. flip--N/A

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

                              \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                            5. un-div-invN/A

                              \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                            6. lower-/.f64N/A

                              \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                            7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

                              \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                            18. lower-neg.f6457.7

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

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

                              \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                            21. lower-*.f6457.7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            \[\leadsto \left(x \cdot y\right) \cdot z \]
                          9. Step-by-step derivation
                            1. Applied rewrites42.8%

                              \[\leadsto \left(y \cdot x\right) \cdot z \]
                          10. Recombined 4 regimes into one program.
                          11. Add Preprocessing

                          Alternative 11: 28.8% accurate, 2.0× speedup?

                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \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 (<= y -3.5e+79)
                             (* (* (- y) j) i)
                             (if (<= y 2.3e-288)
                               (* (* j a) c)
                               (if (<= y 2.3e-66) (* (* (- c) z) b) (* (* y x) z)))))
                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                          	double tmp;
                          	if (y <= -3.5e+79) {
                          		tmp = (-y * j) * i;
                          	} else if (y <= 2.3e-288) {
                          		tmp = (j * a) * c;
                          	} else if (y <= 2.3e-66) {
                          		tmp = (-c * z) * b;
                          	} 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 (y <= (-3.5d+79)) then
                                  tmp = (-y * j) * i
                              else if (y <= 2.3d-288) then
                                  tmp = (j * a) * c
                              else if (y <= 2.3d-66) then
                                  tmp = (-c * z) * b
                              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 (y <= -3.5e+79) {
                          		tmp = (-y * j) * i;
                          	} else if (y <= 2.3e-288) {
                          		tmp = (j * a) * c;
                          	} else if (y <= 2.3e-66) {
                          		tmp = (-c * z) * b;
                          	} else {
                          		tmp = (y * x) * z;
                          	}
                          	return tmp;
                          }
                          
                          def code(x, y, z, t, a, b, c, i, j):
                          	tmp = 0
                          	if y <= -3.5e+79:
                          		tmp = (-y * j) * i
                          	elif y <= 2.3e-288:
                          		tmp = (j * a) * c
                          	elif y <= 2.3e-66:
                          		tmp = (-c * z) * b
                          	else:
                          		tmp = (y * x) * z
                          	return tmp
                          
                          function code(x, y, z, t, a, b, c, i, j)
                          	tmp = 0.0
                          	if (y <= -3.5e+79)
                          		tmp = Float64(Float64(Float64(-y) * j) * i);
                          	elseif (y <= 2.3e-288)
                          		tmp = Float64(Float64(j * a) * c);
                          	elseif (y <= 2.3e-66)
                          		tmp = Float64(Float64(Float64(-c) * z) * b);
                          	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 (y <= -3.5e+79)
                          		tmp = (-y * j) * i;
                          	elseif (y <= 2.3e-288)
                          		tmp = (j * a) * c;
                          	elseif (y <= 2.3e-66)
                          		tmp = (-c * z) * b;
                          	else
                          		tmp = (y * x) * z;
                          	end
                          	tmp_2 = tmp;
                          end
                          
                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.5e+79], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y, 2.3e-288], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[y, 2.3e-66], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
                          
                          \begin{array}{l}
                          
                          \\
                          \begin{array}{l}
                          \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\
                          \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
                          
                          \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\
                          \;\;\;\;\left(j \cdot a\right) \cdot c\\
                          
                          \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\
                          \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
                          
                          \mathbf{else}:\\
                          \;\;\;\;\left(y \cdot x\right) \cdot z\\
                          
                          
                          \end{array}
                          \end{array}
                          
                          Derivation
                          1. Split input into 4 regimes
                          2. if y < -3.4999999999999998e79

                            1. Initial program 66.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                            4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                              if -3.4999999999999998e79 < y < 2.3e-288

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

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

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

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

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

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

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

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

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

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

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

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

                                if 2.3e-288 < y < 2.29999999999999992e-66

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

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

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

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

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

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

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

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

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

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

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

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

                                  if 2.29999999999999992e-66 < y

                                  1. Initial program 57.7%

                                    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                  2. Add Preprocessing
                                  3. Step-by-step derivation
                                    1. lift-*.f64N/A

                                      \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                                      \[\leadsto \left(x \cdot \color{blue}{\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) \]
                                    3. flip--N/A

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

                                      \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                    5. un-div-invN/A

                                      \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                    6. lower-/.f64N/A

                                      \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                    7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                    18. lower-neg.f6457.7

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

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

                                      \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                    21. lower-*.f6457.7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \left(x \cdot y\right) \cdot z \]
                                  9. Step-by-step derivation
                                    1. Applied rewrites42.8%

                                      \[\leadsto \left(y \cdot x\right) \cdot z \]
                                  10. Recombined 4 regimes into one program.
                                  11. Final simplification38.3%

                                    \[\leadsto \begin{array}{l} \mathbf{if}\;y \leq -3.5 \cdot 10^{+79}:\\ \;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \end{array} \]
                                  12. Add Preprocessing

                                  Alternative 12: 28.3% accurate, 2.0× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq -1.72 \cdot 10^{+50}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\ \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\ \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 (<= y -1.72e+50)
                                     (* (* z y) x)
                                     (if (<= y 2.3e-288)
                                       (* (* j a) c)
                                       (if (<= y 2.3e-66) (* (* (- c) z) b) (* (* y x) z)))))
                                  double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                  	double tmp;
                                  	if (y <= -1.72e+50) {
                                  		tmp = (z * y) * x;
                                  	} else if (y <= 2.3e-288) {
                                  		tmp = (j * a) * c;
                                  	} else if (y <= 2.3e-66) {
                                  		tmp = (-c * z) * b;
                                  	} 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 (y <= (-1.72d+50)) then
                                          tmp = (z * y) * x
                                      else if (y <= 2.3d-288) then
                                          tmp = (j * a) * c
                                      else if (y <= 2.3d-66) then
                                          tmp = (-c * z) * b
                                      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 (y <= -1.72e+50) {
                                  		tmp = (z * y) * x;
                                  	} else if (y <= 2.3e-288) {
                                  		tmp = (j * a) * c;
                                  	} else if (y <= 2.3e-66) {
                                  		tmp = (-c * z) * b;
                                  	} else {
                                  		tmp = (y * x) * z;
                                  	}
                                  	return tmp;
                                  }
                                  
                                  def code(x, y, z, t, a, b, c, i, j):
                                  	tmp = 0
                                  	if y <= -1.72e+50:
                                  		tmp = (z * y) * x
                                  	elif y <= 2.3e-288:
                                  		tmp = (j * a) * c
                                  	elif y <= 2.3e-66:
                                  		tmp = (-c * z) * b
                                  	else:
                                  		tmp = (y * x) * z
                                  	return tmp
                                  
                                  function code(x, y, z, t, a, b, c, i, j)
                                  	tmp = 0.0
                                  	if (y <= -1.72e+50)
                                  		tmp = Float64(Float64(z * y) * x);
                                  	elseif (y <= 2.3e-288)
                                  		tmp = Float64(Float64(j * a) * c);
                                  	elseif (y <= 2.3e-66)
                                  		tmp = Float64(Float64(Float64(-c) * z) * b);
                                  	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 (y <= -1.72e+50)
                                  		tmp = (z * y) * x;
                                  	elseif (y <= 2.3e-288)
                                  		tmp = (j * a) * c;
                                  	elseif (y <= 2.3e-66)
                                  		tmp = (-c * z) * b;
                                  	else
                                  		tmp = (y * x) * z;
                                  	end
                                  	tmp_2 = tmp;
                                  end
                                  
                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.72e+50], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 2.3e-288], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[y, 2.3e-66], N[(N[((-c) * z), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;y \leq -1.72 \cdot 10^{+50}:\\
                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                  
                                  \mathbf{elif}\;y \leq 2.3 \cdot 10^{-288}:\\
                                  \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                  
                                  \mathbf{elif}\;y \leq 2.3 \cdot 10^{-66}:\\
                                  \;\;\;\;\left(\left(-c\right) \cdot z\right) \cdot b\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 4 regimes
                                  2. if y < -1.72e50

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \left(y \cdot z\right) \cdot x \]
                                    7. Step-by-step derivation
                                      1. Applied rewrites34.9%

                                        \[\leadsto \left(z \cdot y\right) \cdot x \]

                                      if -1.72e50 < y < 2.3e-288

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

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

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

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

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

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

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

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

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

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

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

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

                                        if 2.3e-288 < y < 2.29999999999999992e-66

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

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

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

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

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

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

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

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

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

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

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

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

                                          if 2.29999999999999992e-66 < y

                                          1. Initial program 57.7%

                                            \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                          2. Add Preprocessing
                                          3. Step-by-step derivation
                                            1. lift-*.f64N/A

                                              \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                                              \[\leadsto \left(x \cdot \color{blue}{\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) \]
                                            3. flip--N/A

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

                                              \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                            5. un-div-invN/A

                                              \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                            6. lower-/.f64N/A

                                              \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                            7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

                                              \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                            18. lower-neg.f6457.7

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

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

                                              \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                            21. lower-*.f6457.7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                            \[\leadsto \left(x \cdot y\right) \cdot z \]
                                          9. Step-by-step derivation
                                            1. Applied rewrites42.8%

                                              \[\leadsto \left(y \cdot x\right) \cdot z \]
                                          10. Recombined 4 regimes into one program.
                                          11. Add Preprocessing

                                          Alternative 13: 52.7% accurate, 2.0× speedup?

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

                                            1. Initial program 63.7%

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

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

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

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

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

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

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

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

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

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

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

                                            if -6.5e18 < i < 1.0500000000000001e61

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 14: 52.3% accurate, 2.0× speedup?

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

                                            1. Initial program 61.3%

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

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

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

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

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

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

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

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

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

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

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

                                            if -4.9999999999999998e-8 < y < 3.2000000000000001e41

                                            1. Initial program 81.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 15: 50.9% accurate, 2.0× speedup?

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

                                            1. Initial program 71.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                            4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

                                            if -4.6999999999999999e-9 < j < 3.30000000000000003e137

                                            1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(c\right), z, \color{blue}{t \cdot i}\right) \cdot b \]
                                              19. lower-*.f6452.2

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

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

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

                                          Alternative 16: 28.7% accurate, 2.6× speedup?

                                          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1.3 \cdot 10^{+102}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \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 (<= c -1.3e+102)
                                             (* (* j c) a)
                                             (if (<= c 7.5e-29) (* (* y x) z) (* (* 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 (c <= -1.3e+102) {
                                          		tmp = (j * c) * a;
                                          	} else if (c <= 7.5e-29) {
                                          		tmp = (y * x) * z;
                                          	} else {
                                          		tmp = (c * a) * j;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          real(8) function code(x, y, z, t, a, b, c, i, j)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              real(8), intent (in) :: z
                                              real(8), intent (in) :: t
                                              real(8), intent (in) :: a
                                              real(8), intent (in) :: b
                                              real(8), intent (in) :: c
                                              real(8), intent (in) :: i
                                              real(8), intent (in) :: j
                                              real(8) :: tmp
                                              if (c <= (-1.3d+102)) then
                                                  tmp = (j * c) * a
                                              else if (c <= 7.5d-29) then
                                                  tmp = (y * x) * z
                                              else
                                                  tmp = (c * a) * j
                                              end if
                                              code = tmp
                                          end function
                                          
                                          public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                          	double tmp;
                                          	if (c <= -1.3e+102) {
                                          		tmp = (j * c) * a;
                                          	} else if (c <= 7.5e-29) {
                                          		tmp = (y * x) * z;
                                          	} else {
                                          		tmp = (c * a) * j;
                                          	}
                                          	return tmp;
                                          }
                                          
                                          def code(x, y, z, t, a, b, c, i, j):
                                          	tmp = 0
                                          	if c <= -1.3e+102:
                                          		tmp = (j * c) * a
                                          	elif c <= 7.5e-29:
                                          		tmp = (y * x) * z
                                          	else:
                                          		tmp = (c * a) * j
                                          	return tmp
                                          
                                          function code(x, y, z, t, a, b, c, i, j)
                                          	tmp = 0.0
                                          	if (c <= -1.3e+102)
                                          		tmp = Float64(Float64(j * c) * a);
                                          	elseif (c <= 7.5e-29)
                                          		tmp = Float64(Float64(y * x) * z);
                                          	else
                                          		tmp = Float64(Float64(c * a) * j);
                                          	end
                                          	return tmp
                                          end
                                          
                                          function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                          	tmp = 0.0;
                                          	if (c <= -1.3e+102)
                                          		tmp = (j * c) * a;
                                          	elseif (c <= 7.5e-29)
                                          		tmp = (y * x) * z;
                                          	else
                                          		tmp = (c * a) * j;
                                          	end
                                          	tmp_2 = tmp;
                                          end
                                          
                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.3e+102], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[c, 7.5e-29], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]]]
                                          
                                          \begin{array}{l}
                                          
                                          \\
                                          \begin{array}{l}
                                          \mathbf{if}\;c \leq -1.3 \cdot 10^{+102}:\\
                                          \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                          
                                          \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\
                                          \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                          
                                          \mathbf{else}:\\
                                          \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                          
                                          
                                          \end{array}
                                          \end{array}
                                          
                                          Derivation
                                          1. Split input into 3 regimes
                                          2. if c < -1.30000000000000003e102

                                            1. Initial program 62.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                            4. 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. cancel-sign-sub-invN/A

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

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

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

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

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

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

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

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

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

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

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

                                              if -1.30000000000000003e102 < c < 7.50000000000000006e-29

                                              1. Initial program 78.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. Step-by-step derivation
                                                1. lift-*.f64N/A

                                                  \[\leadsto \left(\color{blue}{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. lift--.f64N/A

                                                  \[\leadsto \left(x \cdot \color{blue}{\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) \]
                                                3. flip--N/A

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

                                                  \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                                5. un-div-invN/A

                                                  \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                                6. lower-/.f64N/A

                                                  \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(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) \]
                                                7. clear-numN/A

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

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

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

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

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

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

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

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

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

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

                                                  \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, y \cdot z\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                18. lower-neg.f6478.4

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

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

                                                  \[\leadsto \left(\frac{x}{\frac{1}{\mathsf{fma}\left(\mathsf{neg}\left(a\right), t, \color{blue}{z \cdot y}\right)}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                                                21. lower-*.f6478.4

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z} \]
                                              8. Taylor expanded in c around 0

                                                \[\leadsto \left(x \cdot y\right) \cdot z \]
                                              9. Step-by-step derivation
                                                1. Applied rewrites27.8%

                                                  \[\leadsto \left(y \cdot x\right) \cdot z \]

                                                if 7.50000000000000006e-29 < c

                                                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 j around inf

                                                  \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                4. 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. cancel-sign-sub-invN/A

                                                    \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                  4. +-commutativeN/A

                                                    \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                  5. neg-mul-1N/A

                                                    \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                  6. lower-fma.f64N/A

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                  7. neg-mul-1N/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                  8. lower-neg.f64N/A

                                                    \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                  9. *-commutativeN/A

                                                    \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(i\right), y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                  10. lower-*.f6447.4

                                                    \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                5. Applied rewrites47.4%

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                6. Taylor expanded in i around 0

                                                  \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                7. Step-by-step derivation
                                                  1. Applied rewrites40.6%

                                                    \[\leadsto \left(c \cdot a\right) \cdot j \]
                                                8. Recombined 3 regimes into one program.
                                                9. Final simplification33.2%

                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.3 \cdot 10^{+102}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                                10. Add Preprocessing

                                                Alternative 17: 28.4% accurate, 2.6× speedup?

                                                \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1.8 \cdot 10^{+102}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \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 (<= c -1.8e+102)
                                                   (* (* j c) a)
                                                   (if (<= c 7.5e-29) (* (* z y) x) (* (* 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 (c <= -1.8e+102) {
                                                		tmp = (j * c) * a;
                                                	} else if (c <= 7.5e-29) {
                                                		tmp = (z * y) * x;
                                                	} else {
                                                		tmp = (c * a) * j;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                real(8) function code(x, y, z, t, a, b, c, i, j)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    real(8), intent (in) :: z
                                                    real(8), intent (in) :: t
                                                    real(8), intent (in) :: a
                                                    real(8), intent (in) :: b
                                                    real(8), intent (in) :: c
                                                    real(8), intent (in) :: i
                                                    real(8), intent (in) :: j
                                                    real(8) :: tmp
                                                    if (c <= (-1.8d+102)) then
                                                        tmp = (j * c) * a
                                                    else if (c <= 7.5d-29) then
                                                        tmp = (z * y) * x
                                                    else
                                                        tmp = (c * a) * j
                                                    end if
                                                    code = tmp
                                                end function
                                                
                                                public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                	double tmp;
                                                	if (c <= -1.8e+102) {
                                                		tmp = (j * c) * a;
                                                	} else if (c <= 7.5e-29) {
                                                		tmp = (z * y) * x;
                                                	} else {
                                                		tmp = (c * a) * j;
                                                	}
                                                	return tmp;
                                                }
                                                
                                                def code(x, y, z, t, a, b, c, i, j):
                                                	tmp = 0
                                                	if c <= -1.8e+102:
                                                		tmp = (j * c) * a
                                                	elif c <= 7.5e-29:
                                                		tmp = (z * y) * x
                                                	else:
                                                		tmp = (c * a) * j
                                                	return tmp
                                                
                                                function code(x, y, z, t, a, b, c, i, j)
                                                	tmp = 0.0
                                                	if (c <= -1.8e+102)
                                                		tmp = Float64(Float64(j * c) * a);
                                                	elseif (c <= 7.5e-29)
                                                		tmp = Float64(Float64(z * y) * x);
                                                	else
                                                		tmp = Float64(Float64(c * a) * j);
                                                	end
                                                	return tmp
                                                end
                                                
                                                function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                	tmp = 0.0;
                                                	if (c <= -1.8e+102)
                                                		tmp = (j * c) * a;
                                                	elseif (c <= 7.5e-29)
                                                		tmp = (z * y) * x;
                                                	else
                                                		tmp = (c * a) * j;
                                                	end
                                                	tmp_2 = tmp;
                                                end
                                                
                                                code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.8e+102], N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[c, 7.5e-29], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]]]
                                                
                                                \begin{array}{l}
                                                
                                                \\
                                                \begin{array}{l}
                                                \mathbf{if}\;c \leq -1.8 \cdot 10^{+102}:\\
                                                \;\;\;\;\left(j \cdot c\right) \cdot a\\
                                                
                                                \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\
                                                \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                
                                                \mathbf{else}:\\
                                                \;\;\;\;\left(c \cdot a\right) \cdot j\\
                                                
                                                
                                                \end{array}
                                                \end{array}
                                                
                                                Derivation
                                                1. Split input into 3 regimes
                                                2. if c < -1.8000000000000001e102

                                                  1. Initial program 62.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}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                  4. 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. cancel-sign-sub-invN/A

                                                      \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                    4. +-commutativeN/A

                                                      \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                    5. neg-mul-1N/A

                                                      \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                    6. lower-fma.f64N/A

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                    7. neg-mul-1N/A

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                    8. lower-neg.f64N/A

                                                      \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                    9. *-commutativeN/A

                                                      \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(i\right), y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                    10. lower-*.f6450.4

                                                      \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                  5. Applied rewrites50.4%

                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                  6. Taylor expanded in i around 0

                                                    \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                  7. Step-by-step derivation
                                                    1. Applied rewrites44.9%

                                                      \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]

                                                    if -1.8000000000000001e102 < c < 7.50000000000000006e-29

                                                    1. Initial program 78.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 x around inf

                                                      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
                                                    4. Step-by-step derivation
                                                      1. *-commutativeN/A

                                                        \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                      2. lower-*.f64N/A

                                                        \[\leadsto \color{blue}{\left(y \cdot z - a \cdot t\right) \cdot x} \]
                                                      3. sub-negN/A

                                                        \[\leadsto \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \cdot x \]
                                                      4. +-commutativeN/A

                                                        \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \cdot x \]
                                                      5. *-commutativeN/A

                                                        \[\leadsto \left(\left(\mathsf{neg}\left(\color{blue}{t \cdot a}\right)\right) + y \cdot z\right) \cdot x \]
                                                      6. distribute-lft-neg-inN/A

                                                        \[\leadsto \left(\color{blue}{\left(\mathsf{neg}\left(t\right)\right) \cdot a} + y \cdot z\right) \cdot x \]
                                                      7. mul-1-negN/A

                                                        \[\leadsto \left(\color{blue}{\left(-1 \cdot t\right)} \cdot a + y \cdot z\right) \cdot x \]
                                                      8. lower-fma.f64N/A

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot t, a, y \cdot z\right)} \cdot x \]
                                                      9. mul-1-negN/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, a, y \cdot z\right) \cdot x \]
                                                      10. lower-neg.f64N/A

                                                        \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(t\right)}, a, y \cdot z\right) \cdot x \]
                                                      11. *-commutativeN/A

                                                        \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(t\right), a, \color{blue}{z \cdot y}\right) \cdot x \]
                                                      12. lower-*.f6446.1

                                                        \[\leadsto \mathsf{fma}\left(-t, a, \color{blue}{z \cdot y}\right) \cdot x \]
                                                    5. Applied rewrites46.1%

                                                      \[\leadsto \color{blue}{\mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x} \]
                                                    6. Taylor expanded in t around 0

                                                      \[\leadsto \left(y \cdot z\right) \cdot x \]
                                                    7. Step-by-step derivation
                                                      1. Applied rewrites27.1%

                                                        \[\leadsto \left(z \cdot y\right) \cdot x \]

                                                      if 7.50000000000000006e-29 < c

                                                      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 j around inf

                                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                      4. 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. cancel-sign-sub-invN/A

                                                          \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                        4. +-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                        5. neg-mul-1N/A

                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                        6. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                        7. neg-mul-1N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                        8. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                        9. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(i\right), y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                        10. lower-*.f6447.4

                                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                      5. Applied rewrites47.4%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                      6. Taylor expanded in i around 0

                                                        \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites40.6%

                                                          \[\leadsto \left(c \cdot a\right) \cdot j \]
                                                      8. Recombined 3 regimes into one program.
                                                      9. Final simplification32.8%

                                                        \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.8 \cdot 10^{+102}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;c \leq 7.5 \cdot 10^{-29}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                                      10. Add Preprocessing

                                                      Alternative 18: 21.4% accurate, 5.5× speedup?

                                                      \[\begin{array}{l} \\ \left(c \cdot a\right) \cdot j \end{array} \]
                                                      (FPCore (x y z t a b c i j) :precision binary64 (* (* c a) j))
                                                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	return (c * a) * j;
                                                      }
                                                      
                                                      real(8) function code(x, y, z, t, a, b, c, i, j)
                                                          real(8), intent (in) :: x
                                                          real(8), intent (in) :: y
                                                          real(8), intent (in) :: z
                                                          real(8), intent (in) :: t
                                                          real(8), intent (in) :: a
                                                          real(8), intent (in) :: b
                                                          real(8), intent (in) :: c
                                                          real(8), intent (in) :: i
                                                          real(8), intent (in) :: j
                                                          code = (c * a) * j
                                                      end function
                                                      
                                                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                      	return (c * a) * j;
                                                      }
                                                      
                                                      def code(x, y, z, t, a, b, c, i, j):
                                                      	return (c * a) * j
                                                      
                                                      function code(x, y, z, t, a, b, c, i, j)
                                                      	return Float64(Float64(c * a) * j)
                                                      end
                                                      
                                                      function tmp = code(x, y, z, t, a, b, c, i, j)
                                                      	tmp = (c * a) * j;
                                                      end
                                                      
                                                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \left(c \cdot a\right) \cdot j
                                                      \end{array}
                                                      
                                                      Derivation
                                                      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 j around inf

                                                        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                      4. 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. cancel-sign-sub-invN/A

                                                          \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                        4. +-commutativeN/A

                                                          \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                        5. neg-mul-1N/A

                                                          \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                        6. lower-fma.f64N/A

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                        7. neg-mul-1N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                        8. lower-neg.f64N/A

                                                          \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                        9. *-commutativeN/A

                                                          \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(i\right), y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                        10. lower-*.f6435.2

                                                          \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                      5. Applied rewrites35.2%

                                                        \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                      6. Taylor expanded in i around 0

                                                        \[\leadsto \left(a \cdot c\right) \cdot j \]
                                                      7. Step-by-step derivation
                                                        1. Applied rewrites22.6%

                                                          \[\leadsto \left(c \cdot a\right) \cdot j \]
                                                        2. Add Preprocessing

                                                        Alternative 19: 21.8% accurate, 5.5× speedup?

                                                        \[\begin{array}{l} \\ \left(j \cdot a\right) \cdot c \end{array} \]
                                                        (FPCore (x y z t a b c i j) :precision binary64 (* (* j a) c))
                                                        double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                        	return (j * a) * c;
                                                        }
                                                        
                                                        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 = (j * a) * c
                                                        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 (j * a) * c;
                                                        }
                                                        
                                                        def code(x, y, z, t, a, b, c, i, j):
                                                        	return (j * a) * c
                                                        
                                                        function code(x, y, z, t, a, b, c, i, j)
                                                        	return Float64(Float64(j * a) * c)
                                                        end
                                                        
                                                        function tmp = code(x, y, z, t, a, b, c, i, j)
                                                        	tmp = (j * a) * c;
                                                        end
                                                        
                                                        code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]
                                                        
                                                        \begin{array}{l}
                                                        
                                                        \\
                                                        \left(j \cdot a\right) \cdot c
                                                        \end{array}
                                                        
                                                        Derivation
                                                        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 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. sub-negN/A

                                                            \[\leadsto \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \cdot c \]
                                                          4. mul-1-negN/A

                                                            \[\leadsto \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \cdot c \]
                                                          5. +-commutativeN/A

                                                            \[\leadsto \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + a \cdot j\right)} \cdot c \]
                                                          6. associate-*r*N/A

                                                            \[\leadsto \left(\color{blue}{\left(-1 \cdot b\right) \cdot z} + a \cdot j\right) \cdot c \]
                                                          7. lower-fma.f64N/A

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot b, z, a \cdot j\right)} \cdot c \]
                                                          8. neg-mul-1N/A

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, z, a \cdot j\right) \cdot c \]
                                                          9. lower-neg.f64N/A

                                                            \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(b\right)}, z, a \cdot j\right) \cdot c \]
                                                          10. lower-*.f6438.6

                                                            \[\leadsto \mathsf{fma}\left(-b, z, \color{blue}{a \cdot j}\right) \cdot c \]
                                                        5. Applied rewrites38.6%

                                                          \[\leadsto \color{blue}{\mathsf{fma}\left(-b, z, a \cdot j\right) \cdot c} \]
                                                        6. Taylor expanded in b around 0

                                                          \[\leadsto \left(a \cdot j\right) \cdot c \]
                                                        7. Step-by-step derivation
                                                          1. Applied rewrites22.1%

                                                            \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                          2. Add Preprocessing

                                                          Alternative 20: 21.7% accurate, 5.5× speedup?

                                                          \[\begin{array}{l} \\ \left(j \cdot c\right) \cdot a \end{array} \]
                                                          (FPCore (x y z t a b c i j) :precision binary64 (* (* j c) a))
                                                          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                          	return (j * c) * a;
                                                          }
                                                          
                                                          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 = (j * c) * a
                                                          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 (j * c) * a;
                                                          }
                                                          
                                                          def code(x, y, z, t, a, b, c, i, j):
                                                          	return (j * c) * a
                                                          
                                                          function code(x, y, z, t, a, b, c, i, j)
                                                          	return Float64(Float64(j * c) * a)
                                                          end
                                                          
                                                          function tmp = code(x, y, z, t, a, b, c, i, j)
                                                          	tmp = (j * c) * a;
                                                          end
                                                          
                                                          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]
                                                          
                                                          \begin{array}{l}
                                                          
                                                          \\
                                                          \left(j \cdot c\right) \cdot a
                                                          \end{array}
                                                          
                                                          Derivation
                                                          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 j around inf

                                                            \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
                                                          4. 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. cancel-sign-sub-invN/A

                                                              \[\leadsto \color{blue}{\left(a \cdot c + \left(\mathsf{neg}\left(i\right)\right) \cdot y\right)} \cdot j \]
                                                            4. +-commutativeN/A

                                                              \[\leadsto \color{blue}{\left(\left(\mathsf{neg}\left(i\right)\right) \cdot y + a \cdot c\right)} \cdot j \]
                                                            5. neg-mul-1N/A

                                                              \[\leadsto \left(\color{blue}{\left(-1 \cdot i\right)} \cdot y + a \cdot c\right) \cdot j \]
                                                            6. lower-fma.f64N/A

                                                              \[\leadsto \color{blue}{\mathsf{fma}\left(-1 \cdot i, y, a \cdot c\right)} \cdot j \]
                                                            7. neg-mul-1N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                            8. lower-neg.f64N/A

                                                              \[\leadsto \mathsf{fma}\left(\color{blue}{\mathsf{neg}\left(i\right)}, y, a \cdot c\right) \cdot j \]
                                                            9. *-commutativeN/A

                                                              \[\leadsto \mathsf{fma}\left(\mathsf{neg}\left(i\right), y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                            10. lower-*.f6435.2

                                                              \[\leadsto \mathsf{fma}\left(-i, y, \color{blue}{c \cdot a}\right) \cdot j \]
                                                          5. Applied rewrites35.2%

                                                            \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                          6. Taylor expanded in i around 0

                                                            \[\leadsto a \cdot \color{blue}{\left(c \cdot j\right)} \]
                                                          7. Step-by-step derivation
                                                            1. Applied rewrites20.8%

                                                              \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                            2. Final simplification20.8%

                                                              \[\leadsto \left(j \cdot c\right) \cdot a \]
                                                            3. Add Preprocessing

                                                            Developer Target 1: 59.0% accurate, 0.2× speedup?

                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                                            (FPCore (x y z t a b c i j)
                                                             :precision binary64
                                                             (let* ((t_1 (* j (- (* c a) (* y i))))
                                                                    (t_2
                                                                     (+
                                                                      (-
                                                                       (* x (- (* y z) (* t a)))
                                                                       (/
                                                                        (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                                        (+ (* c z) (* t i))))
                                                                      t_1)))
                                                               (if (< x -1.469694296777705e-64)
                                                                 t_2
                                                                 (if (< x 3.2113527362226803e-147)
                                                                   (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                                   t_2))))
                                                            double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = j * ((c * a) - (y * i));
                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	double tmp;
                                                            	if (x < -1.469694296777705e-64) {
                                                            		tmp = t_2;
                                                            	} else if (x < 3.2113527362226803e-147) {
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                real(8), intent (in) :: x
                                                                real(8), intent (in) :: y
                                                                real(8), intent (in) :: z
                                                                real(8), intent (in) :: t
                                                                real(8), intent (in) :: a
                                                                real(8), intent (in) :: b
                                                                real(8), intent (in) :: c
                                                                real(8), intent (in) :: i
                                                                real(8), intent (in) :: j
                                                                real(8) :: t_1
                                                                real(8) :: t_2
                                                                real(8) :: tmp
                                                                t_1 = j * ((c * a) - (y * i))
                                                                t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                                if (x < (-1.469694296777705d-64)) then
                                                                    tmp = t_2
                                                                else if (x < 3.2113527362226803d-147) then
                                                                    tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                                else
                                                                    tmp = t_2
                                                                end if
                                                                code = tmp
                                                            end function
                                                            
                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                            	double t_1 = j * ((c * a) - (y * i));
                                                            	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	double tmp;
                                                            	if (x < -1.469694296777705e-64) {
                                                            		tmp = t_2;
                                                            	} else if (x < 3.2113527362226803e-147) {
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	} else {
                                                            		tmp = t_2;
                                                            	}
                                                            	return tmp;
                                                            }
                                                            
                                                            def code(x, y, z, t, a, b, c, i, j):
                                                            	t_1 = j * ((c * a) - (y * i))
                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                                            	tmp = 0
                                                            	if x < -1.469694296777705e-64:
                                                            		tmp = t_2
                                                            	elif x < 3.2113527362226803e-147:
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                            	else:
                                                            		tmp = t_2
                                                            	return tmp
                                                            
                                                            function code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                                            	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                                            	tmp = 0.0
                                                            	if (x < -1.469694296777705e-64)
                                                            		tmp = t_2;
                                                            	elseif (x < 3.2113527362226803e-147)
                                                            		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	return tmp
                                                            end
                                                            
                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                            	t_1 = j * ((c * a) - (y * i));
                                                            	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                                            	tmp = 0.0;
                                                            	if (x < -1.469694296777705e-64)
                                                            		tmp = t_2;
                                                            	elseif (x < 3.2113527362226803e-147)
                                                            		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                                            	else
                                                            		tmp = t_2;
                                                            	end
                                                            	tmp_2 = tmp;
                                                            end
                                                            
                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                                            
                                                            \begin{array}{l}
                                                            
                                                            \\
                                                            \begin{array}{l}
                                                            t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                                            t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                                            \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                                            \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                                            
                                                            \mathbf{else}:\\
                                                            \;\;\;\;t\_2\\
                                                            
                                                            
                                                            \end{array}
                                                            \end{array}
                                                            

                                                            Reproduce

                                                            ?
                                                            herbie shell --seed 2024235 
                                                            (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)))))