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

Percentage Accurate: 74.0% → 80.4%
Time: 17.3s
Alternatives: 21
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 21 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: 74.0% 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: 80.4% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.5e14

    1. Initial program 69.7%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-x, a, b \cdot i\right) \cdot t\right)\right)} \]
    6. 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)} \]
    7. Applied rewrites87.8%

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

    if -1.5e14 < b < 1.25000000000000007e83

    1. Initial program 75.7%

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.25000000000000007e83 < b

    1. Initial program 68.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 a around 0

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

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

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

Alternative 2: 80.0% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if b < -1.44999999999999993e80

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-x, a, b \cdot i\right) \cdot t\right)\right)} \]
    6. 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)} \]
    7. Applied rewrites86.0%

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

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

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

      if -1.44999999999999993e80 < b < 1.25000000000000007e83

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

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

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

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

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

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

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

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

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

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

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

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

      if 1.25000000000000007e83 < b

      1. Initial program 68.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 a around 0

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

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

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

    Alternative 3: 78.6% accurate, 0.9× speedup?

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

      1. Initial program 53.1%

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.3000000000000001e199 < i < 7.19999999999999958e156

      1. Initial program 77.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 a around 0

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

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

      if 7.19999999999999958e156 < i

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Alternative 4: 71.9% accurate, 1.0× speedup?

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

      1. Initial program 74.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. mul-1-negN/A

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

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

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

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

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

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

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

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

      if -3.7999999999999998e91 < x < 1.2000000000000001e127

      1. Initial program 72.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 t around 0

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-c, b, x \cdot y\right), z, \mathsf{fma}\left(-x, a, b \cdot i\right) \cdot t\right)\right)} \]
      6. 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)} \]
      7. Applied rewrites78.3%

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

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

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

        if 1.2000000000000001e127 < x

        1. Initial program 70.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 5: 60.8% accurate, 1.1× speedup?

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

          1. Initial program 43.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}{-i}, y, a \cdot c\right) \cdot j \]
            9. *-commutativeN/A

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

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

            \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
          6. Step-by-step derivation
            1. Applied rewrites81.4%

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

            if -8.59999999999999967e238 < j < -1.19999999999999996e-49 or 102 < j

            1. Initial program 76.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -1.19999999999999996e-49 < j < 2.1500000000000001e-177

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

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

                  \[\leadsto \color{blue}{\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) \]
                3. sub-negN/A

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

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

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

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

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

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

                \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(-a, t, z \cdot y\right), x, \color{blue}{-1 \cdot \left(b \cdot \left(c \cdot z\right)\right)}\right) \]
              6. Step-by-step derivation
                1. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if 2.1500000000000001e-177 < j < 102

              1. Initial program 65.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Alternative 6: 69.0% accurate, 1.2× speedup?

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

              1. Initial program 53.5%

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

                \[\leadsto \color{blue}{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}{-i}, y, a \cdot c\right) \cdot j \]
                9. *-commutativeN/A

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

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

                \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
              6. Step-by-step derivation
                1. Applied rewrites75.8%

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

                if -1.20000000000000007e154 < j < 5.2e110

                1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if 5.2e110 < j

                  1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  Alternative 7: 52.4% accurate, 1.4× speedup?

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

                    1. Initial program 73.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. mul-1-negN/A

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

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

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

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

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

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

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

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

                    if -3.40000000000000032e79 < x < -7e3

                    1. Initial program 82.8%

                      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
                    2. Add Preprocessing
                    3. Taylor expanded in c around 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}{-b}, z, a \cdot j\right) \cdot c \]
                      10. lower-*.f6461.8

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

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

                    if -7e3 < x < 2.74999999999999996e-14

                    1. Initial program 69.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. distribute-lft-neg-inN/A

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

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

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

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

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

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

                    if 2.74999999999999996e-14 < x < 2.94999999999999982e44

                    1. Initial program 74.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}{-i}, y, a \cdot c\right) \cdot j \]
                      9. *-commutativeN/A

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

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                    6. Step-by-step derivation
                      1. Applied rewrites61.4%

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.4 \cdot 10^{+79}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -7000:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 2.75 \cdot 10^{-14}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{elif}\;x \leq 2.95 \cdot 10^{+44}:\\ \;\;\;\;\mathsf{fma}\left(c, a, \left(-y\right) \cdot i\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
                    9. Add Preprocessing

                    Alternative 8: 61.0% accurate, 1.5× speedup?

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

                      1. Initial program 64.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      if -7.19999999999999975e55 < t < 1.4e44

                      1. Initial program 78.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      Alternative 9: 29.2% accurate, 1.6× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(\left(-a\right) \cdot x\right) \cdot t\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{+278}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 8 \cdot 10^{+48}:\\ \;\;\;\;\left(t \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                      (FPCore (x y z t a b c i j)
                       :precision binary64
                       (let* ((t_1 (* (* (- a) x) t)))
                         (if (<= x -5.4e+278)
                           t_1
                           (if (<= x -5.4e+48)
                             (* (* z y) x)
                             (if (<= x -8500.0)
                               (* (* j a) c)
                               (if (<= x 8e+48) (* (* t b) i) t_1))))))
                      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = (-a * x) * t;
                      	double tmp;
                      	if (x <= -5.4e+278) {
                      		tmp = t_1;
                      	} else if (x <= -5.4e+48) {
                      		tmp = (z * y) * x;
                      	} else if (x <= -8500.0) {
                      		tmp = (j * a) * c;
                      	} else if (x <= 8e+48) {
                      		tmp = (t * b) * i;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      real(8) function code(x, y, z, t, a, b, c, i, j)
                          real(8), intent (in) :: x
                          real(8), intent (in) :: y
                          real(8), intent (in) :: z
                          real(8), intent (in) :: t
                          real(8), intent (in) :: a
                          real(8), intent (in) :: b
                          real(8), intent (in) :: c
                          real(8), intent (in) :: i
                          real(8), intent (in) :: j
                          real(8) :: t_1
                          real(8) :: tmp
                          t_1 = (-a * x) * t
                          if (x <= (-5.4d+278)) then
                              tmp = t_1
                          else if (x <= (-5.4d+48)) then
                              tmp = (z * y) * x
                          else if (x <= (-8500.0d0)) then
                              tmp = (j * a) * c
                          else if (x <= 8d+48) then
                              tmp = (t * b) * i
                          else
                              tmp = t_1
                          end if
                          code = tmp
                      end function
                      
                      public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                      	double t_1 = (-a * x) * t;
                      	double tmp;
                      	if (x <= -5.4e+278) {
                      		tmp = t_1;
                      	} else if (x <= -5.4e+48) {
                      		tmp = (z * y) * x;
                      	} else if (x <= -8500.0) {
                      		tmp = (j * a) * c;
                      	} else if (x <= 8e+48) {
                      		tmp = (t * b) * i;
                      	} else {
                      		tmp = t_1;
                      	}
                      	return tmp;
                      }
                      
                      def code(x, y, z, t, a, b, c, i, j):
                      	t_1 = (-a * x) * t
                      	tmp = 0
                      	if x <= -5.4e+278:
                      		tmp = t_1
                      	elif x <= -5.4e+48:
                      		tmp = (z * y) * x
                      	elif x <= -8500.0:
                      		tmp = (j * a) * c
                      	elif x <= 8e+48:
                      		tmp = (t * b) * i
                      	else:
                      		tmp = t_1
                      	return tmp
                      
                      function code(x, y, z, t, a, b, c, i, j)
                      	t_1 = Float64(Float64(Float64(-a) * x) * t)
                      	tmp = 0.0
                      	if (x <= -5.4e+278)
                      		tmp = t_1;
                      	elseif (x <= -5.4e+48)
                      		tmp = Float64(Float64(z * y) * x);
                      	elseif (x <= -8500.0)
                      		tmp = Float64(Float64(j * a) * c);
                      	elseif (x <= 8e+48)
                      		tmp = Float64(Float64(t * b) * i);
                      	else
                      		tmp = t_1;
                      	end
                      	return tmp
                      end
                      
                      function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                      	t_1 = (-a * x) * t;
                      	tmp = 0.0;
                      	if (x <= -5.4e+278)
                      		tmp = t_1;
                      	elseif (x <= -5.4e+48)
                      		tmp = (z * y) * x;
                      	elseif (x <= -8500.0)
                      		tmp = (j * a) * c;
                      	elseif (x <= 8e+48)
                      		tmp = (t * b) * i;
                      	else
                      		tmp = t_1;
                      	end
                      	tmp_2 = tmp;
                      end
                      
                      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * x), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[x, -5.4e+278], t$95$1, If[LessEqual[x, -5.4e+48], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -8500.0], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 8e+48], N[(N[(t * b), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      t_1 := \left(\left(-a\right) \cdot x\right) \cdot t\\
                      \mathbf{if}\;x \leq -5.4 \cdot 10^{+278}:\\
                      \;\;\;\;t\_1\\
                      
                      \mathbf{elif}\;x \leq -5.4 \cdot 10^{+48}:\\
                      \;\;\;\;\left(z \cdot y\right) \cdot x\\
                      
                      \mathbf{elif}\;x \leq -8500:\\
                      \;\;\;\;\left(j \cdot a\right) \cdot c\\
                      
                      \mathbf{elif}\;x \leq 8 \cdot 10^{+48}:\\
                      \;\;\;\;\left(t \cdot b\right) \cdot i\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;t\_1\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 4 regimes
                      2. if x < -5.40000000000000021e278 or 8.00000000000000035e48 < x

                        1. Initial program 73.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                          if -5.40000000000000021e278 < x < -5.40000000000000007e48

                          1. Initial program 74.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -5.40000000000000007e48 < x < -8500

                            1. Initial program 85.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}{-i}, y, a \cdot c\right) \cdot j \]
                              9. *-commutativeN/A

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

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

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

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

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

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

                                if -8500 < x < 8.00000000000000035e48

                                1. Initial program 70.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    \[\leadsto \left(b \cdot t\right) \cdot i \]
                                8. Recombined 4 regimes into one program.
                                9. Final simplification44.8%

                                  \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{+278}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \mathbf{elif}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 8 \cdot 10^{+48}:\\ \;\;\;\;\left(t \cdot b\right) \cdot i\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-a\right) \cdot x\right) \cdot t\\ \end{array} \]
                                10. Add Preprocessing

                                Alternative 10: 29.8% accurate, 1.6× speedup?

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

                                  1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -5.40000000000000007e48 < x < -8500

                                    1. Initial program 85.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}{-i}, y, a \cdot c\right) \cdot j \]
                                      9. *-commutativeN/A

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

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

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

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

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

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

                                        if -8500 < x < 7.0000000000000001e-15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          if 7.0000000000000001e-15 < x < 3.6999999999999999e179

                                          1. Initial program 76.1%

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

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

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

                                              \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                            3. 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}{-c}, b, x \cdot y\right) \cdot z \]
                                            11. lower-*.f6444.7

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

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

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

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

                                            if 3.6999999999999999e179 < x

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \left(\left(-t\right) \cdot x\right) \cdot \color{blue}{a} \]
                                            8. Recombined 5 regimes into one program.
                                            9. Final simplification43.6%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;x \leq 3.7 \cdot 10^{+179}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \end{array} \]
                                            10. Add Preprocessing

                                            Alternative 11: 48.4% accurate, 1.6× speedup?

                                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.9 \cdot 10^{+28}:\\ \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\ \mathbf{elif}\;z \leq 1.12 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\ \mathbf{elif}\;z \leq 2.95 \cdot 10^{+50}:\\ \;\;\;\;\mathsf{fma}\left(c, a, \left(-y\right) \cdot i\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \end{array} \end{array} \]
                                            (FPCore (x y z t a b c i j)
                                             :precision binary64
                                             (if (<= z -3.9e+28)
                                               (* (fma (- j) i (* z x)) y)
                                               (if (<= z 1.12e-123)
                                                 (* (fma (- x) a (* i b)) t)
                                                 (if (<= z 2.95e+50)
                                                   (* (fma c a (* (- y) i)) j)
                                                   (* (fma (- c) 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 (z <= -3.9e+28) {
                                            		tmp = fma(-j, i, (z * x)) * y;
                                            	} else if (z <= 1.12e-123) {
                                            		tmp = fma(-x, a, (i * b)) * t;
                                            	} else if (z <= 2.95e+50) {
                                            		tmp = fma(c, a, (-y * i)) * j;
                                            	} else {
                                            		tmp = fma(-c, b, (y * x)) * z;
                                            	}
                                            	return tmp;
                                            }
                                            
                                            function code(x, y, z, t, a, b, c, i, j)
                                            	tmp = 0.0
                                            	if (z <= -3.9e+28)
                                            		tmp = Float64(fma(Float64(-j), i, Float64(z * x)) * y);
                                            	elseif (z <= 1.12e-123)
                                            		tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t);
                                            	elseif (z <= 2.95e+50)
                                            		tmp = Float64(fma(c, a, Float64(Float64(-y) * i)) * j);
                                            	else
                                            		tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z);
                                            	end
                                            	return tmp
                                            end
                                            
                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.9e+28], N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 1.12e-123], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 2.95e+50], N[(N[(c * a + N[((-y) * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]]]]
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            \begin{array}{l}
                                            \mathbf{if}\;z \leq -3.9 \cdot 10^{+28}:\\
                                            \;\;\;\;\mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
                                            
                                            \mathbf{elif}\;z \leq 1.12 \cdot 10^{-123}:\\
                                            \;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
                                            
                                            \mathbf{elif}\;z \leq 2.95 \cdot 10^{+50}:\\
                                            \;\;\;\;\mathsf{fma}\left(c, a, \left(-y\right) \cdot i\right) \cdot j\\
                                            
                                            \mathbf{else}:\\
                                            \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
                                            
                                            
                                            \end{array}
                                            \end{array}
                                            
                                            Derivation
                                            1. Split input into 4 regimes
                                            2. if z < -3.8999999999999999e28

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

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

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

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

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

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

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

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

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

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

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

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

                                              if -3.8999999999999999e28 < z < 1.11999999999999999e-123

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                              if 1.11999999999999999e-123 < z < 2.9499999999999999e50

                                              1. Initial program 83.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                9. *-commutativeN/A

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

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

                                                \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                              6. Step-by-step derivation
                                                1. Applied rewrites58.3%

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

                                                if 2.9499999999999999e50 < z

                                                1. Initial program 58.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 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}{-c}, b, x \cdot y\right) \cdot z \]
                                                  11. lower-*.f6470.7

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

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

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

                                              Alternative 12: 51.0% accurate, 1.6× speedup?

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

                                                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 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}{-i}, y, a \cdot c\right) \cdot j \]
                                                  9. *-commutativeN/A

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

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

                                                  \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                6. Step-by-step derivation
                                                  1. Applied rewrites62.5%

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

                                                  if -5.5000000000000004e126 < j < -2.09999999999999994e-240

                                                  1. Initial program 76.8%

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

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

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

                                                      \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                    3. 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}{-c}, b, x \cdot y\right) \cdot z \]
                                                    11. lower-*.f6460.2

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

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

                                                  if -2.09999999999999994e-240 < j < 1.50000000000000001e-23

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                Alternative 13: 42.1% accurate, 1.6× speedup?

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

                                                  1. Initial program 76.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                    if -5.40000000000000021e278 < x < -9.00000000000000051e146

                                                    1. Initial program 83.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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

                                                      if -9.00000000000000051e146 < x < 9.99999999999999927e209

                                                      1. Initial program 70.5%

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

                                                        \[\leadsto \color{blue}{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}{-i}, y, a \cdot c\right) \cdot j \]
                                                        9. *-commutativeN/A

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

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

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

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

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

                                                      Alternative 14: 29.9% accurate, 1.7× speedup?

                                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -3.8 \cdot 10^{+86}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;c \leq 9 \cdot 10^{-283}:\\ \;\;\;\;\left(t \cdot b\right) \cdot i\\ \mathbf{elif}\;c \leq 2.8 \cdot 10^{-210}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{+30}:\\ \;\;\;\;\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 -3.8e+86)
                                                         (* (* (- b) c) z)
                                                         (if (<= c 9e-283)
                                                           (* (* t b) i)
                                                           (if (<= c 2.8e-210)
                                                             (* (* (- x) t) a)
                                                             (if (<= c 8.8e+30) (* (* 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 <= -3.8e+86) {
                                                      		tmp = (-b * c) * z;
                                                      	} else if (c <= 9e-283) {
                                                      		tmp = (t * b) * i;
                                                      	} else if (c <= 2.8e-210) {
                                                      		tmp = (-x * t) * a;
                                                      	} else if (c <= 8.8e+30) {
                                                      		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 <= (-3.8d+86)) then
                                                              tmp = (-b * c) * z
                                                          else if (c <= 9d-283) then
                                                              tmp = (t * b) * i
                                                          else if (c <= 2.8d-210) then
                                                              tmp = (-x * t) * a
                                                          else if (c <= 8.8d+30) 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 <= -3.8e+86) {
                                                      		tmp = (-b * c) * z;
                                                      	} else if (c <= 9e-283) {
                                                      		tmp = (t * b) * i;
                                                      	} else if (c <= 2.8e-210) {
                                                      		tmp = (-x * t) * a;
                                                      	} else if (c <= 8.8e+30) {
                                                      		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 <= -3.8e+86:
                                                      		tmp = (-b * c) * z
                                                      	elif c <= 9e-283:
                                                      		tmp = (t * b) * i
                                                      	elif c <= 2.8e-210:
                                                      		tmp = (-x * t) * a
                                                      	elif c <= 8.8e+30:
                                                      		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 <= -3.8e+86)
                                                      		tmp = Float64(Float64(Float64(-b) * c) * z);
                                                      	elseif (c <= 9e-283)
                                                      		tmp = Float64(Float64(t * b) * i);
                                                      	elseif (c <= 2.8e-210)
                                                      		tmp = Float64(Float64(Float64(-x) * t) * a);
                                                      	elseif (c <= 8.8e+30)
                                                      		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 <= -3.8e+86)
                                                      		tmp = (-b * c) * z;
                                                      	elseif (c <= 9e-283)
                                                      		tmp = (t * b) * i;
                                                      	elseif (c <= 2.8e-210)
                                                      		tmp = (-x * t) * a;
                                                      	elseif (c <= 8.8e+30)
                                                      		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, -3.8e+86], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[c, 9e-283], N[(N[(t * b), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[c, 2.8e-210], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[c, 8.8e+30], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision]]]]]
                                                      
                                                      \begin{array}{l}
                                                      
                                                      \\
                                                      \begin{array}{l}
                                                      \mathbf{if}\;c \leq -3.8 \cdot 10^{+86}:\\
                                                      \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
                                                      
                                                      \mathbf{elif}\;c \leq 9 \cdot 10^{-283}:\\
                                                      \;\;\;\;\left(t \cdot b\right) \cdot i\\
                                                      
                                                      \mathbf{elif}\;c \leq 2.8 \cdot 10^{-210}:\\
                                                      \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
                                                      
                                                      \mathbf{elif}\;c \leq 8.8 \cdot 10^{+30}:\\
                                                      \;\;\;\;\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 5 regimes
                                                      2. if c < -3.79999999999999978e86

                                                        1. Initial program 53.4%

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

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

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

                                                            \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                          3. 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}{-c}, b, x \cdot y\right) \cdot z \]
                                                          11. lower-*.f6453.5

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

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

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

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

                                                          if -3.79999999999999978e86 < c < 8.9999999999999994e-283

                                                          1. Initial program 79.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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                            if 8.9999999999999994e-283 < c < 2.8e-210

                                                            1. Initial program 75.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                              if 2.8e-210 < c < 8.7999999999999999e30

                                                              1. Initial program 73.4%

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

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

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

                                                                  \[\leadsto \color{blue}{\left(x \cdot y - b \cdot c\right) \cdot z} \]
                                                                3. 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}{-c}, b, x \cdot y\right) \cdot z \]
                                                                11. lower-*.f6451.9

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

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

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

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

                                                                if 8.7999999999999999e30 < c

                                                                1. Initial program 75.8%

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

                                                                  \[\leadsto \color{blue}{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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                  9. *-commutativeN/A

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

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

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

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

                                                                    \[\leadsto \left(c \cdot a\right) \cdot j \]
                                                                8. Recombined 5 regimes into one program.
                                                                9. Final simplification44.4%

                                                                  \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -3.8 \cdot 10^{+86}:\\ \;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\ \mathbf{elif}\;c \leq 9 \cdot 10^{-283}:\\ \;\;\;\;\left(t \cdot b\right) \cdot i\\ \mathbf{elif}\;c \leq 2.8 \cdot 10^{-210}:\\ \;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\ \mathbf{elif}\;c \leq 8.8 \cdot 10^{+30}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \end{array} \]
                                                                10. Add Preprocessing

                                                                Alternative 15: 52.4% accurate, 2.0× speedup?

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

                                                                  1. Initial program 71.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                    9. *-commutativeN/A

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

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

                                                                    \[\leadsto \color{blue}{\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j} \]
                                                                  6. Step-by-step derivation
                                                                    1. Applied rewrites60.0%

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

                                                                    if -5.39999999999999997e-6 < j < 1.50000000000000001e-23

                                                                    1. Initial program 73.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. mul-1-negN/A

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

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

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

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

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

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

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

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

                                                                  Alternative 16: 30.1% accurate, 2.1× speedup?

                                                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;\left(z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\ \;\;\;\;\left(i \cdot t\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 (<= x -5.4e+48)
                                                                     (* (* z y) x)
                                                                     (if (<= x -8500.0)
                                                                       (* (* j a) c)
                                                                       (if (<= x 7e-15) (* (* i t) 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 (x <= -5.4e+48) {
                                                                  		tmp = (z * y) * x;
                                                                  	} else if (x <= -8500.0) {
                                                                  		tmp = (j * a) * c;
                                                                  	} else if (x <= 7e-15) {
                                                                  		tmp = (i * t) * 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 (x <= (-5.4d+48)) then
                                                                          tmp = (z * y) * x
                                                                      else if (x <= (-8500.0d0)) then
                                                                          tmp = (j * a) * c
                                                                      else if (x <= 7d-15) then
                                                                          tmp = (i * t) * 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 (x <= -5.4e+48) {
                                                                  		tmp = (z * y) * x;
                                                                  	} else if (x <= -8500.0) {
                                                                  		tmp = (j * a) * c;
                                                                  	} else if (x <= 7e-15) {
                                                                  		tmp = (i * t) * b;
                                                                  	} else {
                                                                  		tmp = (y * x) * z;
                                                                  	}
                                                                  	return tmp;
                                                                  }
                                                                  
                                                                  def code(x, y, z, t, a, b, c, i, j):
                                                                  	tmp = 0
                                                                  	if x <= -5.4e+48:
                                                                  		tmp = (z * y) * x
                                                                  	elif x <= -8500.0:
                                                                  		tmp = (j * a) * c
                                                                  	elif x <= 7e-15:
                                                                  		tmp = (i * t) * b
                                                                  	else:
                                                                  		tmp = (y * x) * z
                                                                  	return tmp
                                                                  
                                                                  function code(x, y, z, t, a, b, c, i, j)
                                                                  	tmp = 0.0
                                                                  	if (x <= -5.4e+48)
                                                                  		tmp = Float64(Float64(z * y) * x);
                                                                  	elseif (x <= -8500.0)
                                                                  		tmp = Float64(Float64(j * a) * c);
                                                                  	elseif (x <= 7e-15)
                                                                  		tmp = Float64(Float64(i * t) * 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 (x <= -5.4e+48)
                                                                  		tmp = (z * y) * x;
                                                                  	elseif (x <= -8500.0)
                                                                  		tmp = (j * a) * c;
                                                                  	elseif (x <= 7e-15)
                                                                  		tmp = (i * t) * b;
                                                                  	else
                                                                  		tmp = (y * x) * z;
                                                                  	end
                                                                  	tmp_2 = tmp;
                                                                  end
                                                                  
                                                                  code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -5.4e+48], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -8500.0], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 7e-15], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]]
                                                                  
                                                                  \begin{array}{l}
                                                                  
                                                                  \\
                                                                  \begin{array}{l}
                                                                  \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\
                                                                  \;\;\;\;\left(z \cdot y\right) \cdot x\\
                                                                  
                                                                  \mathbf{elif}\;x \leq -8500:\\
                                                                  \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                  
                                                                  \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\
                                                                  \;\;\;\;\left(i \cdot t\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 x < -5.40000000000000007e48

                                                                    1. Initial program 75.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                      if -5.40000000000000007e48 < x < -8500

                                                                      1. Initial program 85.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                        9. *-commutativeN/A

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

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

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

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

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

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

                                                                          if -8500 < x < 7.0000000000000001e-15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                            if 7.0000000000000001e-15 < x

                                                                            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 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}{-c}, b, x \cdot y\right) \cdot z \]
                                                                              11. lower-*.f6442.8

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

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

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

                                                                                \[\leadsto \left(x \cdot y\right) \cdot z \]
                                                                            8. Recombined 4 regimes into one program.
                                                                            9. Final simplification41.6%

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

                                                                            Alternative 17: 29.8% accurate, 2.1× speedup?

                                                                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\ \;\;\;\;\left(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 (* (* z y) x)))
                                                                               (if (<= x -5.4e+48)
                                                                                 t_1
                                                                                 (if (<= x -8500.0) (* (* j a) c) (if (<= x 7e-15) (* (* 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 = (z * y) * x;
                                                                            	double tmp;
                                                                            	if (x <= -5.4e+48) {
                                                                            		tmp = t_1;
                                                                            	} else if (x <= -8500.0) {
                                                                            		tmp = (j * a) * c;
                                                                            	} else if (x <= 7e-15) {
                                                                            		tmp = (i * t) * b;
                                                                            	} else {
                                                                            		tmp = t_1;
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                real(8), intent (in) :: x
                                                                                real(8), intent (in) :: y
                                                                                real(8), intent (in) :: z
                                                                                real(8), intent (in) :: t
                                                                                real(8), intent (in) :: a
                                                                                real(8), intent (in) :: b
                                                                                real(8), intent (in) :: c
                                                                                real(8), intent (in) :: i
                                                                                real(8), intent (in) :: j
                                                                                real(8) :: t_1
                                                                                real(8) :: tmp
                                                                                t_1 = (z * y) * x
                                                                                if (x <= (-5.4d+48)) then
                                                                                    tmp = t_1
                                                                                else if (x <= (-8500.0d0)) then
                                                                                    tmp = (j * a) * c
                                                                                else if (x <= 7d-15) then
                                                                                    tmp = (i * t) * b
                                                                                else
                                                                                    tmp = t_1
                                                                                end if
                                                                                code = tmp
                                                                            end function
                                                                            
                                                                            public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                            	double t_1 = (z * y) * x;
                                                                            	double tmp;
                                                                            	if (x <= -5.4e+48) {
                                                                            		tmp = t_1;
                                                                            	} else if (x <= -8500.0) {
                                                                            		tmp = (j * a) * c;
                                                                            	} else if (x <= 7e-15) {
                                                                            		tmp = (i * t) * b;
                                                                            	} else {
                                                                            		tmp = t_1;
                                                                            	}
                                                                            	return tmp;
                                                                            }
                                                                            
                                                                            def code(x, y, z, t, a, b, c, i, j):
                                                                            	t_1 = (z * y) * x
                                                                            	tmp = 0
                                                                            	if x <= -5.4e+48:
                                                                            		tmp = t_1
                                                                            	elif x <= -8500.0:
                                                                            		tmp = (j * a) * c
                                                                            	elif x <= 7e-15:
                                                                            		tmp = (i * t) * b
                                                                            	else:
                                                                            		tmp = t_1
                                                                            	return tmp
                                                                            
                                                                            function code(x, y, z, t, a, b, c, i, j)
                                                                            	t_1 = Float64(Float64(z * y) * x)
                                                                            	tmp = 0.0
                                                                            	if (x <= -5.4e+48)
                                                                            		tmp = t_1;
                                                                            	elseif (x <= -8500.0)
                                                                            		tmp = Float64(Float64(j * a) * c);
                                                                            	elseif (x <= 7e-15)
                                                                            		tmp = Float64(Float64(i * t) * b);
                                                                            	else
                                                                            		tmp = t_1;
                                                                            	end
                                                                            	return tmp
                                                                            end
                                                                            
                                                                            function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                            	t_1 = (z * y) * x;
                                                                            	tmp = 0.0;
                                                                            	if (x <= -5.4e+48)
                                                                            		tmp = t_1;
                                                                            	elseif (x <= -8500.0)
                                                                            		tmp = (j * a) * c;
                                                                            	elseif (x <= 7e-15)
                                                                            		tmp = (i * t) * b;
                                                                            	else
                                                                            		tmp = t_1;
                                                                            	end
                                                                            	tmp_2 = tmp;
                                                                            end
                                                                            
                                                                            code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -5.4e+48], t$95$1, If[LessEqual[x, -8500.0], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 7e-15], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
                                                                            
                                                                            \begin{array}{l}
                                                                            
                                                                            \\
                                                                            \begin{array}{l}
                                                                            t_1 := \left(z \cdot y\right) \cdot x\\
                                                                            \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            \mathbf{elif}\;x \leq -8500:\\
                                                                            \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                            
                                                                            \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\
                                                                            \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                            
                                                                            \mathbf{else}:\\
                                                                            \;\;\;\;t\_1\\
                                                                            
                                                                            
                                                                            \end{array}
                                                                            \end{array}
                                                                            
                                                                            Derivation
                                                                            1. Split input into 3 regimes
                                                                            2. if x < -5.40000000000000007e48 or 7.0000000000000001e-15 < x

                                                                              1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                if -5.40000000000000007e48 < x < -8500

                                                                                1. Initial program 85.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                  9. *-commutativeN/A

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

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

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

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

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

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

                                                                                    if -8500 < x < 7.0000000000000001e-15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                    Alternative 18: 30.4% accurate, 2.1× speedup?

                                                                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(z \cdot x\right) \cdot y\\ \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -8500:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\ \;\;\;\;\left(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 (* (* z x) y)))
                                                                                       (if (<= x -5.4e+48)
                                                                                         t_1
                                                                                         (if (<= x -8500.0) (* (* j a) c) (if (<= x 7e-15) (* (* 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 = (z * x) * y;
                                                                                    	double tmp;
                                                                                    	if (x <= -5.4e+48) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (x <= -8500.0) {
                                                                                    		tmp = (j * a) * c;
                                                                                    	} else if (x <= 7e-15) {
                                                                                    		tmp = (i * t) * b;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    real(8) function code(x, y, z, t, a, b, c, i, j)
                                                                                        real(8), intent (in) :: x
                                                                                        real(8), intent (in) :: y
                                                                                        real(8), intent (in) :: z
                                                                                        real(8), intent (in) :: t
                                                                                        real(8), intent (in) :: a
                                                                                        real(8), intent (in) :: b
                                                                                        real(8), intent (in) :: c
                                                                                        real(8), intent (in) :: i
                                                                                        real(8), intent (in) :: j
                                                                                        real(8) :: t_1
                                                                                        real(8) :: tmp
                                                                                        t_1 = (z * x) * y
                                                                                        if (x <= (-5.4d+48)) then
                                                                                            tmp = t_1
                                                                                        else if (x <= (-8500.0d0)) then
                                                                                            tmp = (j * a) * c
                                                                                        else if (x <= 7d-15) then
                                                                                            tmp = (i * t) * b
                                                                                        else
                                                                                            tmp = t_1
                                                                                        end if
                                                                                        code = tmp
                                                                                    end function
                                                                                    
                                                                                    public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                                                                    	double t_1 = (z * x) * y;
                                                                                    	double tmp;
                                                                                    	if (x <= -5.4e+48) {
                                                                                    		tmp = t_1;
                                                                                    	} else if (x <= -8500.0) {
                                                                                    		tmp = (j * a) * c;
                                                                                    	} else if (x <= 7e-15) {
                                                                                    		tmp = (i * t) * b;
                                                                                    	} else {
                                                                                    		tmp = t_1;
                                                                                    	}
                                                                                    	return tmp;
                                                                                    }
                                                                                    
                                                                                    def code(x, y, z, t, a, b, c, i, j):
                                                                                    	t_1 = (z * x) * y
                                                                                    	tmp = 0
                                                                                    	if x <= -5.4e+48:
                                                                                    		tmp = t_1
                                                                                    	elif x <= -8500.0:
                                                                                    		tmp = (j * a) * c
                                                                                    	elif x <= 7e-15:
                                                                                    		tmp = (i * t) * b
                                                                                    	else:
                                                                                    		tmp = t_1
                                                                                    	return tmp
                                                                                    
                                                                                    function code(x, y, z, t, a, b, c, i, j)
                                                                                    	t_1 = Float64(Float64(z * x) * y)
                                                                                    	tmp = 0.0
                                                                                    	if (x <= -5.4e+48)
                                                                                    		tmp = t_1;
                                                                                    	elseif (x <= -8500.0)
                                                                                    		tmp = Float64(Float64(j * a) * c);
                                                                                    	elseif (x <= 7e-15)
                                                                                    		tmp = Float64(Float64(i * t) * b);
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	return tmp
                                                                                    end
                                                                                    
                                                                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                                                                    	t_1 = (z * x) * y;
                                                                                    	tmp = 0.0;
                                                                                    	if (x <= -5.4e+48)
                                                                                    		tmp = t_1;
                                                                                    	elseif (x <= -8500.0)
                                                                                    		tmp = (j * a) * c;
                                                                                    	elseif (x <= 7e-15)
                                                                                    		tmp = (i * t) * b;
                                                                                    	else
                                                                                    		tmp = t_1;
                                                                                    	end
                                                                                    	tmp_2 = tmp;
                                                                                    end
                                                                                    
                                                                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[x, -5.4e+48], t$95$1, If[LessEqual[x, -8500.0], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 7e-15], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
                                                                                    
                                                                                    \begin{array}{l}
                                                                                    
                                                                                    \\
                                                                                    \begin{array}{l}
                                                                                    t_1 := \left(z \cdot x\right) \cdot y\\
                                                                                    \mathbf{if}\;x \leq -5.4 \cdot 10^{+48}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    \mathbf{elif}\;x \leq -8500:\\
                                                                                    \;\;\;\;\left(j \cdot a\right) \cdot c\\
                                                                                    
                                                                                    \mathbf{elif}\;x \leq 7 \cdot 10^{-15}:\\
                                                                                    \;\;\;\;\left(i \cdot t\right) \cdot b\\
                                                                                    
                                                                                    \mathbf{else}:\\
                                                                                    \;\;\;\;t\_1\\
                                                                                    
                                                                                    
                                                                                    \end{array}
                                                                                    \end{array}
                                                                                    
                                                                                    Derivation
                                                                                    1. Split input into 3 regimes
                                                                                    2. if x < -5.40000000000000007e48 or 7.0000000000000001e-15 < x

                                                                                      1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                          \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                                                                                        2. Taylor expanded in a around 0

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

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

                                                                                          if -5.40000000000000007e48 < x < -8500

                                                                                          1. Initial program 85.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                            9. *-commutativeN/A

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

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

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

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

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

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

                                                                                              if -8500 < x < 7.0000000000000001e-15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                                                              Alternative 19: 30.5% accurate, 2.6× speedup?

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

                                                                                                1. Initial program 59.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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                  9. *-commutativeN/A

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

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

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

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

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

                                                                                                  if -2.09999999999999983e119 < j < 7.0000000000000001e-15

                                                                                                  1. Initial program 73.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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                                                                                      \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                                                                                                    2. Taylor expanded in a around 0

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

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

                                                                                                      if 7.0000000000000001e-15 < j

                                                                                                      1. Initial program 77.9%

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

                                                                                                        \[\leadsto \color{blue}{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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                        9. *-commutativeN/A

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

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

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

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

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

                                                                                                            \[\leadsto \left(j \cdot a\right) \cdot c \]
                                                                                                        3. Recombined 3 regimes into one program.
                                                                                                        4. Final simplification34.9%

                                                                                                          \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -2.1 \cdot 10^{+119}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{elif}\;j \leq 7 \cdot 10^{-15}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{else}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \end{array} \]
                                                                                                        5. Add Preprocessing

                                                                                                        Alternative 20: 30.1% accurate, 2.6× speedup?

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

                                                                                                          1. Initial program 64.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. mul-1-negN/A

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

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

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

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

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

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

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

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

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

                                                                                                              \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                                                                                                            2. Taylor expanded in a around 0

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

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

                                                                                                              if -5.6000000000000003e-24 < z < 1.90000000000000006e-16

                                                                                                              1. Initial program 82.5%

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

                                                                                                                \[\leadsto \color{blue}{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}{-i}, y, a \cdot c\right) \cdot j \]
                                                                                                                9. *-commutativeN/A

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

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

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

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

                                                                                                                  \[\leadsto \left(c \cdot j\right) \cdot \color{blue}{a} \]
                                                                                                              8. Recombined 2 regimes into one program.
                                                                                                              9. Final simplification34.4%

                                                                                                                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -5.6 \cdot 10^{-24}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \mathbf{elif}\;z \leq 1.9 \cdot 10^{-16}:\\ \;\;\;\;\left(j \cdot c\right) \cdot a\\ \mathbf{else}:\\ \;\;\;\;\left(z \cdot x\right) \cdot y\\ \end{array} \]
                                                                                                              10. Add Preprocessing

                                                                                                              Alternative 21: 22.5% accurate, 5.5× speedup?

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

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

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

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

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

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

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

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

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

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

                                                                                                                  \[\leadsto \left(\left(-a\right) \cdot t\right) \cdot x \]
                                                                                                                2. Taylor expanded in a around 0

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

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

                                                                                                                  Developer Target 1: 59.5% 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 2024244 
                                                                                                                  (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)))))