\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, \mathsf{fma}\left(2 \cdot x, y, {y}^{2}\right)\right)double f(double x, double y) {
double r580538 = x;
double r580539 = y;
double r580540 = r580538 + r580539;
double r580541 = r580540 * r580540;
return r580541;
}
double f(double x, double y) {
double r580542 = x;
double r580543 = 2.0;
double r580544 = r580543 * r580542;
double r580545 = y;
double r580546 = pow(r580545, r580543);
double r580547 = fma(r580544, r580545, r580546);
double r580548 = fma(r580542, r580542, r580547);
return r580548;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019353 +o rules:numerics
(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)))