\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}\;y \le -2770.5009328695378 \lor \neg \left(y \le 5.08015187382615735 \cdot 10^{111}\right):\\
\;\;\;\;\left(\left(y \cdot \left(z \cdot x\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + \left(c \cdot \left(t \cdot j\right) - i \cdot \left(y \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - i \cdot \left(y \cdot j\right)\right) + \left(x \cdot \left(y \cdot z - a \cdot t\right) + \left(i \cdot \left(a \cdot b\right) - z \cdot \left(b \cdot c\right)\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 ((double) (((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (t * a)))))) - ((double) (b * ((double) (((double) (c * z)) - ((double) (i * a)))))))) + ((double) (j * ((double) (((double) (c * t)) - ((double) (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 (((y <= -2770.500932869538) || !(y <= 5.080151873826157e+111))) {
VAR = ((double) (((double) (((double) (((double) (y * ((double) (z * x)))) - ((double) (a * ((double) (x * t)))))) + ((double) (b * ((double) (((double) (a * i)) - ((double) (z * c)))))))) + ((double) (((double) (c * ((double) (t * j)))) - ((double) (i * ((double) (y * j))))))));
} else {
VAR = ((double) (((double) (((double) (c * ((double) (t * j)))) - ((double) (i * ((double) (y * j)))))) + ((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (a * t)))))) + ((double) (((double) (i * ((double) (a * b)))) - ((double) (z * ((double) (b * c))))))))));
}
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
| Original | 12.5 |
|---|---|
| Target | 16.6 |
| Herbie | 10.7 |
if y < -2770.5009328695378 or 5.08015187382615735e111 < y Initial program 18.6
Taylor expanded around inf 17.3
Simplified17.1
rmApplied sub-neg17.1
Applied distribute-lft-in17.1
Simplified13.0
Simplified13.0
if -2770.5009328695378 < y < 5.08015187382615735e111Initial program 9.9
Taylor expanded around inf 10.6
Simplified10.8
rmApplied sub-neg10.8
Applied distribute-lft-in10.8
Simplified10.4
rmApplied associate-*r*9.7
Final simplification10.7
herbie shell --seed 2020184
(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)))))