\frac{\tan \left(\frac{x}{y \cdot 2}\right)}{\sin \left(\frac{x}{y \cdot 2}\right)}\frac{1}{\sqrt[3]{\left(\cos \left(\frac{x}{2 \cdot y}\right) \cdot \cos \left(\frac{x}{2 \cdot y}\right)\right) \cdot \cos \left(\frac{x}{2 \cdot y}\right)}}double f(double x, double y) {
double r33137884 = x;
double r33137885 = y;
double r33137886 = 2.0;
double r33137887 = r33137885 * r33137886;
double r33137888 = r33137884 / r33137887;
double r33137889 = tan(r33137888);
double r33137890 = sin(r33137888);
double r33137891 = r33137889 / r33137890;
return r33137891;
}
double f(double x, double y) {
double r33137892 = 1.0;
double r33137893 = x;
double r33137894 = 2.0;
double r33137895 = y;
double r33137896 = r33137894 * r33137895;
double r33137897 = r33137893 / r33137896;
double r33137898 = cos(r33137897);
double r33137899 = r33137898 * r33137898;
double r33137900 = r33137899 * r33137898;
double r33137901 = cbrt(r33137900);
double r33137902 = r33137892 / r33137901;
return r33137902;
}




Bits error versus x




Bits error versus y
Results
| Original | 35.7 |
|---|---|
| Target | 28.8 |
| Herbie | 28.4 |
Initial program 35.7
rmApplied tan-quot35.7
Applied associate-/l/35.7
rmApplied clear-num35.7
Simplified28.4
rmApplied add-cbrt-cube28.4
Final simplification28.4
herbie shell --seed 2019174
(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)))))