\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 r539418 = x;
double r539419 = 2.0;
double r539420 = r539418 * r539419;
double r539421 = r539418 * r539418;
double r539422 = r539420 + r539421;
double r539423 = y;
double r539424 = r539423 * r539423;
double r539425 = r539422 + r539424;
return r539425;
}
double f(double x, double y) {
double r539426 = y;
double r539427 = x;
double r539428 = 2.0;
double r539429 = r539428 + r539427;
double r539430 = r539427 * r539429;
double r539431 = fma(r539426, r539426, r539430);
return r539431;
}




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