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 r675500 = 2.0;
double r675501 = x;
double r675502 = r675501 * r675501;
double r675503 = y;
double r675504 = r675501 * r675503;
double r675505 = r675502 - r675504;
double r675506 = r675500 * r675505;
return r675506;
}
double f(double x, double y) {
double r675507 = 2.0;
double r675508 = x;
double r675509 = r675507 * r675508;
double r675510 = y;
double r675511 = r675508 - r675510;
double r675512 = r675509 * r675511;
return r675512;
}




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