\left(x + y\right) \cdot \left(x + y\right)
\left(x + y\right) \cdot x + \left(x + y\right) \cdot y
double f(double x, double y) {
double r382953 = x;
double r382954 = y;
double r382955 = r382953 + r382954;
double r382956 = r382955 * r382955;
return r382956;
}
double f(double x, double y) {
double r382957 = x;
double r382958 = y;
double r382959 = r382957 + r382958;
double r382960 = r382959 * r382957;
double r382961 = r382959 * r382958;
double r382962 = r382960 + r382961;
return r382962;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Final simplification0.0
herbie shell --seed 2019323
(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)))