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 r437772 = x;
double r437773 = 1.0;
double r437774 = y;
double r437775 = r437774 * r437774;
double r437776 = r437773 + r437775;
double r437777 = r437772 * r437776;
return r437777;
}
double f(double x, double y) {
double r437778 = x;
double r437779 = 1.0;
double r437780 = r437778 * r437779;
double r437781 = y;
double r437782 = r437778 * r437781;
double r437783 = r437782 * r437781;
double r437784 = r437780 + r437783;
return r437784;
}




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
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2020089 +o rules:numerics
(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))))