\left(x + y\right) \cdot \left(x + y\right)
y \cdot y + \left(x \cdot x + \left(y \cdot 2\right) \cdot x\right)
double f(double x, double y) {
double r697031 = x;
double r697032 = y;
double r697033 = r697031 + r697032;
double r697034 = r697033 * r697033;
return r697034;
}
double f(double x, double y) {
double r697035 = y;
double r697036 = r697035 * r697035;
double r697037 = x;
double r697038 = r697037 * r697037;
double r697039 = 2.0;
double r697040 = r697035 * r697039;
double r697041 = r697040 * r697037;
double r697042 = r697038 + r697041;
double r697043 = r697036 + r697042;
return r697043;
}




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
Applied associate-+l+0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020042
(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)))