\[\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)
\]
↓
\[\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
t_3 := a \cdot c - y \cdot i\\
t_4 := j \cdot t_3 + t_2\\
\mathbf{if}\;t_4 \leq -\infty \lor \neg \left(t_4 \leq 2 \cdot 10^{+305}\right):\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + t_1\right) - y \cdot \left(i \cdot j\right)\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + \mathsf{fma}\left(j, t_3, \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot \left(j + j\right)\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)))))
↓
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (+ (* x (- (* y z) (* t a))) t_1))
(t_3 (- (* a c) (* y i)))
(t_4 (+ (* j t_3) t_2)))
(if (or (<= t_4 (- INFINITY)) (not (<= t_4 2e+305)))
(+ (- (+ (* y (* x z)) t_1) (* y (* i j))) (* a (- (* c j) (* x t))))
(+ t_2 (fma j t_3 (* (fma (- i) y (* y i)) (+ j j)))))))
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 or 1.9999999999999999e305 < (+.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))))
Initial program 62.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)
\]
Simplified62.4
\[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(a \cdot c - y \cdot i\right)\right)\right)}
\]
Proof
[Start]62.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)
\]
associate-+l- [=>]62.4
\[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}
\]
fma-neg [=>]62.4
\[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)}
\]
neg-sub0 [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - t \cdot i\right) - j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\]
associate-+l- [<=]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)}\right)
\]
neg-sub0 [<=]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\]
distribute-rgt-neg-in [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - t \cdot i\right)\right)} + j \cdot \left(c \cdot a - y \cdot i\right)\right)
\]
fma-def [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - t \cdot i\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)}\right)
\]
sub-neg [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
distribute-neg-in [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-t \cdot i\right)\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
+-commutative [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-t \cdot i\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
remove-double-neg [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i} + \left(-c \cdot z\right), j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
sub-neg [<=]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{t \cdot i - c \cdot z}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
*-commutative [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot a - y \cdot i\right)\right)\right)
\]
*-commutative [=>]62.4
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \left(\color{blue}{a \cdot c} - y \cdot i\right)\right)\right)
\]
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.9999999999999999e305
Initial program 0.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)
\]
Simplified0.7
\[\leadsto \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)}
\]
Proof
[Start]0.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)
\]
sub-neg [=>]0.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 \color{blue}{\left(c \cdot a + \left(-y \cdot i\right)\right)}
\]
distribute-rgt-in [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \color{blue}{\left(\left(c \cdot a\right) \cdot j + \left(-y \cdot i\right) \cdot j\right)}
\]
associate-+r+ [=>]0.7
\[ \color{blue}{\left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) + \left(-y \cdot i\right) \cdot j}
\]
*-commutative [=>]0.7
\[ \left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) + \color{blue}{j \cdot \left(-y \cdot i\right)}
\]
cancel-sign-sub [<=]0.7
\[ \color{blue}{\left(\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(c \cdot a\right) \cdot j\right) - \left(-j\right) \cdot \left(-y \cdot i\right)}
\]
associate-+r- [<=]0.7
\[ \color{blue}{\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j - \left(-j\right) \cdot \left(-y \cdot i\right)\right)}
\]
*-commutative [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(\color{blue}{z \cdot c} - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j - \left(-j\right) \cdot \left(-y \cdot i\right)\right)
\]
cancel-sign-sub [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{\left(\left(c \cdot a\right) \cdot j + j \cdot \left(-y \cdot i\right)\right)}
\]
*-commutative [<=]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(\left(c \cdot a\right) \cdot j + \color{blue}{\left(-y \cdot i\right) \cdot j}\right)
\]
distribute-rgt-in [<=]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{j \cdot \left(c \cdot a + \left(-y \cdot i\right)\right)}
\]
Applied egg-rr0.7
\[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{\left(j \cdot \left(a \cdot c - y \cdot i\right) + \left(j \cdot \mathsf{fma}\left(-i, y, y \cdot i\right) + j \cdot \mathsf{fma}\left(-i, y, y \cdot i\right)\right)\right)}
\]
Simplified0.7
\[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{\mathsf{fma}\left(j, c \cdot a - y \cdot i, \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot \left(j + j\right)\right)}
\]
Proof
[Start]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(j \cdot \left(a \cdot c - y \cdot i\right) + \left(j \cdot \mathsf{fma}\left(-i, y, y \cdot i\right) + j \cdot \mathsf{fma}\left(-i, y, y \cdot i\right)\right)\right)
\]
distribute-lft-out [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(j \cdot \left(a \cdot c - y \cdot i\right) + \color{blue}{j \cdot \left(\mathsf{fma}\left(-i, y, y \cdot i\right) + \mathsf{fma}\left(-i, y, y \cdot i\right)\right)}\right)
\]
distribute-rgt-out [<=]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \left(j \cdot \left(a \cdot c - y \cdot i\right) + \color{blue}{\left(\mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j + \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j\right)}\right)
\]
fma-def [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \color{blue}{\mathsf{fma}\left(j, a \cdot c - y \cdot i, \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j + \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j\right)}
\]
*-commutative [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \mathsf{fma}\left(j, \color{blue}{c \cdot a} - y \cdot i, \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j + \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot j\right)
\]
distribute-lft-out [=>]0.7
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + \mathsf{fma}\left(j, c \cdot a - y \cdot i, \color{blue}{\mathsf{fma}\left(-i, y, y \cdot i\right) \cdot \left(j + j\right)}\right)
\]
Recombined 2 regimes into one program.
Final simplification5.2
\[\leadsto \begin{array}{l}
\mathbf{if}\;j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) \leq -\infty \lor \neg \left(j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) \leq 2 \cdot 10^{+305}\right):\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) - y \cdot \left(i \cdot j\right)\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + \mathsf{fma}\left(j, a \cdot c - y \cdot i, \mathsf{fma}\left(-i, y, y \cdot i\right) \cdot \left(j + j\right)\right)\\
\end{array}
\]
Alternatives
Alternative 1
Error
5.2
Cost
5833
\[\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + t_2\\
\mathbf{if}\;t_3 \leq -\infty \lor \neg \left(t_3 \leq 2 \cdot 10^{+305}\right):\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + t_1\right) - y \cdot \left(i \cdot j\right)\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_2 + \left(j \cdot \left(a \cdot c\right) - j \cdot \left(y \cdot i\right)\right)\\
\end{array}
\]
Alternative 2
Error
6.1
Cost
5832
\[\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right) + t_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) + t_2\\
\mathbf{if}\;t_3 \leq -\infty:\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + t_1\right) - y \cdot \left(i \cdot j\right)\right) - t \cdot \left(x \cdot a\right)\\
\mathbf{elif}\;t_3 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_2 + \left(j \cdot \left(a \cdot c\right) - j \cdot \left(y \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\]
Alternative 3
Error
6.8
Cost
5704
\[\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(t_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + \left(t_1 - y \cdot \left(i \cdot j\right)\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\]
Alternative 4
Error
6.1
Cost
5704
\[\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + t_1\right)\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;\left(\left(y \cdot \left(x \cdot z\right) + t_1\right) - y \cdot \left(i \cdot j\right)\right) - t \cdot \left(x \cdot a\right)\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\]
Alternative 5
Error
24.1
Cost
2668
\[\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := t_1 - t \cdot \left(x \cdot a - b \cdot i\right)\\
t_4 := t_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z\right) + \left(b \cdot \left(t \cdot i\right) - y \cdot \left(i \cdot j\right)\right)\\
t_6 := c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+72}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{+20}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{-94}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-189}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-218}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-260}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-160}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-68}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;y \leq 1.16 \cdot 10^{-55}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4800000000000:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\]
Alternative 6
Error
21.4
Cost
2664
\[\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_5 := y \cdot \left(x \cdot z\right) + \left(t_4 - i \cdot \left(y \cdot j\right)\right)\\
t_6 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_7 := t_6 + t_1\\
t_8 := t_6 + t_3\\
\mathbf{if}\;b \leq -2.3 \cdot 10^{+50}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t_4\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-28}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-100}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-188}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-255}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{-174}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-105}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-70}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;b \leq 5.3 \cdot 10^{+73}:\\
\;\;\;\;t_3 + t_4\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+291}:\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 7
Error
37.7
Cost
2544
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := t_2 + c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;c \leq -5.5 \cdot 10^{+42}:\\
\;\;\;\;\frac{z}{\frac{1}{x \cdot y - b \cdot c}}\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-100}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq -5.4 \cdot 10^{-155}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq -8.2 \cdot 10^{-289}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 2.2 \cdot 10^{-294}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-237}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-190}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-103}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{-66}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 1.18 \cdot 10^{-21}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 63:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\]
Alternative 8
Error
16.1
Cost
2524
\[\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := \left(\left(y \cdot \left(x \cdot z\right) + t_2\right) - y \cdot \left(i \cdot j\right)\right) + j \cdot \left(a \cdot c\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_5 := j \cdot \left(a \cdot c - y \cdot i\right) + t_4\\
t_6 := \left(t_4 + t_2\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{-34}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-69}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{-97}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-282}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-38}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+172}:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\]
Alternative 9
Error
23.6
Cost
2404
\[\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t_1 - t \cdot \left(x \cdot a - b \cdot i\right)\\
t_3 := t_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
t_4 := y \cdot \left(x \cdot z\right) + \left(b \cdot \left(t \cdot i\right) - y \cdot \left(i \cdot j\right)\right)\\
t_5 := c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+72}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -15000000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{-96}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -8.6 \cdot 10^{-219}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{-260}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 3.45 \cdot 10^{-124}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-55}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 60000:\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\]
Alternative 10
Error
21.0
Cost
2400
\[\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right) + t \cdot \left(b \cdot i - x \cdot a\right)\\
t_4 := y \cdot \left(i \cdot j\right)\\
t_5 := y \cdot \left(x \cdot z\right)\\
t_6 := t_5 + \left(t_2 - t_4\right)\\
t_7 := x \cdot t_1\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{-14}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-144}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - t \cdot \left(x \cdot a - b \cdot i\right)\\
\mathbf{elif}\;y \leq -3.3 \cdot 10^{-169}:\\
\;\;\;\;t_7 + t_2\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-156}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-95}:\\
\;\;\;\;t_5 + \left(t_2 - i \cdot \left(y \cdot j\right)\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-86}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-70}:\\
\;\;\;\;\frac{x}{\frac{1}{t_1}} + t_2\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+80}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + \left(t_7 - t_4\right)\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\]
Alternative 11
Error
37.0
Cost
2352
\[\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_4 := \left(z \cdot c\right) \cdot \left(-b\right) - x \cdot \left(t \cdot a\right)\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+50}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -102000000:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-36}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{-104}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.06 \cdot 10^{-249}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-290}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-237}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-174}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-84}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;y \leq 2300:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\]
herbie shell --seed 2023039
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))