\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}
\mathbf{if}\;j \le -5.1018057398415387 \cdot 10^{-198}:\\
\;\;\;\;\mathsf{fma}\left(c \cdot t - i \cdot y, j, x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right)\\
\mathbf{elif}\;j \le 6.5841993071733845 \cdot 10^{-294}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot 0\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(x \cdot y\right) \cdot z + x \cdot \left(-t \cdot a\right)\right) + x \cdot \mathsf{fma}\left(-t, a, t \cdot a\right)\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \left(j \cdot \mathsf{fma}\left(t, c, -i \cdot y\right) + j \cdot \mathsf{fma}\left(-i, y, i \cdot y\right)\right)\\
\end{array}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) - (i * a)))) + (j * ((c * t) - (i * y))));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double VAR;
if ((j <= -5.101805739841539e-198)) {
VAR = fma(((c * t) - (i * y)), j, ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))));
} else {
double VAR_1;
if ((j <= 6.584199307173384e-294)) {
VAR_1 = (((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * 0.0));
} else {
VAR_1 = ((((((x * y) * z) + (x * -(t * a))) + (x * fma(-t, a, (t * a)))) - (b * ((c * z) - (i * a)))) + ((j * fma(t, c, -(i * y))) + (j * fma(-i, y, (i * y)))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b



Bits error versus c



Bits error versus i



Bits error versus j
Results
if j < -5.101805739841539e-198Initial program 10.5
Simplified10.5
if -5.101805739841539e-198 < j < 6.584199307173384e-294Initial program 17.0
Taylor expanded around 0 16.8
if 6.584199307173384e-294 < j Initial program 11.8
rmApplied prod-diff11.8
Applied distribute-lft-in11.8
Simplified11.8
Simplified11.8
rmApplied prod-diff11.8
Applied distribute-lft-in11.8
Simplified11.8
Simplified11.8
rmApplied fma-udef11.8
Applied distribute-lft-in11.8
rmApplied *-commutative11.8
Applied associate-*r*12.5
Final simplification12.3
herbie shell --seed 2020078 +o rules:numerics
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))