\frac{x}{y \cdot y} - 3\frac{\frac{1}{y}}{\frac{y}{x}} - 3double f(double x, double y) {
double r244043 = x;
double r244044 = y;
double r244045 = r244044 * r244044;
double r244046 = r244043 / r244045;
double r244047 = 3.0;
double r244048 = r244046 - r244047;
return r244048;
}
double f(double x, double y) {
double r244049 = 1.0;
double r244050 = y;
double r244051 = r244049 / r244050;
double r244052 = x;
double r244053 = r244050 / r244052;
double r244054 = r244051 / r244053;
double r244055 = 3.0;
double r244056 = r244054 - r244055;
return r244056;
}




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 *-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 2020021 +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))