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

Percentage Accurate: 73.8% → 82.0%
Time: 20.8s
Alternatives: 27
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 27 alternatives:

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

Initial Program: 73.8% accurate, 1.0× speedup?

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

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

Alternative 1: 82.0% 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(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{if}\;t\_1 \leq \infty:\\ \;\;\;\;t\_1\\ \mathbf{else}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\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 (- (* t i) (* z c))))
          (* j (- (* a c) (* y i))))))
   (if (<= t_1 INFINITY) t_1 (* c (fma a j (* z (- b)))))))
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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
	double tmp;
	if (t_1 <= ((double) INFINITY)) {
		tmp = t_1;
	} else {
		tmp = c * fma(a, j, (z * -b));
	}
	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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i))))
	tmp = 0.0
	if (t_1 <= Inf)
		tmp = t_1;
	else
		tmp = Float64(c * fma(a, j, Float64(z * Float64(-b))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(c * N[(a * j + N[(z * (-b)), $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(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\

\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0

    1. Initial program 92.0%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f640.0

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6450.6

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

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

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

Alternative 2: 69.6% accurate, 1.1× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -5.1999999999999997e75

    1. Initial program 84.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -5.1999999999999997e75 < x < -1.6000000000000001e-114

    1. Initial program 73.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.6000000000000001e-114 < x < 7.2e11

    1. Initial program 72.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 7.2e11 < x

    1. Initial program 70.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{t \cdot \left(b \cdot i\right)}\right) \]
      13. *-lowering-*.f6469.6

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

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

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

Alternative 3: 70.9% accurate, 1.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -2.70000000000000003e-4 or 3.54999999999999996e78 < z

    1. Initial program 65.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.70000000000000003e-4 < z < 3.54999999999999996e78

    1. Initial program 82.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 69.5% accurate, 1.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -2.6999999999999999e82

    1. Initial program 84.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.6999999999999999e82 < x < 8.6e11

    1. Initial program 72.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 8.6e11 < x

    1. Initial program 70.9%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{t \cdot \left(b \cdot i\right)}\right) \]
      13. *-lowering-*.f6469.6

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

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

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

Alternative 5: 69.1% accurate, 1.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(x, y \cdot z - t \cdot a, t \cdot \left(b \cdot i\right)\right)\\ \mathbf{if}\;x \leq -4.4 \cdot 10^{+63}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq 1600000000000:\\ \;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(a \cdot c - y \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 (fma x (- (* y z) (* t a)) (* t (* b i)))))
   (if (<= x -4.4e+63)
     t_1
     (if (<= x 1600000000000.0)
       (fma b (- (* t i) (* z c)) (* j (- (* a c) (* 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 = fma(x, ((y * z) - (t * a)), (t * (b * i)));
	double tmp;
	if (x <= -4.4e+63) {
		tmp = t_1;
	} else if (x <= 1600000000000.0) {
		tmp = fma(b, ((t * i) - (z * c)), (j * ((a * c) - (y * i))));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = fma(x, Float64(Float64(y * z) - Float64(t * a)), Float64(t * Float64(b * i)))
	tmp = 0.0
	if (x <= -4.4e+63)
		tmp = t_1;
	elseif (x <= 1600000000000.0)
		tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), Float64(j * Float64(Float64(a * c) - Float64(y * i))));
	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] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.4e+63], t$95$1, If[LessEqual[x, 1600000000000.0], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -4.3999999999999997e63 or 1.6e12 < x

    1. Initial program 77.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{t \cdot \left(b \cdot i\right)}\right) \]
      13. *-lowering-*.f6472.8

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

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

    if -4.3999999999999997e63 < x < 1.6e12

    1. Initial program 72.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 48.6% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -420000:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\

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

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

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

\mathbf{elif}\;t \leq 4.8 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -4.2e5

    1. Initial program 69.2%

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

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

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

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

        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \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 t \cdot \left(\color{blue}{a \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 t \cdot \left(a \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 t \cdot \left(a \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 t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

    if -4.2e5 < t < -2.4999999999999999e-70

    1. Initial program 69.4%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. *-lowering-*.f6462.5

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

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

    if -2.4999999999999999e-70 < t < -1.65e-227

    1. Initial program 71.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6469.5

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

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

    if -1.65e-227 < t < 7.79999999999999952e-123

    1. Initial program 83.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6483.3

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6476.9

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
      5. *-lowering-*.f6461.0

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
    10. Simplified61.0%

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, c \cdot \color{blue}{\left(j \cdot a\right)}\right) \]
      9. *-lowering-*.f6464.6

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, c \cdot \color{blue}{\left(j \cdot a\right)}\right) \]
    12. Applied egg-rr64.6%

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

    if 7.79999999999999952e-123 < t < 4.7999999999999997e98

    1. Initial program 80.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \mathsf{fma}\left(x, z, j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
      10. neg-lowering-neg.f6455.5

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

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

    if 4.7999999999999997e98 < t

    1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -420000:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;t \leq -2.5 \cdot 10^{-70}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;t \leq -1.65 \cdot 10^{-227}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot z, x, c \cdot \left(a \cdot j\right)\right)\\ \mathbf{elif}\;t \leq 4.8 \cdot 10^{+98}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 7: 48.7% accurate, 1.2× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;t \leq -130000:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\

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

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

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

\mathbf{elif}\;t \leq 1.6 \cdot 10^{+96}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 6 regimes
  2. if t < -1.3e5

    1. Initial program 69.2%

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

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

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

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

        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \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 t \cdot \left(\color{blue}{a \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 t \cdot \left(a \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 t \cdot \left(a \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 t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

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

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

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

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

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

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

    if -1.3e5 < t < -1.55e-69

    1. Initial program 69.4%

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. *-lowering-*.f6462.5

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

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

    if -1.55e-69 < t < -1.15e-209

    1. Initial program 71.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6469.5

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

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

    if -1.15e-209 < t < 5.99999999999999968e-123

    1. Initial program 83.3%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6483.3

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6476.9

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

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

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

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

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

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

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
      5. *-lowering-*.f6461.0

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
    10. Simplified61.0%

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(j \cdot a, c, \color{blue}{x \cdot \left(y \cdot z\right)}\right) \]
      10. *-lowering-*.f6462.9

        \[\leadsto \mathsf{fma}\left(j \cdot a, c, x \cdot \color{blue}{\left(y \cdot z\right)}\right) \]
    12. Applied egg-rr62.9%

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

    if 5.99999999999999968e-123 < t < 1.60000000000000003e96

    1. Initial program 80.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto y \cdot \mathsf{fma}\left(x, z, j \cdot \color{blue}{\left(\mathsf{neg}\left(i\right)\right)}\right) \]
      10. neg-lowering-neg.f6455.5

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

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

    if 1.60000000000000003e96 < t

    1. Initial program 68.0%

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -130000:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;t \leq -1.55 \cdot 10^{-69}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{elif}\;t \leq -1.15 \cdot 10^{-209}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;t \leq 6 \cdot 10^{-123}:\\ \;\;\;\;\mathsf{fma}\left(a \cdot j, c, x \cdot \left(y \cdot z\right)\right)\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+96}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(x, z, i \cdot \left(-j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 8: 61.2% accurate, 1.3× speedup?

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -2.4e16 or 6.19999999999999982e113 < x

    1. Initial program 79.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.4e16 < x < 5.3999999999999999e-49

    1. Initial program 71.5%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified73.8%

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

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

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
      2. *-lowering-*.f6469.9

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

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

    if 5.3999999999999999e-49 < x < 6.19999999999999982e113

    1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6472.8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 9: 27.8% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\ t_2 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;t \leq -3.2 \cdot 10^{+87}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;t \leq -6.7 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.04 \cdot 10^{-243}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-136}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+160}:\\ \;\;\;\;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 (* j (* y (- i)))) (t_2 (* i (* t b))))
   (if (<= t -3.2e+87)
     t_2
     (if (<= t -6.7e-53)
       t_1
       (if (<= t -1.04e-243)
         (* j (* a c))
         (if (<= t 3.3e-136) (* x (* y z)) (if (<= t 1.6e+160) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * (y * -i);
	double t_2 = i * (t * b);
	double tmp;
	if (t <= -3.2e+87) {
		tmp = t_2;
	} else if (t <= -6.7e-53) {
		tmp = t_1;
	} else if (t <= -1.04e-243) {
		tmp = j * (a * c);
	} else if (t <= 3.3e-136) {
		tmp = x * (y * z);
	} else if (t <= 1.6e+160) {
		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 = j * (y * -i)
    t_2 = i * (t * b)
    if (t <= (-3.2d+87)) then
        tmp = t_2
    else if (t <= (-6.7d-53)) then
        tmp = t_1
    else if (t <= (-1.04d-243)) then
        tmp = j * (a * c)
    else if (t <= 3.3d-136) then
        tmp = x * (y * z)
    else if (t <= 1.6d+160) 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 = j * (y * -i);
	double t_2 = i * (t * b);
	double tmp;
	if (t <= -3.2e+87) {
		tmp = t_2;
	} else if (t <= -6.7e-53) {
		tmp = t_1;
	} else if (t <= -1.04e-243) {
		tmp = j * (a * c);
	} else if (t <= 3.3e-136) {
		tmp = x * (y * z);
	} else if (t <= 1.6e+160) {
		tmp = t_1;
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * (y * -i)
	t_2 = i * (t * b)
	tmp = 0
	if t <= -3.2e+87:
		tmp = t_2
	elif t <= -6.7e-53:
		tmp = t_1
	elif t <= -1.04e-243:
		tmp = j * (a * c)
	elif t <= 3.3e-136:
		tmp = x * (y * z)
	elif t <= 1.6e+160:
		tmp = t_1
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(y * Float64(-i)))
	t_2 = Float64(i * Float64(t * b))
	tmp = 0.0
	if (t <= -3.2e+87)
		tmp = t_2;
	elseif (t <= -6.7e-53)
		tmp = t_1;
	elseif (t <= -1.04e-243)
		tmp = Float64(j * Float64(a * c));
	elseif (t <= 3.3e-136)
		tmp = Float64(x * Float64(y * z));
	elseif (t <= 1.6e+160)
		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 = j * (y * -i);
	t_2 = i * (t * b);
	tmp = 0.0;
	if (t <= -3.2e+87)
		tmp = t_2;
	elseif (t <= -6.7e-53)
		tmp = t_1;
	elseif (t <= -1.04e-243)
		tmp = j * (a * c);
	elseif (t <= 3.3e-136)
		tmp = x * (y * z);
	elseif (t <= 1.6e+160)
		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[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.2e+87], t$95$2, If[LessEqual[t, -6.7e-53], t$95$1, If[LessEqual[t, -1.04e-243], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e-136], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+160], t$95$1, t$95$2]]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(y \cdot \left(-i\right)\right)\\
t_2 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;t \leq -3.2 \cdot 10^{+87}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;t \leq -6.7 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -1.04 \cdot 10^{-243}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{elif}\;t \leq 3.3 \cdot 10^{-136}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;t \leq 1.6 \cdot 10^{+160}:\\
\;\;\;\;t\_1\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.2e87 or 1.5999999999999999e160 < t

    1. Initial program 62.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified83.0%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6442.7

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified42.7%

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

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

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

        \[\leadsto \color{blue}{\left(b \cdot t\right)} \cdot i \]
    10. Applied egg-rr53.3%

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

    if -3.2e87 < t < -6.69999999999999957e-53 or 3.30000000000000018e-136 < t < 1.5999999999999999e160

    1. Initial program 80.0%

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

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

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

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

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6446.7

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified46.7%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a 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.f6438.8

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

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

    if -6.69999999999999957e-53 < t < -1.0400000000000001e-243

    1. Initial program 71.4%

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

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

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

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

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6452.8

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

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

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

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

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

    if -1.0400000000000001e-243 < t < 3.30000000000000018e-136

    1. Initial program 82.1%

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

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-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-*.f6453.1

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

      \[\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. *-lowering-*.f6440.9

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

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification43.8%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -3.2 \cdot 10^{+87}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;t \leq -6.7 \cdot 10^{-53}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;t \leq -1.04 \cdot 10^{-243}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 3.3 \cdot 10^{-136}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 1.6 \cdot 10^{+160}:\\ \;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 10: 51.0% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{if}\;i \leq -1.9 \cdot 10^{+53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;i \leq -1.55 \cdot 10^{-103}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;i \leq -4.6 \cdot 10^{-271}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;i \leq 6.6 \cdot 10^{-97}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \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 (* i (fma j (- y) (* t b)))))
   (if (<= i -1.9e+53)
     t_1
     (if (<= i -1.55e-103)
       (* j (- (* a c) (* y i)))
       (if (<= i -4.6e-271)
         (* a (fma j c (* x (- t))))
         (if (<= i 6.6e-97) (* c (- (* a j) (* z 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 = i * fma(j, -y, (t * b));
	double tmp;
	if (i <= -1.9e+53) {
		tmp = t_1;
	} else if (i <= -1.55e-103) {
		tmp = j * ((a * c) - (y * i));
	} else if (i <= -4.6e-271) {
		tmp = a * fma(j, c, (x * -t));
	} else if (i <= 6.6e-97) {
		tmp = c * ((a * j) - (z * b));
	} 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(t * b)))
	tmp = 0.0
	if (i <= -1.9e+53)
		tmp = t_1;
	elseif (i <= -1.55e-103)
		tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i)));
	elseif (i <= -4.6e-271)
		tmp = Float64(a * fma(j, c, Float64(x * Float64(-t))));
	elseif (i <= 6.6e-97)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	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[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+53], t$95$1, If[LessEqual[i, -1.55e-103], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.6e-271], N[(a * N[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.6e-97], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

\mathbf{elif}\;i \leq -1.55 \cdot 10^{-103}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\

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

\mathbf{elif}\;i \leq 6.6 \cdot 10^{-97}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if i < -1.89999999999999999e53 or 6.6000000000000002e-97 < i

    1. Initial program 69.2%

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

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

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

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

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

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

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

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

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

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

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

    if -1.89999999999999999e53 < i < -1.5500000000000001e-103

    1. Initial program 83.7%

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

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

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

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

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6453.0

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified53.0%

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

    if -1.5500000000000001e-103 < i < -4.60000000000000017e-271

    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.60000000000000017e-271 < i < 6.6000000000000002e-97

    1. Initial program 82.2%

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

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

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

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

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

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      5. *-lowering-*.f6459.4

        \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
    5. Simplified59.4%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;i \leq -1.9 \cdot 10^{+53}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;i \leq -1.55 \cdot 10^{-103}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{elif}\;i \leq -4.6 \cdot 10^{-271}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;i \leq 6.6 \cdot 10^{-97}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 11: 43.1% accurate, 1.4× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{if}\;a \leq -4.2 \cdot 10^{-88}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq -4.3 \cdot 10^{-176}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{-224}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{-103}:\\ \;\;\;\;t \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 (* a (fma j c (* x (- t))))))
   (if (<= a -4.2e-88)
     t_1
     (if (<= a -4.3e-176)
       (* i (* t b))
       (if (<= a 7.8e-224)
         (* x (* y z))
         (if (<= a 8e-103) (* t (* b i)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * fma(j, c, (x * -t));
	double tmp;
	if (a <= -4.2e-88) {
		tmp = t_1;
	} else if (a <= -4.3e-176) {
		tmp = i * (t * b);
	} else if (a <= 7.8e-224) {
		tmp = x * (y * z);
	} else if (a <= 8e-103) {
		tmp = t * (b * i);
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t))))
	tmp = 0.0
	if (a <= -4.2e-88)
		tmp = t_1;
	elseif (a <= -4.3e-176)
		tmp = Float64(i * Float64(t * b));
	elseif (a <= 7.8e-224)
		tmp = Float64(x * Float64(y * z));
	elseif (a <= 8e-103)
		tmp = Float64(t * Float64(b * i));
	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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e-88], t$95$1, If[LessEqual[a, -4.3e-176], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.8e-224], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8e-103], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

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

\mathbf{elif}\;a \leq -4.3 \cdot 10^{-176}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\

\mathbf{elif}\;a \leq 7.8 \cdot 10^{-224}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;a \leq 8 \cdot 10^{-103}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if a < -4.1999999999999999e-88 or 7.99999999999999966e-103 < a

    1. Initial program 71.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -4.1999999999999999e-88 < a < -4.30000000000000012e-176

    1. Initial program 84.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified68.9%

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

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

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

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6437.9

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified37.9%

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

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

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
      3. *-lowering-*.f6447.7

        \[\leadsto \color{blue}{\left(b \cdot t\right)} \cdot i \]
    10. Applied egg-rr47.7%

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

    if -4.30000000000000012e-176 < a < 7.7999999999999996e-224

    1. Initial program 77.2%

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

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-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-*.f6464.1

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

      \[\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. *-lowering-*.f6446.2

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

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

    if 7.7999999999999996e-224 < a < 7.99999999999999966e-103

    1. Initial program 84.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6480.5

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

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

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

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

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

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

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

        \[\leadsto \color{blue}{t \cdot \left(b \cdot i\right)} \]
      6. *-lowering-*.f6445.8

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i\right)} \]
    10. Simplified45.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.2 \cdot 10^{-88}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;a \leq -4.3 \cdot 10^{-176}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;a \leq 7.8 \cdot 10^{-224}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{-103}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 12: 61.7% accurate, 1.5× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -4.5e16 or 2.59999999999999997e-56 < x

    1. Initial program 77.9%

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

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

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

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

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

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6477.8

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

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

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

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

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6476.5

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{t \cdot \left(i \cdot b\right)}\right) \]
      11. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, t \cdot \color{blue}{\left(b \cdot i\right)}\right) \]
      12. *-lowering-*.f64N/A

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, \color{blue}{t \cdot \left(b \cdot i\right)}\right) \]
      13. *-lowering-*.f6469.6

        \[\leadsto \mathsf{fma}\left(x, y \cdot z - a \cdot t, t \cdot \color{blue}{\left(b \cdot i\right)}\right) \]
    10. Simplified69.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - a \cdot t, t \cdot \left(b \cdot i\right)\right)} \]

    if -4.5e16 < x < 2.59999999999999997e-56

    1. Initial program 71.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified73.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in a around 0

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(b \cdot i\right)}\right) \]
    7. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
      2. *-lowering-*.f6469.6

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
    8. Simplified69.6%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
  3. Recombined 2 regimes into one program.
  4. Final simplification69.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.5 \cdot 10^{+16}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, t \cdot \left(b \cdot i\right)\right)\\ \mathbf{elif}\;x \leq 2.6 \cdot 10^{-56}:\\ \;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(b \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(x, y \cdot z - t \cdot a, t \cdot \left(b \cdot i\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 13: 55.4% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.3 \cdot 10^{+69}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\ \mathbf{elif}\;x \leq 8.6 \cdot 10^{-46}:\\ \;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(b \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot z, x, c \cdot \left(a \cdot j\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= x -1.3e+69)
   (* x (fma a (- t) (* y z)))
   (if (<= x 8.6e-46)
     (fma j (- (* a c) (* y i)) (* t (* b i)))
     (fma (* y z) x (* c (* a j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (x <= -1.3e+69) {
		tmp = x * fma(a, -t, (y * z));
	} else if (x <= 8.6e-46) {
		tmp = fma(j, ((a * c) - (y * i)), (t * (b * i)));
	} else {
		tmp = fma((y * z), x, (c * (a * j)));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (x <= -1.3e+69)
		tmp = Float64(x * fma(a, Float64(-t), Float64(y * z)));
	elseif (x <= 8.6e-46)
		tmp = fma(j, Float64(Float64(a * c) - Float64(y * i)), Float64(t * Float64(b * i)));
	else
		tmp = fma(Float64(y * z), x, Float64(c * Float64(a * j)));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.3e+69], N[(x * N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e-46], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] * x + N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+69}:\\
\;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\

\mathbf{elif}\;x \leq 8.6 \cdot 10^{-46}:\\
\;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(b \cdot i\right)\right)\\

\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, c \cdot \left(a \cdot j\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -1.3000000000000001e69

    1. Initial program 83.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in 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. sub-negN/A

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto x \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(t\right)\right)} + y \cdot z\right) \]
      5. mul-1-negN/A

        \[\leadsto x \cdot \left(a \cdot \color{blue}{\left(-1 \cdot t\right)} + y \cdot z\right) \]
      6. accelerator-lowering-fma.f64N/A

        \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot t, y \cdot z\right)} \]
      7. mul-1-negN/A

        \[\leadsto x \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(t\right)}, y \cdot z\right) \]
      8. neg-lowering-neg.f64N/A

        \[\leadsto x \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(t\right)}, y \cdot z\right) \]
      9. *-lowering-*.f6468.1

        \[\leadsto x \cdot \mathsf{fma}\left(a, -t, \color{blue}{y \cdot z}\right) \]
    5. Simplified68.1%

      \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)} \]

    if -1.3000000000000001e69 < x < 8.6000000000000007e-46

    1. Initial program 71.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified74.1%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in a around 0

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(b \cdot i\right)}\right) \]
    7. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
      2. *-lowering-*.f6469.0

        \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]
    8. Simplified69.0%

      \[\leadsto \mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \color{blue}{\left(i \cdot b\right)}\right) \]

    if 8.6000000000000007e-46 < x

    1. Initial program 74.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6474.1

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr74.1%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6477.0

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
    7. Simplified77.0%

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(j \cdot c\right)} \]
    8. Taylor expanded in y around inf

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} + a \cdot \left(j \cdot c\right) \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left(y \cdot x\right)} \cdot z + a \cdot \left(j \cdot c\right) \]
      3. associate-*r*N/A

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
      5. *-lowering-*.f6454.3

        \[\leadsto y \cdot \color{blue}{\left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
    10. Simplified54.3%

      \[\leadsto \color{blue}{y \cdot \left(x \cdot z\right)} + a \cdot \left(j \cdot c\right) \]
    11. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto y \cdot \color{blue}{\left(z \cdot x\right)} + a \cdot \left(j \cdot c\right) \]
      2. associate-*r*N/A

        \[\leadsto \color{blue}{\left(y \cdot z\right) \cdot x} + a \cdot \left(j \cdot c\right) \]
      3. accelerator-lowering-fma.f64N/A

        \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot z, x, a \cdot \left(j \cdot c\right)\right)} \]
      4. *-lowering-*.f64N/A

        \[\leadsto \mathsf{fma}\left(\color{blue}{y \cdot z}, x, a \cdot \left(j \cdot c\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, \color{blue}{\left(a \cdot j\right) \cdot c}\right) \]
      6. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, \color{blue}{c \cdot \left(a \cdot j\right)}\right) \]
      7. *-lowering-*.f64N/A

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, \color{blue}{c \cdot \left(a \cdot j\right)}\right) \]
      8. *-commutativeN/A

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, c \cdot \color{blue}{\left(j \cdot a\right)}\right) \]
      9. *-lowering-*.f6457.5

        \[\leadsto \mathsf{fma}\left(y \cdot z, x, c \cdot \color{blue}{\left(j \cdot a\right)}\right) \]
    12. Applied egg-rr57.5%

      \[\leadsto \color{blue}{\mathsf{fma}\left(y \cdot z, x, c \cdot \left(j \cdot a\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification65.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.3 \cdot 10^{+69}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\ \mathbf{elif}\;x \leq 8.6 \cdot 10^{-46}:\\ \;\;\;\;\mathsf{fma}\left(j, a \cdot c - y \cdot i, t \cdot \left(b \cdot i\right)\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y \cdot z, x, c \cdot \left(a \cdot j\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 14: 28.7% accurate, 1.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;t \leq -11:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -3.8 \cdot 10^{-53}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;t \leq -4.8 \cdot 10^{-240}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+59}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{+113}:\\ \;\;\;\;c \cdot \left(a \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 (* t b))))
   (if (<= t -11.0)
     t_1
     (if (<= t -3.8e-53)
       (* i (* y (- j)))
       (if (<= t -4.8e-240)
         (* j (* a c))
         (if (<= t 8e+59)
           (* x (* y z))
           (if (<= t 5.2e+113) (* c (* a 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 * (t * b);
	double tmp;
	if (t <= -11.0) {
		tmp = t_1;
	} else if (t <= -3.8e-53) {
		tmp = i * (y * -j);
	} else if (t <= -4.8e-240) {
		tmp = j * (a * c);
	} else if (t <= 8e+59) {
		tmp = x * (y * z);
	} else if (t <= 5.2e+113) {
		tmp = c * (a * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * (t * b)
    if (t <= (-11.0d0)) then
        tmp = t_1
    else if (t <= (-3.8d-53)) then
        tmp = i * (y * -j)
    else if (t <= (-4.8d-240)) then
        tmp = j * (a * c)
    else if (t <= 8d+59) then
        tmp = x * (y * z)
    else if (t <= 5.2d+113) then
        tmp = c * (a * j)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = i * (t * b);
	double tmp;
	if (t <= -11.0) {
		tmp = t_1;
	} else if (t <= -3.8e-53) {
		tmp = i * (y * -j);
	} else if (t <= -4.8e-240) {
		tmp = j * (a * c);
	} else if (t <= 8e+59) {
		tmp = x * (y * z);
	} else if (t <= 5.2e+113) {
		tmp = c * (a * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = i * (t * b)
	tmp = 0
	if t <= -11.0:
		tmp = t_1
	elif t <= -3.8e-53:
		tmp = i * (y * -j)
	elif t <= -4.8e-240:
		tmp = j * (a * c)
	elif t <= 8e+59:
		tmp = x * (y * z)
	elif t <= 5.2e+113:
		tmp = c * (a * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * Float64(t * b))
	tmp = 0.0
	if (t <= -11.0)
		tmp = t_1;
	elseif (t <= -3.8e-53)
		tmp = Float64(i * Float64(y * Float64(-j)));
	elseif (t <= -4.8e-240)
		tmp = Float64(j * Float64(a * c));
	elseif (t <= 8e+59)
		tmp = Float64(x * Float64(y * z));
	elseif (t <= 5.2e+113)
		tmp = Float64(c * Float64(a * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = i * (t * b);
	tmp = 0.0;
	if (t <= -11.0)
		tmp = t_1;
	elseif (t <= -3.8e-53)
		tmp = i * (y * -j);
	elseif (t <= -4.8e-240)
		tmp = j * (a * c);
	elseif (t <= 8e+59)
		tmp = x * (y * z);
	elseif (t <= 5.2e+113)
		tmp = c * (a * 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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -11.0], t$95$1, If[LessEqual[t, -3.8e-53], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.8e-240], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+59], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e+113], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;t \leq -11:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -3.8 \cdot 10^{-53}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\

\mathbf{elif}\;t \leq -4.8 \cdot 10^{-240}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{elif}\;t \leq 8 \cdot 10^{+59}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;t \leq 5.2 \cdot 10^{+113}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if t < -11 or 5.1999999999999998e113 < t

    1. Initial program 67.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified78.4%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6439.4

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified39.4%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot i\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
      3. *-lowering-*.f6446.9

        \[\leadsto \color{blue}{\left(b \cdot t\right)} \cdot i \]
    10. Applied egg-rr46.9%

      \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]

    if -11 < t < -3.7999999999999998e-53

    1. Initial program 70.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6443.9

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified43.9%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a 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. distribute-rgt-neg-inN/A

        \[\leadsto \color{blue}{i \cdot \left(\mathsf{neg}\left(j \cdot y\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right)\right)} \]
      4. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto i \cdot \color{blue}{\left(\mathsf{neg}\left(j \cdot y\right)\right)} \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto i \cdot \color{blue}{\left(j \cdot \left(\mathsf{neg}\left(y\right)\right)\right)} \]
      7. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-1 \cdot y\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto i \cdot \color{blue}{\left(j \cdot \left(-1 \cdot y\right)\right)} \]
      9. mul-1-negN/A

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(\mathsf{neg}\left(y\right)\right)}\right) \]
      10. neg-lowering-neg.f6449.9

        \[\leadsto i \cdot \left(j \cdot \color{blue}{\left(-y\right)}\right) \]
    8. Simplified49.9%

      \[\leadsto \color{blue}{i \cdot \left(j \cdot \left(-y\right)\right)} \]

    if -3.7999999999999998e-53 < t < -4.7999999999999999e-240

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6452.8

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified52.8%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a around inf

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6444.8

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    8. Simplified44.8%

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]

    if -4.7999999999999999e-240 < t < 7.99999999999999977e59

    1. Initial program 82.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-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.8

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified49.8%

      \[\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. *-lowering-*.f6436.9

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
    8. Simplified36.9%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]

    if 7.99999999999999977e59 < t < 5.1999999999999998e113

    1. Initial program 80.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6455.8

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified55.8%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
    6. Taylor expanded in j around inf

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6435.7

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    8. Simplified35.7%

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      3. *-lowering-*.f6441.8

        \[\leadsto \color{blue}{\left(a \cdot j\right)} \cdot c \]
    10. Applied egg-rr41.8%

      \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
  3. Recombined 5 regimes into one program.
  4. Final simplification42.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -11:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;t \leq -3.8 \cdot 10^{-53}:\\ \;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\ \mathbf{elif}\;t \leq -4.8 \cdot 10^{-240}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 8 \cdot 10^{+59}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 5.2 \cdot 10^{+113}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 15: 50.9% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -6.4 \cdot 10^{+101}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.85 \cdot 10^{-64}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{+102}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= c -6.4e+101)
   (* c (- (* a j) (* z b)))
   (if (<= c -1.85e-64)
     (* t (fma a (- x) (* b i)))
     (if (<= c 4.2e+102)
       (* y (fma j (- i) (* x z)))
       (* c (fma a j (* z (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (c <= -6.4e+101) {
		tmp = c * ((a * j) - (z * b));
	} else if (c <= -1.85e-64) {
		tmp = t * fma(a, -x, (b * i));
	} else if (c <= 4.2e+102) {
		tmp = y * fma(j, -i, (x * z));
	} else {
		tmp = c * fma(a, j, (z * -b));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (c <= -6.4e+101)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (c <= -1.85e-64)
		tmp = Float64(t * fma(a, Float64(-x), Float64(b * i)));
	elseif (c <= 4.2e+102)
		tmp = Float64(y * fma(j, Float64(-i), Float64(x * z)));
	else
		tmp = Float64(c * fma(a, j, Float64(z * Float64(-b))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -6.4e+101], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.85e-64], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+102], N[(y * N[(j * (-i) + N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.4 \cdot 10^{+101}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;c \leq -1.85 \cdot 10^{-64}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\

\mathbf{elif}\;c \leq 4.2 \cdot 10^{+102}:\\
\;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if c < -6.4000000000000001e101

    1. Initial program 61.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(a \cdot j - b \cdot z\right)} \]
      3. *-commutativeN/A

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      5. *-lowering-*.f6466.3

        \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
    5. Simplified66.3%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]

    if -6.4000000000000001e101 < c < -1.84999999999999999e-64

    1. Initial program 86.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \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 t \cdot \left(\color{blue}{a \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 t \cdot \left(a \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 t \cdot \left(a \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 t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6456.2

        \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified56.2%

      \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]

    if -1.84999999999999999e-64 < c < 4.20000000000000003e102

    1. Initial program 79.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in y around inf

      \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{y \cdot \left(-1 \cdot \left(i \cdot j\right) + x \cdot z\right)} \]
      2. associate-*r*N/A

        \[\leadsto y \cdot \left(\color{blue}{\left(-1 \cdot i\right) \cdot j} + x \cdot z\right) \]
      3. *-commutativeN/A

        \[\leadsto y \cdot \left(\color{blue}{j \cdot \left(-1 \cdot i\right)} + x \cdot z\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto y \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot i, x \cdot z\right)} \]
      5. neg-mul-1N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      6. neg-lowering-neg.f64N/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(i\right)}, x \cdot z\right) \]
      7. *-commutativeN/A

        \[\leadsto y \cdot \mathsf{fma}\left(j, \mathsf{neg}\left(i\right), \color{blue}{z \cdot x}\right) \]
      8. *-lowering-*.f6455.1

        \[\leadsto y \cdot \mathsf{fma}\left(j, -i, \color{blue}{z \cdot x}\right) \]
    5. Simplified55.1%

      \[\leadsto \color{blue}{y \cdot \mathsf{fma}\left(j, -i, z \cdot x\right)} \]

    if 4.20000000000000003e102 < c

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6465.6

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr65.6%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto c \cdot \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto c \cdot \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
      6. *-commutativeN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \]
      7. distribute-rgt-neg-inN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(\mathsf{neg}\left(b\right)\right)}\right) \]
      8. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(-1 \cdot b\right)}\right) \]
      10. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6475.5

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-b\right)}\right) \]
    7. Simplified75.5%

      \[\leadsto \color{blue}{c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification60.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -6.4 \cdot 10^{+101}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq -1.85 \cdot 10^{-64}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{+102}:\\ \;\;\;\;y \cdot \mathsf{fma}\left(j, -i, x \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 16: 51.1% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\ \mathbf{if}\;x \leq -4.1 \cdot 10^{+64}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -2.5 \cdot 10^{-34}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;x \leq 2.55 \cdot 10^{-47}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \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 (fma a (- t) (* y z)))))
   (if (<= x -4.1e+64)
     t_1
     (if (<= x -2.5e-34)
       (* t (fma a (- x) (* b i)))
       (if (<= x 2.55e-47) (* j (- (* a c) (* 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 = x * fma(a, -t, (y * z));
	double tmp;
	if (x <= -4.1e+64) {
		tmp = t_1;
	} else if (x <= -2.5e-34) {
		tmp = t * fma(a, -x, (b * i));
	} else if (x <= 2.55e-47) {
		tmp = j * ((a * c) - (y * i));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(x * fma(a, Float64(-t), Float64(y * z)))
	tmp = 0.0
	if (x <= -4.1e+64)
		tmp = t_1;
	elseif (x <= -2.5e-34)
		tmp = Float64(t * fma(a, Float64(-x), Float64(b * i)));
	elseif (x <= 2.55e-47)
		tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i)));
	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[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.1e+64], t$95$1, If[LessEqual[x, -2.5e-34], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.55e-47], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\
\mathbf{if}\;x \leq -4.1 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;x \leq -2.5 \cdot 10^{-34}:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\

\mathbf{elif}\;x \leq 2.55 \cdot 10^{-47}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if x < -4.09999999999999978e64 or 2.55e-47 < x

    1. Initial program 78.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in x around inf

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{x \cdot \left(y \cdot z - a \cdot t\right)} \]
      2. sub-negN/A

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z + \left(\mathsf{neg}\left(a \cdot t\right)\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto x \cdot \color{blue}{\left(\left(\mathsf{neg}\left(a \cdot t\right)\right) + y \cdot z\right)} \]
      4. distribute-rgt-neg-inN/A

        \[\leadsto x \cdot \left(\color{blue}{a \cdot \left(\mathsf{neg}\left(t\right)\right)} + y \cdot z\right) \]
      5. mul-1-negN/A

        \[\leadsto x \cdot \left(a \cdot \color{blue}{\left(-1 \cdot t\right)} + y \cdot z\right) \]
      6. accelerator-lowering-fma.f64N/A

        \[\leadsto x \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot t, y \cdot z\right)} \]
      7. mul-1-negN/A

        \[\leadsto x \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(t\right)}, y \cdot z\right) \]
      8. neg-lowering-neg.f64N/A

        \[\leadsto x \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(t\right)}, y \cdot z\right) \]
      9. *-lowering-*.f6459.4

        \[\leadsto x \cdot \mathsf{fma}\left(a, -t, \color{blue}{y \cdot z}\right) \]
    5. Simplified59.4%

      \[\leadsto \color{blue}{x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)} \]

    if -4.09999999999999978e64 < x < -2.5000000000000001e-34

    1. Initial program 71.1%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \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 t \cdot \left(\color{blue}{a \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 t \cdot \left(a \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 t \cdot \left(a \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 t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6459.7

        \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified59.7%

      \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]

    if -2.5000000000000001e-34 < x < 2.55e-47

    1. Initial program 71.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6458.9

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified58.9%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification59.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -4.1 \cdot 10^{+64}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\ \mathbf{elif}\;x \leq -2.5 \cdot 10^{-34}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;x \leq 2.55 \cdot 10^{-47}:\\ \;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;x \cdot \mathsf{fma}\left(a, -t, y \cdot z\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 17: 47.9% accurate, 1.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{if}\;t \leq -11.5:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-123}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\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 (* i (fma j (- y) (* t b)))))
   (if (<= t -11.5)
     (* t (fma a (- x) (* b i)))
     (if (<= t -7.2e-53)
       t_1
       (if (<= t 7.8e-123) (* c (fma a j (* z (- 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 = i * fma(j, -y, (t * b));
	double tmp;
	if (t <= -11.5) {
		tmp = t * fma(a, -x, (b * i));
	} else if (t <= -7.2e-53) {
		tmp = t_1;
	} else if (t <= 7.8e-123) {
		tmp = c * fma(a, j, (z * -b));
	} 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(t * b)))
	tmp = 0.0
	if (t <= -11.5)
		tmp = Float64(t * fma(a, Float64(-x), Float64(b * i)));
	elseif (t <= -7.2e-53)
		tmp = t_1;
	elseif (t <= 7.8e-123)
		tmp = Float64(c * fma(a, j, Float64(z * Float64(-b))));
	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[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -11.5], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.2e-53], t$95$1, If[LessEqual[t, 7.8e-123], N[(c * N[(a * j + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
\mathbf{if}\;t \leq -11.5:\\
\;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\

\mathbf{elif}\;t \leq -7.2 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 7.8 \cdot 10^{-123}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if t < -11.5

    1. Initial program 69.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf

      \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      2. sub-negN/A

        \[\leadsto t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) + \left(\mathsf{neg}\left(-1 \cdot \left(b \cdot i\right)\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto t \cdot \left(\color{blue}{\left(\mathsf{neg}\left(a \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 t \cdot \left(\color{blue}{a \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 t \cdot \left(a \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 t \cdot \left(a \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 t \cdot \left(a \cdot \left(-1 \cdot x\right) + \color{blue}{b \cdot i}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto t \cdot \color{blue}{\mathsf{fma}\left(a, -1 \cdot x, b \cdot i\right)} \]
      9. mul-1-negN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \color{blue}{\mathsf{neg}\left(x\right)}, b \cdot i\right) \]
      11. *-commutativeN/A

        \[\leadsto t \cdot \mathsf{fma}\left(a, \mathsf{neg}\left(x\right), \color{blue}{i \cdot b}\right) \]
      12. *-lowering-*.f6471.2

        \[\leadsto t \cdot \mathsf{fma}\left(a, -x, \color{blue}{i \cdot b}\right) \]
    5. Simplified71.2%

      \[\leadsto \color{blue}{t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)} \]

    if -11.5 < t < -7.1999999999999998e-53 or 7.79999999999999952e-123 < t

    1. Initial program 74.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in i around inf

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      2. cancel-sign-sub-invN/A

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \]
      6. metadata-evalN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \]
      7. *-lft-identityN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{b \cdot t}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, b \cdot t\right)} \]
      9. mul-1-negN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
      11. *-lowering-*.f6453.2

        \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot t}\right) \]
    5. Simplified53.2%

      \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(j, -y, b \cdot t\right)} \]

    if -7.1999999999999998e-53 < t < 7.79999999999999952e-123

    1. Initial program 78.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6478.5

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr78.5%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto c \cdot \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto c \cdot \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
      6. *-commutativeN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \]
      7. distribute-rgt-neg-inN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(\mathsf{neg}\left(b\right)\right)}\right) \]
      8. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(-1 \cdot b\right)}\right) \]
      10. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6454.4

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-b\right)}\right) \]
    7. Simplified54.4%

      \[\leadsto \color{blue}{c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification58.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -11.5:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;t \leq -7.2 \cdot 10^{-53}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;t \leq 7.8 \cdot 10^{-123}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 18: 28.4% accurate, 1.7× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := i \cdot \left(t \cdot b\right)\\ \mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.85 \cdot 10^{-236}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+63}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 4.6 \cdot 10^{+110}:\\ \;\;\;\;c \cdot \left(a \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 (* t b))))
   (if (<= t -8.6e-53)
     t_1
     (if (<= t -1.85e-236)
       (* j (* a c))
       (if (<= t 3.6e+63)
         (* x (* y z))
         (if (<= t 4.6e+110) (* c (* a 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 * (t * b);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= -1.85e-236) {
		tmp = j * (a * c);
	} else if (t <= 3.6e+63) {
		tmp = x * (y * z);
	} else if (t <= 4.6e+110) {
		tmp = c * (a * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = i * (t * b)
    if (t <= (-8.6d-53)) then
        tmp = t_1
    else if (t <= (-1.85d-236)) then
        tmp = j * (a * c)
    else if (t <= 3.6d+63) then
        tmp = x * (y * z)
    else if (t <= 4.6d+110) then
        tmp = c * (a * j)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = i * (t * b);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= -1.85e-236) {
		tmp = j * (a * c);
	} else if (t <= 3.6e+63) {
		tmp = x * (y * z);
	} else if (t <= 4.6e+110) {
		tmp = c * (a * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = i * (t * b)
	tmp = 0
	if t <= -8.6e-53:
		tmp = t_1
	elif t <= -1.85e-236:
		tmp = j * (a * c)
	elif t <= 3.6e+63:
		tmp = x * (y * z)
	elif t <= 4.6e+110:
		tmp = c * (a * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(i * Float64(t * b))
	tmp = 0.0
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= -1.85e-236)
		tmp = Float64(j * Float64(a * c));
	elseif (t <= 3.6e+63)
		tmp = Float64(x * Float64(y * z));
	elseif (t <= 4.6e+110)
		tmp = Float64(c * Float64(a * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = i * (t * b);
	tmp = 0.0;
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= -1.85e-236)
		tmp = j * (a * c);
	elseif (t <= 3.6e+63)
		tmp = x * (y * z);
	elseif (t <= 4.6e+110)
		tmp = c * (a * 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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e-53], t$95$1, If[LessEqual[t, -1.85e-236], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+63], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.6e+110], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq -1.85 \cdot 10^{-236}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{elif}\;t \leq 3.6 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{elif}\;t \leq 4.6 \cdot 10^{+110}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -8.5999999999999999e-53 or 4.6e110 < t

    1. Initial program 68.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified74.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6436.2

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified36.2%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot i\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]
      3. *-lowering-*.f6442.5

        \[\leadsto \color{blue}{\left(b \cdot t\right)} \cdot i \]
    10. Applied egg-rr42.5%

      \[\leadsto \color{blue}{\left(b \cdot t\right) \cdot i} \]

    if -8.5999999999999999e-53 < t < -1.85000000000000011e-236

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6452.8

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified52.8%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a around inf

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6444.8

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    8. Simplified44.8%

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]

    if -1.85000000000000011e-236 < t < 3.59999999999999999e63

    1. Initial program 82.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around inf

      \[\leadsto \color{blue}{z \cdot \left(x \cdot y - b \cdot c\right)} \]
    4. Step-by-step derivation
      1. *-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.8

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified49.8%

      \[\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. *-lowering-*.f6436.9

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
    8. Simplified36.9%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]

    if 3.59999999999999999e63 < t < 4.6e110

    1. Initial program 80.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6455.8

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified55.8%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
    6. Taylor expanded in j around inf

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6435.7

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    8. Simplified35.7%

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
    9. Step-by-step derivation
      1. associate-*r*N/A

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      2. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
      3. *-lowering-*.f6441.8

        \[\leadsto \color{blue}{\left(a \cdot j\right)} \cdot c \]
    10. Applied egg-rr41.8%

      \[\leadsto \color{blue}{\left(a \cdot j\right) \cdot c} \]
  3. Recombined 4 regimes into one program.
  4. Final simplification40.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \mathbf{elif}\;t \leq -1.85 \cdot 10^{-236}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 3.6 \cdot 10^{+63}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{elif}\;t \leq 4.6 \cdot 10^{+110}:\\ \;\;\;\;c \cdot \left(a \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;i \cdot \left(t \cdot b\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 19: 51.1% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -4.1 \cdot 10^{+104}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq 7 \cdot 10^{+94}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= c -4.1e+104)
   (* c (- (* a j) (* z b)))
   (if (<= c 7e+94) (* i (fma j (- y) (* t b))) (* c (fma a j (* z (- b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (c <= -4.1e+104) {
		tmp = c * ((a * j) - (z * b));
	} else if (c <= 7e+94) {
		tmp = i * fma(j, -y, (t * b));
	} else {
		tmp = c * fma(a, j, (z * -b));
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (c <= -4.1e+104)
		tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b)));
	elseif (c <= 7e+94)
		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
	else
		tmp = Float64(c * fma(a, j, Float64(z * Float64(-b))));
	end
	return tmp
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.1e+104], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7e+94], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.1 \cdot 10^{+104}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\

\mathbf{elif}\;c \leq 7 \cdot 10^{+94}:\\
\;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\

\mathbf{else}:\\
\;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 3 regimes
  2. if c < -4.09999999999999985e104

    1. Initial program 62.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto c \cdot \color{blue}{\left(a \cdot j - b \cdot z\right)} \]
      3. *-commutativeN/A

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      4. *-lowering-*.f64N/A

        \[\leadsto c \cdot \left(\color{blue}{j \cdot a} - b \cdot z\right) \]
      5. *-lowering-*.f6465.5

        \[\leadsto c \cdot \left(j \cdot a - \color{blue}{b \cdot z}\right) \]
    5. Simplified65.5%

      \[\leadsto \color{blue}{c \cdot \left(j \cdot a - b \cdot z\right)} \]

    if -4.09999999999999985e104 < c < 6.9999999999999994e94

    1. Initial program 80.3%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in i around inf

      \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{i \cdot \left(-1 \cdot \left(j \cdot y\right) - -1 \cdot \left(b \cdot t\right)\right)} \]
      2. cancel-sign-sub-invN/A

        \[\leadsto i \cdot \color{blue}{\left(-1 \cdot \left(j \cdot y\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\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\right)\right) \cdot \left(b \cdot t\right)\right) \]
      6. metadata-evalN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{1} \cdot \left(b \cdot t\right)\right) \]
      7. *-lft-identityN/A

        \[\leadsto i \cdot \left(j \cdot \left(-1 \cdot y\right) + \color{blue}{b \cdot t}\right) \]
      8. accelerator-lowering-fma.f64N/A

        \[\leadsto i \cdot \color{blue}{\mathsf{fma}\left(j, -1 \cdot y, b \cdot t\right)} \]
      9. mul-1-negN/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
      10. neg-lowering-neg.f64N/A

        \[\leadsto i \cdot \mathsf{fma}\left(j, \color{blue}{\mathsf{neg}\left(y\right)}, b \cdot t\right) \]
      11. *-lowering-*.f6446.4

        \[\leadsto i \cdot \mathsf{fma}\left(j, -y, \color{blue}{b \cdot t}\right) \]
    5. Simplified46.4%

      \[\leadsto \color{blue}{i \cdot \mathsf{fma}\left(j, -y, b \cdot t\right)} \]

    if 6.9999999999999994e94 < c

    1. Initial program 65.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6465.6

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr65.6%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{c \cdot \left(a \cdot j - b \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto c \cdot \color{blue}{\left(a \cdot j + \left(\mathsf{neg}\left(b \cdot z\right)\right)\right)} \]
      3. mul-1-negN/A

        \[\leadsto c \cdot \left(a \cdot j + \color{blue}{-1 \cdot \left(b \cdot z\right)}\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto c \cdot \color{blue}{\mathsf{fma}\left(a, j, -1 \cdot \left(b \cdot z\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{\mathsf{neg}\left(b \cdot z\right)}\right) \]
      6. *-commutativeN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \mathsf{neg}\left(\color{blue}{z \cdot b}\right)\right) \]
      7. distribute-rgt-neg-inN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(\mathsf{neg}\left(b\right)\right)}\right) \]
      8. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-1 \cdot b\right)}\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, \color{blue}{z \cdot \left(-1 \cdot b\right)}\right) \]
      10. mul-1-negN/A

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(\mathsf{neg}\left(b\right)\right)}\right) \]
      11. neg-lowering-neg.f6475.5

        \[\leadsto c \cdot \mathsf{fma}\left(a, j, z \cdot \color{blue}{\left(-b\right)}\right) \]
    7. Simplified75.5%

      \[\leadsto \color{blue}{c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification54.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -4.1 \cdot 10^{+104}:\\ \;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\ \mathbf{elif}\;c \leq 7 \cdot 10^{+94}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 20: 50.7% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{if}\;a \leq -0.00095:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 8 \cdot 10^{-78}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(z, -c, t \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 (* a (fma j c (* x (- t))))))
   (if (<= a -0.00095) t_1 (if (<= a 8e-78) (* b (fma z (- c) (* t i))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * fma(j, c, (x * -t));
	double tmp;
	if (a <= -0.00095) {
		tmp = t_1;
	} else if (a <= 8e-78) {
		tmp = b * fma(z, -c, (t * i));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t))))
	tmp = 0.0
	if (a <= -0.00095)
		tmp = t_1;
	elseif (a <= 8e-78)
		tmp = Float64(b * fma(z, Float64(-c), Float64(t * i)));
	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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -0.00095], t$95$1, If[LessEqual[a, 8e-78], N[(b * N[(z * (-c) + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -0.00095:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 8 \cdot 10^{-78}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(z, -c, t \cdot i\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -9.49999999999999998e-4 or 7.99999999999999999e-78 < a

    1. Initial program 70.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6452.4

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified52.4%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]

    if -9.49999999999999998e-4 < a < 7.99999999999999999e-78

    1. Initial program 80.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6480.5

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr80.5%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6468.3

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
    7. Simplified68.3%

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(j \cdot c\right)} \]
    8. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
    9. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      3. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + i \cdot t\right)} \]
      4. *-commutativeN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(\color{blue}{z \cdot c}\right)\right) + i \cdot t\right) \]
      5. distribute-rgt-neg-inN/A

        \[\leadsto b \cdot \left(\color{blue}{z \cdot \left(\mathsf{neg}\left(c\right)\right)} + i \cdot t\right) \]
      6. neg-mul-1N/A

        \[\leadsto b \cdot \left(z \cdot \color{blue}{\left(-1 \cdot c\right)} + i \cdot t\right) \]
      7. accelerator-lowering-fma.f64N/A

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(z, -1 \cdot c, i \cdot t\right)} \]
      8. neg-mul-1N/A

        \[\leadsto b \cdot \mathsf{fma}\left(z, \color{blue}{\mathsf{neg}\left(c\right)}, i \cdot t\right) \]
      9. neg-lowering-neg.f64N/A

        \[\leadsto b \cdot \mathsf{fma}\left(z, \color{blue}{\mathsf{neg}\left(c\right)}, i \cdot t\right) \]
      10. *-commutativeN/A

        \[\leadsto b \cdot \mathsf{fma}\left(z, \mathsf{neg}\left(c\right), \color{blue}{t \cdot i}\right) \]
      11. *-lowering-*.f6452.1

        \[\leadsto b \cdot \mathsf{fma}\left(z, -c, \color{blue}{t \cdot i}\right) \]
    10. Simplified52.1%

      \[\leadsto \color{blue}{b \cdot \mathsf{fma}\left(z, -c, t \cdot i\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification52.3%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -0.00095:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;a \leq 8 \cdot 10^{-78}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(z, -c, t \cdot i\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 21: 50.8% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{if}\;a \leq -2.9 \cdot 10^{-6}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-72}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(t, i, -z \cdot c\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 j c (* x (- t))))))
   (if (<= a -2.9e-6)
     t_1
     (if (<= a 6.5e-72) (* b (fma t i (- (* z c)))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * fma(j, c, (x * -t));
	double tmp;
	if (a <= -2.9e-6) {
		tmp = t_1;
	} else if (a <= 6.5e-72) {
		tmp = b * fma(t, i, -(z * c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t))))
	tmp = 0.0
	if (a <= -2.9e-6)
		tmp = t_1;
	elseif (a <= 6.5e-72)
		tmp = Float64(b * fma(t, i, Float64(-Float64(z * c))));
	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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.9e-6], t$95$1, If[LessEqual[a, 6.5e-72], N[(b * N[(t * i + (-N[(z * c), $MachinePrecision])), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -2.9 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 6.5 \cdot 10^{-72}:\\
\;\;\;\;b \cdot \mathsf{fma}\left(t, i, -z \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -2.9000000000000002e-6 or 6.4999999999999997e-72 < a

    1. Initial program 70.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6452.4

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified52.4%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]

    if -2.9000000000000002e-6 < a < 6.4999999999999997e-72

    1. Initial program 80.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6480.5

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr80.5%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
      2. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto b \cdot \left(\color{blue}{t \cdot i} + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto b \cdot \color{blue}{\mathsf{fma}\left(t, i, \mathsf{neg}\left(c \cdot z\right)\right)} \]
      5. *-commutativeN/A

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, \mathsf{neg}\left(\color{blue}{z \cdot c}\right)\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, \color{blue}{z \cdot \left(\mathsf{neg}\left(c\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, z \cdot \color{blue}{\left(-1 \cdot c\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, \color{blue}{z \cdot \left(-1 \cdot c\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, z \cdot \color{blue}{\left(\mathsf{neg}\left(c\right)\right)}\right) \]
      10. neg-lowering-neg.f6451.2

        \[\leadsto b \cdot \mathsf{fma}\left(t, i, z \cdot \color{blue}{\left(-c\right)}\right) \]
    7. Simplified51.2%

      \[\leadsto \color{blue}{b \cdot \mathsf{fma}\left(t, i, z \cdot \left(-c\right)\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification51.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -2.9 \cdot 10^{-6}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;a \leq 6.5 \cdot 10^{-72}:\\ \;\;\;\;b \cdot \mathsf{fma}\left(t, i, -z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 22: 50.7% accurate, 2.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{if}\;a \leq -4.1 \cdot 10^{-8}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;a \leq 1.15 \cdot 10^{-72}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\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 j c (* x (- t))))))
   (if (<= a -4.1e-8) t_1 (if (<= a 1.15e-72) (* b (- (* t i) (* z c))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = a * fma(j, c, (x * -t));
	double tmp;
	if (a <= -4.1e-8) {
		tmp = t_1;
	} else if (a <= 1.15e-72) {
		tmp = b * ((t * i) - (z * c));
	} else {
		tmp = t_1;
	}
	return tmp;
}
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(a * fma(j, c, Float64(x * Float64(-t))))
	tmp = 0.0
	if (a <= -4.1e-8)
		tmp = t_1;
	elseif (a <= 1.15e-72)
		tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c)));
	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[(j * c + N[(x * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.1e-8], t$95$1, If[LessEqual[a, 1.15e-72], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -4.1 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;a \leq 1.15 \cdot 10^{-72}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if a < -4.10000000000000032e-8 or 1.14999999999999997e-72 < a

    1. Initial program 70.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6452.4

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified52.4%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]

    if -4.10000000000000032e-8 < a < 1.14999999999999997e-72

    1. Initial program 80.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
    4. Step-by-step derivation
      1. cancel-sign-sub-invN/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t + \left(\mathsf{neg}\left(c\right)\right) \cdot z\right)} \]
      2. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(\left(\mathsf{neg}\left(c\right)\right) \cdot z + i \cdot t\right)} \]
      3. distribute-lft-neg-inN/A

        \[\leadsto b \cdot \left(\color{blue}{\left(\mathsf{neg}\left(c \cdot z\right)\right)} + i \cdot t\right) \]
      4. 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(i \cdot t\right)\right)\right)\right)}\right) \]
      5. distribute-neg-inN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)\right)\right)} \]
      6. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z - i \cdot t\right)}\right)\right) \]
      7. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(-1 \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      8. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(-1 \cdot \left(c \cdot z - i \cdot t\right)\right)} \]
      9. mul-1-negN/A

        \[\leadsto b \cdot \color{blue}{\left(\mathsf{neg}\left(\left(c \cdot z - i \cdot t\right)\right)\right)} \]
      10. sub-negN/A

        \[\leadsto b \cdot \left(\mathsf{neg}\left(\color{blue}{\left(c \cdot z + \left(\mathsf{neg}\left(i \cdot t\right)\right)\right)}\right)\right) \]
      11. 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(i \cdot t\right)\right)\right)\right)\right)} \]
      12. remove-double-negN/A

        \[\leadsto b \cdot \left(\left(\mathsf{neg}\left(c \cdot z\right)\right) + \color{blue}{i \cdot t}\right) \]
      13. +-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t + \left(\mathsf{neg}\left(c \cdot z\right)\right)\right)} \]
      14. sub-negN/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t - c \cdot z\right)} \]
      15. --lowering--.f64N/A

        \[\leadsto b \cdot \color{blue}{\left(i \cdot t - c \cdot z\right)} \]
      16. *-lowering-*.f64N/A

        \[\leadsto b \cdot \left(\color{blue}{i \cdot t} - c \cdot z\right) \]
      17. *-lowering-*.f6451.2

        \[\leadsto b \cdot \left(i \cdot t - \color{blue}{c \cdot z}\right) \]
    5. Simplified51.2%

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t - c \cdot z\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification51.9%

    \[\leadsto \begin{array}{l} \mathbf{if}\;a \leq -4.1 \cdot 10^{-8}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \mathbf{elif}\;a \leq 1.15 \cdot 10^{-72}:\\ \;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;a \cdot \mathsf{fma}\left(j, c, x \cdot \left(-t\right)\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 23: 28.7% accurate, 2.1× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3 \cdot 10^{-53}:\\ \;\;\;\;t \cdot \left(b \cdot i\right)\\ \mathbf{elif}\;t \leq -1.06 \cdot 10^{-240}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{elif}\;t \leq 1.75 \cdot 10^{+96}:\\ \;\;\;\;x \cdot \left(y \cdot z\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (if (<= t -3e-53)
   (* t (* b i))
   (if (<= t -1.06e-240)
     (* j (* a c))
     (if (<= t 1.75e+96) (* x (* y z)) (* b (* t i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (t <= -3e-53) {
		tmp = t * (b * i);
	} else if (t <= -1.06e-240) {
		tmp = j * (a * c);
	} else if (t <= 1.75e+96) {
		tmp = x * (y * z);
	} else {
		tmp = b * (t * i);
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: tmp
    if (t <= (-3d-53)) then
        tmp = t * (b * i)
    else if (t <= (-1.06d-240)) then
        tmp = j * (a * c)
    else if (t <= 1.75d+96) then
        tmp = x * (y * z)
    else
        tmp = b * (t * i)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double tmp;
	if (t <= -3e-53) {
		tmp = t * (b * i);
	} else if (t <= -1.06e-240) {
		tmp = j * (a * c);
	} else if (t <= 1.75e+96) {
		tmp = x * (y * z);
	} else {
		tmp = b * (t * i);
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	tmp = 0
	if t <= -3e-53:
		tmp = t * (b * i)
	elif t <= -1.06e-240:
		tmp = j * (a * c)
	elif t <= 1.75e+96:
		tmp = x * (y * z)
	else:
		tmp = b * (t * i)
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0
	if (t <= -3e-53)
		tmp = Float64(t * Float64(b * i));
	elseif (t <= -1.06e-240)
		tmp = Float64(j * Float64(a * c));
	elseif (t <= 1.75e+96)
		tmp = Float64(x * Float64(y * z));
	else
		tmp = Float64(b * Float64(t * i));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	tmp = 0.0;
	if (t <= -3e-53)
		tmp = t * (b * i);
	elseif (t <= -1.06e-240)
		tmp = j * (a * c);
	elseif (t <= 1.75e+96)
		tmp = x * (y * z);
	else
		tmp = b * (t * i);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3e-53], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.06e-240], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+96], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-53}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\

\mathbf{elif}\;t \leq -1.06 \cdot 10^{-240}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{elif}\;t \leq 1.75 \cdot 10^{+96}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\

\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if t < -3.0000000000000002e-53

    1. Initial program 69.8%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6469.7

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr69.7%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6458.9

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
    7. Simplified58.9%

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(j \cdot c\right)} \]
    8. Taylor expanded in i around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    9. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \color{blue}{\left(i \cdot t\right) \cdot b} \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left(t \cdot i\right)} \cdot b \]
      3. associate-*r*N/A

        \[\leadsto \color{blue}{t \cdot \left(i \cdot b\right)} \]
      4. *-commutativeN/A

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i\right)} \]
      5. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(b \cdot i\right)} \]
      6. *-lowering-*.f6437.6

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i\right)} \]
    10. Simplified37.6%

      \[\leadsto \color{blue}{t \cdot \left(b \cdot i\right)} \]

    if -3.0000000000000002e-53 < t < -1.06e-240

    1. Initial program 71.4%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6452.8

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified52.8%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a around inf

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6444.8

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    8. Simplified44.8%

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]

    if -1.06e-240 < t < 1.7499999999999999e96

    1. Initial program 81.5%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. 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-*.f6445.9

        \[\leadsto z \cdot \mathsf{fma}\left(c, -b, \color{blue}{y \cdot x}\right) \]
    5. Simplified45.9%

      \[\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. *-lowering-*.f6434.3

        \[\leadsto x \cdot \color{blue}{\left(y \cdot z\right)} \]
    8. Simplified34.3%

      \[\leadsto \color{blue}{x \cdot \left(y \cdot z\right)} \]

    if 1.7499999999999999e96 < t

    1. Initial program 68.0%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified74.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6440.1

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified40.1%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot i\right)} \]
  3. Recombined 4 regimes into one program.
  4. Add Preprocessing

