\left(x \cdot x + \left(x \cdot 2\right) \cdot y\right) + y \cdot y
y \cdot \left(y + 2 \cdot x\right) + x \cdot x
double f(double x, double y) {
double r764148 = x;
double r764149 = r764148 * r764148;
double r764150 = 2.0;
double r764151 = r764148 * r764150;
double r764152 = y;
double r764153 = r764151 * r764152;
double r764154 = r764149 + r764153;
double r764155 = r764152 * r764152;
double r764156 = r764154 + r764155;
return r764156;
}
double f(double x, double y) {
double r764157 = y;
double r764158 = 2.0;
double r764159 = x;
double r764160 = r764158 * r764159;
double r764161 = r764157 + r764160;
double r764162 = r764157 * r764161;
double r764163 = r764159 * r764159;
double r764164 = r764162 + r764163;
return r764164;
}




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 distribute-lft-in0.0
Applied associate-+r+0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020046
(FPCore (x y)
:name "Examples.Basics.ProofTests:f4 from sbv-4.4"
:precision binary64
:herbie-target
(+ (* x x) (+ (* y y) (* (* x y) 2)))
(+ (+ (* x x) (* (* x 2) y)) (* y y)))