2 \cdot \left(x \cdot x + x \cdot y\right)
x \cdot \left(\left(x + y\right) \cdot 2\right)
double f(double x, double y) {
double r427644 = 2.0;
double r427645 = x;
double r427646 = r427645 * r427645;
double r427647 = y;
double r427648 = r427645 * r427647;
double r427649 = r427646 + r427648;
double r427650 = r427644 * r427649;
return r427650;
}
double f(double x, double y) {
double r427651 = x;
double r427652 = y;
double r427653 = r427651 + r427652;
double r427654 = 2.0;
double r427655 = r427653 * r427654;
double r427656 = r427651 * r427655;
return r427656;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
rmApplied pow10.0
Applied pow10.0
Applied pow10.0
Applied pow-prod-down0.0
Applied pow-prod-down0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019323
(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))))