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 r572286 = 2.0;
double r572287 = x;
double r572288 = r572287 * r572287;
double r572289 = y;
double r572290 = r572287 * r572289;
double r572291 = r572288 - r572290;
double r572292 = r572286 * r572291;
return r572292;
}
double f(double x, double y) {
double r572293 = 2.0;
double r572294 = x;
double r572295 = r572293 * r572294;
double r572296 = y;
double r572297 = r572294 - r572296;
double r572298 = r572295 * r572297;
return r572298;
}




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-out--0.0
Applied associate-*r*0.0
Final simplification0.0
herbie shell --seed 2020025
(FPCore (x y)
:name "Linear.Matrix:fromQuaternion from linear-1.19.1.3, A"
:precision binary64
:herbie-target
(* (* x 2) (- x y))
(* 2 (- (* x x) (* x y))))