x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r22067415 = x;
double r22067416 = 1.0;
double r22067417 = y;
double r22067418 = r22067417 * r22067417;
double r22067419 = r22067416 + r22067418;
double r22067420 = r22067415 * r22067419;
return r22067420;
}
double f(double x, double y) {
double r22067421 = y;
double r22067422 = 1.0;
double r22067423 = fma(r22067421, r22067421, r22067422);
double r22067424 = x;
double r22067425 = r22067423 * r22067424;
return r22067425;
}




Bits error versus x




Bits error versus y
| Original | 5.1 |
|---|---|
| Target | 0.1 |
| Herbie | 5.1 |
Initial program 5.1
Simplified5.1
Final simplification5.1
herbie shell --seed 2019170 +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))))