x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r298488 = x;
double r298489 = 1.0;
double r298490 = y;
double r298491 = r298490 * r298490;
double r298492 = r298489 + r298491;
double r298493 = r298488 * r298492;
return r298493;
}
double f(double x, double y) {
double r298494 = y;
double r298495 = 1.0;
double r298496 = fma(r298494, r298494, r298495);
double r298497 = x;
double r298498 = r298496 * r298497;
return r298498;
}




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 2019209 +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))))