\frac{x}{y \cdot y} - 3\frac{\frac{1}{\frac{y}{x}}}{y} - 3double f(double x, double y) {
double r9799725 = x;
double r9799726 = y;
double r9799727 = r9799726 * r9799726;
double r9799728 = r9799725 / r9799727;
double r9799729 = 3.0;
double r9799730 = r9799728 - r9799729;
return r9799730;
}
double f(double x, double y) {
double r9799731 = 1.0;
double r9799732 = y;
double r9799733 = x;
double r9799734 = r9799732 / r9799733;
double r9799735 = r9799731 / r9799734;
double r9799736 = r9799735 / r9799732;
double r9799737 = 3.0;
double r9799738 = r9799736 - r9799737;
return r9799738;
}




Bits error versus x




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