\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\]
↓
\[\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
t_3 := j \cdot t_2 + t_1\\
\mathbf{if}\;t_3 \leq -\infty \lor \neg \left(t_3 \leq 5 \cdot 10^{+306}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, \mathsf{fma}\left(-y, i, y \cdot i\right) \cdot \left(j + j\right)\right) + t_1\\
\end{array}
\]
(FPCore (x y z t a b c i j)
:precision binary64
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y)))))
↓
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))
(t_2 (- (* t c) (* y i)))
(t_3 (+ (* j t_2) t_1)))
(if (or (<= t_3 (- INFINITY)) (not (<= t_3 5e+306)))
(+ (* y (- (* x z) (* i j))) (* c (- (* t j) (* z b))))
(+ (fma j t_2 (* (fma (- y) i (* y i)) (+ j j))) t_1))))
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
↓
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
t_3 := j \cdot t_2 + t_1\\
\mathbf{if}\;t_3 \leq -\infty \lor \neg \left(t_3 \leq 5 \cdot 10^{+306}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, \mathsf{fma}\left(-y, i, y \cdot i\right) \cdot \left(j + j\right)\right) + t_1\\
\end{array}
Error
Target
Original
12.1
Target
15.8
Herbie
5.6
\[\begin{array}{l}
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\end{array}
\]
Derivation
Split input into 2 regimes
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < -inf.0 or 4.99999999999999993e306 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y))))
Initial program 63.6
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\]
Simplified63.6
\[\leadsto \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - z \cdot c, j \cdot \left(t \cdot c - y \cdot i\right)\right)\right)}
\]
Proof
[Start]63.6
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\]
associate-+l- [=>]63.6
\[ \color{blue}{x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}
\]
fma-neg [=>]63.6
\[ \color{blue}{\mathsf{fma}\left(x, y \cdot z - t \cdot a, -\left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)}
\]
neg-sub0 [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{0 - \left(b \cdot \left(c \cdot z - i \cdot a\right) - j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\]
associate-+l- [<=]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(0 - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)}\right)
\]
neg-sub0 [<=]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\left(-b \cdot \left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\]
distribute-rgt-neg-in [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{b \cdot \left(-\left(c \cdot z - i \cdot a\right)\right)} + j \cdot \left(c \cdot t - i \cdot y\right)\right)
\]
fma-def [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \color{blue}{\mathsf{fma}\left(b, -\left(c \cdot z - i \cdot a\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)}\right)
\]
sub-neg [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, -\color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
distribute-neg-in [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-c \cdot z\right) + \left(-\left(-i \cdot a\right)\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
+-commutative [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{\left(-\left(-i \cdot a\right)\right) + \left(-c \cdot z\right)}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
remove-double-neg [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a} + \left(-c \cdot z\right), j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
sub-neg [<=]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{i \cdot a - c \cdot z}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
*-commutative [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, \color{blue}{a \cdot i} - c \cdot z, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
*-commutative [=>]63.6
\[ \mathsf{fma}\left(x, y \cdot z - t \cdot a, \mathsf{fma}\left(b, a \cdot i - \color{blue}{z \cdot c}, j \cdot \left(c \cdot t - i \cdot y\right)\right)\right)
\]
Taylor expanded in a around 0 44.4
\[\leadsto \color{blue}{-1 \cdot \left(c \cdot \left(b \cdot z\right)\right) + \left(\left(c \cdot t - y \cdot i\right) \cdot j + y \cdot \left(z \cdot x\right)\right)}
\]
\[ \color{blue}{\left(-1 \cdot \left(y \cdot \left(i \cdot j\right)\right) + y \cdot \left(z \cdot x\right)\right) - c \cdot \left(-1 \cdot \left(t \cdot j\right) + b \cdot z\right)}
\]
if -inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 4.99999999999999993e306
Initial program 0.8
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\]
Applied egg-rr0.8
\[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\left(j \cdot \left(c \cdot t - i \cdot y\right) + \left(j \cdot \mathsf{fma}\left(-y, i, i \cdot y\right) + j \cdot \mathsf{fma}\left(-y, i, i \cdot y\right)\right)\right)}
\]
Simplified0.8
\[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, \mathsf{fma}\left(-y, i, i \cdot y\right) \cdot \left(j + j\right)\right)}
\]
Proof
[Start]0.8
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(j \cdot \left(c \cdot t - i \cdot y\right) + \left(j \cdot \mathsf{fma}\left(-y, i, i \cdot y\right) + j \cdot \mathsf{fma}\left(-y, i, i \cdot y\right)\right)\right)
\]
distribute-lft-out [=>]0.8
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{j \cdot \left(\mathsf{fma}\left(-y, i, i \cdot y\right) + \mathsf{fma}\left(-y, i, i \cdot y\right)\right)}\right)
\]
distribute-rgt-out [<=]0.8
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(j \cdot \left(c \cdot t - i \cdot y\right) + \color{blue}{\left(\mathsf{fma}\left(-y, i, i \cdot y\right) \cdot j + \mathsf{fma}\left(-y, i, i \cdot y\right) \cdot j\right)}\right)
\]
fma-def [=>]0.8
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{\mathsf{fma}\left(j, c \cdot t - i \cdot y, \mathsf{fma}\left(-y, i, i \cdot y\right) \cdot j + \mathsf{fma}\left(-y, i, i \cdot y\right) \cdot j\right)}
\]
distribute-lft-out [=>]0.8
\[ \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \mathsf{fma}\left(j, c \cdot t - i \cdot y, \color{blue}{\mathsf{fma}\left(-y, i, i \cdot y\right) \cdot \left(j + j\right)}\right)
\]
Recombined 2 regimes into one program.
Final simplification5.6
\[\leadsto \begin{array}{l}
\mathbf{if}\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) \leq -\infty \lor \neg \left(j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) \leq 5 \cdot 10^{+306}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(j, t \cdot c - y \cdot i, \mathsf{fma}\left(-y, i, y \cdot i\right) \cdot \left(j + j\right)\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\end{array}
\]
Alternatives
Alternative 1
Error
5.6
Cost
12681
\[\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := t_2 + t_1\\
\mathbf{if}\;t_3 \leq -\infty \lor \neg \left(t_3 \leq 5 \cdot 10^{+306}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-y, i, y \cdot i\right) + t_2\right) + t_1\\
\end{array}
\]
Alternative 2
Error
5.6
Cost
5705
\[\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq -\infty \lor \neg \left(t_1 \leq 5 \cdot 10^{+306}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3
Error
25.5
Cost
3064
\[\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_4 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_5 := t_2 - c \cdot \left(z \cdot b - t \cdot j\right)\\
t_6 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_7 := t_2 + t_6\\
t_8 := t_3 + t_6\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+208}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq -2.36 \cdot 10^{+142}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-71}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-81}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-164}:\\
\;\;\;\;t_3 + t_2\\
\mathbf{elif}\;z \leq -2.4 \cdot 10^{-208}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-303}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{-252}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-202}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;z \leq 1.08 \cdot 10^{-113}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{-77}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{-17}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+107}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+140}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\]
Alternative 4
Error
38.2
Cost
2816
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_5 := c \cdot j - x \cdot a\\
t_6 := b \cdot i - x \cdot t\\
t_7 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;z \leq -1.2 \cdot 10^{+64}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{+49}:\\
\;\;\;\;\frac{a}{\frac{1}{t_6}}\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-36}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{-81}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-160}:\\
\;\;\;\;t \cdot t_5\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-271}:\\
\;\;\;\;\frac{t}{\frac{1}{t_5}}\\
\mathbf{elif}\;z \leq -9.6 \cdot 10^{-304}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-292}:\\
\;\;\;\;a \cdot t_6\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-202}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-195}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{-84}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq 118000000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 10^{+78}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\]
Alternative 5
Error
38.2
Cost
2816
\[\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_4 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_5 := c \cdot j - x \cdot a\\
t_6 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_7 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+64}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{+50}:\\
\;\;\;\;\frac{a}{\frac{1}{b \cdot i - x \cdot t}}\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -6.4 \cdot 10^{-80}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-120}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-160}:\\
\;\;\;\;t \cdot t_5\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{-231}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -9.6 \cdot 10^{-271}:\\
\;\;\;\;\frac{t}{\frac{1}{t_5}}\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-304}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(b \cdot i\right) - t_1\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-202}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-194}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-78}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+17}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+79}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\]
Alternative 6
Error
38.3
Cost
2816
\[\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_5 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_6 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_7 := c \cdot j - x \cdot a\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+67}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{+51}:\\
\;\;\;\;\frac{a}{\frac{1}{b \cdot i - x \cdot t}}\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -9.5 \cdot 10^{-81}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{-84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-120}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-160}:\\
\;\;\;\;t \cdot t_7\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-232}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -2.2 \cdot 10^{-272}:\\
\;\;\;\;\frac{t}{\frac{1}{t_7}}\\
\mathbf{elif}\;z \leq -7.6 \cdot 10^{-304}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-247}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - t_1\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{-200}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-195}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-83}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq 150000000000:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq 10^{+78}:\\
\;\;\;\;i \cdot \left(a \cdot b\right) - t_1\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\]
Alternative 7
Error
38.2
Cost
2816
\[\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_5 := c \cdot j - x \cdot a\\
t_6 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_7 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;z \leq -2.4 \cdot 10^{+64}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{+50}:\\
\;\;\;\;\frac{a}{\frac{1}{b \cdot i - x \cdot t}}\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{-79}:\\
\;\;\;\;t_7 - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-121}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-160}:\\
\;\;\;\;t \cdot t_5\\
\mathbf{elif}\;z \leq -2.95 \cdot 10^{-232}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-271}:\\
\;\;\;\;\frac{t}{\frac{1}{t_5}}\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-304}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-248}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - t_1\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{-199}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-194}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 54000000:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq 10^{+78}:\\
\;\;\;\;t_7 - t_1\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\]
Alternative 8
Error
31.0
Cost
2801
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t_2 - c \cdot \left(z \cdot b\right)\\
t_4 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_5 := j \cdot \left(t \cdot c - y \cdot i\right) + t_4\\
t_6 := b \cdot i - x \cdot t\\
\mathbf{if}\;a \leq -6.4 \cdot 10^{+69}:\\
\;\;\;\;a \cdot t_6\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-117}:\\
\;\;\;\;t_4 + x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-148}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;a \leq -1.35 \cdot 10^{-205}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;a \leq -1.32 \cdot 10^{-249}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{-278}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-206}:\\
\;\;\;\;t_2 + c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-74}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 0.105:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+68} \lor \neg \left(a \leq 3.7 \cdot 10^{+218}\right):\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;\frac{a}{\frac{1}{t_6}}\\
\end{array}
\]
Alternative 9
Error
38.1
Cost
2688
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_5 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_6 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_7 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+65}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{+48}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{-80}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-85}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-121}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-161}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-270}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-304}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-292}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;z \leq 10^{-202}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-78}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+18}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{+72}:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;t_7\\
\end{array}
\]
Alternative 10
Error
38.2
Cost
2688
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := b \cdot i - x \cdot t\\
t_5 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_6 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_7 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+64}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -1.08 \cdot 10^{+51}:\\
\;\;\;\;\frac{a}{\frac{1}{t_4}}\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-80}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-162}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -2.75 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -5.8 \cdot 10^{-274}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-303}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-291}:\\
\;\;\;\;a \cdot t_4\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-202}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-195}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{-81}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;z \leq 660000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+73}:\\
\;\;\;\;t_7\\
\mathbf{else}:\\
\;\;\;\;t_6\\
\end{array}
\]
Alternative 11
Error
38.2
Cost
2688
\[\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_4 := c \cdot j - x \cdot a\\
t_5 := b \cdot i - x \cdot t\\
t_6 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_7 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_8 := t \cdot t_4\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+64}:\\
\;\;\;\;t_7\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{+47}:\\
\;\;\;\;\frac{a}{\frac{1}{t_5}}\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.1 \cdot 10^{-79}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq -1.65 \cdot 10^{-84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{-118}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-163}:\\
\;\;\;\;t_8\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-232}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-273}:\\
\;\;\;\;\frac{t}{\frac{1}{t_4}}\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-304}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-292}:\\
\;\;\;\;a \cdot t_5\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-202}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-81}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;z \leq 200000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{+72}:\\
\;\;\;\;t_8\\
\mathbf{else}:\\
\;\;\;\;t_7\\
\end{array}
\]
Alternative 12
Error
34.4
Cost
2544
\[\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + c \cdot \left(t \cdot j\right)\\
t_3 := c \cdot \left(z \cdot b\right)\\
t_4 := x \cdot \left(y \cdot z - t \cdot a\right) - t_3\\
t_5 := y \cdot \left(x \cdot z\right) - j \cdot \left(y \cdot i - t \cdot c\right)\\
t_6 := b \cdot \left(a \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;j \leq -1.75 \cdot 10^{+34}:\\
\;\;\;\;t_5\\
\mathbf{elif}\;j \leq -2.52 \cdot 10^{-197}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;j \leq -1.85 \cdot 10^{-264}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{-300}:\\
\;\;\;\;t_6\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-261}:\\
\;\;\;\;\frac{a}{\frac{1}{b \cdot i - x \cdot t}}\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-222}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{-204}:\\
\;\;\;\;t_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;j \leq 3 \cdot 10^{-176}:\\
\;\;\;\;t_1 - t_3\\
\mathbf{elif}\;j \leq 2.55 \cdot 10^{-61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2800:\\
\;\;\;\;t_4\\
\mathbf{elif}\;j \leq 1.9 \cdot 10^{+78}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+118}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_5\\
\end{array}
\]
herbie shell --seed 2023016
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))