\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 r45540101 = x;
double r45540102 = y;
double r45540103 = 2.0;
double r45540104 = r45540102 * r45540103;
double r45540105 = r45540101 / r45540104;
double r45540106 = tan(r45540105);
double r45540107 = sin(r45540105);
double r45540108 = r45540106 / r45540107;
return r45540108;
}
double f(double __attribute__((unused)) x, double __attribute__((unused)) y) {
double r45540109 = 1.0;
return r45540109;
}




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)))))