x \cdot \left(1 + y \cdot y\right)
\mathsf{fma}\left(y, y, 1\right) \cdot xdouble f(double x, double y) {
double r369819 = x;
double r369820 = 1.0;
double r369821 = y;
double r369822 = r369821 * r369821;
double r369823 = r369820 + r369822;
double r369824 = r369819 * r369823;
return r369824;
}
double f(double x, double y) {
double r369825 = y;
double r369826 = 1.0;
double r369827 = fma(r369825, r369825, r369826);
double r369828 = x;
double r369829 = r369827 * r369828;
return r369829;
}




Bits error versus x




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