Alternative 24: 28.0% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := t \cdot \left(b \cdot i\right)\\ \mathbf{if}\;t \leq -5.7 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+113}:\\ \;\;\;\;j \cdot \left(a \cdot c\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 (* b i))))
   (if (<= t -5.7e-53) t_1 (if (<= t 2.05e+113) (* j (* a c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * (b * i);
	double tmp;
	if (t <= -5.7e-53) {
		tmp = t_1;
	} else if (t <= 2.05e+113) {
		tmp = j * (a * c);
	} else {
		tmp = t_1;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: tmp
    t_1 = t * (b * i)
    if (t <= (-5.7d-53)) then
        tmp = t_1
    else if (t <= 2.05d+113) then
        tmp = j * (a * c)
    else
        tmp = t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = t * (b * i);
	double tmp;
	if (t <= -5.7e-53) {
		tmp = t_1;
	} else if (t <= 2.05e+113) {
		tmp = j * (a * c);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = t * (b * i)
	tmp = 0
	if t <= -5.7e-53:
		tmp = t_1
	elif t <= 2.05e+113:
		tmp = j * (a * c)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(t * Float64(b * i))
	tmp = 0.0
	if (t <= -5.7e-53)
		tmp = t_1;
	elseif (t <= 2.05e+113)
		tmp = Float64(j * Float64(a * c));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = t * (b * i);
	tmp = 0.0;
	if (t <= -5.7e-53)
		tmp = t_1;
	elseif (t <= 2.05e+113)
		tmp = j * (a * c);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.7e-53], t$95$1, If[LessEqual[t, 2.05e+113], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;t \leq -5.7 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 2.05 \cdot 10^{+113}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -5.7000000000000001e-53 or 2.04999999999999996e113 < t

    1. Initial program 68.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip--N/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      2. clear-numN/A

        \[\leadsto \left(x \cdot \color{blue}{\frac{1}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      3. un-div-invN/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      4. /-lowering-/.f64N/A

        \[\leadsto \left(\color{blue}{\frac{x}{\frac{y \cdot z + t \cdot a}{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      5. clear-numN/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{\frac{\left(y \cdot z\right) \cdot \left(y \cdot z\right) - \left(t \cdot a\right) \cdot \left(t \cdot a\right)}{y \cdot z + t \cdot a}}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      6. flip--N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      7. /-lowering-/.f64N/A

        \[\leadsto \left(\frac{x}{\color{blue}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      8. --lowering--.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      9. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{\color{blue}{y \cdot z} - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
      10. *-lowering-*.f6468.1

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - \color{blue}{t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    4. Applied egg-rr68.1%

      \[\leadsto \left(\color{blue}{\frac{x}{\frac{1}{y \cdot z - t \cdot a}}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    5. Taylor expanded in c around inf

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
    6. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6457.3

        \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + a \cdot \color{blue}{\left(j \cdot c\right)} \]
    7. Simplified57.3%

      \[\leadsto \left(\frac{x}{\frac{1}{y \cdot z - t \cdot a}} - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{a \cdot \left(j \cdot c\right)} \]
    8. Taylor expanded in i around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    9. Step-by-step derivation
      1. *-commutativeN/A

        \[\leadsto \color{blue}{\left(i \cdot t\right) \cdot b} \]
      2. *-commutativeN/A

        \[\leadsto \color{blue}{\left(t \cdot i\right)} \cdot b \]
      3. associate-*r*N/A

        \[\leadsto \color{blue}{t \cdot \left(i \cdot b\right)} \]
      4. *-commutativeN/A

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i\right)} \]
      5. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{t \cdot \left(b \cdot i\right)} \]
      6. *-lowering-*.f6438.7

        \[\leadsto t \cdot \color{blue}{\left(b \cdot i\right)} \]
    10. Simplified38.7%

      \[\leadsto \color{blue}{t \cdot \left(b \cdot i\right)} \]

    if -5.7000000000000001e-53 < t < 2.04999999999999996e113

    1. Initial program 79.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6446.3

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified46.3%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a around inf

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6431.1

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    8. Simplified31.1%

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 25: 28.7% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 5.3 \cdot 10^{+113}:\\ \;\;\;\;j \cdot \left(a \cdot c\right)\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* b (* t i))))
   (if (<= t -8.6e-53) t_1 (if (<= t 5.3e+113) (* j (* a c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = b * (t * i);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= 5.3e+113) {
		tmp = j * (a * c);
	} 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 = b * (t * i)
    if (t <= (-8.6d-53)) then
        tmp = t_1
    else if (t <= 5.3d+113) then
        tmp = j * (a * c)
    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 = b * (t * i);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= 5.3e+113) {
		tmp = j * (a * c);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (t * i)
	tmp = 0
	if t <= -8.6e-53:
		tmp = t_1
	elif t <= 5.3e+113:
		tmp = j * (a * c)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(t * i))
	tmp = 0.0
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= 5.3e+113)
		tmp = Float64(j * Float64(a * c));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * (t * i);
	tmp = 0.0;
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= 5.3e+113)
		tmp = j * (a * c);
	else
		tmp = t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e-53], t$95$1, If[LessEqual[t, 5.3e+113], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 5.3 \cdot 10^{+113}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -8.5999999999999999e-53 or 5.29999999999999967e113 < t

    1. Initial program 68.2%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified74.7%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6436.2

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified36.2%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot i\right)} \]

    if -8.5999999999999999e-53 < t < 5.29999999999999967e113

    1. Initial program 79.6%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in j around inf

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
      2. --lowering--.f64N/A

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c - i \cdot y\right)} \]
      3. *-lowering-*.f64N/A

        \[\leadsto j \cdot \left(\color{blue}{a \cdot c} - i \cdot y\right) \]
      4. *-lowering-*.f6446.3

        \[\leadsto j \cdot \left(a \cdot c - \color{blue}{i \cdot y}\right) \]
    5. Simplified46.3%

      \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right)} \]
    6. Taylor expanded in a around inf

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f6431.1

        \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
    8. Simplified31.1%

      \[\leadsto j \cdot \color{blue}{\left(a \cdot c\right)} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 26: 29.2% accurate, 2.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := b \cdot \left(t \cdot i\right)\\ \mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq 2.3 \cdot 10^{-34}:\\ \;\;\;\;a \cdot \left(c \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 (* b (* t i))))
   (if (<= t -8.6e-53) t_1 (if (<= t 2.3e-34) (* a (* c 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 = b * (t * i);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= 2.3e-34) {
		tmp = a * (c * 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 = b * (t * i)
    if (t <= (-8.6d-53)) then
        tmp = t_1
    else if (t <= 2.3d-34) then
        tmp = a * (c * 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 = b * (t * i);
	double tmp;
	if (t <= -8.6e-53) {
		tmp = t_1;
	} else if (t <= 2.3e-34) {
		tmp = a * (c * j);
	} else {
		tmp = t_1;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = b * (t * i)
	tmp = 0
	if t <= -8.6e-53:
		tmp = t_1
	elif t <= 2.3e-34:
		tmp = a * (c * j)
	else:
		tmp = t_1
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(b * Float64(t * i))
	tmp = 0.0
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= 2.3e-34)
		tmp = Float64(a * Float64(c * j));
	else
		tmp = t_1;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = b * (t * i);
	tmp = 0.0;
	if (t <= -8.6e-53)
		tmp = t_1;
	elseif (t <= 2.3e-34)
		tmp = a * (c * 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[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.6e-53], t$95$1, If[LessEqual[t, 2.3e-34], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\

\mathbf{elif}\;t \leq 2.3 \cdot 10^{-34}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\

\mathbf{else}:\\
\;\;\;\;t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -8.5999999999999999e-53 or 2.30000000000000011e-34 < t

    1. Initial program 71.9%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in z around 0

      \[\leadsto \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + j \cdot \left(a \cdot c - i \cdot y\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)} \]
    4. Step-by-step derivation
      1. +-commutativeN/A

        \[\leadsto \color{blue}{\left(j \cdot \left(a \cdot c - i \cdot y\right) + -1 \cdot \left(a \cdot \left(t \cdot x\right)\right)\right)} - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right) \]
      2. associate--l+N/A

        \[\leadsto \color{blue}{j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) - -1 \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      3. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(-1 \cdot \left(a \cdot \left(t \cdot x\right)\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right)} \]
      4. *-commutativeN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \left(a \cdot \color{blue}{\left(x \cdot t\right)}\right) + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      5. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(-1 \cdot \color{blue}{\left(\left(a \cdot x\right) \cdot t\right)} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      6. associate-*l*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\color{blue}{\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t} + \left(\mathsf{neg}\left(-1\right)\right) \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      7. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{1} \cdot \left(b \cdot \left(i \cdot t\right)\right)\right) \]
      8. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{b \cdot \left(i \cdot t\right)}\right) \]
      9. associate-*r*N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \left(\left(-1 \cdot \left(a \cdot x\right)\right) \cdot t + \color{blue}{\left(b \cdot i\right) \cdot t}\right) \]
      10. distribute-rgt-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{t \cdot \left(-1 \cdot \left(a \cdot x\right) + b \cdot i\right)} \]
      11. *-lft-identityN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{1 \cdot \left(b \cdot i\right)}\right) \]
      12. metadata-evalN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \left(-1 \cdot \left(a \cdot x\right) + \color{blue}{\left(\mathsf{neg}\left(-1\right)\right)} \cdot \left(b \cdot i\right)\right) \]
      13. cancel-sign-sub-invN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x\right) - -1 \cdot \left(b \cdot i\right)\right)} \]
      14. distribute-lft-out--N/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(-1 \cdot \left(a \cdot x - b \cdot i\right)\right)} \]
      15. mul-1-negN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + t \cdot \color{blue}{\left(\mathsf{neg}\left(\left(a \cdot x - b \cdot i\right)\right)\right)} \]
      16. distribute-rgt-neg-inN/A

        \[\leadsto j \cdot \left(a \cdot c - i \cdot y\right) + \color{blue}{\left(\mathsf{neg}\left(t \cdot \left(a \cdot x - b \cdot i\right)\right)\right)} \]
    5. Simplified72.8%

      \[\leadsto \color{blue}{\mathsf{fma}\left(j, a \cdot c - i \cdot y, t \cdot \mathsf{fma}\left(a, -x, i \cdot b\right)\right)} \]
    6. Taylor expanded in b around inf

      \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{b \cdot \left(i \cdot t\right)} \]
      2. *-commutativeN/A

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
      3. *-lowering-*.f6431.9

        \[\leadsto b \cdot \color{blue}{\left(t \cdot i\right)} \]
    8. Simplified31.9%

      \[\leadsto \color{blue}{b \cdot \left(t \cdot i\right)} \]

    if -8.5999999999999999e-53 < t < 2.30000000000000011e-34

    1. Initial program 78.7%

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
    2. Add Preprocessing
    3. Taylor expanded in a around inf

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    4. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
      2. +-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
      3. *-commutativeN/A

        \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
      4. accelerator-lowering-fma.f64N/A

        \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
      5. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
      6. distribute-rgt-neg-inN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
      7. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
      8. *-lowering-*.f64N/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
      9. mul-1-negN/A

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
      10. neg-lowering-neg.f6437.6

        \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
    5. Simplified37.6%

      \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
    6. Taylor expanded in j around inf

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
    7. Step-by-step derivation
      1. *-lowering-*.f64N/A

        \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
      2. *-commutativeN/A

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
      3. *-lowering-*.f6434.8

        \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    8. Simplified34.8%

      \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification33.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.6 \cdot 10^{-53}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \mathbf{elif}\;t \leq 2.3 \cdot 10^{-34}:\\ \;\;\;\;a \cdot \left(c \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;b \cdot \left(t \cdot i\right)\\ \end{array} \]
  5. Add Preprocessing

