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

Percentage Accurate: 72.9% → 81.0%
Time: 15.9s
Alternatives: 14
Speedup: 0.9×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 14 alternatives:

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

Initial Program: 72.9% accurate, 1.0× speedup?

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

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

Alternative 1: 81.0% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 91.2%

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

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

    1. Initial program 0.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 78.1% accurate, 0.9× speedup?

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

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

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

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


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

    1. Initial program 61.3%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.5000000000000006e126 < c < 6.5000000000000003e135

    1. Initial program 76.7%

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

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

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

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

Alternative 3: 65.3% accurate, 1.2× speedup?

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.49999999999999995e82 or 3.0000000000000001e94 < x

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.49999999999999995e82 < x < 3.0000000000000001e94

    1. Initial program 75.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 51.4% accurate, 1.2× speedup?

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

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 5 regimes
  2. if x < -2.5000000000000001e93 or 4.60000000000000005e58 < x

    1. Initial program 70.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.5000000000000001e93 < x < -7.79999999999999965e-66

    1. Initial program 67.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -7.79999999999999965e-66 < x < -1.10000000000000006e-104

    1. Initial program 47.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.10000000000000006e-104 < x < -3.4e-261

    1. Initial program 77.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.4e-261 < x < 4.60000000000000005e58

    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -2.5 \cdot 10^{+93}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{elif}\;x \leq -7.8 \cdot 10^{-66}:\\ \;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\ \mathbf{elif}\;x \leq -1.1 \cdot 10^{-104}:\\ \;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\ \mathbf{elif}\;x \leq -3.4 \cdot 10^{-261}:\\ \;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{+58}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 51.4% accurate, 1.4× speedup?

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

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

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

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

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

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -2.29999999999999995e83 or 4.60000000000000005e58 < 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. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.29999999999999995e83 < x < -1.10000000000000006e-104

    1. Initial program 58.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -1.10000000000000006e-104 < x < -3.4e-261

    1. Initial program 77.8%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -3.4e-261 < x < 4.60000000000000005e58

    1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 6: 41.0% accurate, 1.4× speedup?

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

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

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

\mathbf{elif}\;x \leq -6.2 \cdot 10^{-265}:\\
\;\;\;\;\left(c \cdot a\right) \cdot j\\

