\frac{\tan \left(\frac{x}{y \cdot 2}\right)}{\sin \left(\frac{x}{y \cdot 2}\right)}1
double f(double x, double y) {
double r35033444 = x;
double r35033445 = y;
double r35033446 = 2.0;
double r35033447 = r35033445 * r35033446;
double r35033448 = r35033444 / r35033447;
double r35033449 = tan(r35033448);
double r35033450 = sin(r35033448);
double r35033451 = r35033449 / r35033450;
return r35033451;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r35033452 = 1.0;
return r35033452;
}




Bits error versus x




Bits error versus y
Results
| Original | 36.2 |
|---|---|
| Target | 29.2 |
| Herbie | 28.7 |
Initial program 36.2
Taylor expanded around 0 28.7
Final simplification28.7
herbie shell --seed 2019170
(FPCore (x y)
:name "Diagrams.TwoD.Layout.CirclePacking:approxRadius from diagrams-contrib-1.3.0.5"
:herbie-target
(if (< y -1.2303690911306994e+114) 1.0 (if (< y -9.102852406811914e-222) (/ (sin (/ x (* y 2.0))) (* (sin (/ x (* y 2.0))) (log (exp (cos (/ x (* y 2.0))))))) 1.0))
(/ (tan (/ x (* y 2.0))) (sin (/ x (* y 2.0)))))