\left(x \cdot 2 + x \cdot x\right) + y \cdot y
\mathsf{fma}\left(y, y, x \cdot \left(2 + x\right)\right)double f(double x, double y) {
double r463553 = x;
double r463554 = 2.0;
double r463555 = r463553 * r463554;
double r463556 = r463553 * r463553;
double r463557 = r463555 + r463556;
double r463558 = y;
double r463559 = r463558 * r463558;
double r463560 = r463557 + r463559;
return r463560;
}
double f(double x, double y) {
double r463561 = y;
double r463562 = x;
double r463563 = 2.0;
double r463564 = r463563 + r463562;
double r463565 = r463562 * r463564;
double r463566 = fma(r463561, r463561, r463565);
return r463566;
}




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