\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 r32411630 = x;
double r32411631 = y;
double r32411632 = 2.0;
double r32411633 = r32411631 * r32411632;
double r32411634 = r32411630 / r32411633;
double r32411635 = tan(r32411634);
double r32411636 = sin(r32411634);
double r32411637 = r32411635 / r32411636;
return r32411637;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r32411638 = 1.0;
return r32411638;
}




Bits error versus x




Bits error versus y
Results
| Original | 35.6 |
|---|---|
| Target | 28.9 |
| Herbie | 28.4 |
Initial program 35.6
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)))))