\left(x + y\right) \cdot \left(x + y\right)
\left(x + y\right) \cdot \left(x + y\right)
double f(double x, double y) {
double r538550 = x;
double r538551 = y;
double r538552 = r538550 + r538551;
double r538553 = r538552 * r538552;
return r538553;
}
double f(double x, double y) {
double r538554 = x;
double r538555 = y;
double r538556 = r538554 + r538555;
double r538557 = r538556 * r538556;
return r538557;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019196 +o rules:numerics
(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)))