x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r331644 = x;
double r331645 = 1.0;
double r331646 = y;
double r331647 = r331646 * r331646;
double r331648 = r331645 + r331647;
double r331649 = r331644 * r331648;
return r331649;
}
double f(double x, double y) {
double r331650 = y;
double r331651 = 1.0;
double r331652 = fma(r331650, r331650, r331651);
double r331653 = x;
double r331654 = r331652 * r331653;
return r331654;
}




Bits error versus x




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