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 r345084 = 2.0;
double r345085 = x;
double r345086 = r345085 * r345085;
double r345087 = y;
double r345088 = r345085 * r345087;
double r345089 = r345086 - r345088;
double r345090 = r345084 * r345089;
return r345090;
}
double f(double x, double y) {
double r345091 = 2.0;
double r345092 = x;
double r345093 = r345091 * r345092;
double r345094 = y;
double r345095 = r345092 - r345094;
double r345096 = r345093 * r345095;
return r345096;
}




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