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 r389824 = 2.0;
double r389825 = x;
double r389826 = r389825 * r389825;
double r389827 = y;
double r389828 = r389825 * r389827;
double r389829 = r389826 + r389828;
double r389830 = r389824 * r389829;
return r389830;
}
double f(double x, double y) {
double r389831 = x;
double r389832 = y;
double r389833 = r389831 + r389832;
double r389834 = 2.0;
double r389835 = r389833 * r389834;
double r389836 = r389831 * r389835;
return r389836;
}




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 2019306
(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))))