\left(x + y\right) \cdot \left(x + y\right)
\left(2 \cdot y + x\right) \cdot x + y \cdot y
double f(double x, double y) {
double r16288263 = x;
double r16288264 = y;
double r16288265 = r16288263 + r16288264;
double r16288266 = r16288265 * r16288265;
return r16288266;
}
double f(double x, double y) {
double r16288267 = 2.0;
double r16288268 = y;
double r16288269 = r16288267 * r16288268;
double r16288270 = x;
double r16288271 = r16288269 + r16288270;
double r16288272 = r16288271 * r16288270;
double r16288273 = r16288268 * r16288268;
double r16288274 = r16288272 + r16288273;
return r16288274;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-rgt-out0.0
rmApplied distribute-lft-in0.0
Applied associate-+r+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019171
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2.0 (* y x))))
(* (+ x y) (+ x y)))