\frac{x}{y \cdot y} - 3\frac{\frac{x}{y}}{y} - 3double code(double x, double y) {
return ((x / (y * y)) - 3.0);
}
double code(double x, double y) {
return (((x / y) / y) - 3.0);
}




Bits error versus x




Bits error versus y
Results
| Original | 5.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.1
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2020057 +o rules:numerics
(FPCore (x y)
:name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(- (/ (/ x y) y) 3)
(- (/ x (* y y)) 3))