x \cdot \left(1 + y \cdot y\right)
1 \cdot x + y \cdot \left(x \cdot y\right)
double f(double x, double y) {
double r639054 = x;
double r639055 = 1.0;
double r639056 = y;
double r639057 = r639056 * r639056;
double r639058 = r639055 + r639057;
double r639059 = r639054 * r639058;
return r639059;
}
double f(double x, double y) {
double r639060 = 1.0;
double r639061 = x;
double r639062 = r639060 * r639061;
double r639063 = y;
double r639064 = r639061 * r639063;
double r639065 = r639063 * r639064;
double r639066 = r639062 + r639065;
return r639066;
}




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
Simplified5.3
rmApplied unpow25.3
Applied associate-*l*0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020043
(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))))