\frac{x}{y \cdot y} - 3\frac{\frac{1}{y}}{\frac{y}{x}} - 3double f(double x, double y) {
double r226049 = x;
double r226050 = y;
double r226051 = r226050 * r226050;
double r226052 = r226049 / r226051;
double r226053 = 3.0;
double r226054 = r226052 - r226053;
return r226054;
}
double f(double x, double y) {
double r226055 = 1.0;
double r226056 = y;
double r226057 = r226055 / r226056;
double r226058 = x;
double r226059 = r226056 / r226058;
double r226060 = r226057 / r226059;
double r226061 = 3.0;
double r226062 = r226060 - r226061;
return r226062;
}




Bits error versus x




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