2 \cdot \left(x \cdot x + x \cdot y\right)
\left(2 \cdot x\right) \cdot \left(x + y\right)
double f(double x, double y) {
double r534277 = 2.0;
double r534278 = x;
double r534279 = r534278 * r534278;
double r534280 = y;
double r534281 = r534278 * r534280;
double r534282 = r534279 + r534281;
double r534283 = r534277 * r534282;
return r534283;
}
double f(double x, double y) {
double r534284 = 2.0;
double r534285 = x;
double r534286 = r534284 * r534285;
double r534287 = y;
double r534288 = r534285 + r534287;
double r534289 = r534286 * r534288;
return r534289;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-out0.0
Applied associate-*r*0.0
Final simplification0.0
herbie shell --seed 2020018
(FPCore (x y)
:name "Linear.Matrix:fromQuaternion from linear-1.19.1.3, B"
:precision binary64
:herbie-target
(* (* x 2) (+ x y))
(* 2 (+ (* x x) (* x y))))