\left(x + y\right) \cdot \left(x + y\right)
{x}^{2} + \left({y}^{2} + 2 \cdot \left(x \cdot y\right)\right)double f(double x, double y) {
double r811121 = x;
double r811122 = y;
double r811123 = r811121 + r811122;
double r811124 = r811123 * r811123;
return r811124;
}
double f(double x, double y) {
double r811125 = x;
double r811126 = 2.0;
double r811127 = pow(r811125, r811126);
double r811128 = y;
double r811129 = pow(r811128, r811126);
double r811130 = r811125 * r811128;
double r811131 = r811126 * r811130;
double r811132 = r811129 + r811131;
double r811133 = r811127 + r811132;
return r811133;
}




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-in0.0
Simplified0.0
Simplified0.0
Taylor expanded around 0 0.0
Final simplification0.0
herbie shell --seed 2020060
(FPCore (x y)
:name "Examples.Basics.BasicTests:f3 from sbv-4.4"
:precision binary64
:herbie-target
(+ (* x x) (+ (* y y) (* 2 (* y x))))
(* (+ x y) (+ x y)))