\left(x \cdot x + y\right) + y
x \cdot x + 2 \cdot y
double f(double x, double y) {
double r590024 = x;
double r590025 = r590024 * r590024;
double r590026 = y;
double r590027 = r590025 + r590026;
double r590028 = r590027 + r590026;
return r590028;
}
double f(double x, double y) {
double r590029 = x;
double r590030 = r590029 * r590029;
double r590031 = 2.0;
double r590032 = y;
double r590033 = r590031 * r590032;
double r590034 = r590030 + r590033;
return r590034;
}




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 2019303
(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))