x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r514406 = x;
double r514407 = 1.0;
double r514408 = y;
double r514409 = r514408 * r514408;
double r514410 = r514407 + r514409;
double r514411 = r514406 * r514410;
return r514411;
}
double f(double x, double y) {
double r514412 = y;
double r514413 = 1.0;
double r514414 = fma(r514412, r514412, r514413);
double r514415 = x;
double r514416 = r514414 * r514415;
return r514416;
}




Bits error versus x




Bits error versus y
| Original | 5.0 |
|---|---|
| Target | 0.1 |
| Herbie | 5.0 |
Initial program 5.0
Simplified5.0
Final simplification5.0
herbie shell --seed 2019350 +o rules:numerics
(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))))