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 r374893 = x;
double r374894 = 1.0;
double r374895 = y;
double r374896 = r374895 * r374895;
double r374897 = r374894 + r374896;
double r374898 = r374893 * r374897;
return r374898;
}
double f(double x, double y) {
double r374899 = x;
double r374900 = 1.0;
double r374901 = r374899 * r374900;
double r374902 = y;
double r374903 = r374899 * r374902;
double r374904 = r374903 * r374902;
double r374905 = r374901 + r374904;
return r374905;
}




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