\mathbf{elif}\;x \leq 1.3 \cdot 10^{-14}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 4 regimes
  2. if x < -2.00000000000000006e83 or 1.29999999999999998e-14 < x

    1. Initial program 73.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if -2.00000000000000006e83 < x < -1.25e-101

    1. Initial program 60.2%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      if -1.25e-101 < x < -6.19999999999999977e-265

      1. Initial program 76.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -6.19999999999999977e-265 < x < 1.29999999999999998e-14

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        Alternative 7: 58.7% accurate, 1.5× speedup?

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

          1. Initial program 73.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 j around inf

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

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

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

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

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

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

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

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

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

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

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

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

          if -2.99999999999999997e81 < j < 2.85e211

          1. Initial program 72.9%

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

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

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

            \[\leadsto \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{neg}\left(c\right), z, t \cdot i\right), b, x \cdot \left(y \cdot z\right)\right) \]
          6. Step-by-step derivation
            1. Applied rewrites62.2%

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

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

          Alternative 8: 51.7% accurate, 1.6× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\ \mathbf{if}\;x \leq -2.3 \cdot 10^{+83}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;x \leq -6.2 \cdot 10^{-265}:\\ \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\ \mathbf{elif}\;x \leq 4.6 \cdot 10^{+58}:\\ \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
          (FPCore (x y z t a b c i j)
           :precision binary64
           (let* ((t_1 (* (fma (- a) t (* z y)) x)))
             (if (<= x -2.3e+83)
               t_1
               (if (<= x -6.2e-265)
                 (* (fma (- b) z (* j a)) c)
                 (if (<= x 4.6e+58) (* (fma (- c) z (* i t)) b) t_1)))))
          double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
          	double t_1 = fma(-a, t, (z * y)) * x;
          	double tmp;
          	if (x <= -2.3e+83) {
          		tmp = t_1;
          	} else if (x <= -6.2e-265) {
          		tmp = fma(-b, z, (j * a)) * c;
          	} else if (x <= 4.6e+58) {
          		tmp = fma(-c, z, (i * t)) * b;
          	} else {
          		tmp = t_1;
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a, b, c, i, j)
          	t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x)
          	tmp = 0.0
          	if (x <= -2.3e+83)
          		tmp = t_1;
          	elseif (x <= -6.2e-265)
          		tmp = Float64(fma(Float64(-b), z, Float64(j * a)) * c);
          	elseif (x <= 4.6e+58)
          		tmp = Float64(fma(Float64(-c), z, Float64(i * t)) * b);
          	else
          		tmp = t_1;
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.3e+83], t$95$1, If[LessEqual[x, -6.2e-265], N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[x, 4.6e+58], N[(N[((-c) * z + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
          \mathbf{if}\;x \leq -2.3 \cdot 10^{+83}:\\
          \;\;\;\;t\_1\\
          
          \mathbf{elif}\;x \leq -6.2 \cdot 10^{-265}:\\
          \;\;\;\;\mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\\
          
          \mathbf{elif}\;x \leq 4.6 \cdot 10^{+58}:\\
          \;\;\;\;\mathsf{fma}\left(-c, z, i \cdot t\right) \cdot b\\
          
          \mathbf{else}:\\
          \;\;\;\;t\_1\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 3 regimes
          2. if x < -2.29999999999999995e83 or 4.60000000000000005e58 < 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. Taylor expanded in x around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.29999999999999995e83 < x < -6.19999999999999977e-265

            1. Initial program 69.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -6.19999999999999977e-265 < x < 4.60000000000000005e58

            1. Initial program 78.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 9: 51.1% accurate, 2.0× speedup?

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

            1. Initial program 71.7%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if -2.29999999999999995e83 < x < 1.85000000000000007e62

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

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

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

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

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

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

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

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

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

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

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

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

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

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

          Alternative 10: 30.2% accurate, 2.1× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

              if -8.5e27 < t < -1.4000000000000001e-221

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                  if -1.4000000000000001e-221 < t < 2.0499999999999999e37

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                    if 2.0499999999999999e37 < t

                    1. Initial program 57.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 i around inf

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot t\right) \cdot i\\ \end{array} \]
                    10. Add Preprocessing

                    Alternative 11: 30.2% accurate, 2.1× speedup?

                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                    (FPCore (x y z t a b c i j)
                     :precision binary64
                     (let* ((t_1 (* (* i t) b)))
                       (if (<= t -8.5e+27)
                         t_1
                         (if (<= t -1.4e-221)
                           (* (* y x) z)
                           (if (<= t 2.05e+37) (* (* 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.5e+27) {
                    		tmp = t_1;
                    	} else if (t <= -1.4e-221) {
                    		tmp = (y * x) * z;
                    	} else if (t <= 2.05e+37) {
                    		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.5d+27)) then
                            tmp = t_1
                        else if (t <= (-1.4d-221)) then
                            tmp = (y * x) * z
                        else if (t <= 2.05d+37) 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.5e+27) {
                    		tmp = t_1;
                    	} else if (t <= -1.4e-221) {
                    		tmp = (y * x) * z;
                    	} else if (t <= 2.05e+37) {
                    		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.5e+27:
                    		tmp = t_1
                    	elif t <= -1.4e-221:
                    		tmp = (y * x) * z
                    	elif t <= 2.05e+37:
                    		tmp = (c * a) * j
                    	else:
                    		tmp = t_1
                    	return tmp
                    
                    function code(x, y, z, t, a, b, c, i, j)
                    	t_1 = Float64(Float64(i * t) * b)
                    	tmp = 0.0
                    	if (t <= -8.5e+27)
                    		tmp = t_1;
                    	elseif (t <= -1.4e-221)
                    		tmp = Float64(Float64(y * x) * z);
                    	elseif (t <= 2.05e+37)
                    		tmp = Float64(Float64(c * 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.5e+27)
                    		tmp = t_1;
                    	elseif (t <= -1.4e-221)
                    		tmp = (y * x) * z;
                    	elseif (t <= 2.05e+37)
                    		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[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8.5e+27], t$95$1, If[LessEqual[t, -1.4e-221], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 2.05e+37], N[(N[(c * a), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
                    
                    \begin{array}{l}
                    
                    \\
                    \begin{array}{l}
                    t_1 := \left(i \cdot t\right) \cdot b\\
                    \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\
                    \;\;\;\;t\_1\\
                    
                    \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\
                    \;\;\;\;\left(y \cdot x\right) \cdot z\\
                    
                    \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\
                    \;\;\;\;\left(c \cdot a\right) \cdot j\\
                    
                    \mathbf{else}:\\
                    \;\;\;\;t\_1\\
                    
                    
                    \end{array}
                    \end{array}
                    
                    Derivation
                    1. Split input into 3 regimes
                    2. if t < -8.5e27 or 2.0499999999999999e37 < t

                      1. Initial program 64.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        if -8.5e27 < t < -1.4000000000000001e-221

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                            if -1.4000000000000001e-221 < t < 2.0499999999999999e37

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                \[\leadsto \left(c \cdot a\right) \cdot j \]
                            10. Recombined 3 regimes into one program.
                            11. Final simplification41.8%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\ \;\;\;\;\left(c \cdot a\right) \cdot j\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                            12. Add Preprocessing

                            Alternative 12: 30.3% accurate, 2.1× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(i \cdot t\right) \cdot b\\ \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                            (FPCore (x y z t a b c i j)
                             :precision binary64
                             (let* ((t_1 (* (* i t) b)))
                               (if (<= t -8.5e+27)
                                 t_1
                                 (if (<= t -1.4e-221)
                                   (* (* y x) z)
                                   (if (<= t 2.05e+37) (* (* 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 = (i * t) * b;
                            	double tmp;
                            	if (t <= -8.5e+27) {
                            		tmp = t_1;
                            	} else if (t <= -1.4e-221) {
                            		tmp = (y * x) * z;
                            	} else if (t <= 2.05e+37) {
                            		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 = (i * t) * b
                                if (t <= (-8.5d+27)) then
                                    tmp = t_1
                                else if (t <= (-1.4d-221)) then
                                    tmp = (y * x) * z
                                else if (t <= 2.05d+37) 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 = (i * t) * b;
                            	double tmp;
                            	if (t <= -8.5e+27) {
                            		tmp = t_1;
                            	} else if (t <= -1.4e-221) {
                            		tmp = (y * x) * z;
                            	} else if (t <= 2.05e+37) {
                            		tmp = (j * a) * c;
                            	} 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.5e+27:
                            		tmp = t_1
                            	elif t <= -1.4e-221:
                            		tmp = (y * x) * z
                            	elif t <= 2.05e+37:
                            		tmp = (j * a) * c
                            	else:
                            		tmp = t_1
                            	return tmp
                            
                            function code(x, y, z, t, a, b, c, i, j)
                            	t_1 = Float64(Float64(i * t) * b)
                            	tmp = 0.0
                            	if (t <= -8.5e+27)
                            		tmp = t_1;
                            	elseif (t <= -1.4e-221)
                            		tmp = Float64(Float64(y * x) * z);
                            	elseif (t <= 2.05e+37)
                            		tmp = Float64(Float64(j * 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 = (i * t) * b;
                            	tmp = 0.0;
                            	if (t <= -8.5e+27)
                            		tmp = t_1;
                            	elseif (t <= -1.4e-221)
                            		tmp = (y * x) * z;
                            	elseif (t <= 2.05e+37)
                            		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[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -8.5e+27], t$95$1, If[LessEqual[t, -1.4e-221], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 2.05e+37], N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            t_1 := \left(i \cdot t\right) \cdot b\\
                            \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\
                            \;\;\;\;t\_1\\
                            
                            \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\
                            \;\;\;\;\left(y \cdot x\right) \cdot z\\
                            
                            \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\
                            \;\;\;\;\left(j \cdot a\right) \cdot c\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;t\_1\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 3 regimes
                            2. if t < -8.5e27 or 2.0499999999999999e37 < t

                              1. Initial program 64.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                if -8.5e27 < t < -1.4000000000000001e-221

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                    if -1.4000000000000001e-221 < t < 2.0499999999999999e37

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                      \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -8.5 \cdot 10^{+27}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \mathbf{elif}\;t \leq -1.4 \cdot 10^{-221}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{elif}\;t \leq 2.05 \cdot 10^{+37}:\\ \;\;\;\;\left(j \cdot a\right) \cdot c\\ \mathbf{else}:\\ \;\;\;\;\left(i \cdot t\right) \cdot b\\ \end{array} \]
                                    10. Add Preprocessing

                                    Alternative 13: 28.1% accurate, 2.6× speedup?

                                    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \left(j \cdot a\right) \cdot c\\ \mathbf{if}\;c \leq -5 \cdot 10^{+102}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;c \leq 4.2 \cdot 10^{-29}:\\ \;\;\;\;\left(y \cdot x\right) \cdot z\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                    (FPCore (x y z t a b c i j)
                                     :precision binary64
                                     (let* ((t_1 (* (* j a) c)))
                                       (if (<= c -5e+102) t_1 (if (<= c 4.2e-29) (* (* y x) z) t_1))))
                                    double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                    	double t_1 = (j * a) * c;
                                    	double tmp;
                                    	if (c <= -5e+102) {
                                    		tmp = t_1;
                                    	} else if (c <= 4.2e-29) {
                                    		tmp = (y * x) * z;
                                    	} 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 = (j * a) * c
                                        if (c <= (-5d+102)) then
                                            tmp = t_1
                                        else if (c <= 4.2d-29) then
                                            tmp = (y * x) * z
                                        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 = (j * a) * c;
                                    	double tmp;
                                    	if (c <= -5e+102) {
                                    		tmp = t_1;
                                    	} else if (c <= 4.2e-29) {
                                    		tmp = (y * x) * z;
                                    	} else {
                                    		tmp = t_1;
                                    	}
                                    	return tmp;
                                    }
                                    
                                    def code(x, y, z, t, a, b, c, i, j):
                                    	t_1 = (j * a) * c
                                    	tmp = 0
                                    	if c <= -5e+102:
                                    		tmp = t_1
                                    	elif c <= 4.2e-29:
                                    		tmp = (y * x) * z
                                    	else:
                                    		tmp = t_1
                                    	return tmp
                                    
                                    function code(x, y, z, t, a, b, c, i, j)
                                    	t_1 = Float64(Float64(j * a) * c)
                                    	tmp = 0.0
                                    	if (c <= -5e+102)
                                    		tmp = t_1;
                                    	elseif (c <= 4.2e-29)
                                    		tmp = Float64(Float64(y * x) * z);
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	return tmp
                                    end
                                    
                                    function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                    	t_1 = (j * a) * c;
                                    	tmp = 0.0;
                                    	if (c <= -5e+102)
                                    		tmp = t_1;
                                    	elseif (c <= 4.2e-29)
                                    		tmp = (y * x) * z;
                                    	else
                                    		tmp = t_1;
                                    	end
                                    	tmp_2 = tmp;
                                    end
                                    
                                    code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -5e+102], t$95$1, If[LessEqual[c, 4.2e-29], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
                                    
                                    \begin{array}{l}
                                    
                                    \\
                                    \begin{array}{l}
                                    t_1 := \left(j \cdot a\right) \cdot c\\
                                    \mathbf{if}\;c \leq -5 \cdot 10^{+102}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    \mathbf{elif}\;c \leq 4.2 \cdot 10^{-29}:\\
                                    \;\;\;\;\left(y \cdot x\right) \cdot z\\
                                    
                                    \mathbf{else}:\\
                                    \;\;\;\;t\_1\\
                                    
                                    
                                    \end{array}
                                    \end{array}
                                    
                                    Derivation
                                    1. Split input into 2 regimes
                                    2. if c < -5e102 or 4.19999999999999979e-29 < c

                                      1. Initial program 64.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                        if -5e102 < c < 4.19999999999999979e-29

                                        1. Initial program 78.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                          Alternative 14: 21.5% accurate, 5.5× speedup?

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                                                \[\leadsto \color{blue}{\left(x \cdot y\right) \cdot z} \]
                                              2. Final simplification21.9%

                                                \[\leadsto \left(y \cdot x\right) \cdot z \]
                                              3. Add Preprocessing

                                              Developer Target 1: 59.0% accurate, 0.2× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\ t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\ \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\ \;\;\;\;t\_2\\ \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\ \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\ \mathbf{else}:\\ \;\;\;\;t\_2\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a b c i j)
                                               :precision binary64
                                               (let* ((t_1 (* j (- (* c a) (* y i))))
                                                      (t_2
                                                       (+
                                                        (-
                                                         (* x (- (* y z) (* t a)))
                                                         (/
                                                          (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
                                                          (+ (* c z) (* t i))))
                                                        t_1)))
                                                 (if (< x -1.469694296777705e-64)
                                                   t_2
                                                   (if (< x 3.2113527362226803e-147)
                                                     (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
                                                     t_2))))
                                              double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double t_1 = j * ((c * a) - (y * i));
                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                              	double tmp;
                                              	if (x < -1.469694296777705e-64) {
                                              		tmp = t_2;
                                              	} else if (x < 3.2113527362226803e-147) {
                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                              	} else {
                                              		tmp = t_2;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              real(8) function code(x, y, z, t, a, b, c, i, j)
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: a
                                                  real(8), intent (in) :: b
                                                  real(8), intent (in) :: c
                                                  real(8), intent (in) :: i
                                                  real(8), intent (in) :: j
                                                  real(8) :: t_1
                                                  real(8) :: t_2
                                                  real(8) :: tmp
                                                  t_1 = j * ((c * a) - (y * i))
                                                  t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
                                                  if (x < (-1.469694296777705d-64)) then
                                                      tmp = t_2
                                                  else if (x < 3.2113527362226803d-147) then
                                                      tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                                  else
                                                      tmp = t_2
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
                                              	double t_1 = j * ((c * a) - (y * i));
                                              	double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
                                              	double tmp;
                                              	if (x < -1.469694296777705e-64) {
                                              		tmp = t_2;
                                              	} else if (x < 3.2113527362226803e-147) {
                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                              	} else {
                                              		tmp = t_2;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a, b, c, i, j):
                                              	t_1 = j * ((c * a) - (y * i))
                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1
                                              	tmp = 0
                                              	if x < -1.469694296777705e-64:
                                              		tmp = t_2
                                              	elif x < 3.2113527362226803e-147:
                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
                                              	else:
                                              		tmp = t_2
                                              	return tmp
                                              
                                              function code(x, y, z, t, a, b, c, i, j)
                                              	t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i)))
                                              	t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1)
                                              	tmp = 0.0
                                              	if (x < -1.469694296777705e-64)
                                              		tmp = t_2;
                                              	elseif (x < 3.2113527362226803e-147)
                                              		tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1));
                                              	else
                                              		tmp = t_2;
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a, b, c, i, j)
                                              	t_1 = j * ((c * a) - (y * i));
                                              	t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1;
                                              	tmp = 0.0;
                                              	if (x < -1.469694296777705e-64)
                                              		tmp = t_2;
                                              	elseif (x < 3.2113527362226803e-147)
                                              		tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
                                              	else
                                              		tmp = t_2;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
                                              t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
                                              \mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
                                              \;\;\;\;t\_2\\
                                              
                                              \mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
                                              \;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_2\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              

                                              Reproduce

                                              ?
                                              herbie shell --seed 2024235 
                                              (FPCore (x y z t a b c i j)
                                                :name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
                                                :precision binary64
                                              
                                                :alt
                                                (! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
                                              
                                                (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))