\left(x + y\right) \cdot \left(x + y\right)
\left(y \cdot \left(2 \cdot x\right) + y \cdot y\right) + x \cdot x
double f(double x, double y) {
double r552059 = x;
double r552060 = y;
double r552061 = r552059 + r552060;
double r552062 = r552061 * r552061;
return r552062;
}
double f(double x, double y) {
double r552063 = y;
double r552064 = 2.0;
double r552065 = x;
double r552066 = r552064 * r552065;
double r552067 = r552063 * r552066;
double r552068 = r552063 * r552063;
double r552069 = r552067 + r552068;
double r552070 = r552065 * r552065;
double r552071 = r552069 + r552070;
return r552071;
}




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-lft-in0.0
Final simplification0.0
herbie shell --seed 2019326
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:precision binary64
:herbie-target
(+ (* x x) (+ (* y y) (* 2 (* y x))))
(* (+ x y) (+ x y)))