\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r562647 = x;
double r562648 = r562647 * r562647;
double r562649 = y;
double r562650 = r562648 + r562649;
double r562651 = r562650 + r562649;
return r562651;
}
double f(double x, double y) {
double r562652 = x;
double r562653 = r562652 * r562652;
double r562654 = 2.0;
double r562655 = y;
double r562656 = r562654 * r562655;
double r562657 = r562653 + r562656;
return r562657;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied associate-+l+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019208
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
:precision binary64
:herbie-target
(+ (+ y y) (* x x))
(+ (+ (* x x) y) y))