\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 r32013375 = x;
double r32013376 = y;
double r32013377 = 2.0;
double r32013378 = r32013376 * r32013377;
double r32013379 = r32013375 / r32013378;
double r32013380 = tan(r32013379);
double r32013381 = sin(r32013379);
double r32013382 = r32013380 / r32013381;
return r32013382;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r32013383 = 1.0;
return r32013383;
}




Bits error versus x




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