\frac{x}{y \cdot y} - 3.0\frac{\frac{1}{\frac{y}{x}}}{y} - 3.0double f(double x, double y) {
double r11312392 = x;
double r11312393 = y;
double r11312394 = r11312393 * r11312393;
double r11312395 = r11312392 / r11312394;
double r11312396 = 3.0;
double r11312397 = r11312395 - r11312396;
return r11312397;
}
double f(double x, double y) {
double r11312398 = 1.0;
double r11312399 = y;
double r11312400 = x;
double r11312401 = r11312399 / r11312400;
double r11312402 = r11312398 / r11312401;
double r11312403 = r11312402 / r11312399;
double r11312404 = 3.0;
double r11312405 = r11312403 - r11312404;
return r11312405;
}




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))