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 r369492 = x;
double r369493 = 1.0;
double r369494 = y;
double r369495 = r369494 * r369494;
double r369496 = r369493 + r369495;
double r369497 = r369492 * r369496;
return r369497;
}
double f(double x, double y) {
double r369498 = x;
double r369499 = 1.0;
double r369500 = r369498 * r369499;
double r369501 = y;
double r369502 = r369498 * r369501;
double r369503 = r369502 * r369501;
double r369504 = r369500 + r369503;
return r369504;
}




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 2019306
(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))))