\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 r614223 = x;
double r614224 = y;
double r614225 = r614223 + r614224;
double r614226 = r614225 * r614225;
return r614226;
}
double f(double x, double y) {
double r614227 = x;
double r614228 = 2.0;
double r614229 = r614228 * r614227;
double r614230 = y;
double r614231 = pow(r614230, r614228);
double r614232 = fma(r614229, r614230, r614231);
double r614233 = fma(r614227, r614227, r614232);
return r614233;
}




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