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 r290532 = x;
double r290533 = 1.0;
double r290534 = y;
double r290535 = r290534 * r290534;
double r290536 = r290533 + r290535;
double r290537 = r290532 * r290536;
return r290537;
}
double f(double x, double y) {
double r290538 = x;
double r290539 = 1.0;
double r290540 = r290538 * r290539;
double r290541 = y;
double r290542 = r290538 * r290541;
double r290543 = r290542 * r290541;
double r290544 = r290540 + r290543;
return r290544;
}




Bits error versus x




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