double code(double x, double y, double z) {
return ((double) (((double) (x * ((double) (y + z)))) / z));
}
double code(double x, double y, double z) {
return ((double) (x + ((double) (((double) (x * ((double) (((double) cbrt(y)) * ((double) (((double) cbrt(y)) / ((double) (((double) cbrt(z)) * ((double) cbrt(z)))))))))) * ((double) (((double) cbrt(y)) / ((double) cbrt(z))))))));
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 13.0 |
|---|---|
| Target | 2.9 |
| Herbie | 1.0 |
Initial program 13.0
Simplified3.2
rmApplied add-cube-cbrt3.6
Applied add-cube-cbrt3.7
Applied times-frac3.7
Applied associate-*r*1.0
Simplified1.0
Final simplification1.0
herbie shell --seed 2020180
(FPCore (x y z)
:name "Numeric.SpecFunctions:choose from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(/ x (/ z (+ y z)))
(/ (* x (+ y z)) z))