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

Percentage Accurate: 72.6% → 82.7%
Time: 19.2s
Alternatives: 18
Speedup: 0.5×

Specification

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

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

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

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

Accuracy vs Speed?

Herbie found 18 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.6% accurate, 1.0× speedup?

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

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

Alternative 1: 82.7% accurate, 0.5× speedup?

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      Alternative 2: 50.9% accurate, 0.9× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;c \leq -1.12 \cdot 10^{+66}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;c \leq -8 \cdot 10^{-77}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;c \leq -7.8 \cdot 10^{-191}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;c \leq 6.5 \cdot 10^{+27}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;c \leq 8.5 \cdot 10^{+116}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\ \mathbf{elif}\;c \leq 2.3 \cdot 10^{+171}:\\ \;\;\;\;a \cdot \left(c \cdot \mathsf{fma}\left(-t, \frac{x}{c}, j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(z \cdot \mathsf{fma}\left(j, \frac{a}{z}, -b\right)\right)\\ \end{array} \end{array} \]
      (FPCore (x y z t a b c i j)
       :precision binary64
       (if (<= c -1.12e+66)
         (* c (fma a j (* z (- b))))
         (if (<= c -8e-77)
           (* j (fma a c (* y (- i))))
           (if (<= c -7.8e-191)
             (* t (fma a (- x) (* b i)))
             (if (<= c 6.5e+27)
               (* i (fma j (- y) (* t b)))
               (if (<= c 8.5e+116)
                 (* z (fma c (- b) (* x y)))
                 (if (<= c 2.3e+171)
                   (* a (* c (fma (- t) (/ x c) j)))
                   (* c (* z (fma j (/ a z) (- b)))))))))))
      double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
      	double tmp;
      	if (c <= -1.12e+66) {
      		tmp = c * fma(a, j, (z * -b));
      	} else if (c <= -8e-77) {
      		tmp = j * fma(a, c, (y * -i));
      	} else if (c <= -7.8e-191) {
      		tmp = t * fma(a, -x, (b * i));
      	} else if (c <= 6.5e+27) {
      		tmp = i * fma(j, -y, (t * b));
      	} else if (c <= 8.5e+116) {
      		tmp = z * fma(c, -b, (x * y));
      	} else if (c <= 2.3e+171) {
      		tmp = a * (c * fma(-t, (x / c), j));
      	} else {
      		tmp = c * (z * fma(j, (a / z), -b));
      	}
      	return tmp;
      }
      
      function code(x, y, z, t, a, b, c, i, j)
      	tmp = 0.0
      	if (c <= -1.12e+66)
      		tmp = Float64(c * fma(a, j, Float64(z * Float64(-b))));
      	elseif (c <= -8e-77)
      		tmp = Float64(j * fma(a, c, Float64(y * Float64(-i))));
      	elseif (c <= -7.8e-191)
      		tmp = Float64(t * fma(a, Float64(-x), Float64(b * i)));
      	elseif (c <= 6.5e+27)
      		tmp = Float64(i * fma(j, Float64(-y), Float64(t * b)));
      	elseif (c <= 8.5e+116)
      		tmp = Float64(z * fma(c, Float64(-b), Float64(x * y)));
      	elseif (c <= 2.3e+171)
      		tmp = Float64(a * Float64(c * fma(Float64(-t), Float64(x / c), j)));
      	else
      		tmp = Float64(c * Float64(z * fma(j, Float64(a / z), Float64(-b))));
      	end
      	return tmp
      end
      
      code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.12e+66], N[(c * N[(a * j + N[(z * (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -8e-77], N[(j * N[(a * c + N[(y * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.8e-191], N[(t * N[(a * (-x) + N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e+27], N[(i * N[(j * (-y) + N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8.5e+116], N[(z * N[(c * (-b) + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.3e+171], N[(a * N[(c * N[((-t) * N[(x / c), $MachinePrecision] + j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * N[(j * N[(a / z), $MachinePrecision] + (-b)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      \mathbf{if}\;c \leq -1.12 \cdot 10^{+66}:\\
      \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\
      
      \mathbf{elif}\;c \leq -8 \cdot 10^{-77}:\\
      \;\;\;\;j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\
      
      \mathbf{elif}\;c \leq -7.8 \cdot 10^{-191}:\\
      \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\
      
      \mathbf{elif}\;c \leq 6.5 \cdot 10^{+27}:\\
      \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\
      
      \mathbf{elif}\;c \leq 8.5 \cdot 10^{+116}:\\
      \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\
      
      \mathbf{elif}\;c \leq 2.3 \cdot 10^{+171}:\\
      \;\;\;\;a \cdot \left(c \cdot \mathsf{fma}\left(-t, \frac{x}{c}, j\right)\right)\\
      
      \mathbf{else}:\\
      \;\;\;\;c \cdot \left(z \cdot \mathsf{fma}\left(j, \frac{a}{z}, -b\right)\right)\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 7 regimes
      2. if c < -1.12e66

        1. Initial program 61.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -1.12e66 < c < -7.9999999999999994e-77

        1. Initial program 76.6%

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

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

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

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

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

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

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

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

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

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

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

        if -7.9999999999999994e-77 < c < -7.7999999999999999e-191

        1. Initial program 81.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if -7.7999999999999999e-191 < c < 6.5000000000000005e27

        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 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. lower-*.f64N/A

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

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

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

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

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

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

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

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

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

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

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

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

        if 6.5000000000000005e27 < c < 8.5000000000000002e116

        1. Initial program 73.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        if 8.5000000000000002e116 < c < 2.30000000000000017e171

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

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

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

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

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

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

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

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

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

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

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

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

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

          \[\leadsto a \cdot \left(c \cdot \color{blue}{\left(j + -1 \cdot \frac{t \cdot x}{c}\right)}\right) \]
        7. Step-by-step derivation
          1. Applied rewrites45.9%

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

          if 2.30000000000000017e171 < c

          1. Initial program 59.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            \[\leadsto c \cdot \left(z \cdot \color{blue}{\left(-1 \cdot b + \frac{a \cdot j}{z}\right)}\right) \]
          9. Step-by-step derivation
            1. Applied rewrites69.4%

              \[\leadsto c \cdot \left(z \cdot \color{blue}{\mathsf{fma}\left(j, \frac{a}{z}, -b\right)}\right) \]
          10. Recombined 7 regimes into one program.
          11. Final simplification50.9%

            \[\leadsto \begin{array}{l} \mathbf{if}\;c \leq -1.12 \cdot 10^{+66}:\\ \;\;\;\;c \cdot \mathsf{fma}\left(a, j, z \cdot \left(-b\right)\right)\\ \mathbf{elif}\;c \leq -8 \cdot 10^{-77}:\\ \;\;\;\;j \cdot \mathsf{fma}\left(a, c, y \cdot \left(-i\right)\right)\\ \mathbf{elif}\;c \leq -7.8 \cdot 10^{-191}:\\ \;\;\;\;t \cdot \mathsf{fma}\left(a, -x, b \cdot i\right)\\ \mathbf{elif}\;c \leq 6.5 \cdot 10^{+27}:\\ \;\;\;\;i \cdot \mathsf{fma}\left(j, -y, t \cdot b\right)\\ \mathbf{elif}\;c \leq 8.5 \cdot 10^{+116}:\\ \;\;\;\;z \cdot \mathsf{fma}\left(c, -b, x \cdot y\right)\\ \mathbf{elif}\;c \leq 2.3 \cdot 10^{+171}:\\ \;\;\;\;a \cdot \left(c \cdot \mathsf{fma}\left(-t, \frac{x}{c}, j\right)\right)\\ \mathbf{else}:\\ \;\;\;\;c \cdot \left(z \cdot \mathsf{fma}\left(j, \frac{a}{z}, -b\right)\right)\\ \end{array} \]
          12. Add Preprocessing

          Developer Target 1: 58.9% 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 2024228 
          (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)))))