x \cdot \left(1 + y \cdot y\right)
1 \cdot x + y \cdot \left(y \cdot x\right)
double f(double x, double y) {
double r359468 = x;
double r359469 = 1.0;
double r359470 = y;
double r359471 = r359470 * r359470;
double r359472 = r359469 + r359471;
double r359473 = r359468 * r359472;
return r359473;
}
double f(double x, double y) {
double r359474 = 1.0;
double r359475 = x;
double r359476 = r359474 * r359475;
double r359477 = y;
double r359478 = r359477 * r359475;
double r359479 = r359477 * r359478;
double r359480 = r359476 + r359479;
return r359480;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.4 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.4
rmApplied distribute-rgt-in5.4
rmApplied associate-*l*0.1
Final simplification0.1
herbie shell --seed 2019235
(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))))