Alternative 27: 22.1% accurate, 5.5× speedup?

\[\begin{array}{l} \\ a \cdot \left(c \cdot j\right) \end{array} \]
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j):
	return a * (c * j)
function code(x, y, z, t, a, b, c, i, j)
	return Float64(a * Float64(c * j))
end
function tmp = code(x, y, z, t, a, b, c, i, j)
	tmp = a * (c * j);
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
a \cdot \left(c \cdot j\right)
\end{array}
Derivation
  1. Initial program 74.7%

    \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right) \]
  2. Add Preprocessing
  3. Taylor expanded in a around inf

    \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
  4. Step-by-step derivation
    1. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{a \cdot \left(-1 \cdot \left(t \cdot x\right) + c \cdot j\right)} \]
    2. +-commutativeN/A

      \[\leadsto a \cdot \color{blue}{\left(c \cdot j + -1 \cdot \left(t \cdot x\right)\right)} \]
    3. *-commutativeN/A

      \[\leadsto a \cdot \left(\color{blue}{j \cdot c} + -1 \cdot \left(t \cdot x\right)\right) \]
    4. accelerator-lowering-fma.f64N/A

      \[\leadsto a \cdot \color{blue}{\mathsf{fma}\left(j, c, -1 \cdot \left(t \cdot x\right)\right)} \]
    5. mul-1-negN/A

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{\mathsf{neg}\left(t \cdot x\right)}\right) \]
    6. distribute-rgt-neg-inN/A

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(\mathsf{neg}\left(x\right)\right)}\right) \]
    7. mul-1-negN/A

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-1 \cdot x\right)}\right) \]
    8. *-lowering-*.f64N/A

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, \color{blue}{t \cdot \left(-1 \cdot x\right)}\right) \]
    9. mul-1-negN/A

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(\mathsf{neg}\left(x\right)\right)}\right) \]
    10. neg-lowering-neg.f6435.6

      \[\leadsto a \cdot \mathsf{fma}\left(j, c, t \cdot \color{blue}{\left(-x\right)}\right) \]
  5. Simplified35.6%

    \[\leadsto \color{blue}{a \cdot \mathsf{fma}\left(j, c, t \cdot \left(-x\right)\right)} \]
  6. Taylor expanded in j around inf

    \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
  7. Step-by-step derivation
    1. *-lowering-*.f64N/A

      \[\leadsto \color{blue}{a \cdot \left(c \cdot j\right)} \]
    2. *-commutativeN/A

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
    3. *-lowering-*.f6421.8

      \[\leadsto a \cdot \color{blue}{\left(j \cdot c\right)} \]
  8. Simplified21.8%

    \[\leadsto \color{blue}{a \cdot \left(j \cdot c\right)} \]
  9. Final simplification21.8%

    \[\leadsto a \cdot \left(c \cdot j\right) \]
  10. Add Preprocessing

