\left(-x \cdot \frac{1}{\tan B}\right) + \frac{1}{\sin B}\frac{1}{\sin B} - \frac{x \cdot 1}{\tan B}double f(double B, double x) {
double r13234 = x;
double r13235 = 1.0;
double r13236 = B;
double r13237 = tan(r13236);
double r13238 = r13235 / r13237;
double r13239 = r13234 * r13238;
double r13240 = -r13239;
double r13241 = sin(r13236);
double r13242 = r13235 / r13241;
double r13243 = r13240 + r13242;
return r13243;
}
double f(double B, double x) {
double r13244 = 1.0;
double r13245 = B;
double r13246 = sin(r13245);
double r13247 = r13244 / r13246;
double r13248 = x;
double r13249 = r13248 * r13244;
double r13250 = tan(r13245);
double r13251 = r13249 / r13250;
double r13252 = r13247 - r13251;
return r13252;
}



Bits error versus B



Bits error versus x
Results
Initial program 0.2
Simplified0.2
rmApplied associate-*r/0.1
rmApplied clear-num0.2
rmApplied *-un-lft-identity0.2
Applied *-un-lft-identity0.2
Applied distribute-lft-out--0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019354
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))))