\left(-x \cdot \frac{1}{\tan B}\right) + \frac{1}{\sin B}\frac{1}{\sin B} - \frac{1 \cdot x}{\tan B}(FPCore (B x) :precision binary64 (+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))
(FPCore (B x) :precision binary64 (- (/ 1.0 (sin B)) (/ (* 1.0 x) (tan B))))
double code(double B, double x) {
return ((double) (((double) -(((double) (x * (1.0 / ((double) tan(B))))))) + (1.0 / ((double) sin(B)))));
}
double code(double B, double x) {
return ((double) ((1.0 / ((double) sin(B))) - (((double) (1.0 * x)) / ((double) tan(B)))));
}



Bits error versus B



Bits error versus x
Results
Initial program Error: 0.2 bits
SimplifiedError: 0.2 bits
rmApplied associate-*r/Error: 0.1 bits
Final simplificationError: 0.1 bits
herbie shell --seed 2020203
(FPCore (B x)
:name "VandenBroeck and Keller, Equation (24)"
:precision binary64
(+ (- (* x (/ 1.0 (tan B)))) (/ 1.0 (sin B))))