\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 r704977 = x;
double r704978 = y;
double r704979 = r704977 + r704978;
double r704980 = r704979 * r704979;
return r704980;
}
double f(double x, double y) {
double r704981 = x;
double r704982 = 2.0;
double r704983 = r704982 * r704981;
double r704984 = y;
double r704985 = pow(r704984, r704982);
double r704986 = fma(r704983, r704984, r704985);
double r704987 = fma(r704981, r704981, r704986);
return r704987;
}




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