\frac{x \cdot y}{2} - \frac{z}{8}
\mathsf{fma}\left(z, -0.125, \frac{x \cdot y}{2}\right)
(FPCore (x y z) :precision binary64 (- (/ (* x y) 2.0) (/ z 8.0)))
(FPCore (x y z) :precision binary64 (fma z -0.125 (/ (* x y) 2.0)))
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(z, -0.125, ((x * y) / 2.0));
}



Bits error versus x



Bits error versus y



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