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 r461211 = 2.0;
double r461212 = x;
double r461213 = r461212 * r461212;
double r461214 = y;
double r461215 = r461212 * r461214;
double r461216 = r461213 - r461215;
double r461217 = r461211 * r461216;
return r461217;
}
double f(double x, double y) {
double r461218 = 2.0;
double r461219 = x;
double r461220 = r461218 * r461219;
double r461221 = y;
double r461222 = r461219 - r461221;
double r461223 = r461220 * r461222;
return r461223;
}




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