\frac{x}{y \cdot y} - 3\frac{\frac{1}{\frac{y}{x}}}{y} - 3double f(double x, double y) {
double r237794 = x;
double r237795 = y;
double r237796 = r237795 * r237795;
double r237797 = r237794 / r237796;
double r237798 = 3.0;
double r237799 = r237797 - r237798;
return r237799;
}
double f(double x, double y) {
double r237800 = 1.0;
double r237801 = y;
double r237802 = x;
double r237803 = r237801 / r237802;
double r237804 = r237800 / r237803;
double r237805 = r237804 / r237801;
double r237806 = 3.0;
double r237807 = r237805 - r237806;
return r237807;
}




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
rmApplied *-un-lft-identity0.1
Applied *-un-lft-identity0.1
Applied times-frac0.1
Applied associate-/l*0.1
rmApplied associate-/r/0.1
Applied associate-/r*0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020060 +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))