\frac{x}{y \cdot y} - 3\frac{1}{y \cdot \frac{y}{x}} - 3double f(double x, double y) {
double r356964 = x;
double r356965 = y;
double r356966 = r356965 * r356965;
double r356967 = r356964 / r356966;
double r356968 = 3.0;
double r356969 = r356967 - r356968;
return r356969;
}
double f(double x, double y) {
double r356970 = 1.0;
double r356971 = y;
double r356972 = x;
double r356973 = r356971 / r356972;
double r356974 = r356971 * r356973;
double r356975 = r356970 / r356974;
double r356976 = 3.0;
double r356977 = r356975 - r356976;
return r356977;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.0
rmApplied associate-/r*0.1
rmApplied clear-num0.1
rmApplied add-sqr-sqrt32.2
Applied *-un-lft-identity32.2
Applied times-frac32.2
Applied add-sqr-sqrt32.3
Applied times-frac32.3
Simplified32.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020042 +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))