x \cdot \left(1 + y \cdot y\right)
1 \cdot x + \left(x \cdot y\right) \cdot y
double f(double x, double y) {
double r511469 = x;
double r511470 = 1.0;
double r511471 = y;
double r511472 = r511471 * r511471;
double r511473 = r511470 + r511472;
double r511474 = r511469 * r511473;
return r511474;
}
double f(double x, double y) {
double r511475 = 1.0;
double r511476 = x;
double r511477 = r511475 * r511476;
double r511478 = y;
double r511479 = r511476 * r511478;
double r511480 = r511479 * r511478;
double r511481 = r511477 + r511480;
return r511481;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.3 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.3
rmApplied distribute-lft-in5.3
Simplified5.3
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2020045
(FPCore (x y)
:name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
:precision binary64
:herbie-target
(+ x (* (* x y) y))
(* x (+ 1 (* y y))))