\frac{x}{y \cdot y} - 3\frac{1}{\frac{y}{x} \cdot y} - 3double f(double x, double y) {
double r258069 = x;
double r258070 = y;
double r258071 = r258070 * r258070;
double r258072 = r258069 / r258071;
double r258073 = 3.0;
double r258074 = r258072 - r258073;
return r258074;
}
double f(double x, double y) {
double r258075 = 1.0;
double r258076 = y;
double r258077 = x;
double r258078 = r258076 / r258077;
double r258079 = r258078 * r258076;
double r258080 = r258075 / r258079;
double r258081 = 3.0;
double r258082 = r258080 - r258081;
return r258082;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.3 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.3
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
Final simplification0.1
herbie shell --seed 2020039 +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))