x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r14908143 = x;
double r14908144 = 1.0;
double r14908145 = y;
double r14908146 = r14908145 * r14908145;
double r14908147 = r14908144 + r14908146;
double r14908148 = r14908143 * r14908147;
return r14908148;
}
double f(double x, double y) {
double r14908149 = y;
double r14908150 = 1.0;
double r14908151 = fma(r14908149, r14908149, r14908150);
double r14908152 = x;
double r14908153 = r14908151 * r14908152;
return r14908153;
}




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