\left(x + y\right) \cdot \left(x + y\right)
\left(y \cdot \left(2 \cdot x\right) + y \cdot y\right) + x \cdot x
double f(double x, double y) {
double r435147 = x;
double r435148 = y;
double r435149 = r435147 + r435148;
double r435150 = r435149 * r435149;
return r435150;
}
double f(double x, double y) {
double r435151 = y;
double r435152 = 2.0;
double r435153 = x;
double r435154 = r435152 * r435153;
double r435155 = r435151 * r435154;
double r435156 = r435151 * r435151;
double r435157 = r435155 + r435156;
double r435158 = r435153 * r435153;
double r435159 = r435157 + r435158;
return r435159;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Taylor expanded around 0 0.0
Simplified0.0
rmApplied distribute-lft-in0.0
Final simplification0.0
herbie shell --seed 2019326
(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)))