\frac{x \cdot 100}{x + y}\left(x \cdot \left(\sqrt{100} \cdot \left|\sqrt[3]{100}\right|\right)\right) \cdot \frac{\sqrt{\sqrt[3]{100}}}{x + y}double code(double x, double y) {
return (((double) (x * 100.0)) / ((double) (x + y)));
}
double code(double x, double y) {
return ((double) (((double) (x * ((double) (((double) sqrt(100.0)) * ((double) fabs(((double) cbrt(100.0)))))))) * (((double) sqrt(((double) cbrt(100.0)))) / ((double) (x + y)))));
}




Bits error versus x




Bits error versus y
Results
| Original | 0.3 |
|---|---|
| Target | 0.2 |
| Herbie | 0.5 |
Initial program Error: 0.3 bits
SimplifiedError: 0.2 bits
rmApplied *-un-lft-identityError: 0.2 bits
Applied add-sqr-sqrtError: 0.2 bits
Applied times-fracError: 0.3 bits
Applied associate-*r*Error: 0.4 bits
SimplifiedError: 0.4 bits
rmApplied *-un-lft-identityError: 0.4 bits
Applied add-cube-cbrtError: 1.0 bits
Applied sqrt-prodError: 0.4 bits
Applied times-fracError: 0.6 bits
Applied associate-*r*Error: 0.6 bits
SimplifiedError: 0.5 bits
Final simplificationError: 0.5 bits
herbie shell --seed 2020200
(FPCore (x y)
:name "Development.Shake.Progress:message from shake-0.15.5"
:precision binary64
:herbie-target
(* (/ x 1.0) (/ 100.0 (+ x y)))
(/ (* x 100.0) (+ x y)))