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 r567806 = x;
double r567807 = 1.0;
double r567808 = y;
double r567809 = r567808 * r567808;
double r567810 = r567807 + r567809;
double r567811 = r567806 * r567810;
return r567811;
}
double f(double x, double y) {
double r567812 = x;
double r567813 = 1.0;
double r567814 = r567812 * r567813;
double r567815 = y;
double r567816 = r567812 * r567815;
double r567817 = r567816 * r567815;
double r567818 = r567814 + r567817;
return r567818;
}




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