\frac{\tan \left(\frac{x}{y \cdot 2.0}\right)}{\sin \left(\frac{x}{y \cdot 2.0}\right)}1.0
double f(double x, double y) {
double r33186992 = x;
double r33186993 = y;
double r33186994 = 2.0;
double r33186995 = r33186993 * r33186994;
double r33186996 = r33186992 / r33186995;
double r33186997 = tan(r33186996);
double r33186998 = sin(r33186996);
double r33186999 = r33186997 / r33186998;
return r33186999;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r33187000 = 1.0;
return r33187000;
}




Bits error versus x




Bits error versus y
Results
| Original | 35.5 |
|---|---|
| Target | 29.2 |
| Herbie | 28.7 |
Initial program 35.5
Taylor expanded around 0 28.7
Final simplification28.7
herbie shell --seed 2019164
(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)))))