\frac{x \cdot y}{2} - \frac{z}{8}
\mathsf{fma}\left(x, y \cdot 0.5, z \cdot -0.125\right)
(FPCore (x y z) :precision binary64 (- (/ (* x y) 2.0) (/ z 8.0)))
(FPCore (x y z) :precision binary64 (fma x (* y 0.5) (* z -0.125)))
double code(double x, double y, double z) {
return ((x * y) / 2.0) - (z / 8.0);
}
double code(double x, double y, double z) {
return fma(x, (y * 0.5), (z * -0.125));
}



Bits error versus x



Bits error versus y



Bits error versus z
Initial program 0.0
Simplified0.0
Applied egg-rr0.6
Taylor expanded in z around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2022130
(FPCore (x y z)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, D"
:precision binary64
(- (/ (* x y) 2.0) (/ z 8.0)))