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 r489494 = x;
double r489495 = 1.0;
double r489496 = y;
double r489497 = r489496 * r489496;
double r489498 = r489495 + r489497;
double r489499 = r489494 * r489498;
return r489499;
}
double f(double x, double y) {
double r489500 = x;
double r489501 = 1.0;
double r489502 = r489500 * r489501;
double r489503 = y;
double r489504 = r489500 * r489503;
double r489505 = r489504 * r489503;
double r489506 = r489502 + r489505;
return r489506;
}




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 2020027 +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))))