x \cdot \left(1 + y \cdot y\right)
x \cdot 1 + \left(x \cdot y\right) \cdot y
double f(double x, double y) {
double r487094 = x;
double r487095 = 1.0;
double r487096 = y;
double r487097 = r487096 * r487096;
double r487098 = r487095 + r487097;
double r487099 = r487094 * r487098;
return r487099;
}
double f(double x, double y) {
double r487100 = x;
double r487101 = 1.0;
double r487102 = r487100 * r487101;
double r487103 = y;
double r487104 = r487100 * r487103;
double r487105 = r487104 * r487103;
double r487106 = r487102 + r487105;
return r487106;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.7 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.7
rmApplied distribute-lft-in5.7
rmApplied associate-*r*0.1
Final simplification0.1
herbie shell --seed 2020020
(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))))