x + \frac{y \cdot y}{z}x + \frac{y}{z} \cdot ydouble f(double x, double y, double z) {
double r646677 = x;
double r646678 = y;
double r646679 = r646678 * r646678;
double r646680 = z;
double r646681 = r646679 / r646680;
double r646682 = r646677 + r646681;
return r646682;
}
double f(double x, double y, double z) {
double r646683 = x;
double r646684 = y;
double r646685 = z;
double r646686 = r646684 / r646685;
double r646687 = r646686 * r646684;
double r646688 = r646683 + r646687;
return r646688;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 6.2
rmApplied associate-/l*0.1
rmApplied associate-/r/0.1
Final simplification0.1
herbie shell --seed 2019305
(FPCore (x y z)
:name "Crypto.Random.Test:calculate from crypto-random-0.0.9"
:precision binary64
:herbie-target
(+ x (* y (/ y z)))
(+ x (/ (* y y) z)))