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




Bits error versus x




Bits error versus y
Results
| Original | 4.9 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 4.9
rmApplied associate-/r*0.1
rmApplied clear-num0.1
rmApplied add-sqr-sqrt31.8
Applied *-un-lft-identity31.8
Applied times-frac31.8
Applied add-sqr-sqrt31.8
Applied times-frac31.8
Simplified31.8
Simplified0.1
Final simplification0.1
herbie shell --seed 2020162
(FPCore (x y)
:name "Statistics.Sample:$skurtosis from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(- (/ (/ x y) y) 3.0)
(- (/ x (* y y)) 3.0))