\left(x + y\right) \cdot \left(x + y\right)
x \cdot \left(y + x\right) + \mathsf{fma}\left(y, y, x \cdot y\right)double f(double x, double y) {
double r26913629 = x;
double r26913630 = y;
double r26913631 = r26913629 + r26913630;
double r26913632 = r26913631 * r26913631;
return r26913632;
}
double f(double x, double y) {
double r26913633 = x;
double r26913634 = y;
double r26913635 = r26913634 + r26913633;
double r26913636 = r26913633 * r26913635;
double r26913637 = r26913633 * r26913634;
double r26913638 = fma(r26913634, r26913634, r26913637);
double r26913639 = r26913636 + r26913638;
return r26913639;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-rgt-in0.0
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019165 +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)))