\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 r15118113 = x;
double r15118114 = 2.0;
double r15118115 = r15118113 * r15118114;
double r15118116 = r15118113 * r15118113;
double r15118117 = r15118115 + r15118116;
double r15118118 = y;
double r15118119 = r15118118 * r15118118;
double r15118120 = r15118117 + r15118119;
return r15118120;
}
double f(double x, double y) {
double r15118121 = y;
double r15118122 = x;
double r15118123 = 2.0;
double r15118124 = r15118123 + r15118122;
double r15118125 = r15118122 * r15118124;
double r15118126 = fma(r15118121, r15118121, r15118125);
return r15118126;
}




Bits error versus x




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