Developer Target 1: 59.1% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
(FPCore (x y z t a b c i j)
 :precision binary64
 (let* ((t_1 (* j (- (* c a) (* y i))))
        (t_2
         (+
          (-
           (* x (- (* y z) (* t a)))
           (/
            (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
            (+ (* c z) (* t i))))
          t_1)))
   (if (< x -1.469694296777705e-64)
     t_2
     (if (< x 3.2113527362226803e-147)
       (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
       t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * a) - (y * i));
	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
	double tmp;
	if (x < -1.469694296777705e-64) {
		tmp = t_2;
	} else if (x < 3.2113527362226803e-147) {
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	} else {
		tmp = t_2;
	}
	return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8), intent (in) :: b
    real(8), intent (in) :: c
    real(8), intent (in) :: i
    real(8), intent (in) :: j
    real(8) :: t_1
    real(8) :: t_2
    real(8) :: tmp
    t_1 = j * ((c * a) - (y * i))
    t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
    if (x < (-1.469694296777705d-64)) then
        tmp = t_2
    else if (x < 3.2113527362226803d-147) then
        tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
    else
        tmp = t_2
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double t_1 = j * ((c * a) - (y * i));
	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
	double tmp;
	if (x < -1.469694296777705e-64) {
		tmp = t_2;
	} else if (x < 3.2113527362226803e-147) {
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	} else {
		tmp = t_2;
	}
	return tmp;
}
def code(x, y, z, t, a, b, c, i, j):
	t_1 = j * ((c * a) - (y * i))
	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
	tmp = 0
	if x < -1.469694296777705e-64:
		tmp = t_2
	elif x < 3.2113527362226803e-147:
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
	else:
		tmp = t_2
	return tmp
function code(x, y, z, t, a, b, c, i, j)
	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
	tmp = 0.0
	if (x < -1.469694296777705e-64)
		tmp = t_2;
	elseif (x < 3.2113527362226803e-147)
		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
	else
		tmp = t_2;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a, b, c, i, j)
	t_1 = j * ((c * a) - (y * i));
	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
	tmp = 0.0;
	if (x < -1.469694296777705e-64)
		tmp = t_2;
	elseif (x < 3.2113527362226803e-147)
		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
	else
		tmp = t_2;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\

\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\

\mathbf{else}:\\
\;\;\;\;t\_2\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024204 
(FPCore (x y z t a b c i j)
  :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))

  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))