\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 r433851 = x;
double r433852 = y;
double r433853 = r433851 + r433852;
double r433854 = r433853 * r433853;
return r433854;
}
double f(double x, double y) {
double r433855 = x;
double r433856 = y;
double r433857 = 2.0;
double r433858 = fma(r433855, r433857, r433856);
double r433859 = r433856 * r433858;
double r433860 = fma(r433855, r433855, r433859);
return r433860;
}




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
Taylor expanded around 0 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019323 +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)))