?

Average Error: 13.5 → 0.8
Time: 33.7s
Precision: binary64
Cost: 26568

?

\[\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} t_0 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -7600:\\ \;\;\;\;\frac{-1}{\sin B} - t_0\\ \mathbf{elif}\;F \leq 1.4:\\ \;\;\;\;\frac{\sqrt{0.5} \cdot F}{\sin B} - \frac{\cos B \cdot x}{\sin B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_0\\ \end{array} \]
(FPCore (F B x)
 :precision binary64
 (+
  (- (* x (/ 1.0 (tan B))))
  (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))
(FPCore (F B x)
 :precision binary64
 (let* ((t_0 (* x (/ 1.0 (tan B)))))
   (if (<= F -7600.0)
     (- (/ -1.0 (sin B)) t_0)
     (if (<= F 1.4)
       (- (/ (* (sqrt 0.5) F) (sin B)) (/ (* (cos B) x) (sin B)))
       (- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
	return -(x * (1.0 / tan(B))) + ((F / sin(B)) * pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
double code(double F, double B, double x) {
	double t_0 = x * (1.0 / tan(B));
	double tmp;
	if (F <= -7600.0) {
		tmp = (-1.0 / sin(B)) - t_0;
	} else if (F <= 1.4) {
		tmp = ((sqrt(0.5) * F) / sin(B)) - ((cos(B) * x) / sin(B));
	} else {
		tmp = (1.0 / sin(B)) - t_0;
	}
	return tmp;
}
real(8) function code(f, b, x)
    real(8), intent (in) :: f
    real(8), intent (in) :: b
    real(8), intent (in) :: x
    code = -(x * (1.0d0 / tan(b))) + ((f / sin(b)) * ((((f * f) + 2.0d0) + (2.0d0 * x)) ** -(1.0d0 / 2.0d0)))
end function
real(8) function code(f, b, x)
    real(8), intent (in) :: f
    real(8), intent (in) :: b
    real(8), intent (in) :: x
    real(8) :: t_0
    real(8) :: tmp
    t_0 = x * (1.0d0 / tan(b))
    if (f <= (-7600.0d0)) then
        tmp = ((-1.0d0) / sin(b)) - t_0
    else if (f <= 1.4d0) then
        tmp = ((sqrt(0.5d0) * f) / sin(b)) - ((cos(b) * x) / sin(b))
    else
        tmp = (1.0d0 / sin(b)) - t_0
    end if
    code = tmp
end function
public static double code(double F, double B, double x) {
	return -(x * (1.0 / Math.tan(B))) + ((F / Math.sin(B)) * Math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)));
}
public static double code(double F, double B, double x) {
	double t_0 = x * (1.0 / Math.tan(B));
	double tmp;
	if (F <= -7600.0) {
		tmp = (-1.0 / Math.sin(B)) - t_0;
	} else if (F <= 1.4) {
		tmp = ((Math.sqrt(0.5) * F) / Math.sin(B)) - ((Math.cos(B) * x) / Math.sin(B));
	} else {
		tmp = (1.0 / Math.sin(B)) - t_0;
	}
	return tmp;
}
def code(F, B, x):
	return -(x * (1.0 / math.tan(B))) + ((F / math.sin(B)) * math.pow((((F * F) + 2.0) + (2.0 * x)), -(1.0 / 2.0)))
def code(F, B, x):
	t_0 = x * (1.0 / math.tan(B))
	tmp = 0
	if F <= -7600.0:
		tmp = (-1.0 / math.sin(B)) - t_0
	elif F <= 1.4:
		tmp = ((math.sqrt(0.5) * F) / math.sin(B)) - ((math.cos(B) * x) / math.sin(B))
	else:
		tmp = (1.0 / math.sin(B)) - t_0
	return tmp
function code(F, B, x)
	return Float64(Float64(-Float64(x * Float64(1.0 / tan(B)))) + Float64(Float64(F / sin(B)) * (Float64(Float64(Float64(F * F) + 2.0) + Float64(2.0 * x)) ^ Float64(-Float64(1.0 / 2.0)))))
end
function code(F, B, x)
	t_0 = Float64(x * Float64(1.0 / tan(B)))
	tmp = 0.0
	if (F <= -7600.0)
		tmp = Float64(Float64(-1.0 / sin(B)) - t_0);
	elseif (F <= 1.4)
		tmp = Float64(Float64(Float64(sqrt(0.5) * F) / sin(B)) - Float64(Float64(cos(B) * x) / sin(B)));
	else
		tmp = Float64(Float64(1.0 / sin(B)) - t_0);
	end
	return tmp
end
function tmp = code(F, B, x)
	tmp = -(x * (1.0 / tan(B))) + ((F / sin(B)) * ((((F * F) + 2.0) + (2.0 * x)) ^ -(1.0 / 2.0)));
end
function tmp_2 = code(F, B, x)
	t_0 = x * (1.0 / tan(B));
	tmp = 0.0;
	if (F <= -7600.0)
		tmp = (-1.0 / sin(B)) - t_0;
	elseif (F <= 1.4)
		tmp = ((sqrt(0.5) * F) / sin(B)) - ((cos(B) * x) / sin(B));
	else
		tmp = (1.0 / sin(B)) - t_0;
	end
	tmp_2 = tmp;
end
code[F_, B_, x_] := N[((-N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]) + N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(N[(F * F), $MachinePrecision] + 2.0), $MachinePrecision] + N[(2.0 * x), $MachinePrecision]), $MachinePrecision], (-N[(1.0 / 2.0), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[F_, B_, x_] := Block[{t$95$0 = N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -7600.0], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.4], N[(N[(N[(N[Sqrt[0.5], $MachinePrecision] * F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(N[(N[Cos[B], $MachinePrecision] * x), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\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}
t_0 := x \cdot \frac{1}{\tan B}\\
\mathbf{if}\;F \leq -7600:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\

\mathbf{elif}\;F \leq 1.4:\\
\;\;\;\;\frac{\sqrt{0.5} \cdot F}{\sin B} - \frac{\cos B \cdot x}{\sin B}\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\


\end{array}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Split input into 3 regimes
  2. if F < -7600

    1. Initial program 25.5

      \[\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)} \]
    2. Simplified25.5

      \[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - x \cdot \frac{1}{\tan B}} \]
      Proof

      [Start]25.5

      \[ \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)} \]

      rational_best_45_simplify-73 [=>]25.5

      \[ \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-15 [=>]25.5

      \[ \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \color{blue}{\left(0 - x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-108 [=>]25.5

      \[ \color{blue}{\left(0 + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\right) - x \cdot \frac{1}{\tan B}} \]
    3. Taylor expanded in F around -inf 0.3

      \[\leadsto \color{blue}{\frac{-1}{\sin B}} - x \cdot \frac{1}{\tan B} \]

    if -7600 < F < 1.3999999999999999

    1. Initial program 0.4

      \[\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)} \]
    2. Simplified0.4

      \[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - x \cdot \frac{1}{\tan B}} \]
      Proof

      [Start]0.4

      \[ \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)} \]

      rational_best_45_simplify-73 [=>]0.4

      \[ \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-15 [=>]0.4

      \[ \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \color{blue}{\left(0 - x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-108 [=>]0.4

      \[ \color{blue}{\left(0 + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\right) - x \cdot \frac{1}{\tan B}} \]
    3. Taylor expanded in x around 0 0.3

      \[\leadsto \frac{F}{\sin B} \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - \color{blue}{\frac{\cos B \cdot x}{\sin B}} \]
    4. Taylor expanded in F around 0 1.1

      \[\leadsto \frac{F}{\sin B} \cdot \color{blue}{\sqrt{\frac{1}{2 \cdot x + 2}}} - \frac{\cos B \cdot x}{\sin B} \]
    5. Taylor expanded in x around 0 1.1

      \[\leadsto \color{blue}{\frac{\sqrt{0.5} \cdot F}{\sin B}} - \frac{\cos B \cdot x}{\sin B} \]

    if 1.3999999999999999 < F

    1. Initial program 23.4

      \[\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)} \]
    2. Simplified23.4

      \[\leadsto \color{blue}{\frac{F}{\sin B} \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - x \cdot \frac{1}{\tan B}} \]
      Proof

      [Start]23.4

      \[ \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)} \]

      rational_best_45_simplify-73 [=>]23.4

      \[ \color{blue}{\frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \left(-x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-15 [=>]23.4

      \[ \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)} + \color{blue}{\left(0 - x \cdot \frac{1}{\tan B}\right)} \]

      rational_best_45_simplify-108 [=>]23.4

      \[ \color{blue}{\left(0 + \frac{F}{\sin B} \cdot {\left(\left(F \cdot F + 2\right) + 2 \cdot x\right)}^{\left(-\frac{1}{2}\right)}\right) - x \cdot \frac{1}{\tan B}} \]
    3. Taylor expanded in F around inf 0.7

      \[\leadsto \color{blue}{\frac{1}{\sin B}} - x \cdot \frac{1}{\tan B} \]
  3. Recombined 3 regimes into one program.
  4. Final simplification0.8

    \[\leadsto \begin{array}{l} \mathbf{if}\;F \leq -7600:\\ \;\;\;\;\frac{-1}{\sin B} - x \cdot \frac{1}{\tan B}\\ \mathbf{elif}\;F \leq 1.4:\\ \;\;\;\;\frac{\sqrt{0.5} \cdot F}{\sin B} - \frac{\cos B \cdot x}{\sin B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - x \cdot \frac{1}{\tan B}\\ \end{array} \]

Alternatives

Alternative 1
Error0.4
Cost20744
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -2.35 \cdot 10^{+36}:\\ \;\;\;\;\frac{-1}{\sin B} - t_0\\ \mathbf{elif}\;F \leq 8.5 \cdot 10^{+50}:\\ \;\;\;\;\frac{F}{\sin B} \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_0\\ \end{array} \]
Alternative 2
Error0.8
Cost20552
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -7600:\\ \;\;\;\;\frac{-1}{\sin B} - t_0\\ \mathbf{elif}\;F \leq 2.35:\\ \;\;\;\;\frac{F}{\sin B} \cdot \sqrt{\frac{1}{2 \cdot x + 2}} - t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_0\\ \end{array} \]
Alternative 3
Error7.1
Cost20304
\[\begin{array}{l} t_0 := \frac{\sqrt{0.5} \cdot F}{\sin B} - \frac{x}{\sin B}\\ t_1 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -0.0205:\\ \;\;\;\;\frac{-1}{\sin B} - t_1\\ \mathbf{elif}\;F \leq -1.36 \cdot 10^{-167}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq 2.7 \cdot 10^{-97}:\\ \;\;\;\;-\frac{x \cdot \cos B}{\sin B}\\ \mathbf{elif}\;F \leq 0.18:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_1\\ \end{array} \]
Alternative 4
Error7.5
Cost13904
\[\begin{array}{l} t_0 := \frac{\sqrt{0.5} \cdot F}{\sin B} - \frac{x}{B}\\ t_1 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -0.04:\\ \;\;\;\;\frac{-1}{\sin B} - t_1\\ \mathbf{elif}\;F \leq -2.6 \cdot 10^{-165}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq 2.45 \cdot 10^{-76}:\\ \;\;\;\;-\frac{x \cdot \cos B}{\sin B}\\ \mathbf{elif}\;F \leq 0.019:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_1\\ \end{array} \]
Alternative 5
Error10.7
Cost13772
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -0.0022:\\ \;\;\;\;\frac{-1}{\sin B} - t_0\\ \mathbf{elif}\;F \leq -2.9 \cdot 10^{-165}:\\ \;\;\;\;\frac{\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot F - x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;-\frac{x \cdot \cos B}{\sin B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - t_0\\ \end{array} \]
Alternative 6
Error20.0
Cost13580
\[\begin{array}{l} t_0 := \frac{1}{\sin B} - \frac{x}{B}\\ \mathbf{if}\;F \leq -7600:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -2.5 \cdot 10^{-165}:\\ \;\;\;\;\frac{\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot F - x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;-\frac{x \cdot \cos B}{\sin B}\\ \mathbf{elif}\;F \leq 4.2 \cdot 10^{+164}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq 1.05 \cdot 10^{+204}:\\ \;\;\;\;\frac{1}{B} - x \cdot \frac{1}{\tan B}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 7
Error15.3
Cost13580
\[\begin{array}{l} t_0 := \frac{1}{\sin B} - \frac{x}{B}\\ t_1 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -2.3 \cdot 10^{-6}:\\ \;\;\;\;\frac{-1}{\sin B} - t_1\\ \mathbf{elif}\;F \leq -2.9 \cdot 10^{-165}:\\ \;\;\;\;\frac{\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot F - x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;-\frac{x \cdot \cos B}{\sin B}\\ \mathbf{elif}\;F \leq 4.2 \cdot 10^{+164}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq 1.55 \cdot 10^{+204}:\\ \;\;\;\;\frac{1}{B} - t_1\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 8
Error25.2
Cost8200
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ t_1 := \frac{1}{\sin B} - \frac{x}{B}\\ \mathbf{if}\;F \leq -2.35 \cdot 10^{+36}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -1.2 \cdot 10^{-214}:\\ \;\;\;\;\left(0.16666666666666666 \cdot \left(F \cdot B\right) + \frac{F}{B}\right) \cdot {\left(F \cdot F + \left(x + \left(2 + x\right)\right)\right)}^{-0.5} - \frac{x}{B}\\ \mathbf{elif}\;F \leq 9.2 \cdot 10^{-149}:\\ \;\;\;\;\frac{F}{B} \cdot \frac{-1}{F} - t_0\\ \mathbf{elif}\;F \leq 1.4 \cdot 10^{-33}:\\ \;\;\;\;\frac{\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot F - x}{B}\\ \mathbf{elif}\;F \leq 2.1 \cdot 10^{+166}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;F \leq 2.2 \cdot 10^{+204}:\\ \;\;\;\;\frac{1}{B} - t_0\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 9
Error27.8
Cost7768
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ t_1 := \frac{1}{B} - t_0\\ t_2 := \frac{1}{\sin B} - \frac{x}{B}\\ \mathbf{if}\;F \leq -3.1 \cdot 10^{+180}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -1.3 \cdot 10^{-85}:\\ \;\;\;\;\frac{-1}{B} - t_0\\ \mathbf{elif}\;F \leq -9.2 \cdot 10^{-213}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;F \leq 5 \cdot 10^{+165}:\\ \;\;\;\;t_2\\ \mathbf{elif}\;F \leq 7.8 \cdot 10^{+205}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_2\\ \end{array} \]
Alternative 10
Error27.2
Cost7768
\[\begin{array}{l} t_0 := x \cdot \frac{1}{\tan B}\\ t_1 := \frac{1}{\sin B} - \frac{x}{B}\\ \mathbf{if}\;F \leq -2.9 \cdot 10^{+180}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -1.16 \cdot 10^{-89}:\\ \;\;\;\;\frac{-1}{B} - t_0\\ \mathbf{elif}\;F \leq -1.4 \cdot 10^{-213}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;\frac{F}{B} \cdot \frac{-1}{F} - t_0\\ \mathbf{elif}\;F \leq 5.2 \cdot 10^{+166}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;F \leq 4.6 \cdot 10^{+203}:\\ \;\;\;\;\frac{1}{B} - t_0\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 11
Error24.8
Cost7768
\[\begin{array}{l} t_0 := \frac{1}{\sin B} - \frac{x}{B}\\ t_1 := \frac{\sqrt{\frac{1}{2 + 2 \cdot x}} \cdot F - x}{B}\\ t_2 := x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -7600:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -8 \cdot 10^{-215}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;F \leq 1.6 \cdot 10^{-149}:\\ \;\;\;\;\frac{F}{B} \cdot \frac{-1}{F} - t_2\\ \mathbf{elif}\;F \leq 1.4 \cdot 10^{-33}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;F \leq 8.5 \cdot 10^{+164}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq 5.1 \cdot 10^{+203}:\\ \;\;\;\;\frac{1}{B} - t_2\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 12
Error27.9
Cost7504
\[\begin{array}{l} t_0 := \frac{-1}{B} - x \cdot \frac{1}{\tan B}\\ \mathbf{if}\;F \leq -2.2 \cdot 10^{+180}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq -1.25 \cdot 10^{-89}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;F \leq -4.5 \cdot 10^{-213}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{elif}\;F \leq 6.7 \cdot 10^{-37}:\\ \;\;\;\;t_0\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - \frac{x}{B}\\ \end{array} \]
Alternative 13
Error29.6
Cost7112
\[\begin{array}{l} \mathbf{if}\;F \leq -4.7 \cdot 10^{-61}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq 6.2 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B} - \frac{x}{B}\\ \end{array} \]
Alternative 14
Error36.4
Cost6988
\[\begin{array}{l} \mathbf{if}\;F \leq -2.2 \cdot 10^{+180}:\\ \;\;\;\;\frac{-1}{\sin B}\\ \mathbf{elif}\;F \leq -4.8 \cdot 10^{-62}:\\ \;\;\;\;\left(-\frac{1 + x}{B}\right) + B \cdot -0.16666666666666666\\ \mathbf{elif}\;F \leq 5.2 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B}\\ \end{array} \]
Alternative 15
Error32.4
Cost6980
\[\begin{array}{l} \mathbf{if}\;F \leq -2.1 \cdot 10^{-61}:\\ \;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\ \mathbf{elif}\;F \leq 6.5 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\sin B}\\ \end{array} \]
Alternative 16
Error38.6
Cost6724
\[\begin{array}{l} \mathbf{if}\;F \leq -2.7 \cdot 10^{+180}:\\ \;\;\;\;\frac{-1}{\sin B}\\ \mathbf{elif}\;F \leq -4.8 \cdot 10^{-61}:\\ \;\;\;\;\left(-\frac{1 + x}{B}\right) + B \cdot -0.16666666666666666\\ \mathbf{elif}\;F \leq 6.5 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1 - x}{B}\\ \end{array} \]
Alternative 17
Error39.5
Cost772
\[\begin{array}{l} \mathbf{if}\;F \leq -2.1 \cdot 10^{-61}:\\ \;\;\;\;\left(-\frac{1 + x}{B}\right) + B \cdot -0.16666666666666666\\ \mathbf{elif}\;F \leq 5.8 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1 - x}{B}\\ \end{array} \]
Alternative 18
Error39.5
Cost584
\[\begin{array}{l} \mathbf{if}\;F \leq -8.2 \cdot 10^{-57}:\\ \;\;\;\;\frac{-1 - x}{B}\\ \mathbf{elif}\;F \leq 6.5 \cdot 10^{-58}:\\ \;\;\;\;-\frac{x}{B}\\ \mathbf{else}:\\ \;\;\;\;\frac{1 - x}{B}\\ \end{array} \]
Alternative 19
Error48.5
Cost520
\[\begin{array}{l} t_0 := -\frac{x}{B}\\ \mathbf{if}\;x \leq -1.45 \cdot 10^{-149}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 7.8 \cdot 10^{-180}:\\ \;\;\;\;\frac{-1}{B}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 20
Error44.4
Cost452
\[\begin{array}{l} \mathbf{if}\;F \leq -8.2 \cdot 10^{-57}:\\ \;\;\;\;\frac{-1 - x}{B}\\ \mathbf{else}:\\ \;\;\;\;-\frac{x}{B}\\ \end{array} \]
Alternative 21
Error56.5
Cost192
\[\frac{-1}{B} \]

Error

Reproduce?

herbie shell --seed 2023098 
(FPCore (F B x)
  :name "VandenBroeck and Keller, Equation (23)"
  :precision binary64
  (+ (- (* x (/ 1.0 (tan B)))) (* (/ F (sin B)) (pow (+ (+ (* F F) 2.0) (* 2.0 x)) (- (/ 1.0 2.0))))))