\frac{x \cdot y}{2} - \frac{z}{8}\mathsf{fma}\left(\frac{x}{1}, \frac{y}{2}, -\frac{z}{8}\right)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 / 1.0), (y / 2.0), -(z / 8.0));
}



Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 0.0
rmApplied *-un-lft-identity0.0
Applied times-frac0.0
Applied fma-neg0
Final simplification0
herbie shell --seed 2020057 +o rules:numerics
(FPCore (x y z)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, D"
:precision binary64
(- (/ (* x y) 2) (/ z 8)))