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



Bits error versus x



Bits error versus y



Bits error versus z
Initial program 0.0
Simplified0.0
Applied add-sqr-sqrt_binary640.5
Applied times-frac_binary640.4
Taylor expanded in z around 0 0.5
Simplified0.0
Final simplification0.0
herbie shell --seed 2022081
(FPCore (x y z)
:name "Diagrams.Solve.Polynomial:quartForm from diagrams-solve-0.1, D"
:precision binary64
(- (/ (* x y) 2.0) (/ z 8.0)))