x \cdot \left(1 + y \cdot y\right)
y \cdot \left(y \cdot x\right) + 1 \cdot x
double f(double x, double y) {
double r28707124 = x;
double r28707125 = 1.0;
double r28707126 = y;
double r28707127 = r28707126 * r28707126;
double r28707128 = r28707125 + r28707127;
double r28707129 = r28707124 * r28707128;
return r28707129;
}
double f(double x, double y) {
double r28707130 = y;
double r28707131 = x;
double r28707132 = r28707130 * r28707131;
double r28707133 = r28707130 * r28707132;
double r28707134 = 1.0;
double r28707135 = r28707134 * r28707131;
double r28707136 = r28707133 + r28707135;
return r28707136;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.4 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.4
rmApplied add-sqr-sqrt5.5
Applied add-sqr-sqrt34.6
Applied unswap-sqr34.6
Taylor expanded around inf 5.4
Simplified0.1
Final simplification0.1
herbie shell --seed 2019171
(FPCore (x y)
:name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
:herbie-target
(+ x (* (* x y) y))
(* x (+ 1.0 (* y y))))