\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 r354120 = x;
double r354121 = 2.0;
double r354122 = r354120 * r354121;
double r354123 = r354120 * r354120;
double r354124 = r354122 + r354123;
double r354125 = y;
double r354126 = r354125 * r354125;
double r354127 = r354124 + r354126;
return r354127;
}
double f(double x, double y) {
double r354128 = y;
double r354129 = x;
double r354130 = 2.0;
double r354131 = r354130 + r354129;
double r354132 = r354129 * r354131;
double r354133 = fma(r354128, r354128, r354132);
return r354133;
}




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