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 r475070 = 2.0;
double r475071 = x;
double r475072 = r475071 * r475071;
double r475073 = y;
double r475074 = r475071 * r475073;
double r475075 = r475072 + r475074;
double r475076 = r475070 * r475075;
return r475076;
}
double f(double x, double y) {
double r475077 = x;
double r475078 = y;
double r475079 = r475077 + r475078;
double r475080 = 2.0;
double r475081 = r475079 * r475080;
double r475082 = r475077 * r475081;
return r475082;
}




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