\frac{x}{y \cdot y} - 3\frac{\frac{1}{y}}{\frac{y}{x}} - 3double f(double x, double y) {
double r351570 = x;
double r351571 = y;
double r351572 = r351571 * r351571;
double r351573 = r351570 / r351572;
double r351574 = 3.0;
double r351575 = r351573 - r351574;
return r351575;
}
double f(double x, double y) {
double r351576 = 1.0;
double r351577 = y;
double r351578 = r351576 / r351577;
double r351579 = x;
double r351580 = r351577 / r351579;
double r351581 = r351578 / r351580;
double r351582 = 3.0;
double r351583 = r351581 - r351582;
return r351583;
}




Bits error versus x




Bits error versus y
Results
| Original | 4.8 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 4.8
rmApplied associate-/r*0.1
rmApplied clear-num0.1
rmApplied div-inv0.1
Applied associate-/r*0.1
Taylor expanded around 0 0.1
Final simplification0.1
herbie shell --seed 2020021
(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))