\frac{x}{y \cdot y} - 3.0\frac{\frac{1}{\frac{y}{x}}}{y} - 3.0double f(double x, double y) {
double r10784779 = x;
double r10784780 = y;
double r10784781 = r10784780 * r10784780;
double r10784782 = r10784779 / r10784781;
double r10784783 = 3.0;
double r10784784 = r10784782 - r10784783;
return r10784784;
}
double f(double x, double y) {
double r10784785 = 1.0;
double r10784786 = y;
double r10784787 = x;
double r10784788 = r10784786 / r10784787;
double r10784789 = r10784785 / r10784788;
double r10784790 = r10784789 / r10784786;
double r10784791 = 3.0;
double r10784792 = r10784790 - r10784791;
return r10784792;
}




Bits error versus x




Bits error versus y
Results
| Original | 4.5 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 4.5
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 2019163 +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))