\left(x \cdot 2 + x \cdot x\right) + y \cdot y
x \cdot 2 + \mathsf{fma}\left(y, y, x \cdot x\right)double f(double x, double y) {
double r329746 = x;
double r329747 = 2.0;
double r329748 = r329746 * r329747;
double r329749 = r329746 * r329746;
double r329750 = r329748 + r329749;
double r329751 = y;
double r329752 = r329751 * r329751;
double r329753 = r329750 + r329752;
return r329753;
}
double f(double x, double y) {
double r329754 = x;
double r329755 = 2.0;
double r329756 = r329754 * r329755;
double r329757 = y;
double r329758 = r329754 * r329754;
double r329759 = fma(r329757, r329757, r329758);
double r329760 = r329756 + r329759;
return r329760;
}




Bits error versus x




Bits error versus y
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied associate-+l+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019305 +o rules:numerics
(FPCore (x y)
:name "Numeric.Log:$clog1p from log-domain-0.10.2.1, A"
:precision binary64
:herbie-target
(+ (* y y) (+ (* 2 x) (* x x)))
(+ (+ (* x 2) (* x x)) (* y y)))