x \cdot \left(1 + y \cdot y\right)
x \cdot 1 + \left(y \cdot x\right) \cdot y
double f(double x, double y) {
double r546827 = x;
double r546828 = 1.0;
double r546829 = y;
double r546830 = r546829 * r546829;
double r546831 = r546828 + r546830;
double r546832 = r546827 * r546831;
return r546832;
}
double f(double x, double y) {
double r546833 = x;
double r546834 = 1.0;
double r546835 = r546833 * r546834;
double r546836 = y;
double r546837 = r546836 * r546833;
double r546838 = r546837 * r546836;
double r546839 = r546835 + r546838;
return r546839;
}




Bits error versus x




Bits error versus y
Results
| Original | 5.3 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 5.3
rmApplied distribute-lft-in5.3
Simplified5.3
rmApplied pow15.3
Applied pow15.3
Applied pow15.3
Applied pow-prod-down5.3
Applied pow-prod-down5.3
Simplified0.1
Final simplification0.1
herbie shell --seed 2020047 +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))))