\left(x + y\right) \cdot \left(x + y\right)
\mathsf{fma}\left(x, x, y \cdot \mathsf{fma}\left(x, 2, y\right)\right)double f(double x, double y) {
double r480402 = x;
double r480403 = y;
double r480404 = r480402 + r480403;
double r480405 = r480404 * r480404;
return r480405;
}
double f(double x, double y) {
double r480406 = x;
double r480407 = y;
double r480408 = 2.0;
double r480409 = fma(r480406, r480408, r480407);
double r480410 = r480407 * r480409;
double r480411 = fma(r480406, r480406, r480410);
return r480411;
}




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