\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 r326413 = x;
double r326414 = 2.0;
double r326415 = r326413 * r326414;
double r326416 = r326413 * r326413;
double r326417 = r326415 + r326416;
double r326418 = y;
double r326419 = r326418 * r326418;
double r326420 = r326417 + r326419;
return r326420;
}
double f(double x, double y) {
double r326421 = y;
double r326422 = x;
double r326423 = 2.0;
double r326424 = r326423 + r326422;
double r326425 = r326422 * r326424;
double r326426 = fma(r326421, r326421, r326425);
return r326426;
}




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