x \cdot \left(1 + y \cdot y\right)
x \cdot 1 + \left(x \cdot y\right) \cdot y
double f(double x, double y) {
double r682662 = x;
double r682663 = 1.0;
double r682664 = y;
double r682665 = r682664 * r682664;
double r682666 = r682663 + r682665;
double r682667 = r682662 * r682666;
return r682667;
}
double f(double x, double y) {
double r682668 = x;
double r682669 = 1.0;
double r682670 = r682668 * r682669;
double r682671 = y;
double r682672 = r682668 * r682671;
double r682673 = r682672 * r682671;
double r682674 = r682670 + r682673;
return r682674;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.5 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.5
rmApplied distribute-lft-in5.5
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2020057
(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))))