\frac{x}{y \cdot y} - 3\frac{1}{\frac{y}{x} \cdot y} - 3double f(double x, double y) {
double r255449 = x;
double r255450 = y;
double r255451 = r255450 * r255450;
double r255452 = r255449 / r255451;
double r255453 = 3.0;
double r255454 = r255452 - r255453;
return r255454;
}
double f(double x, double y) {
double r255455 = 1.0;
double r255456 = y;
double r255457 = x;
double r255458 = r255456 / r255457;
double r255459 = r255458 * r255456;
double r255460 = r255455 / r255459;
double r255461 = 3.0;
double r255462 = r255460 - r255461;
return r255462;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.2
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 2019179
(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))