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 r525401 = x;
double r525402 = 1.0;
double r525403 = y;
double r525404 = r525403 * r525403;
double r525405 = r525402 + r525404;
double r525406 = r525401 * r525405;
return r525406;
}
double f(double x, double y) {
double r525407 = x;
double r525408 = 1.0;
double r525409 = r525407 * r525408;
double r525410 = y;
double r525411 = r525407 * r525410;
double r525412 = r525411 * r525410;
double r525413 = r525409 + r525412;
return r525413;
}




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.4
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2019353
(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))))