\frac{x}{y \cdot y} - 3\frac{\frac{1}{y}}{\frac{y}{x}} - 3double f(double x, double y) {
double r500078 = x;
double r500079 = y;
double r500080 = r500079 * r500079;
double r500081 = r500078 / r500080;
double r500082 = 3.0;
double r500083 = r500081 - r500082;
return r500083;
}
double f(double x, double y) {
double r500084 = 1.0;
double r500085 = y;
double r500086 = r500084 / r500085;
double r500087 = x;
double r500088 = r500085 / r500087;
double r500089 = r500086 / r500088;
double r500090 = 3.0;
double r500091 = r500089 - r500090;
return r500091;
}




Bits error versus x




Bits error versus y
Results
| Original | 4.9 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 4.9
rmApplied *-un-lft-identity4.9
Applied *-un-lft-identity4.9
Applied distribute-lft-out--4.9
Simplified0.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
Taylor expanded around 0 0.1
Final simplification0.1
herbie shell --seed 2019209 +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))