\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(y, \mathsf{fma}\left(x, 2, y\right), x \cdot x\right)double f(double x, double y) {
double r432813 = x;
double r432814 = y;
double r432815 = r432813 + r432814;
double r432816 = r432815 * r432815;
return r432816;
}
double f(double x, double y) {
double r432817 = y;
double r432818 = x;
double r432819 = 2.0;
double r432820 = fma(r432818, r432819, r432817);
double r432821 = r432818 * r432818;
double r432822 = fma(r432817, r432820, r432821);
return r432822;
}




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 2019303 +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)))