\left(-x \cdot \frac{1}{\tan B}\right) + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\begin{array}{l}
\mathbf{if}\;F \le -6.55470074160599867 \cdot 10^{42}:\\
\;\;\;\;\left(-\frac{x \cdot 1}{\tan B}\right) + \left(1 \cdot \frac{1}{\sin B \cdot {F}^{2}} - \frac{1}{\sin B}\right)\\
\mathbf{elif}\;F \le 25125956.1558114626:\\
\;\;\;\;\left(-\frac{x \cdot 1}{\sin B} \cdot \cos B\right) + \frac{F}{\sin B \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(\frac{1}{2}\right)}}\\
\mathbf{else}:\\
\;\;\;\;\left(-\frac{x \cdot 1}{\tan B}\right) + \left(\frac{1}{\sin B} - 1 \cdot \frac{1}{\sin B \cdot {F}^{2}}\right)\\
\end{array}double f(double F, double B, double x) {
double r38245 = x;
double r38246 = 1.0;
double r38247 = B;
double r38248 = tan(r38247);
double r38249 = r38246 / r38248;
double r38250 = r38245 * r38249;
double r38251 = -r38250;
double r38252 = F;
double r38253 = sin(r38247);
double r38254 = r38252 / r38253;
double r38255 = r38252 * r38252;
double r38256 = 2.0;
double r38257 = r38255 + r38256;
double r38258 = r38256 * r38245;
double r38259 = r38257 + r38258;
double r38260 = r38246 / r38256;
double r38261 = -r38260;
double r38262 = pow(r38259, r38261);
double r38263 = r38254 * r38262;
double r38264 = r38251 + r38263;
return r38264;
}
double f(double F, double B, double x) {
double r38265 = F;
double r38266 = -6.554700741605999e+42;
bool r38267 = r38265 <= r38266;
double r38268 = x;
double r38269 = 1.0;
double r38270 = r38268 * r38269;
double r38271 = B;
double r38272 = tan(r38271);
double r38273 = r38270 / r38272;
double r38274 = -r38273;
double r38275 = 1.0;
double r38276 = sin(r38271);
double r38277 = 2.0;
double r38278 = pow(r38265, r38277);
double r38279 = r38276 * r38278;
double r38280 = r38275 / r38279;
double r38281 = r38269 * r38280;
double r38282 = r38275 / r38276;
double r38283 = r38281 - r38282;
double r38284 = r38274 + r38283;
double r38285 = 25125956.155811463;
bool r38286 = r38265 <= r38285;
double r38287 = r38270 / r38276;
double r38288 = cos(r38271);
double r38289 = r38287 * r38288;
double r38290 = -r38289;
double r38291 = r38265 * r38265;
double r38292 = 2.0;
double r38293 = r38291 + r38292;
double r38294 = r38292 * r38268;
double r38295 = r38293 + r38294;
double r38296 = r38269 / r38292;
double r38297 = pow(r38295, r38296);
double r38298 = r38276 * r38297;
double r38299 = r38265 / r38298;
double r38300 = r38290 + r38299;
double r38301 = r38282 - r38281;
double r38302 = r38274 + r38301;
double r38303 = r38286 ? r38300 : r38302;
double r38304 = r38267 ? r38284 : r38303;
return r38304;
}



Bits error versus F



Bits error versus B



Bits error versus x
Results
if F < -6.554700741605999e+42Initial program 27.2
rmApplied pow-neg27.2
Applied frac-times20.9
Simplified20.9
rmApplied associate-*r/20.8
Taylor expanded around -inf 0.2
if -6.554700741605999e+42 < F < 25125956.155811463Initial program 0.5
rmApplied pow-neg0.5
Applied frac-times0.4
Simplified0.4
rmApplied associate-*r/0.3
rmApplied tan-quot0.3
Applied associate-/r/0.3
if 25125956.155811463 < F Initial program 23.8
rmApplied pow-neg23.8
Applied frac-times18.3
Simplified18.3
rmApplied associate-*r/18.3
Taylor expanded around inf 0.2
Final simplification0.2
herbie shell --seed 2020064
(FPCore (F B x)
:name "VandenBroeck and Keller, Equation (23)"
:precision binary64
(+ (- (* x (/ 1 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2) (* 2 x)) (- (/ 1 2))))))