x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r20060029 = x;
double r20060030 = 1.0;
double r20060031 = y;
double r20060032 = r20060031 * r20060031;
double r20060033 = r20060030 + r20060032;
double r20060034 = r20060029 * r20060033;
return r20060034;
}
double f(double x, double y) {
double r20060035 = y;
double r20060036 = 1.0;
double r20060037 = fma(r20060035, r20060035, r20060036);
double r20060038 = x;
double r20060039 = r20060037 * r20060038;
return r20060039;
}




Bits error versus x




Bits error versus y
| Original | 5.2 |
|---|---|
| Target | 0.1 |
| Herbie | 5.2 |
Initial program 5.2
Simplified5.2
Final simplification5.2
herbie shell --seed 2019169 +o rules:numerics
(FPCore (x y)
:name "Numeric.Integration.TanhSinh:everywhere from integration-0.2.1"
:herbie-target
(+ x (* (* x y) y))
(* x (+ 1.0 (* y y))))