\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 r33501920 = x;
double r33501921 = y;
double r33501922 = 2.0;
double r33501923 = r33501921 * r33501922;
double r33501924 = r33501920 / r33501923;
double r33501925 = tan(r33501924);
double r33501926 = sin(r33501924);
double r33501927 = r33501925 / r33501926;
return r33501927;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r33501928 = 1.0;
return r33501928;
}




Bits error versus x




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