\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 r765409 = x;
double r765410 = y;
double r765411 = r765409 + r765410;
double r765412 = r765411 * r765411;
return r765412;
}
double f(double x, double y) {
double r765413 = x;
double r765414 = 2.0;
double r765415 = pow(r765413, r765414);
double r765416 = y;
double r765417 = pow(r765416, r765414);
double r765418 = r765413 * r765416;
double r765419 = r765414 * r765418;
double r765420 = r765417 + r765419;
double r765421 = r765415 + r765420;
return r765421;
}




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