Linear.Matrix:det33 from linear-1.19.1.3

Percentage Accurate: 74.1% → 85.4%
Time: 19.2s
Alternatives: 25
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 25 alternatives:

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

Initial Program: 74.1% accurate, 1.0× speedup?

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

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

Alternative 1: 85.4% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 91.8%

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

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

    1. Initial program 0.0%

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

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

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

      \[\leadsto \left(\color{blue}{x \cdot \left(t + -1 \cdot \frac{y \cdot z}{a}\right)} - i \cdot b\right) \cdot \left(\mathsf{neg}\left(a\right)\right) \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

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

        \[\leadsto \left(x \cdot \color{blue}{\left(t - \frac{y \cdot z}{a}\right)} - i \cdot b\right) \cdot \left(\mathsf{neg}\left(a\right)\right) \]
      4. --lowering--.f64N/A

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

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

        \[\leadsto \left(x \cdot \left(t - \color{blue}{y \cdot \frac{z}{a}}\right) - i \cdot b\right) \cdot \left(\mathsf{neg}\left(a\right)\right) \]
      7. /-lowering-/.f6459.3

        \[\leadsto \left(x \cdot \left(t - y \cdot \color{blue}{\frac{z}{a}}\right) - i \cdot b\right) \cdot \left(-a\right) \]
    7. Simplified59.3%

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

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

Alternative 2: 78.1% accurate, 0.9× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -2.00000000000000003e122

    1. Initial program 60.0%

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

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

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

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

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

    if -2.00000000000000003e122 < z < 2.3e72

    1. Initial program 82.9%

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

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

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

    if 2.3e72 < z

    1. Initial program 60.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 3: 67.3% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(c, -b, x \cdot y\right)\\ t_2 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \mathbf{if}\;j \leq -1.2 \cdot 10^{+219}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;j \leq -8 \cdot 10^{-190}:\\ \;\;\;\;\mathsf{fma}\left(z, t\_1, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\ \mathbf{elif}\;j \leq 5 \cdot 10^{-92}:\\ \;\;\;\;\mathsf{fma}\left(z, t\_1, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\ \mathbf{elif}\;j \leq 1.45 \cdot 10^{+161}:\\ \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (fma c (- b) (* x y))) (t_2 (* j (fma c t (* y (- i))))))
   (if (<= j -1.2e+219)
     t_2
     (if (<= j -8e-190)
       (fma z t_1 (* i (fma b a (* y (- j)))))
       (if (<= j 5e-92)
         (fma z t_1 (* a (fma b i (* x (- t)))))
         (if (<= j 1.45e+161)
           (fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
           t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = fma(c, -b, (x * y));
	double t_2 = j * fma(c, t, (y * -i));
	double tmp;
	if (j <= -1.2e+219) {
		tmp = t_2;
	} else if (j <= -8e-190) {
		tmp = fma(z, t_1, (i * fma(b, a, (y * -j))));
	} else if (j <= 5e-92) {
		tmp = fma(z, t_1, (a * fma(b, i, (x * -t))));
	} else if (j <= 1.45e+161) {
		tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
	} else {
		tmp = t_2;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(c, Float64(-b), Float64(x * y))
	t_2 = Float64(j * fma(c, t, Float64(y * Float64(-i))))
	tmp = 0.0
	if (j <= -1.2e+219)
		tmp = t_2;
	elseif (j <= -8e-190)
		tmp = fma(z, t_1, Float64(i * fma(b, a, Float64(y * Float64(-j)))));
	elseif (j <= 5e-92)
		tmp = fma(z, t_1, Float64(a * fma(b, i, Float64(x * Float64(-t)))));
	elseif (j <= 1.45e+161)
		tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i))));
	else
		tmp = t_2;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(c * t + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.2e+219], t$95$2, If[LessEqual[j, -8e-190], N[(z * t$95$1 + N[(i * N[(b * a + N[(y * (-j)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-92], N[(z * t$95$1 + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e+161], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(c, -b, x \cdot y\right)\\
t_2 := j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\
\mathbf{if}\;j \leq -1.2 \cdot 10^{+219}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;j \leq -8 \cdot 10^{-190}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\

\mathbf{elif}\;j \leq 5 \cdot 10^{-92}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_1, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if j < -1.2e219 or 1.45000000000000008e161 < j

    1. Initial program 67.3%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6475.6

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

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

    if -1.2e219 < j < -8.0000000000000002e-190

    1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -8.0000000000000002e-190 < j < 5.00000000000000011e-92

    1. Initial program 76.4%

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

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

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

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

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

    if 5.00000000000000011e-92 < j < 1.45000000000000008e161

    1. Initial program 74.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 66.7% accurate, 1.0× speedup?

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

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

\mathbf{elif}\;j \leq -2.7 \cdot 10^{-189}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_2, i \cdot \mathsf{fma}\left(b, a, y \cdot \left(-j\right)\right)\right)\\

\mathbf{elif}\;j \leq 1.6 \cdot 10^{-31}:\\
\;\;\;\;\mathsf{fma}\left(z, t\_2, a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if j < -1.50000000000000005e45 or 1.60000000000000009e-31 < j

    1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \cdot y + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
      12. neg-lowering-neg.f6463.3

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

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

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + \frac{c \cdot \left(-1 \cdot \left(b \cdot z\right) + j \cdot t\right)}{y}\right)} \]
    9. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \mathsf{fma}\left(i, \mathsf{neg}\left(j\right), c \cdot \frac{\mathsf{fma}\left(j, t, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right)}{y}\right) \]
      19. neg-lowering-neg.f6472.4

        \[\leadsto y \cdot \mathsf{fma}\left(i, -j, c \cdot \frac{\mathsf{fma}\left(j, t, z \cdot \color{blue}{\left(-b\right)}\right)}{y}\right) \]
    10. Simplified72.4%

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

    if -1.50000000000000005e45 < j < -2.6999999999999999e-189

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.6999999999999999e-189 < j < 1.60000000000000009e-31

    1. Initial program 75.2%

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

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

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

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

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

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

Alternative 5: 57.0% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\ t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\ \mathbf{if}\;x \leq -4.2 \cdot 10^{+210}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -2.3 \cdot 10^{+63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 0.0275:\\ \;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right) + a \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{+218}:\\ \;\;\;\;t\_2\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* z (fma c (- b) (* x y)))) (t_2 (* x (- (* y z) (* t a)))))
   (if (<= x -4.2e+210)
     t_2
     (if (<= x -2.3e+63)
       t_1
       (if (<= x 0.0275)
         (+ (* c (fma b (- z) (* t j))) (* a (* b i)))
         (if (<= x 7.2e+218) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * fma(c, -b, (x * y));
	double t_2 = x * ((y * z) - (t * a));
	double tmp;
	if (x <= -4.2e+210) {
		tmp = t_2;
	} else if (x <= -2.3e+63) {
		tmp = t_1;
	} else if (x <= 0.0275) {
		tmp = (c * fma(b, -z, (t * j))) + (a * (b * i));
	} else if (x <= 7.2e+218) {
		tmp = t_2;
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * fma(c, Float64(-b), Float64(x * y)))
	t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a)))
	tmp = 0.0
	if (x <= -4.2e+210)
		tmp = t_2;
	elseif (x <= -2.3e+63)
		tmp = t_1;
	elseif (x <= 0.0275)
		tmp = Float64(Float64(c * fma(b, Float64(-z), Float64(t * j))) + Float64(a * Float64(b * i)));
	elseif (x <= 7.2e+218)
		tmp = t_2;
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+210], t$95$2, If[LessEqual[x, -2.3e+63], t$95$1, If[LessEqual[x, 0.0275], N[(N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+218], t$95$2, t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+210}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;x \leq -2.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;x \leq 7.2 \cdot 10^{+218}:\\
\;\;\;\;t\_2\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -4.1999999999999997e210 or 0.0275000000000000001 < x < 7.19999999999999981e218

    1. Initial program 77.9%

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

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

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

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

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

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
      5. *-lowering-*.f6476.7

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
    5. Simplified76.7%

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

    if -4.1999999999999997e210 < x < -2.29999999999999993e63 or 7.19999999999999981e218 < x

    1. Initial program 68.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.29999999999999993e63 < x < 0.0275000000000000001

    1. Initial program 73.3%

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

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

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

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
      2. *-lowering-*.f6460.5

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

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

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

Alternative 6: 64.3% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -2.8 \cdot 10^{+272}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\ \mathbf{elif}\;t \leq 54000:\\ \;\;\;\;\mathsf{fma}\left(y, \mathsf{fma}\left(j, -i, x \cdot z\right), b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(z, \mathsf{fma}\left(c, -b, x \cdot y\right), a \cdot \mathsf{fma}\left(b, i, x \cdot \left(-t\right)\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= t -2.8e+272)
   (* t (fma j c (* x (- a))))
   (if (<= t 54000.0)
     (fma y (fma j (- i) (* x z)) (* b (fma c (- z) (* a i))))
     (fma z (fma c (- b) (* x y)) (* a (fma b i (* x (- t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (t <= -2.8e+272) {
		tmp = t * fma(j, c, (x * -a));
	} else if (t <= 54000.0) {
		tmp = fma(y, fma(j, -i, (x * z)), (b * fma(c, -z, (a * i))));
	} else {
		tmp = fma(z, fma(c, -b, (x * y)), (a * fma(b, i, (x * -t))));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (t <= -2.8e+272)
		tmp = Float64(t * fma(j, c, Float64(x * Float64(-a))));
	elseif (t <= 54000.0)
		tmp = fma(y, fma(j, Float64(-i), Float64(x * z)), Float64(b * fma(c, Float64(-z), Float64(a * i))));
	else
		tmp = fma(z, fma(c, Float64(-b), Float64(x * y)), Float64(a * fma(b, i, Float64(x * Float64(-t)))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.8e+272], N[(t * N[(j * c + N[(x * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 54000.0], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+272}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(j, c, x \cdot \left(-a\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -2.7999999999999999e272

    1. Initial program 53.7%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6485.0

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

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

    if -2.7999999999999999e272 < t < 54000

    1. Initial program 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 54000 < t

    1. Initial program 72.2%

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

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

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

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

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

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

Alternative 7: 66.5% accurate, 1.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.49999999999999986e272 or 5.6e60 < t

    1. Initial program 66.4%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto t \cdot \mathsf{fma}\left(j, c, a \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6468.7

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

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

    if -2.49999999999999986e272 < t < 5.6e60

    1. Initial program 75.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 8: 57.6% accurate, 1.4× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;x \leq 7.5 \cdot 10^{+218}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.00000000000000001e122 or 0.0269999999999999997 < x < 7.4999999999999993e218

    1. Initial program 78.0%

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

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

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

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

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

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
      5. *-lowering-*.f6476.1

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
    5. Simplified76.1%

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

    if -1.00000000000000001e122 < x < 0.0269999999999999997

    1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \cdot y + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
      12. neg-lowering-neg.f6465.5

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

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

    if 7.4999999999999993e218 < x

    1. Initial program 49.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 30.2% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -3.9 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2.9 \cdot 10^{-65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;x \leq -9.5 \cdot 10^{-201}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 0.011:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* z (* x y))))
   (if (<= x -3.9e+59)
     t_1
     (if (<= x -2.9e-65)
       (* t (* c j))
       (if (<= x -1.05e-117)
         (* b (* a i))
         (if (<= x -9.5e-201)
           (* c (* z (- b)))
           (if (<= x 0.011) (* j (* y (- i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -3.9e+59) {
		tmp = t_1;
	} else if (x <= -2.9e-65) {
		tmp = t * (c * j);
	} else if (x <= -1.05e-117) {
		tmp = b * (a * i);
	} else if (x <= -9.5e-201) {
		tmp = c * (z * -b);
	} else if (x <= 0.011) {
		tmp = j * (y * -i);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = z * (x * y)
    if (x <= (-3.9d+59)) then
        tmp = t_1
    else if (x <= (-2.9d-65)) then
        tmp = t * (c * j)
    else if (x <= (-1.05d-117)) then
        tmp = b * (a * i)
    else if (x <= (-9.5d-201)) then
        tmp = c * (z * -b)
    else if (x <= 0.011d0) then
        tmp = j * (y * -i)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -3.9e+59) {
		tmp = t_1;
	} else if (x <= -2.9e-65) {
		tmp = t * (c * j);
	} else if (x <= -1.05e-117) {
		tmp = b * (a * i);
	} else if (x <= -9.5e-201) {
		tmp = c * (z * -b);
	} else if (x <= 0.011) {
		tmp = j * (y * -i);
	} 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 <= -3.9e+59:
		tmp = t_1
	elif x <= -2.9e-65:
		tmp = t * (c * j)
	elif x <= -1.05e-117:
		tmp = b * (a * i)
	elif x <= -9.5e-201:
		tmp = c * (z * -b)
	elif x <= 0.011:
		tmp = j * (y * -i)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * Float64(x * y))
	tmp = 0.0
	if (x <= -3.9e+59)
		tmp = t_1;
	elseif (x <= -2.9e-65)
		tmp = Float64(t * Float64(c * j));
	elseif (x <= -1.05e-117)
		tmp = Float64(b * Float64(a * i));
	elseif (x <= -9.5e-201)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (x <= 0.011)
		tmp = Float64(j * Float64(y * Float64(-i)));
	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 <= -3.9e+59)
		tmp = t_1;
	elseif (x <= -2.9e-65)
		tmp = t * (c * j);
	elseif (x <= -1.05e-117)
		tmp = b * (a * i);
	elseif (x <= -9.5e-201)
		tmp = c * (z * -b);
	elseif (x <= 0.011)
		tmp = j * (y * -i);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.9e+59], t$95$1, If[LessEqual[x, -2.9e-65], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.05e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -9.5e-201], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.011], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.9 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq -2.9 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\

\mathbf{elif}\;x \leq -1.05 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{elif}\;x \leq -9.5 \cdot 10^{-201}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;x \leq 0.011:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -3.90000000000000021e59 or 0.010999999999999999 < x

    1. Initial program 74.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6454.7

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified54.7%

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

    if -3.90000000000000021e59 < x < -2.8999999999999998e-65

    1. Initial program 64.4%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6445.1

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6433.7

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified33.7%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

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

        \[\leadsto \color{blue}{\left(c \cdot j\right) \cdot t} \]
      3. *-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
      4. *-lowering-*.f6443.2

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
    10. Applied egg-rr43.2%

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

    if -2.8999999999999998e-65 < x < -1.05e-117

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6465.3

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

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

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6456.3

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified56.3%

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

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b\right)} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{i \cdot \left(b \cdot a\right)} \]
      4. *-commutativeN/A

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

        \[\leadsto \color{blue}{\left(i \cdot a\right) \cdot b} \]
      6. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(i \cdot a\right) \cdot b} \]
      7. *-lowering-*.f6473.0

        \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
    10. Applied egg-rr73.0%

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

    if -1.05e-117 < x < -9.5000000000000001e-201

    1. Initial program 72.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \cdot y + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
      12. neg-lowering-neg.f6483.3

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

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

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

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

        \[\leadsto \mathsf{neg}\left(\color{blue}{\left(c \cdot z\right) \cdot b}\right) \]
      3. associate-*r*N/A

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \]
      7. *-lowering-*.f64N/A

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

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

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

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

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      12. *-lowering-*.f64N/A

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

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      14. neg-lowering-neg.f6467.6

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(-b\right)}\right) \]
    10. Simplified67.6%

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

    if -9.5000000000000001e-201 < x < 0.010999999999999999

    1. Initial program 71.7%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6447.5

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

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

      \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

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

        \[\leadsto j \cdot \left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
      3. distribute-rgt-neg-inN/A

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

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
      5. *-lowering-*.f64N/A

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

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
      7. neg-lowering-neg.f6430.7

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(-i\right)}\right) \]
    8. Simplified30.7%

      \[\leadsto j \cdot \color{blue}{\left(y \cdot \left(-i\right)\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification45.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.9 \cdot 10^{+59}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -2.9 \cdot 10^{-65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq -1.05 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;x \leq -9.5 \cdot 10^{-201}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 0.011:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 29.9% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -1.5 \cdot 10^{+62}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{-298}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* z (* x y))))
   (if (<= x -1.5e+62)
     t_1
     (if (<= x -2.8e-65)
       (* t (* c j))
       (if (<= x -1.02e-117)
         (* b (* a i))
         (if (<= x 5.4e-298)
           (* c (* z (- b)))
           (if (<= x 2.4e-85) (* c (* t j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -1.5e+62) {
		tmp = t_1;
	} else if (x <= -2.8e-65) {
		tmp = t * (c * j);
	} else if (x <= -1.02e-117) {
		tmp = b * (a * i);
	} else if (x <= 5.4e-298) {
		tmp = c * (z * -b);
	} else if (x <= 2.4e-85) {
		tmp = c * (t * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = z * (x * y)
    if (x <= (-1.5d+62)) then
        tmp = t_1
    else if (x <= (-2.8d-65)) then
        tmp = t * (c * j)
    else if (x <= (-1.02d-117)) then
        tmp = b * (a * i)
    else if (x <= 5.4d-298) then
        tmp = c * (z * -b)
    else if (x <= 2.4d-85) then
        tmp = c * (t * j)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -1.5e+62) {
		tmp = t_1;
	} else if (x <= -2.8e-65) {
		tmp = t * (c * j);
	} else if (x <= -1.02e-117) {
		tmp = b * (a * i);
	} else if (x <= 5.4e-298) {
		tmp = c * (z * -b);
	} else if (x <= 2.4e-85) {
		tmp = c * (t * j);
	} 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 <= -1.5e+62:
		tmp = t_1
	elif x <= -2.8e-65:
		tmp = t * (c * j)
	elif x <= -1.02e-117:
		tmp = b * (a * i)
	elif x <= 5.4e-298:
		tmp = c * (z * -b)
	elif x <= 2.4e-85:
		tmp = c * (t * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * Float64(x * y))
	tmp = 0.0
	if (x <= -1.5e+62)
		tmp = t_1;
	elseif (x <= -2.8e-65)
		tmp = Float64(t * Float64(c * j));
	elseif (x <= -1.02e-117)
		tmp = Float64(b * Float64(a * i));
	elseif (x <= 5.4e-298)
		tmp = Float64(c * Float64(z * Float64(-b)));
	elseif (x <= 2.4e-85)
		tmp = Float64(c * Float64(t * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = z * (x * y);
	tmp = 0.0;
	if (x <= -1.5e+62)
		tmp = t_1;
	elseif (x <= -2.8e-65)
		tmp = t * (c * j);
	elseif (x <= -1.02e-117)
		tmp = b * (a * i);
	elseif (x <= 5.4e-298)
		tmp = c * (z * -b);
	elseif (x <= 2.4e-85)
		tmp = c * (t * j);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+62], t$95$1, If[LessEqual[x, -2.8e-65], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.02e-117], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-298], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq -2.8 \cdot 10^{-65}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\

\mathbf{elif}\;x \leq -1.02 \cdot 10^{-117}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\

\mathbf{elif}\;x \leq 5.4 \cdot 10^{-298}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\

\mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -1.5e62 or 2.4000000000000001e-85 < x

    1. Initial program 74.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6448.0

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified48.0%

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

    if -1.5e62 < x < -2.8e-65

    1. Initial program 64.4%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6445.1

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6433.7

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified33.7%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

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

        \[\leadsto \color{blue}{\left(c \cdot j\right) \cdot t} \]
      3. *-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
      4. *-lowering-*.f6443.2

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
    10. Applied egg-rr43.2%

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

    if -2.8e-65 < x < -1.01999999999999993e-117

    1. Initial program 99.9%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6465.3

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

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

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6456.3

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified56.3%

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

        \[\leadsto a \cdot \color{blue}{\left(i \cdot b\right)} \]
      2. *-commutativeN/A

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

        \[\leadsto \color{blue}{i \cdot \left(b \cdot a\right)} \]
      4. *-commutativeN/A

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

        \[\leadsto \color{blue}{\left(i \cdot a\right) \cdot b} \]
      6. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(i \cdot a\right) \cdot b} \]
      7. *-lowering-*.f6473.0

        \[\leadsto \color{blue}{\left(i \cdot a\right)} \cdot b \]
    10. Applied egg-rr73.0%

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

    if -1.01999999999999993e-117 < x < 5.4000000000000002e-298

    1. Initial program 65.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \cdot y + c \cdot \mathsf{fma}\left(b, \mathsf{neg}\left(z\right), j \cdot t\right) \]
      12. neg-lowering-neg.f6473.8

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

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

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

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

        \[\leadsto \mathsf{neg}\left(\color{blue}{\left(c \cdot z\right) \cdot b}\right) \]
      3. associate-*r*N/A

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

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

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

        \[\leadsto c \cdot \color{blue}{\left(-1 \cdot \left(b \cdot z\right)\right)} \]
      7. *-lowering-*.f64N/A

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

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

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

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

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      12. *-lowering-*.f64N/A

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

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      14. neg-lowering-neg.f6443.9

        \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(-b\right)}\right) \]
    10. Simplified43.9%

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

    if 5.4000000000000002e-298 < x < 2.4000000000000001e-85

    1. Initial program 76.8%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6454.5

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6435.1

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified35.1%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification45.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.5 \cdot 10^{+62}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -2.8 \cdot 10^{-65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq -1.02 \cdot 10^{-117}:\\ \;\;\;\;b \cdot \left(a \cdot i\right)\\ \mathbf{elif}\;x \leq 5.4 \cdot 10^{-298}:\\ \;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 52.3% accurate, 1.6× speedup?

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

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

\mathbf{elif}\;i \leq -8.8 \cdot 10^{-14}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if i < -3.5000000000000001e137 or 6.5000000000000001e69 < i

    1. Initial program 73.2%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto i \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(y\right), \color{blue}{b \cdot a}\right) \]
      12. *-lowering-*.f6472.5

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

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

    if -3.5000000000000001e137 < i < -8.8000000000000004e-14

    1. Initial program 69.7%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

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

    if -8.8000000000000004e-14 < i < 6.5000000000000001e69

    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 12: 51.8% accurate, 1.6× speedup?

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

\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.08 \cdot 10^{+122}:\\
\;\;\;\;t\_1\\

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

\mathbf{elif}\;x \leq 0.03:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.0800000000000001e122 or 0.029999999999999999 < x

    1. Initial program 74.4%

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

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

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

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

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

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
      5. *-lowering-*.f6471.8

        \[\leadsto x \cdot \left(y \cdot z - \color{blue}{t \cdot a}\right) \]
    5. Simplified71.8%

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

    if -1.0800000000000001e122 < x < -1.8499999999999999e-265

    1. Initial program 71.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
      11. *-lowering-*.f6460.0

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

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

    if -1.8499999999999999e-265 < x < 0.029999999999999999

    1. Initial program 74.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 13: 50.5% accurate, 1.6× speedup?

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

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

\mathbf{elif}\;a \leq -9 \cdot 10^{-94}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if a < -3.0499999999999999e172 or 3.00000000000000015e109 < a

    1. Initial program 61.9%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6478.5

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

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

    if -3.0499999999999999e172 < a < -9.0000000000000004e-94

    1. Initial program 83.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -9.0000000000000004e-94 < a < 3.00000000000000015e109

    1. Initial program 74.3%

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
      11. *-lowering-*.f6448.0

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -3.05 \cdot 10^{+172}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{elif}\;a \leq -9 \cdot 10^{-94}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{elif}\;a \leq 3 \cdot 10^{+109}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 30.3% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(c \cdot j\right)\\ t_2 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -3.5 \cdot 10^{+58}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x \leq -3.6 \cdot 10^{-65}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{-217}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* t (* c j))) (t_2 (* z (* x y))))
   (if (<= x -3.5e+58)
     t_2
     (if (<= x -3.6e-65)
       t_1
       (if (<= x 4.6e-217) (* i (* a b)) (if (<= x 2.4e-85) 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 = t * (c * j);
	double t_2 = z * (x * y);
	double tmp;
	if (x <= -3.5e+58) {
		tmp = t_2;
	} else if (x <= -3.6e-65) {
		tmp = t_1;
	} else if (x <= 4.6e-217) {
		tmp = i * (a * b);
	} else if (x <= 2.4e-85) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = t * (c * j)
    t_2 = z * (x * y)
    if (x <= (-3.5d+58)) then
        tmp = t_2
    else if (x <= (-3.6d-65)) then
        tmp = t_1
    else if (x <= 4.6d-217) then
        tmp = i * (a * b)
    else if (x <= 2.4d-85) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * (c * j);
	double t_2 = z * (x * y);
	double tmp;
	if (x <= -3.5e+58) {
		tmp = t_2;
	} else if (x <= -3.6e-65) {
		tmp = t_1;
	} else if (x <= 4.6e-217) {
		tmp = i * (a * b);
	} else if (x <= 2.4e-85) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * (c * j)
	t_2 = z * (x * y)
	tmp = 0
	if x <= -3.5e+58:
		tmp = t_2
	elif x <= -3.6e-65:
		tmp = t_1
	elif x <= 4.6e-217:
		tmp = i * (a * b)
	elif x <= 2.4e-85:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(c * j))
	t_2 = Float64(z * Float64(x * y))
	tmp = 0.0
	if (x <= -3.5e+58)
		tmp = t_2;
	elseif (x <= -3.6e-65)
		tmp = t_1;
	elseif (x <= 4.6e-217)
		tmp = Float64(i * Float64(a * b));
	elseif (x <= 2.4e-85)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = t * (c * j);
	t_2 = z * (x * y);
	tmp = 0.0;
	if (x <= -3.5e+58)
		tmp = t_2;
	elseif (x <= -3.6e-65)
		tmp = t_1;
	elseif (x <= 4.6e-217)
		tmp = i * (a * b);
	elseif (x <= 2.4e-85)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.5e+58], t$95$2, If[LessEqual[x, -3.6e-65], t$95$1, If[LessEqual[x, 4.6e-217], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-85], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.5 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;x \leq -3.6 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 4.6 \cdot 10^{-217}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\

\mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -3.4999999999999997e58 or 2.4000000000000001e-85 < x

    1. Initial program 74.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6448.0

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified48.0%

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

    if -3.4999999999999997e58 < x < -3.5999999999999998e-65 or 4.6000000000000001e-217 < x < 2.4000000000000001e-85

    1. Initial program 68.1%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6453.0

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

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

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6438.5

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified38.5%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

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

        \[\leadsto \color{blue}{\left(c \cdot j\right) \cdot t} \]
      3. *-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
      4. *-lowering-*.f6442.2

        \[\leadsto \color{blue}{\left(j \cdot c\right)} \cdot t \]
    10. Applied egg-rr42.2%

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

    if -3.5999999999999998e-65 < x < 4.6000000000000001e-217

    1. Initial program 75.2%

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6431.8

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

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

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6429.3

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified29.3%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(a \cdot b\right) \cdot i} \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left(b \cdot a\right)} \cdot i \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(b \cdot a\right) \cdot i} \]
      4. *-lowering-*.f6431.8

        \[\leadsto \color{blue}{\left(b \cdot a\right)} \cdot i \]
    10. Applied egg-rr31.8%

      \[\leadsto \color{blue}{\left(b \cdot a\right) \cdot i} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification41.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.5 \cdot 10^{+58}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq -3.6 \cdot 10^{-65}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{-217}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{-85}:\\ \;\;\;\;t \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 29.6% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+121}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq -1.56 \cdot 10^{-217}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;x \leq 0.0073:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= x -4.5e+121)
   (* x (* y z))
   (if (<= x -1.56e-217)
     (* z (* b (- c)))
     (if (<= x 0.0073) (* y (* i (- j))) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -4.5e+121) {
		tmp = x * (y * z);
	} else if (x <= -1.56e-217) {
		tmp = z * (b * -c);
	} else if (x <= 0.0073) {
		tmp = y * (i * -j);
	} else {
		tmp = z * (x * y);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (x <= (-4.5d+121)) then
        tmp = x * (y * z)
    else if (x <= (-1.56d-217)) then
        tmp = z * (b * -c)
    else if (x <= 0.0073d0) then
        tmp = y * (i * -j)
    else
        tmp = z * (x * y)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -4.5e+121) {
		tmp = x * (y * z);
	} else if (x <= -1.56e-217) {
		tmp = z * (b * -c);
	} else if (x <= 0.0073) {
		tmp = y * (i * -j);
	} else {
		tmp = z * (x * y);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if x <= -4.5e+121:
		tmp = x * (y * z)
	elif x <= -1.56e-217:
		tmp = z * (b * -c)
	elif x <= 0.0073:
		tmp = y * (i * -j)
	else:
		tmp = z * (x * y)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= -4.5e+121)
		tmp = Float64(x * Float64(y * z));
	elseif (x <= -1.56e-217)
		tmp = Float64(z * Float64(b * Float64(-c)));
	elseif (x <= 0.0073)
		tmp = Float64(y * Float64(i * Float64(-j)));
	else
		tmp = Float64(z * Float64(x * y));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (x <= -4.5e+121)
		tmp = x * (y * z);
	elseif (x <= -1.56e-217)
		tmp = z * (b * -c);
	elseif (x <= 0.0073)
		tmp = y * (i * -j);
	else
		tmp = z * (x * y);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.5e+121], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.56e-217], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0073], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{+121}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;x \leq -1.56 \cdot 10^{-217}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\

\mathbf{elif}\;x \leq 0.0073:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -4.5000000000000003e121

    1. Initial program 68.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      3. *-lowering-*.f6470.6

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified70.6%

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

    if -4.5000000000000003e121 < x < -1.56e-217

    1. Initial program 73.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

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

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

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      7. neg-lowering-neg.f6442.9

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(-b\right)}\right) \]
    8. Simplified42.9%

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

    if -1.56e-217 < x < 0.00730000000000000007

    1. Initial program 72.3%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{-1 \cdot \left(i \cdot \left(j \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

        \[\leadsto \color{blue}{\left(-1 \cdot \left(i \cdot j\right)\right)} \cdot y \]
      5. *-lowering-*.f64N/A

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

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

        \[\leadsto \left(\mathsf{neg}\left(\color{blue}{j \cdot i}\right)\right) \cdot y \]
      8. distribute-rgt-neg-inN/A

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

        \[\leadsto \left(j \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \cdot y \]
      10. *-lowering-*.f64N/A

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

        \[\leadsto \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \cdot y \]
      12. neg-lowering-neg.f6432.9

        \[\leadsto \left(j \cdot \color{blue}{\left(-i\right)}\right) \cdot y \]
    8. Simplified32.9%

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

    if 0.00730000000000000007 < x

    1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6442.2

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified42.2%

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+121}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq -1.56 \cdot 10^{-217}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;x \leq 0.0073:\\ \;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 29.6% accurate, 2.0× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;x \leq -1.08 \cdot 10^{-200}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\

\mathbf{elif}\;x \leq 0.0073:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -1.00000000000000001e122

    1. Initial program 68.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

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

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      3. *-lowering-*.f6470.6

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified70.6%

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

    if -1.00000000000000001e122 < x < -1.08000000000000002e-200

    1. Initial program 75.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

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

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

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

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

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

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      7. neg-lowering-neg.f6443.1

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(-b\right)}\right) \]
    8. Simplified43.1%

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

    if -1.08000000000000002e-200 < x < 0.00730000000000000007

    1. Initial program 71.7%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6447.5

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

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

      \[\leadsto j \cdot \color{blue}{\left(-1 \cdot \left(i \cdot y\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

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

        \[\leadsto j \cdot \left(\mathsf{neg}\left(\color{blue}{y \cdot i}\right)\right) \]
      3. distribute-rgt-neg-inN/A

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

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(-1 \cdot i\right)}\right) \]
      5. *-lowering-*.f64N/A

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

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
      7. neg-lowering-neg.f6430.7

        \[\leadsto j \cdot \left(y \cdot \color{blue}{\left(-i\right)}\right) \]
    8. Simplified30.7%

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

    if 0.00730000000000000007 < x

    1. Initial program 80.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6442.2

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified42.2%

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification42.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1 \cdot 10^{+122}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq -1.08 \cdot 10^{-200}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;x \leq 0.0073:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 52.1% accurate, 2.0× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if j < -1.5e59 or 4.69999999999999972e95 < j

    1. Initial program 73.2%

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

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

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

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

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

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

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

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

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6469.5

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

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

    if -1.5e59 < j < 4.69999999999999972e95

    1. Initial program 73.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
      3. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
      4. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      5. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      7. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      8. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
      9. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
      10. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      11. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{a \cdot i}\right) \]
      12. distribute-rgt-neg-inN/A

        \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + a \cdot i\right) \]
      13. mul-1-negN/A

        \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + a \cdot i\right) \]
      14. accelerator-lowering-fma.f64N/A

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
      15. mul-1-negN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      16. neg-lowering-neg.f64N/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      17. *-commutativeN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
      18. *-lowering-*.f6450.7

        \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
    5. Simplified50.7%

      \[\leadsto \color{blue}{b \cdot \mathsf{fma}\left(c, -z, i \cdot a\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification57.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \leq -1.5 \cdot 10^{+59}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;j \leq 4.7 \cdot 10^{+95}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(c, t, y \cdot \left(-i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 51.8% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \mathbf{if}\;i \leq -3.5 \cdot 10^{+134}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq 3.5 \cdot 10^{+33}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* i (fma j (- y) (* a b)))))
   (if (<= i -3.5e+134)
     t_1
     (if (<= i 3.5e+33) (* c (fma b (- z) (* t j))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = i * fma(j, -y, (a * b));
	double tmp;
	if (i <= -3.5e+134) {
		tmp = t_1;
	} else if (i <= 3.5e+33) {
		tmp = c * fma(b, -z, (t * j));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * fma(j, Float64(-y), Float64(a * b)))
	tmp = 0.0
	if (i <= -3.5e+134)
		tmp = t_1;
	elseif (i <= 3.5e+33)
		tmp = Float64(c * fma(b, Float64(-z), Float64(t * j)));
	else
		tmp = t_1;
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(j * (-y) + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.5e+134], t$95$1, If[LessEqual[i, 3.5e+33], N[(c * N[(b * (-z) + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\
\mathbf{if}\;i \leq -3.5 \cdot 10^{+134}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;i \leq 3.5 \cdot 10^{+33}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if i < -3.50000000000000003e134 or 3.5000000000000001e33 < i

    1. Initial program 71.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in i around inf

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(a \cdot b\right)\right)} \]
      2. sub-negN/A

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto i \cdot \left(\color{blue}{\left(\mathsf{neg}\left(j \cdot y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto i \cdot \left(\color{blue}{j \cdot \left(\mathsf{neg}\left(y\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-1 \cdot y\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(a \cdot b\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(a \cdot b\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{a \cdot b}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, a \cdot b\right)} \]
      9. mul-1-negN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, a \cdot b\right) \]
      11. *-commutativeN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(y\right), \color{blue}{b \cdot a}\right) \]
      12. *-lowering-*.f6470.2

        \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot a}\right) \]
    5. Simplified70.2%

      \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(j, -y, b \cdot a\right)} \]

    if -3.50000000000000003e134 < i < 3.5000000000000001e33

    1. Initial program 74.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t - b \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto c \cdot \left(j \cdot t + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto c \cdot \color{blue}{\left(-1 \cdot \left(b \cdot z\right) + j \cdot t\right)} \]
      5. mul-1-negN/A

        \[\leadsto c \cdot \left(\color{blue}{\left(\mathsf{neg}\left(b \cdot z\right)\right)} + j \cdot t\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto c \cdot \left(\color{blue}{b \cdot \left(\mathsf{neg}\left(z\right)\right)} + j \cdot t\right) \]
      7. mul-1-negN/A

        \[\leadsto c \cdot \left(b \cdot \color{blue}{\left(-1 \cdot z\right)} + j \cdot t\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(b, -1 \cdot z, j \cdot t\right)} \]
      9. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto c \cdot \mathsf{fma}\left(b, \color{blue}{\mathsf{neg}\left(z\right)}, j \cdot t\right) \]
      11. *-lowering-*.f6448.9

        \[\leadsto c \cdot \mathsf{fma}\left(b, -z, \color{blue}{j \cdot t}\right) \]
    5. Simplified48.9%

      \[\leadsto \color{blue}{c \cdot \mathsf{fma}\left(b, -z, j \cdot t\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification57.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -3.5 \cdot 10^{+134}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \mathbf{elif}\;i \leq 3.5 \cdot 10^{+33}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(b, -z, t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, a \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 41.9% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -3.2 \cdot 10^{+146}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq 1.5 \cdot 10^{+108}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= x -3.2e+146)
   (* x (* y z))
   (if (<= x 1.5e+108) (* b (fma c (- z) (* a i))) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -3.2e+146) {
		tmp = x * (y * z);
	} else if (x <= 1.5e+108) {
		tmp = b * fma(c, -z, (a * i));
	} else {
		tmp = z * (x * y);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= -3.2e+146)
		tmp = Float64(x * Float64(y * z));
	elseif (x <= 1.5e+108)
		tmp = Float64(b * fma(c, Float64(-z), Float64(a * i)));
	else
		tmp = Float64(z * Float64(x * y));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.2e+146], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.5e+108], N[(b * N[(c * (-z) + N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+146}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;x \leq 1.5 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -3.2e146

    1. Initial program 67.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6473.0

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified73.0%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
      2. *-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      3. *-lowering-*.f6472.5

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified72.5%

      \[\leadsto \color{blue}{x \cdot \left(z \cdot y\right)} \]

    if -3.2e146 < x < 1.49999999999999992e108

    1. Initial program 74.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(a \cdot i - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(a \cdot i + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      2. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + a \cdot i\right)} \]
      3. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{\left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)}\right) \]
      4. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      5. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - a \cdot i\right)}\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      7. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - a \cdot i\right)\right)} \]
      8. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - a \cdot i\right)\right)\right)} \]
      9. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(a \cdot i\right)\right)\right)}\right)\right) \]
      10. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \left(\mathsf{neg}\left(\left(\mathsf{neg}\left(a \cdot i\right)\right)\right)\right)\right)} \]
      11. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{a \cdot i}\right) \]
      12. distribute-rgt-neg-inN/A

        \[\leadsto b \cdot \left(\color{blue}{c \cdot \left(\mathsf{neg}\left(z\right)\right)} + a \cdot i\right) \]
      13. mul-1-negN/A

        \[\leadsto b \cdot \left(c \cdot \color{blue}{\left(-1 \cdot z\right)} + a \cdot i\right) \]
      14. accelerator-lowering-fma.f64N/A

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot z, a \cdot i\right)} \]
      15. mul-1-negN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      16. neg-lowering-neg.f64N/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(z\right)}, a \cdot i\right) \]
      17. *-commutativeN/A

        \[\leadsto b \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(z\right), \color{blue}{i \cdot a}\right) \]
      18. *-lowering-*.f6447.4

        \[\leadsto b \cdot \mathsf{fma}\left(c, -z, \color{blue}{i \cdot a}\right) \]
    5. Simplified47.4%

      \[\leadsto \color{blue}{b \cdot \mathsf{fma}\left(c, -z, i \cdot a\right)} \]

    if 1.49999999999999992e108 < x

    1. Initial program 75.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6459.5

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified59.5%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6445.7

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified45.7%

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification51.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -3.2 \cdot 10^{+146}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq 1.5 \cdot 10^{+108}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(c, -z, a \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 41.7% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -7.5 \cdot 10^{+191}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+70}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= z -7.5e+191)
   (* z (* b (- c)))
   (if (<= z 3.8e+70) (* a (fma t (- x) (* b i))) (* x (* y 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 <= -7.5e+191) {
		tmp = z * (b * -c);
	} else if (z <= 3.8e+70) {
		tmp = a * fma(t, -x, (b * i));
	} else {
		tmp = x * (y * z);
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (z <= -7.5e+191)
		tmp = Float64(z * Float64(b * Float64(-c)));
	elseif (z <= 3.8e+70)
		tmp = Float64(a * fma(t, Float64(-x), Float64(b * i)));
	else
		tmp = Float64(x * Float64(y * z));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7.5e+191], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+70], N[(a * N[(t * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{+191}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\

\mathbf{elif}\;z \leq 3.8 \cdot 10^{+70}:\\
\;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if z < -7.5e191

    1. Initial program 53.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6479.0

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified79.0%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around inf

      \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right)\right)} \]
    7. Step-by-step derivation
      1. mul-1-negN/A

        \[\leadsto z \cdot \color{blue}{\left(\mathsf{neg}\left(b \cdot c\right)\right)} \]
      2. *-commutativeN/A

        \[\leadsto z \cdot \left(\mathsf{neg}\left(\color{blue}{c \cdot b}\right)\right) \]
      3. distribute-rgt-neg-inN/A

        \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(\mathsf{neg}\left(b\right)\right)\right)} \]
      4. mul-1-negN/A

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      5. *-lowering-*.f64N/A

        \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-1 \cdot b\right)\right)} \]
      6. mul-1-negN/A

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      7. neg-lowering-neg.f6454.8

        \[\leadsto z \cdot \left(c \cdot \color{blue}{\left(-b\right)}\right) \]
    8. Simplified54.8%

      \[\leadsto z \cdot \color{blue}{\left(c \cdot \left(-b\right)\right)} \]

    if -7.5e191 < z < 3.7999999999999998e70

    1. Initial program 82.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6441.5

        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified41.5%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]

    if 3.7999999999999998e70 < z

    1. Initial program 59.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6474.0

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified74.0%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
      2. *-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      3. *-lowering-*.f6450.6

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified50.6%

      \[\leadsto \color{blue}{x \cdot \left(z \cdot y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification45.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -7.5 \cdot 10^{+191}:\\ \;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\ \mathbf{elif}\;z \leq 3.8 \cdot 10^{+70}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(t, -x, b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 30.4% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -4.2 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 3.05 \cdot 10^{-298}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-85}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* z (* x y))))
   (if (<= x -4.2e+59)
     t_1
     (if (<= x 3.05e-298)
       (* i (* a b))
       (if (<= x 1.3e-85) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -4.2e+59) {
		tmp = t_1;
	} else if (x <= 3.05e-298) {
		tmp = i * (a * b);
	} else if (x <= 1.3e-85) {
		tmp = c * (t * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = z * (x * y)
    if (x <= (-4.2d+59)) then
        tmp = t_1
    else if (x <= 3.05d-298) then
        tmp = i * (a * b)
    else if (x <= 1.3d-85) then
        tmp = c * (t * j)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = z * (x * y);
	double tmp;
	if (x <= -4.2e+59) {
		tmp = t_1;
	} else if (x <= 3.05e-298) {
		tmp = i * (a * b);
	} else if (x <= 1.3e-85) {
		tmp = c * (t * j);
	} 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 <= -4.2e+59:
		tmp = t_1
	elif x <= 3.05e-298:
		tmp = i * (a * b)
	elif x <= 1.3e-85:
		tmp = c * (t * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * Float64(x * y))
	tmp = 0.0
	if (x <= -4.2e+59)
		tmp = t_1;
	elseif (x <= 3.05e-298)
		tmp = Float64(i * Float64(a * b));
	elseif (x <= 1.3e-85)
		tmp = Float64(c * Float64(t * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = z * (x * y);
	tmp = 0.0;
	if (x <= -4.2e+59)
		tmp = t_1;
	elseif (x <= 3.05e-298)
		tmp = i * (a * b);
	elseif (x <= 1.3e-85)
		tmp = c * (t * j);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+59], t$95$1, If[LessEqual[x, 3.05e-298], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e-85], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 3.05 \cdot 10^{-298}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\

\mathbf{elif}\;x \leq 1.3 \cdot 10^{-85}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -4.19999999999999968e59 or 1.30000000000000006e-85 < x

    1. Initial program 74.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6460.4

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified60.4%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6448.0

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified48.0%

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]

    if -4.19999999999999968e59 < x < 3.05000000000000006e-298

    1. Initial program 69.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6435.6

        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified35.6%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
    6. Taylor expanded in t around 0

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6428.2

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified28.2%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(a \cdot b\right) \cdot i} \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left(b \cdot a\right)} \cdot i \]
      3. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(b \cdot a\right) \cdot i} \]
      4. *-lowering-*.f6430.5

        \[\leadsto \color{blue}{\left(b \cdot a\right)} \cdot i \]
    10. Applied egg-rr30.5%

      \[\leadsto \color{blue}{\left(b \cdot a\right) \cdot i} \]

    if 3.05000000000000006e-298 < x < 1.30000000000000006e-85

    1. Initial program 76.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. sub-negN/A

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{i \cdot \left(\mathsf{neg}\left(y\right)\right)}\right) \]
      5. mul-1-negN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(-1 \cdot y\right)}\right) \]
      6. *-lowering-*.f64N/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{i \cdot \left(-1 \cdot y\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6454.5

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(-y\right)}\right) \]
    5. Simplified54.5%

      \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, i \cdot \left(-y\right)\right)} \]
    6. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6435.1

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified35.1%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification40.0%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.2 \cdot 10^{+59}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \mathbf{elif}\;x \leq 3.05 \cdot 10^{-298}:\\ \;\;\;\;i \cdot \left(a \cdot b\right)\\ \mathbf{elif}\;x \leq 1.3 \cdot 10^{-85}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;z \cdot \left(x \cdot y\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 30.7% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := z \cdot \left(x \cdot y\right)\\ \mathbf{if}\;x \leq -3 \cdot 10^{+58}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 7.2 \cdot 10^{-59}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \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 -3e+58) t_1 (if (<= x 7.2e-59) (* a (* 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 = z * (x * y);
	double tmp;
	if (x <= -3e+58) {
		tmp = t_1;
	} else if (x <= 7.2e-59) {
		tmp = a * (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 = z * (x * y)
    if (x <= (-3d+58)) then
        tmp = t_1
    else if (x <= 7.2d-59) then
        tmp = a * (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 = z * (x * y);
	double tmp;
	if (x <= -3e+58) {
		tmp = t_1;
	} else if (x <= 7.2e-59) {
		tmp = a * (b * i);
	} 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 <= -3e+58:
		tmp = t_1
	elif x <= 7.2e-59:
		tmp = a * (b * i)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(z * Float64(x * y))
	tmp = 0.0
	if (x <= -3e+58)
		tmp = t_1;
	elseif (x <= 7.2e-59)
		tmp = Float64(a * Float64(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 = z * (x * y);
	tmp = 0.0;
	if (x <= -3e+58)
		tmp = t_1;
	elseif (x <= 7.2e-59)
		tmp = a * (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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3e+58], t$95$1, If[LessEqual[x, 7.2e-59], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 7.2 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -3.0000000000000002e58 or 7.20000000000000001e-59 < x

    1. Initial program 73.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6462.6

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified62.6%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6450.9

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]
    8. Simplified50.9%

      \[\leadsto z \cdot \color{blue}{\left(x \cdot y\right)} \]

    if -3.0000000000000002e58 < x < 7.20000000000000001e-59

    1. Initial program 73.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6433.7

        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified33.7%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
    6. Taylor expanded in t around 0

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6426.5

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified26.5%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 23: 29.8% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \left(y \cdot z\right)\\ \mathbf{if}\;x \leq -4 \cdot 10^{+59}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{-57}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* x (* y z))))
   (if (<= x -4e+59) t_1 (if (<= x 1.2e-57) (* a (* 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 = x * (y * z);
	double tmp;
	if (x <= -4e+59) {
		tmp = t_1;
	} else if (x <= 1.2e-57) {
		tmp = a * (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 = x * (y * z)
    if (x <= (-4d+59)) then
        tmp = t_1
    else if (x <= 1.2d-57) then
        tmp = a * (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 = x * (y * z);
	double tmp;
	if (x <= -4e+59) {
		tmp = t_1;
	} else if (x <= 1.2e-57) {
		tmp = a * (b * i);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = x * (y * z)
	tmp = 0
	if x <= -4e+59:
		tmp = t_1
	elif x <= 1.2e-57:
		tmp = a * (b * i)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(x * Float64(y * z))
	tmp = 0.0
	if (x <= -4e+59)
		tmp = t_1;
	elseif (x <= 1.2e-57)
		tmp = Float64(a * Float64(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 = x * (y * z);
	tmp = 0.0;
	if (x <= -4e+59)
		tmp = t_1;
	elseif (x <= 1.2e-57)
		tmp = a * (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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+59], t$95$1, If[LessEqual[x, 1.2e-57], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;x \leq -4 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq 1.2 \cdot 10^{-57}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -3.99999999999999989e59 or 1.20000000000000003e-57 < x

    1. Initial program 73.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
      2. sub-negN/A

        \[\leadsto z \cdot \color{blue}{\left(x \cdot y + \left(\mathsf{neg}\left(b \cdot c\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto z \cdot \left(x \cdot y + \color{blue}{-1 \cdot \left(b \cdot c\right)}\right) \]
      4. +-commutativeN/A

        \[\leadsto z \cdot \color{blue}{\left(-1 \cdot \left(b \cdot c\right) + x \cdot y\right)} \]
      5. associate-*r*N/A

        \[\leadsto z \cdot \left(\color{blue}{\left(-1 \cdot b\right) \cdot c} + x \cdot y\right) \]
      6. *-commutativeN/A

        \[\leadsto z \cdot \left(\color{blue}{c \cdot \left(-1 \cdot b\right)} + x \cdot y\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto z \cdot \color{blue}{\mathsf{fma}\left(c, -1 \cdot b, x \cdot y\right)} \]
      8. neg-mul-1N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \color{blue}{\mathsf{neg}\left(b\right)}, x \cdot y\right) \]
      10. *-commutativeN/A

        \[\leadsto z \cdot \mathsf{fma}\left(c, \mathsf{neg}\left(b\right), \color{blue}{y \cdot x}\right) \]
      11. *-lowering-*.f6462.6

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified62.6%

      \[\leadsto \color{blue}{z \cdot \mathsf{fma}\left(c, -b, y \cdot x\right)} \]
    6. Taylor expanded in c around 0

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
      2. *-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
      3. *-lowering-*.f6450.0

        \[\leadsto x \cdot \color{blue}{\left(z \cdot y\right)} \]
    8. Simplified50.0%

      \[\leadsto \color{blue}{x \cdot \left(z \cdot y\right)} \]

    if -3.99999999999999989e59 < x < 1.20000000000000003e-57

    1. Initial program 73.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6433.7

        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified33.7%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
    6. Taylor expanded in t around 0

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6426.5

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified26.5%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification37.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4 \cdot 10^{+59}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;x \leq 1.2 \cdot 10^{-57}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 24: 29.1% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \left(b \cdot i\right)\\ \mathbf{if}\;a \leq -1.22 \cdot 10^{-82}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-53}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* a (* b i))))
   (if (<= a -1.22e-82) t_1 (if (<= a 5.2e-53) (* c (* t j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (b * i);
	double tmp;
	if (a <= -1.22e-82) {
		tmp = t_1;
	} else if (a <= 5.2e-53) {
		tmp = c * (t * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = a * (b * i)
    if (a <= (-1.22d-82)) then
        tmp = t_1
    else if (a <= 5.2d-53) then
        tmp = c * (t * j)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * (b * i);
	double tmp;
	if (a <= -1.22e-82) {
		tmp = t_1;
	} else if (a <= 5.2e-53) {
		tmp = c * (t * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = a * (b * i)
	tmp = 0
	if a <= -1.22e-82:
		tmp = t_1
	elif a <= 5.2e-53:
		tmp = c * (t * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * Float64(b * i))
	tmp = 0.0
	if (a <= -1.22e-82)
		tmp = t_1;
	elseif (a <= 5.2e-53)
		tmp = Float64(c * Float64(t * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = a * (b * i);
	tmp = 0.0;
	if (a <= -1.22e-82)
		tmp = t_1;
	elseif (a <= 5.2e-53)
		tmp = c * (t * j);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.22e-82], t$95$1, If[LessEqual[a, 5.2e-53], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -1.22 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 5.2 \cdot 10^{-53}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -1.22000000000000001e-82 or 5.19999999999999993e-53 < a

    1. Initial program 69.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
      6. mul-1-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
      7. remove-double-negN/A

        \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6453.0

        \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified53.0%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
    6. Taylor expanded in t around 0

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
      2. *-lowering-*.f6434.1

        \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
    8. Simplified34.1%

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]

    if -1.22000000000000001e-82 < a < 5.19999999999999993e-53

    1. Initial program 78.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(c \cdot t - i \cdot y\right)} \]
      2. sub-negN/A

        \[\leadsto j \cdot \color{blue}{\left(c \cdot t + \left(\mathsf{neg}\left(i \cdot y\right)\right)\right)} \]
      3. accelerator-lowering-fma.f64N/A

        \[\leadsto j \cdot \color{blue}{\mathsf{fma}\left(c, t, \mathsf{neg}\left(i \cdot y\right)\right)} \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{i \cdot \left(\mathsf{neg}\left(y\right)\right)}\right) \]
      5. mul-1-negN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(-1 \cdot y\right)}\right) \]
      6. *-lowering-*.f64N/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, \color{blue}{i \cdot \left(-1 \cdot y\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      8. neg-lowering-neg.f6444.0

        \[\leadsto j \cdot \mathsf{fma}\left(c, t, i \cdot \color{blue}{\left(-y\right)}\right) \]
    5. Simplified44.0%

      \[\leadsto \color{blue}{j \cdot \mathsf{fma}\left(c, t, i \cdot \left(-y\right)\right)} \]
    6. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
      2. *-lowering-*.f6426.3

        \[\leadsto c \cdot \color{blue}{\left(j \cdot t\right)} \]
    8. Simplified26.3%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot t\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification30.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -1.22 \cdot 10^{-82}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;a \leq 5.2 \cdot 10^{-53}:\\ \;\;\;\;c \cdot \left(t \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \left(b \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 25: 22.3% accurate, 5.5× speedup?

\[\begin{array}{l} \\ a \cdot \left(b \cdot i\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j):
	return a * (b * i)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(a * Float64(b * i))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = a * (b * i);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(b \cdot i\right)
\end{array}
Derivation
  1. Initial program 73.5%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right) \]
  2. Add Preprocessing
  3. Taylor expanded in a around inf

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
  4. Step-by-step derivation
    1. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    2. sub-negN/A

      \[\leadsto a \cdot \color{blue}{\left(-1 \cdot \left(t \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
    3. mul-1-negN/A

      \[\leadsto a \cdot \left(\color{blue}{\left(\mathsf{neg}\left(t \cdot x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
    4. distribute-rgt-neg-inN/A

      \[\leadsto a \cdot \left(\color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
    5. mul-1-negN/A

      \[\leadsto a \cdot \left(t \cdot \color{blue}{\left(-1 \cdot x\right)} + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right) \]
    6. mul-1-negN/A

      \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \left(\mathsf{neg}\left(\color{blue}{\left(\mathsf{neg}\left(b \cdot i\right)\right)}\right)\right)\right) \]
    7. remove-double-negN/A

      \[\leadsto a \cdot \left(t \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
    8. accelerator-lowering-fma.f64N/A

      \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(t, -1 \cdot x, b \cdot i\right)} \]
    9. mul-1-negN/A

      \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
    10. neg-lowering-neg.f64N/A

      \[\leadsto a \cdot \mathsf{fma}\left(t, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
    11. *-commutativeN/A

      \[\leadsto a \cdot \mathsf{fma}\left(t, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
    12. *-lowering-*.f6435.3

      \[\leadsto a \cdot \mathsf{fma}\left(t, -x, \color{blue}{i \cdot b}\right) \]
  5. Simplified35.3%

    \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(t, -x, i \cdot b\right)} \]
  6. Taylor expanded in t around 0

    \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  7. Step-by-step derivation
    1. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
    2. *-lowering-*.f6422.6

      \[\leadsto a \cdot \color{blue}{\left(b \cdot i\right)} \]
  8. Simplified22.6%

    \[\leadsto \color{blue}{a \cdot \left(b \cdot i\right)} \]
  9. Add Preprocessing

Developer Target 1: 69.7% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\ t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\ \mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1
         (+
          (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
          (/
           (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
           (+ (* c t) (* i y)))))
        (t_2
         (-
          (* x (- (* z y) (* a t)))
          (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
   (if (< t -8.120978919195912e-33)
     t_2
     (if (< t -4.712553818218485e-169)
       t_1
       (if (< t -7.633533346031584e-308)
         t_2
         (if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
    t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
    if (t < (-8.120978919195912d-33)) then
        tmp = t_2
    else if (t < (-4.712553818218485d-169)) then
        tmp = t_1
    else if (t < (-7.633533346031584d-308)) then
        tmp = t_2
    else if (t < 1.0535888557455487d-139) then
        tmp = t_1
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
	double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	double tmp;
	if (t < -8.120978919195912e-33) {
		tmp = t_2;
	} else if (t < -4.712553818218485e-169) {
		tmp = t_1;
	} else if (t < -7.633533346031584e-308) {
		tmp = t_2;
	} else if (t < 1.0535888557455487e-139) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y)))
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
	tmp = 0
	if t < -8.120978919195912e-33:
		tmp = t_2
	elif t < -4.712553818218485e-169:
		tmp = t_1
	elif t < -7.633533346031584e-308:
		tmp = t_2
	elif t < 1.0535888557455487e-139:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y))))
	t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j)))
	tmp = 0.0
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		tmp = t_1;
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y)));
	t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
	tmp = 0.0;
	if (t < -8.120978919195912e-33)
		tmp = t_2;
	elseif (t < -4.712553818218485e-169)
		tmp = t_1;
	elseif (t < -7.633533346031584e-308)
		tmp = t_2;
	elseif (t < 1.0535888557455487e-139)
		tmp = t_1;
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024198 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))