\frac{x}{y \cdot y} - 3\frac{1}{y \cdot \frac{y}{x}} - 3double f(double x, double y) {
double r329837 = x;
double r329838 = y;
double r329839 = r329838 * r329838;
double r329840 = r329837 / r329839;
double r329841 = 3.0;
double r329842 = r329840 - r329841;
return r329842;
}
double f(double x, double y) {
double r329843 = 1.0;
double r329844 = y;
double r329845 = x;
double r329846 = r329844 / r329845;
double r329847 = r329844 * r329846;
double r329848 = r329843 / r329847;
double r329849 = 3.0;
double r329850 = r329848 - r329849;
return r329850;
}




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