\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r456642 = x;
double r456643 = r456642 * r456642;
double r456644 = y;
double r456645 = r456643 + r456644;
double r456646 = r456645 + r456644;
return r456646;
}
double f(double x, double y) {
double r456647 = x;
double r456648 = r456647 * r456647;
double r456649 = 2.0;
double r456650 = y;
double r456651 = r456649 * r456650;
double r456652 = r456648 + r456651;
return r456652;
}




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 2019326 +o rules:numerics
(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))