\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, \mathsf{fma}\left(x \cdot 2, y, y \cdot y\right)\right)double f(double x, double y) {
double r26687464 = x;
double r26687465 = y;
double r26687466 = r26687464 + r26687465;
double r26687467 = r26687466 * r26687466;
return r26687467;
}
double f(double x, double y) {
double r26687468 = x;
double r26687469 = 2.0;
double r26687470 = r26687468 * r26687469;
double r26687471 = y;
double r26687472 = r26687471 * r26687471;
double r26687473 = fma(r26687470, r26687471, r26687472);
double r26687474 = fma(r26687468, r26687468, r26687473);
return r26687474;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019163 +o rules:numerics
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:herbie-target
(+ (* x x) (+ (* y y) (* 2 (* y x))))
(* (+ x y) (+ x y)))