\left(-x \cdot \frac{1}{\tan B}\right) + \frac{1}{\sin B}\frac{\frac{1 \cdot \left(\tan B - \sin B \cdot x\right)}{\sin B}}{\tan B}double f(double B, double x) {
double r16018 = x;
double r16019 = 1.0;
double r16020 = B;
double r16021 = tan(r16020);
double r16022 = r16019 / r16021;
double r16023 = r16018 * r16022;
double r16024 = -r16023;
double r16025 = sin(r16020);
double r16026 = r16019 / r16025;
double r16027 = r16024 + r16026;
return r16027;
}
double f(double B, double x) {
double r16028 = 1.0;
double r16029 = B;
double r16030 = tan(r16029);
double r16031 = sin(r16029);
double r16032 = x;
double r16033 = r16031 * r16032;
double r16034 = r16030 - r16033;
double r16035 = r16028 * r16034;
double r16036 = r16035 / r16031;
double r16037 = r16036 / r16030;
return r16037;
}



Bits error versus B



Bits error versus x
Results
Initial program 0.2
Simplified0.2
rmApplied associate-*r/0.2
Applied frac-sub11.1
Simplified11.1
rmApplied associate-/r*0.2
Final simplification0.2
herbie shell --seed 2020033
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1 (tan B)))) (/ 1 (sin B))))