
(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))))))
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)));
}
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
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)));
}
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)))
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 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
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]
\begin{array}{l}
\\
\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)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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))))))
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)));
}
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
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)));
}
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)))
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 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
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]
\begin{array}{l}
\\
\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)}
\end{array}
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.05e+38)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 20000000.0)
(- (/ (pow (fma 2.0 x (fma F F 2.0)) -0.5) (/ (sin B) F)) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.05e+38) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 20000000.0) {
tmp = (pow(fma(2.0, x, fma(F, F, 2.0)), -0.5) / (sin(B) / F)) - t_0;
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.05e+38) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 20000000.0) tmp = Float64(Float64((fma(2.0, x, fma(F, F, 2.0)) ^ -0.5) / Float64(sin(B) / F)) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.05e+38], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 20000000.0], N[(N[(N[Power[N[(2.0 * x + N[(F * F + 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision] / N[(N[Sin[B], $MachinePrecision] / F), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.05 \cdot 10^{+38}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 20000000:\\
\;\;\;\;\frac{{\left(\mathsf{fma}\left(2, x, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}{\frac{\sin B}{F}} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1.05e38Initial program 58.8%
Simplified73.2%
Taylor expanded in F around -inf 99.9%
if -1.05e38 < F < 2e7Initial program 99.4%
Simplified99.6%
*-commutative99.6%
div-inv99.6%
associate-*l*99.6%
associate-/r/99.7%
un-div-inv99.7%
fma-define99.7%
fma-undefine99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
Applied egg-rr99.7%
if 2e7 < F Initial program 61.5%
Simplified74.3%
Taylor expanded in F around inf 99.9%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -5e+65)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 20000000.0)
(- (/ (* F (pow (fma F F 2.0) -0.5)) (sin B)) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -5e+65) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 20000000.0) {
tmp = ((F * pow(fma(F, F, 2.0), -0.5)) / sin(B)) - t_0;
} else {
tmp = (1.0 / sin(B)) - t_0;
}
return tmp;
}
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -5e+65) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 20000000.0) tmp = Float64(Float64(Float64(F * (fma(F, F, 2.0) ^ -0.5)) / sin(B)) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -5e+65], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 20000000.0], N[(N[(N[(F * N[Power[N[(F * F + 2.0), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -5 \cdot 10^{+65}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 20000000:\\
\;\;\;\;\frac{F \cdot {\left(\mathsf{fma}\left(F, F, 2\right)\right)}^{-0.5}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -4.99999999999999973e65Initial program 53.3%
Simplified69.6%
Taylor expanded in F around -inf 99.9%
if -4.99999999999999973e65 < F < 2e7Initial program 99.4%
Simplified99.6%
associate-*r/99.6%
fma-define99.6%
fma-undefine99.6%
*-commutative99.6%
+-commutative99.6%
metadata-eval99.6%
metadata-eval99.6%
Applied egg-rr99.6%
Taylor expanded in x around 0 99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
if 2e7 < F Initial program 61.5%
Simplified74.3%
Taylor expanded in F around inf 99.9%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -3.9e+30)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 175000000.0)
(+
(* x (/ -1.0 (tan B)))
(* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5)))
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -3.9e+30) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 175000000.0) {
tmp = (x * (-1.0 / tan(B))) + ((F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5));
} 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-3.9d+30)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 175000000.0d0) then
tmp = (x * ((-1.0d0) / tan(b))) + ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0)))
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -3.9e+30) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 175000000.0) {
tmp = (x * (-1.0 / Math.tan(B))) + ((F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5));
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -3.9e+30: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 175000000.0: tmp = (x * (-1.0 / math.tan(B))) + ((F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -3.9e+30) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 175000000.0) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5))); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -3.9e+30) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 175000000.0) tmp = (x * (-1.0 / tan(B))) + ((F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5)); else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -3.9e+30], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 175000000.0], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -3.9 \cdot 10^{+30}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 175000000:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -3.90000000000000011e30Initial program 59.3%
Simplified73.5%
Taylor expanded in F around -inf 99.9%
if -3.90000000000000011e30 < F < 1.75e8Initial program 99.4%
metadata-eval99.4%
metadata-eval99.4%
Applied egg-rr99.4%
if 1.75e8 < F Initial program 61.5%
Simplified74.3%
Taylor expanded in F around inf 99.9%
Final simplification99.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.38e+23)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.45)
(- (* (/ 1.0 (/ (sin B) F)) (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.45) {
tmp = ((1.0 / (sin(B) / F)) * sqrt((1.0 / (2.0 + (x * 2.0))))) - t_0;
} 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.38d+23)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.45d0) then
tmp = ((1.0d0 / (sin(b) / f)) * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - t_0
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.45) {
tmp = ((1.0 / (Math.sin(B) / F)) * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.38e+23: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.45: tmp = ((1.0 / (math.sin(B) / F)) * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - t_0 else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.38e+23) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.45) tmp = Float64(Float64(Float64(1.0 / Float64(sin(B) / F)) * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.38e+23) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.45) tmp = ((1.0 / (sin(B) / F)) * sqrt((1.0 / (2.0 + (x * 2.0))))) - t_0; else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.38e+23], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.45], N[(N[(N[(1.0 / N[(N[Sin[B], $MachinePrecision] / F), $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.38 \cdot 10^{+23}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.45:\\
\;\;\;\;\frac{1}{\frac{\sin B}{F}} \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1.38e23Initial program 59.8%
Simplified73.9%
Taylor expanded in F around -inf 99.9%
if -1.38e23 < F < 1.44999999999999996Initial program 99.4%
Simplified99.6%
associate-*r/99.6%
clear-num99.6%
fma-define99.6%
fma-undefine99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in F around 0 99.2%
clear-num99.3%
inv-pow99.3%
Applied egg-rr99.3%
unpow-199.3%
Simplified99.3%
if 1.44999999999999996 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
Final simplification99.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.38e+23)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.8)
(- (/ 1.0 (* (/ (sin B) F) (sqrt (+ 2.0 (* x 2.0))))) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.8) {
tmp = (1.0 / ((sin(B) / F) * sqrt((2.0 + (x * 2.0))))) - t_0;
} 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.38d+23)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.8d0) then
tmp = (1.0d0 / ((sin(b) / f) * sqrt((2.0d0 + (x * 2.0d0))))) - t_0
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.8) {
tmp = (1.0 / ((Math.sin(B) / F) * Math.sqrt((2.0 + (x * 2.0))))) - t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.38e+23: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.8: tmp = (1.0 / ((math.sin(B) / F) * math.sqrt((2.0 + (x * 2.0))))) - t_0 else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.38e+23) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.8) tmp = Float64(Float64(1.0 / Float64(Float64(sin(B) / F) * sqrt(Float64(2.0 + Float64(x * 2.0))))) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.38e+23) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.8) tmp = (1.0 / ((sin(B) / F) * sqrt((2.0 + (x * 2.0))))) - t_0; else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.38e+23], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.8], N[(N[(1.0 / N[(N[(N[Sin[B], $MachinePrecision] / F), $MachinePrecision] * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.38 \cdot 10^{+23}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.8:\\
\;\;\;\;\frac{1}{\frac{\sin B}{F} \cdot \sqrt{2 + x \cdot 2}} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1.38e23Initial program 59.8%
Simplified73.9%
Taylor expanded in F around -inf 99.9%
if -1.38e23 < F < 1.80000000000000004Initial program 99.4%
Simplified99.6%
associate-*r/99.6%
clear-num99.6%
fma-define99.6%
fma-undefine99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in F around 0 99.2%
if 1.80000000000000004 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
Final simplification99.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.38e+23)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.45)
(- (* F (/ (sqrt (/ 1.0 (+ 2.0 (* x 2.0)))) (sin B))) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.45) {
tmp = (F * (sqrt((1.0 / (2.0 + (x * 2.0)))) / sin(B))) - t_0;
} 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.38d+23)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.45d0) then
tmp = (f * (sqrt((1.0d0 / (2.0d0 + (x * 2.0d0)))) / sin(b))) - t_0
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.45) {
tmp = (F * (Math.sqrt((1.0 / (2.0 + (x * 2.0)))) / Math.sin(B))) - t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.38e+23: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.45: tmp = (F * (math.sqrt((1.0 / (2.0 + (x * 2.0)))) / math.sin(B))) - t_0 else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.38e+23) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.45) tmp = Float64(Float64(F * Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0)))) / sin(B))) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.38e+23) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.45) tmp = (F * (sqrt((1.0 / (2.0 + (x * 2.0)))) / sin(B))) - t_0; else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.38e+23], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.45], N[(N[(F * N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.38 \cdot 10^{+23}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.45:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{2 + x \cdot 2}}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1.38e23Initial program 59.8%
Simplified73.9%
Taylor expanded in F around -inf 99.9%
if -1.38e23 < F < 1.44999999999999996Initial program 99.4%
Simplified99.6%
Taylor expanded in F around 0 99.2%
*-commutative99.2%
Simplified99.2%
if 1.44999999999999996 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.38e+23)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.4)
(- (* (/ F (sin B)) (sqrt 0.5)) t_0)
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = ((F / sin(B)) * sqrt(0.5)) - t_0;
} 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-1.38d+23)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.4d0) then
tmp = ((f / sin(b)) * sqrt(0.5d0)) - t_0
else
tmp = (1.0d0 / sin(b)) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = ((F / Math.sin(B)) * Math.sqrt(0.5)) - t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.38e+23: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.4: tmp = ((F / math.sin(B)) * math.sqrt(0.5)) - t_0 else: tmp = (1.0 / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.38e+23) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.4) tmp = Float64(Float64(Float64(F / sin(B)) * sqrt(0.5)) - t_0); else tmp = Float64(Float64(1.0 / sin(B)) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.38e+23) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.4) tmp = ((F / sin(B)) * sqrt(0.5)) - t_0; else tmp = (1.0 / sin(B)) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.38e+23], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.4], N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Sqrt[0.5], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.38 \cdot 10^{+23}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.4:\\
\;\;\;\;\frac{F}{\sin B} \cdot \sqrt{0.5} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -1.38e23Initial program 59.8%
Simplified73.9%
Taylor expanded in F around -inf 99.9%
if -1.38e23 < F < 1.3999999999999999Initial program 99.4%
Simplified99.6%
associate-*r/99.6%
clear-num99.6%
fma-define99.6%
fma-undefine99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in F around 0 99.2%
Taylor expanded in x around 0 99.2%
if 1.3999999999999999 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5)))
(t_1 (/ x (tan B))))
(if (<= F -8.6e-5)
(- (/ -1.0 (sin B)) t_1)
(if (<= F -5.2e-101)
(+ t_0 (* x (/ -1.0 B)))
(if (<= F 1.45e-135)
(/ (- x) (tan B))
(if (<= F 10200000.0) (- t_0 (/ x B)) (- (/ 1.0 (sin B)) t_1)))))))
double code(double F, double B, double x) {
double t_0 = (F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5);
double t_1 = x / tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / sin(B)) - t_1;
} else if (F <= -5.2e-101) {
tmp = t_0 + (x * (-1.0 / B));
} else if (F <= 1.45e-135) {
tmp = -x / tan(B);
} else if (F <= 10200000.0) {
tmp = t_0 - (x / B);
} else {
tmp = (1.0 / sin(B)) - t_1;
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_0 = (f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))
t_1 = x / tan(b)
if (f <= (-8.6d-5)) then
tmp = ((-1.0d0) / sin(b)) - t_1
else if (f <= (-5.2d-101)) then
tmp = t_0 + (x * ((-1.0d0) / b))
else if (f <= 1.45d-135) then
tmp = -x / tan(b)
else if (f <= 10200000.0d0) then
tmp = t_0 - (x / b)
else
tmp = (1.0d0 / sin(b)) - t_1
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5);
double t_1 = x / Math.tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / Math.sin(B)) - t_1;
} else if (F <= -5.2e-101) {
tmp = t_0 + (x * (-1.0 / B));
} else if (F <= 1.45e-135) {
tmp = -x / Math.tan(B);
} else if (F <= 10200000.0) {
tmp = t_0 - (x / B);
} else {
tmp = (1.0 / Math.sin(B)) - t_1;
}
return tmp;
}
def code(F, B, x): t_0 = (F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5) t_1 = x / math.tan(B) tmp = 0 if F <= -8.6e-5: tmp = (-1.0 / math.sin(B)) - t_1 elif F <= -5.2e-101: tmp = t_0 + (x * (-1.0 / B)) elif F <= 1.45e-135: tmp = -x / math.tan(B) elif F <= 10200000.0: tmp = t_0 - (x / B) else: tmp = (1.0 / math.sin(B)) - t_1 return tmp
function code(F, B, x) t_0 = Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5)) t_1 = Float64(x / tan(B)) tmp = 0.0 if (F <= -8.6e-5) tmp = Float64(Float64(-1.0 / sin(B)) - t_1); elseif (F <= -5.2e-101) tmp = Float64(t_0 + Float64(x * Float64(-1.0 / B))); elseif (F <= 1.45e-135) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 10200000.0) tmp = Float64(t_0 - Float64(x / B)); else tmp = Float64(Float64(1.0 / sin(B)) - t_1); end return tmp end
function tmp_2 = code(F, B, x) t_0 = (F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5); t_1 = x / tan(B); tmp = 0.0; if (F <= -8.6e-5) tmp = (-1.0 / sin(B)) - t_1; elseif (F <= -5.2e-101) tmp = t_0 + (x * (-1.0 / B)); elseif (F <= 1.45e-135) tmp = -x / tan(B); elseif (F <= 10200000.0) tmp = t_0 - (x / B); else tmp = (1.0 / sin(B)) - t_1; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -8.6e-5], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[F, -5.2e-101], N[(t$95$0 + N[(x * N[(-1.0 / B), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.45e-135], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 10200000.0], N[(t$95$0 - N[(x / B), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5}\\
t_1 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -8.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_1\\
\mathbf{elif}\;F \leq -5.2 \cdot 10^{-101}:\\
\;\;\;\;t\_0 + x \cdot \frac{-1}{B}\\
\mathbf{elif}\;F \leq 1.45 \cdot 10^{-135}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 10200000:\\
\;\;\;\;t\_0 - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_1\\
\end{array}
\end{array}
if F < -8.6000000000000003e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
if -8.6000000000000003e-5 < F < -5.2000000000000002e-101Initial program 98.9%
Taylor expanded in B around 0 81.1%
if -5.2000000000000002e-101 < F < 1.4500000000000001e-135Initial program 99.6%
Simplified99.8%
Taylor expanded in F around -inf 32.8%
Taylor expanded in x around inf 81.0%
mul-1-neg81.0%
clear-num80.8%
*-un-lft-identity80.8%
times-frac80.8%
tan-quot80.8%
Applied egg-rr80.8%
associate-/r*80.9%
remove-double-div81.0%
distribute-neg-frac81.0%
Simplified81.0%
if 1.4500000000000001e-135 < F < 1.02e7Initial program 99.1%
Taylor expanded in B around 0 81.6%
associate-*r/81.6%
neg-mul-181.6%
Simplified81.6%
if 1.02e7 < F Initial program 61.5%
Simplified74.3%
Taylor expanded in F around inf 99.9%
Final simplification92.1%
(FPCore (F B x)
:precision binary64
(let* ((t_0
(-
(* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5))
(/ x B)))
(t_1 (/ x (tan B))))
(if (<= F -8.6e-5)
(- (/ -1.0 (sin B)) t_1)
(if (<= F -7.8e-100)
t_0
(if (<= F 3.8e-138)
(/ (- x) (tan B))
(if (<= F 10500000.0) t_0 (- (/ 1.0 (sin B)) t_1)))))))
double code(double F, double B, double x) {
double t_0 = ((F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B);
double t_1 = x / tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / sin(B)) - t_1;
} else if (F <= -7.8e-100) {
tmp = t_0;
} else if (F <= 3.8e-138) {
tmp = -x / tan(B);
} else if (F <= 10500000.0) {
tmp = t_0;
} else {
tmp = (1.0 / sin(B)) - t_1;
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_0 = ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))) - (x / b)
t_1 = x / tan(b)
if (f <= (-8.6d-5)) then
tmp = ((-1.0d0) / sin(b)) - t_1
else if (f <= (-7.8d-100)) then
tmp = t_0
else if (f <= 3.8d-138) then
tmp = -x / tan(b)
else if (f <= 10500000.0d0) then
tmp = t_0
else
tmp = (1.0d0 / sin(b)) - t_1
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = ((F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B);
double t_1 = x / Math.tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / Math.sin(B)) - t_1;
} else if (F <= -7.8e-100) {
tmp = t_0;
} else if (F <= 3.8e-138) {
tmp = -x / Math.tan(B);
} else if (F <= 10500000.0) {
tmp = t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_1;
}
return tmp;
}
def code(F, B, x): t_0 = ((F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B) t_1 = x / math.tan(B) tmp = 0 if F <= -8.6e-5: tmp = (-1.0 / math.sin(B)) - t_1 elif F <= -7.8e-100: tmp = t_0 elif F <= 3.8e-138: tmp = -x / math.tan(B) elif F <= 10500000.0: tmp = t_0 else: tmp = (1.0 / math.sin(B)) - t_1 return tmp
function code(F, B, x) t_0 = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5)) - Float64(x / B)) t_1 = Float64(x / tan(B)) tmp = 0.0 if (F <= -8.6e-5) tmp = Float64(Float64(-1.0 / sin(B)) - t_1); elseif (F <= -7.8e-100) tmp = t_0; elseif (F <= 3.8e-138) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 10500000.0) tmp = t_0; else tmp = Float64(Float64(1.0 / sin(B)) - t_1); end return tmp end
function tmp_2 = code(F, B, x) t_0 = ((F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5)) - (x / B); t_1 = x / tan(B); tmp = 0.0; if (F <= -8.6e-5) tmp = (-1.0 / sin(B)) - t_1; elseif (F <= -7.8e-100) tmp = t_0; elseif (F <= 3.8e-138) tmp = -x / tan(B); elseif (F <= 10500000.0) tmp = t_0; else tmp = (1.0 / sin(B)) - t_1; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Power[N[(N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -8.6e-5], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[F, -7.8e-100], t$95$0, If[LessEqual[F, 3.8e-138], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 10500000.0], t$95$0, N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} - \frac{x}{B}\\
t_1 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -8.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_1\\
\mathbf{elif}\;F \leq -7.8 \cdot 10^{-100}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 3.8 \cdot 10^{-138}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 10500000:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_1\\
\end{array}
\end{array}
if F < -8.6000000000000003e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
if -8.6000000000000003e-5 < F < -7.79999999999999955e-100 or 3.8000000000000002e-138 < F < 1.05e7Initial program 99.0%
Taylor expanded in B around 0 81.4%
associate-*r/81.4%
neg-mul-181.4%
Simplified81.4%
if -7.79999999999999955e-100 < F < 3.8000000000000002e-138Initial program 99.6%
Simplified99.8%
Taylor expanded in F around -inf 32.8%
Taylor expanded in x around inf 81.0%
mul-1-neg81.0%
clear-num80.8%
*-un-lft-identity80.8%
times-frac80.8%
tan-quot80.8%
Applied egg-rr80.8%
associate-/r*80.9%
remove-double-div81.0%
distribute-neg-frac81.0%
Simplified81.0%
if 1.05e7 < F Initial program 61.5%
Simplified74.3%
Taylor expanded in F around inf 99.9%
Final simplification92.1%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (* (/ F (sin B)) (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) (/ x B)))
(t_1 (/ x (tan B))))
(if (<= F -8.6e-5)
(- (/ -1.0 (sin B)) t_1)
(if (<= F -6.2e-99)
t_0
(if (<= F 2.8e-138)
(/ (- x) (tan B))
(if (<= F 0.08) t_0 (- (/ 1.0 (sin B)) t_1)))))))
double code(double F, double B, double x) {
double t_0 = ((F / sin(B)) * sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B);
double t_1 = x / tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / sin(B)) - t_1;
} else if (F <= -6.2e-99) {
tmp = t_0;
} else if (F <= 2.8e-138) {
tmp = -x / tan(B);
} else if (F <= 0.08) {
tmp = t_0;
} else {
tmp = (1.0 / sin(B)) - t_1;
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_0 = ((f / sin(b)) * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - (x / b)
t_1 = x / tan(b)
if (f <= (-8.6d-5)) then
tmp = ((-1.0d0) / sin(b)) - t_1
else if (f <= (-6.2d-99)) then
tmp = t_0
else if (f <= 2.8d-138) then
tmp = -x / tan(b)
else if (f <= 0.08d0) then
tmp = t_0
else
tmp = (1.0d0 / sin(b)) - t_1
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = ((F / Math.sin(B)) * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B);
double t_1 = x / Math.tan(B);
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / Math.sin(B)) - t_1;
} else if (F <= -6.2e-99) {
tmp = t_0;
} else if (F <= 2.8e-138) {
tmp = -x / Math.tan(B);
} else if (F <= 0.08) {
tmp = t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_1;
}
return tmp;
}
def code(F, B, x): t_0 = ((F / math.sin(B)) * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B) t_1 = x / math.tan(B) tmp = 0 if F <= -8.6e-5: tmp = (-1.0 / math.sin(B)) - t_1 elif F <= -6.2e-99: tmp = t_0 elif F <= 2.8e-138: tmp = -x / math.tan(B) elif F <= 0.08: tmp = t_0 else: tmp = (1.0 / math.sin(B)) - t_1 return tmp
function code(F, B, x) t_0 = Float64(Float64(Float64(F / sin(B)) * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - Float64(x / B)) t_1 = Float64(x / tan(B)) tmp = 0.0 if (F <= -8.6e-5) tmp = Float64(Float64(-1.0 / sin(B)) - t_1); elseif (F <= -6.2e-99) tmp = t_0; elseif (F <= 2.8e-138) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.08) tmp = t_0; else tmp = Float64(Float64(1.0 / sin(B)) - t_1); end return tmp end
function tmp_2 = code(F, B, x) t_0 = ((F / sin(B)) * sqrt((1.0 / (2.0 + (x * 2.0))))) - (x / B); t_1 = x / tan(B); tmp = 0.0; if (F <= -8.6e-5) tmp = (-1.0 / sin(B)) - t_1; elseif (F <= -6.2e-99) tmp = t_0; elseif (F <= 2.8e-138) tmp = -x / tan(B); elseif (F <= 0.08) tmp = t_0; else tmp = (1.0 / sin(B)) - t_1; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(N[(F / N[Sin[B], $MachinePrecision]), $MachinePrecision] * N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -8.6e-5], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[F, -6.2e-99], t$95$0, If[LessEqual[F, 2.8e-138], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.08], t$95$0, N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{F}{\sin B} \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - \frac{x}{B}\\
t_1 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -8.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_1\\
\mathbf{elif}\;F \leq -6.2 \cdot 10^{-99}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 2.8 \cdot 10^{-138}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.08:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_1\\
\end{array}
\end{array}
if F < -8.6000000000000003e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
if -8.6000000000000003e-5 < F < -6.1999999999999997e-99 or 2.80000000000000001e-138 < F < 0.0800000000000000017Initial program 99.0%
Simplified99.1%
associate-*r/99.2%
clear-num99.3%
fma-define99.3%
fma-undefine99.3%
*-commutative99.3%
fma-define99.3%
fma-define99.3%
Applied egg-rr99.3%
Taylor expanded in F around 0 97.9%
Taylor expanded in B around 0 79.5%
if -6.1999999999999997e-99 < F < 2.80000000000000001e-138Initial program 99.6%
Simplified99.8%
Taylor expanded in F around -inf 32.8%
Taylor expanded in x around inf 81.0%
mul-1-neg81.0%
clear-num80.8%
*-un-lft-identity80.8%
times-frac80.8%
tan-quot80.8%
Applied egg-rr80.8%
associate-/r*80.9%
remove-double-div81.0%
distribute-neg-frac81.0%
Simplified81.0%
if 0.0800000000000000017 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
Final simplification91.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* F (/ (sqrt 0.5) (sin B)))) (t_1 (/ x (tan B))))
(if (<= F -5.3e-5)
(- (/ -1.0 (sin B)) t_1)
(if (<= F -2.3e-93)
t_0
(if (<= F 1.9e-93)
(/ (- x) (tan B))
(if (<= F 0.041) t_0 (- (/ 1.0 (sin B)) t_1)))))))
double code(double F, double B, double x) {
double t_0 = F * (sqrt(0.5) / sin(B));
double t_1 = x / tan(B);
double tmp;
if (F <= -5.3e-5) {
tmp = (-1.0 / sin(B)) - t_1;
} else if (F <= -2.3e-93) {
tmp = t_0;
} else if (F <= 1.9e-93) {
tmp = -x / tan(B);
} else if (F <= 0.041) {
tmp = t_0;
} else {
tmp = (1.0 / sin(B)) - t_1;
}
return tmp;
}
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) :: t_1
real(8) :: tmp
t_0 = f * (sqrt(0.5d0) / sin(b))
t_1 = x / tan(b)
if (f <= (-5.3d-5)) then
tmp = ((-1.0d0) / sin(b)) - t_1
else if (f <= (-2.3d-93)) then
tmp = t_0
else if (f <= 1.9d-93) then
tmp = -x / tan(b)
else if (f <= 0.041d0) then
tmp = t_0
else
tmp = (1.0d0 / sin(b)) - t_1
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = F * (Math.sqrt(0.5) / Math.sin(B));
double t_1 = x / Math.tan(B);
double tmp;
if (F <= -5.3e-5) {
tmp = (-1.0 / Math.sin(B)) - t_1;
} else if (F <= -2.3e-93) {
tmp = t_0;
} else if (F <= 1.9e-93) {
tmp = -x / Math.tan(B);
} else if (F <= 0.041) {
tmp = t_0;
} else {
tmp = (1.0 / Math.sin(B)) - t_1;
}
return tmp;
}
def code(F, B, x): t_0 = F * (math.sqrt(0.5) / math.sin(B)) t_1 = x / math.tan(B) tmp = 0 if F <= -5.3e-5: tmp = (-1.0 / math.sin(B)) - t_1 elif F <= -2.3e-93: tmp = t_0 elif F <= 1.9e-93: tmp = -x / math.tan(B) elif F <= 0.041: tmp = t_0 else: tmp = (1.0 / math.sin(B)) - t_1 return tmp
function code(F, B, x) t_0 = Float64(F * Float64(sqrt(0.5) / sin(B))) t_1 = Float64(x / tan(B)) tmp = 0.0 if (F <= -5.3e-5) tmp = Float64(Float64(-1.0 / sin(B)) - t_1); elseif (F <= -2.3e-93) tmp = t_0; elseif (F <= 1.9e-93) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.041) tmp = t_0; else tmp = Float64(Float64(1.0 / sin(B)) - t_1); end return tmp end
function tmp_2 = code(F, B, x) t_0 = F * (sqrt(0.5) / sin(B)); t_1 = x / tan(B); tmp = 0.0; if (F <= -5.3e-5) tmp = (-1.0 / sin(B)) - t_1; elseif (F <= -2.3e-93) tmp = t_0; elseif (F <= 1.9e-93) tmp = -x / tan(B); elseif (F <= 0.041) tmp = t_0; else tmp = (1.0 / sin(B)) - t_1; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(F * N[(N[Sqrt[0.5], $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -5.3e-5], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[F, -2.3e-93], t$95$0, If[LessEqual[F, 1.9e-93], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.041], t$95$0, N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := F \cdot \frac{\sqrt{0.5}}{\sin B}\\
t_1 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -5.3 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\sin B} - t\_1\\
\mathbf{elif}\;F \leq -2.3 \cdot 10^{-93}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 1.9 \cdot 10^{-93}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.041:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_1\\
\end{array}
\end{array}
if F < -5.3000000000000001e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
if -5.3000000000000001e-5 < F < -2.2999999999999998e-93 or 1.8999999999999999e-93 < F < 0.0410000000000000017Initial program 99.0%
Simplified99.0%
Taylor expanded in F around 0 97.1%
*-commutative97.1%
associate-*l/97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 75.4%
associate-/l*75.4%
Simplified75.4%
if -2.2999999999999998e-93 < F < 1.8999999999999999e-93Initial program 99.5%
Simplified99.8%
Taylor expanded in F around -inf 30.8%
Taylor expanded in x around inf 79.1%
mul-1-neg79.1%
clear-num78.9%
*-un-lft-identity78.9%
times-frac78.9%
tan-quot79.0%
Applied egg-rr79.0%
associate-/r*79.0%
remove-double-div79.2%
distribute-neg-frac79.2%
Simplified79.2%
if 0.0410000000000000017 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* F (/ (sqrt 0.5) (sin B)))))
(if (<= F -5e-5)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F -4.8e-96)
t_0
(if (<= F 4.5e-94)
(/ (- x) (tan B))
(if (<= F 0.023) t_0 (- (* F (/ (/ 1.0 F) (sin B))) (/ x B))))))))
double code(double F, double B, double x) {
double t_0 = F * (sqrt(0.5) / sin(B));
double tmp;
if (F <= -5e-5) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= -4.8e-96) {
tmp = t_0;
} else if (F <= 4.5e-94) {
tmp = -x / tan(B);
} else if (F <= 0.023) {
tmp = t_0;
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
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 = f * (sqrt(0.5d0) / sin(b))
if (f <= (-5d-5)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= (-4.8d-96)) then
tmp = t_0
else if (f <= 4.5d-94) then
tmp = -x / tan(b)
else if (f <= 0.023d0) then
tmp = t_0
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = F * (Math.sqrt(0.5) / Math.sin(B));
double tmp;
if (F <= -5e-5) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= -4.8e-96) {
tmp = t_0;
} else if (F <= 4.5e-94) {
tmp = -x / Math.tan(B);
} else if (F <= 0.023) {
tmp = t_0;
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): t_0 = F * (math.sqrt(0.5) / math.sin(B)) tmp = 0 if F <= -5e-5: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= -4.8e-96: tmp = t_0 elif F <= 4.5e-94: tmp = -x / math.tan(B) elif F <= 0.023: tmp = t_0 else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) t_0 = Float64(F * Float64(sqrt(0.5) / sin(B))) tmp = 0.0 if (F <= -5e-5) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= -4.8e-96) tmp = t_0; elseif (F <= 4.5e-94) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.023) tmp = t_0; else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = F * (sqrt(0.5) / sin(B)); tmp = 0.0; if (F <= -5e-5) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= -4.8e-96) tmp = t_0; elseif (F <= 4.5e-94) tmp = -x / tan(B); elseif (F <= 0.023) tmp = t_0; else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(F * N[(N[Sqrt[0.5], $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -5e-5], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -4.8e-96], t$95$0, If[LessEqual[F, 4.5e-94], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.023], t$95$0, N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := F \cdot \frac{\sqrt{0.5}}{\sin B}\\
\mathbf{if}\;F \leq -5 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq -4.8 \cdot 10^{-96}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 4.5 \cdot 10^{-94}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.023:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -5.00000000000000024e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
if -5.00000000000000024e-5 < F < -4.80000000000000038e-96 or 4.5000000000000002e-94 < F < 0.023Initial program 99.0%
Simplified99.0%
Taylor expanded in F around 0 97.1%
*-commutative97.1%
associate-*l/97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 75.4%
associate-/l*75.4%
Simplified75.4%
if -4.80000000000000038e-96 < F < 4.5000000000000002e-94Initial program 99.5%
Simplified99.8%
Taylor expanded in F around -inf 30.8%
Taylor expanded in x around inf 79.1%
mul-1-neg79.1%
clear-num78.9%
*-un-lft-identity78.9%
times-frac78.9%
tan-quot79.0%
Applied egg-rr79.0%
associate-/r*79.0%
remove-double-div79.2%
distribute-neg-frac79.2%
Simplified79.2%
if 0.023 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.6%
Taylor expanded in B around 0 76.5%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (* F (/ (sqrt 0.5) (sin B)))))
(if (<= F -8.6e-5)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F -1.3e-86)
t_0
(if (<= F 1.8e-93)
(/ (- x) (tan B))
(if (<= F 0.035) t_0 (- (* F (/ (/ 1.0 F) (sin B))) (/ x B))))))))
double code(double F, double B, double x) {
double t_0 = F * (sqrt(0.5) / sin(B));
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= -1.3e-86) {
tmp = t_0;
} else if (F <= 1.8e-93) {
tmp = -x / tan(B);
} else if (F <= 0.035) {
tmp = t_0;
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
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 = f * (sqrt(0.5d0) / sin(b))
if (f <= (-8.6d-5)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= (-1.3d-86)) then
tmp = t_0
else if (f <= 1.8d-93) then
tmp = -x / tan(b)
else if (f <= 0.035d0) then
tmp = t_0
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = F * (Math.sqrt(0.5) / Math.sin(B));
double tmp;
if (F <= -8.6e-5) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= -1.3e-86) {
tmp = t_0;
} else if (F <= 1.8e-93) {
tmp = -x / Math.tan(B);
} else if (F <= 0.035) {
tmp = t_0;
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): t_0 = F * (math.sqrt(0.5) / math.sin(B)) tmp = 0 if F <= -8.6e-5: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= -1.3e-86: tmp = t_0 elif F <= 1.8e-93: tmp = -x / math.tan(B) elif F <= 0.035: tmp = t_0 else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) t_0 = Float64(F * Float64(sqrt(0.5) / sin(B))) tmp = 0.0 if (F <= -8.6e-5) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= -1.3e-86) tmp = t_0; elseif (F <= 1.8e-93) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.035) tmp = t_0; else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) t_0 = F * (sqrt(0.5) / sin(B)); tmp = 0.0; if (F <= -8.6e-5) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= -1.3e-86) tmp = t_0; elseif (F <= 1.8e-93) tmp = -x / tan(B); elseif (F <= 0.035) tmp = t_0; else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(F * N[(N[Sqrt[0.5], $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -8.6e-5], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -1.3e-86], t$95$0, If[LessEqual[F, 1.8e-93], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.035], t$95$0, N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := F \cdot \frac{\sqrt{0.5}}{\sin B}\\
\mathbf{if}\;F \leq -8.6 \cdot 10^{-5}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq -1.3 \cdot 10^{-86}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 1.8 \cdot 10^{-93}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.035:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -8.6000000000000003e-5Initial program 61.3%
Simplified74.8%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.9%
if -8.6000000000000003e-5 < F < -1.3000000000000001e-86 or 1.8000000000000001e-93 < F < 0.035000000000000003Initial program 99.0%
Simplified99.0%
Taylor expanded in F around 0 97.1%
*-commutative97.1%
associate-*l/97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 75.4%
associate-/l*75.4%
Simplified75.4%
if -1.3000000000000001e-86 < F < 1.8000000000000001e-93Initial program 99.5%
Simplified99.8%
Taylor expanded in F around -inf 30.8%
Taylor expanded in x around inf 79.1%
mul-1-neg79.1%
clear-num78.9%
*-un-lft-identity78.9%
times-frac78.9%
tan-quot79.0%
Applied egg-rr79.0%
associate-/r*79.0%
remove-double-div79.2%
distribute-neg-frac79.2%
Simplified79.2%
if 0.035000000000000003 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.6%
Taylor expanded in B around 0 76.5%
(FPCore (F B x)
:precision binary64
(if (<= F -4.2e-60)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 4.8e-95)
(/ (- x) (tan B))
(if (<= F 14.2)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (+ (* F F) (* x 2.0)))))) x) B)
(- (* F (/ (/ 1.0 F) (sin B))) (/ x B))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -4.2e-60) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 4.8e-95) {
tmp = -x / tan(B);
} else if (F <= 14.2) {
tmp = ((F * sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0)))))) - x) / B;
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-4.2d-60)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 4.8d-95) then
tmp = -x / tan(b)
else if (f <= 14.2d0) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + ((f * f) + (x * 2.0d0)))))) - x) / b
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -4.2e-60) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 4.8e-95) {
tmp = -x / Math.tan(B);
} else if (F <= 14.2) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0)))))) - x) / B;
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -4.2e-60: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 4.8e-95: tmp = -x / math.tan(B) elif F <= 14.2: tmp = ((F * math.sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0)))))) - x) / B else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -4.2e-60) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 4.8e-95) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 14.2) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(Float64(F * F) + Float64(x * 2.0)))))) - x) / B); else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -4.2e-60) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 4.8e-95) tmp = -x / tan(B); elseif (F <= 14.2) tmp = ((F * sqrt((1.0 / (2.0 + ((F * F) + (x * 2.0)))))) - x) / B; else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -4.2e-60], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.8e-95], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 14.2], N[(N[(N[(F * N[Sqrt[N[(1.0 / N[(2.0 + N[(N[(F * F), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -4.2 \cdot 10^{-60}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 4.8 \cdot 10^{-95}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 14.2:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + \left(F \cdot F + x \cdot 2\right)}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -4.19999999999999982e-60Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -4.19999999999999982e-60 < F < 4.8e-95Initial program 99.4%
Simplified99.7%
Taylor expanded in F around -inf 30.2%
Taylor expanded in x around inf 77.3%
mul-1-neg77.3%
clear-num77.1%
*-un-lft-identity77.1%
times-frac77.2%
tan-quot77.2%
Applied egg-rr77.2%
associate-/r*77.2%
remove-double-div77.4%
distribute-neg-frac77.4%
Simplified77.4%
if 4.8e-95 < F < 14.199999999999999Initial program 99.2%
Simplified99.1%
Taylor expanded in B around 0 65.7%
unpow265.7%
Applied egg-rr65.7%
if 14.199999999999999 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.6%
Taylor expanded in B around 0 76.5%
Final simplification76.2%
(FPCore (F B x)
:precision binary64
(if (<= F -6.5e-59)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 1.8e-94)
(/ (- x) (tan B))
(if (<= F 0.0165)
(- (* (sqrt (/ 1.0 (+ 2.0 (* x 2.0)))) (/ F B)) (/ x B))
(- (* F (/ (/ 1.0 F) (sin B))) (/ x B))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -6.5e-59) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 1.8e-94) {
tmp = -x / tan(B);
} else if (F <= 0.0165) {
tmp = (sqrt((1.0 / (2.0 + (x * 2.0)))) * (F / B)) - (x / B);
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-6.5d-59)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 1.8d-94) then
tmp = -x / tan(b)
else if (f <= 0.0165d0) then
tmp = (sqrt((1.0d0 / (2.0d0 + (x * 2.0d0)))) * (f / b)) - (x / b)
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -6.5e-59) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 1.8e-94) {
tmp = -x / Math.tan(B);
} else if (F <= 0.0165) {
tmp = (Math.sqrt((1.0 / (2.0 + (x * 2.0)))) * (F / B)) - (x / B);
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -6.5e-59: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 1.8e-94: tmp = -x / math.tan(B) elif F <= 0.0165: tmp = (math.sqrt((1.0 / (2.0 + (x * 2.0)))) * (F / B)) - (x / B) else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -6.5e-59) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 1.8e-94) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.0165) tmp = Float64(Float64(sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0)))) * Float64(F / B)) - Float64(x / B)); else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -6.5e-59) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 1.8e-94) tmp = -x / tan(B); elseif (F <= 0.0165) tmp = (sqrt((1.0 / (2.0 + (x * 2.0)))) * (F / B)) - (x / B); else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -6.5e-59], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.8e-94], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.0165], N[(N[(N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(F / B), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -6.5 \cdot 10^{-59}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 1.8 \cdot 10^{-94}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.0165:\\
\;\;\;\;\sqrt{\frac{1}{2 + x \cdot 2}} \cdot \frac{F}{B} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -6.50000000000000017e-59Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -6.50000000000000017e-59 < F < 1.8e-94Initial program 99.4%
Simplified99.7%
Taylor expanded in F around -inf 30.2%
Taylor expanded in x around inf 77.3%
mul-1-neg77.3%
clear-num77.1%
*-un-lft-identity77.1%
times-frac77.2%
tan-quot77.2%
Applied egg-rr77.2%
associate-/r*77.2%
remove-double-div77.4%
distribute-neg-frac77.4%
Simplified77.4%
if 1.8e-94 < F < 0.016500000000000001Initial program 99.2%
Simplified99.1%
Taylor expanded in B around 0 65.7%
Taylor expanded in F around 0 64.0%
if 0.016500000000000001 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.6%
Taylor expanded in B around 0 76.5%
Final simplification76.1%
(FPCore (F B x)
:precision binary64
(if (<= F -2.7e-58)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 7.6e-93)
(/ (- x) (tan B))
(if (<= F 0.195)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) B)
(- (* F (/ (/ 1.0 F) (sin B))) (/ x B))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.7e-58) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 7.6e-93) {
tmp = -x / tan(B);
} else if (F <= 0.195) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-2.7d-58)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 7.6d-93) then
tmp = -x / tan(b)
else if (f <= 0.195d0) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / b
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.7e-58) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 7.6e-93) {
tmp = -x / Math.tan(B);
} else if (F <= 0.195) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.7e-58: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 7.6e-93: tmp = -x / math.tan(B) elif F <= 0.195: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.7e-58) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 7.6e-93) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 0.195) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.7e-58) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 7.6e-93) tmp = -x / tan(B); elseif (F <= 0.195) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B; else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.7e-58], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.6e-93], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 0.195], N[(N[(N[(F * N[Sqrt[N[(1.0 / N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] / B), $MachinePrecision], N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.7 \cdot 10^{-58}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 7.6 \cdot 10^{-93}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 0.195:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -2.6999999999999999e-58Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -2.6999999999999999e-58 < F < 7.5999999999999998e-93Initial program 99.4%
Simplified99.7%
Taylor expanded in F around -inf 30.2%
Taylor expanded in x around inf 77.3%
mul-1-neg77.3%
clear-num77.1%
*-un-lft-identity77.1%
times-frac77.2%
tan-quot77.2%
Applied egg-rr77.2%
associate-/r*77.2%
remove-double-div77.4%
distribute-neg-frac77.4%
Simplified77.4%
if 7.5999999999999998e-93 < F < 0.19500000000000001Initial program 99.2%
Simplified99.1%
Taylor expanded in F around 0 97.4%
*-commutative97.4%
associate-*l/97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in B around 0 63.9%
if 0.19500000000000001 < F Initial program 62.1%
Simplified74.7%
Taylor expanded in F around inf 99.6%
Taylor expanded in B around 0 76.5%
Final simplification76.1%
(FPCore (F B x)
:precision binary64
(if (<= F -1.5e-67)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 2.2e-30)
(/ (- x) (tan B))
(- (* F (/ (/ 1.0 F) (sin B))) (/ x B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.5e-67) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 2.2e-30) {
tmp = -x / tan(B);
} else {
tmp = (F * ((1.0 / F) / sin(B))) - (x / B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.5d-67)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 2.2d-30) then
tmp = -x / tan(b)
else
tmp = (f * ((1.0d0 / f) / sin(b))) - (x / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.5e-67) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 2.2e-30) {
tmp = -x / Math.tan(B);
} else {
tmp = (F * ((1.0 / F) / Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.5e-67: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 2.2e-30: tmp = -x / math.tan(B) else: tmp = (F * ((1.0 / F) / math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.5e-67) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 2.2e-30) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(F * Float64(Float64(1.0 / F) / sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.5e-67) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 2.2e-30) tmp = -x / tan(B); else tmp = (F * ((1.0 / F) / sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.5e-67], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.2e-30], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(F * N[(N[(1.0 / F), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.5 \cdot 10^{-67}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 2.2 \cdot 10^{-30}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;F \cdot \frac{\frac{1}{F}}{\sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -1.50000000000000016e-67Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -1.50000000000000016e-67 < F < 2.19999999999999983e-30Initial program 99.4%
Simplified99.7%
Taylor expanded in F around -inf 30.2%
Taylor expanded in x around inf 71.2%
mul-1-neg71.2%
clear-num71.1%
*-un-lft-identity71.1%
times-frac71.1%
tan-quot71.1%
Applied egg-rr71.1%
associate-/r*71.2%
remove-double-div71.3%
distribute-neg-frac71.3%
Simplified71.3%
if 2.19999999999999983e-30 < F Initial program 64.1%
Simplified76.0%
Taylor expanded in F around inf 94.7%
Taylor expanded in B around 0 72.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -9.5e-64)
(- (/ -1.0 B) t_0)
(if (<= F 1.8e-102) (/ (- x) (tan B)) (- (/ 1.0 B) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -9.5e-64) {
tmp = (-1.0 / B) - t_0;
} else if (F <= 1.8e-102) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / 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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-9.5d-64)) then
tmp = ((-1.0d0) / b) - t_0
else if (f <= 1.8d-102) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -9.5e-64) {
tmp = (-1.0 / B) - t_0;
} else if (F <= 1.8e-102) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -9.5e-64: tmp = (-1.0 / B) - t_0 elif F <= 1.8e-102: tmp = -x / math.tan(B) else: tmp = (1.0 / B) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -9.5e-64) tmp = Float64(Float64(-1.0 / B) - t_0); elseif (F <= 1.8e-102) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - t_0); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -9.5e-64) tmp = (-1.0 / B) - t_0; elseif (F <= 1.8e-102) tmp = -x / tan(B); else tmp = (1.0 / B) - t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -9.5e-64], N[(N[(-1.0 / B), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.8e-102], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -9.5 \cdot 10^{-64}:\\
\;\;\;\;\frac{-1}{B} - t\_0\\
\mathbf{elif}\;F \leq 1.8 \cdot 10^{-102}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - t\_0\\
\end{array}
\end{array}
if F < -9.50000000000000043e-64Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -9.50000000000000043e-64 < F < 1.8e-102Initial program 99.5%
Simplified99.7%
Taylor expanded in F around -inf 30.0%
Taylor expanded in x around inf 76.5%
mul-1-neg76.5%
clear-num76.3%
*-un-lft-identity76.3%
times-frac76.3%
tan-quot76.3%
Applied egg-rr76.3%
associate-/r*76.4%
remove-double-div76.6%
distribute-neg-frac76.6%
Simplified76.6%
if 1.8e-102 < F Initial program 70.4%
Simplified80.2%
Taylor expanded in F around inf 82.7%
Taylor expanded in B around 0 61.7%
(FPCore (F B x) :precision binary64 (if (<= F -1.38e+23) (/ (- -1.0 x) B) (if (<= F 1.65e-17) (/ x (- (sin B))) (/ (- 1.0 x) B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.65e-17) {
tmp = x / -sin(B);
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.38d+23)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.65d-17) then
tmp = x / -sin(b)
else
tmp = (1.0d0 - x) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.38e+23) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.65e-17) {
tmp = x / -Math.sin(B);
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.38e+23: tmp = (-1.0 - x) / B elif F <= 1.65e-17: tmp = x / -math.sin(B) else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.38e+23) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.65e-17) tmp = Float64(x / Float64(-sin(B))); else tmp = Float64(Float64(1.0 - x) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.38e+23) tmp = (-1.0 - x) / B; elseif (F <= 1.65e-17) tmp = x / -sin(B); else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.38e+23], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.65e-17], N[(x / (-N[Sin[B], $MachinePrecision])), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.38 \cdot 10^{+23}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.65 \cdot 10^{-17}:\\
\;\;\;\;\frac{x}{-\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -1.38e23Initial program 59.8%
Simplified73.9%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 54.1%
mul-1-neg54.1%
distribute-neg-frac254.1%
Simplified54.1%
if -1.38e23 < F < 1.65e-17Initial program 99.4%
Simplified99.6%
Taylor expanded in F around -inf 31.1%
Taylor expanded in x around inf 67.9%
Taylor expanded in B around 0 40.2%
associate-*r/40.2%
Applied egg-rr40.2%
neg-mul-140.2%
Simplified40.2%
if 1.65e-17 < F Initial program 63.7%
Simplified75.7%
Taylor expanded in F around inf 95.9%
Taylor expanded in B around 0 44.5%
Final simplification45.6%
(FPCore (F B x) :precision binary64 (if (<= F -8e-66) (- (/ -1.0 B) (/ x (tan B))) (/ (- x) (tan B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -8e-66) {
tmp = (-1.0 / B) - (x / tan(B));
} else {
tmp = -x / tan(B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-8d-66)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else
tmp = -x / tan(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -8e-66) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else {
tmp = -x / Math.tan(B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -8e-66: tmp = (-1.0 / B) - (x / math.tan(B)) else: tmp = -x / math.tan(B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -8e-66) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); else tmp = Float64(Float64(-x) / tan(B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -8e-66) tmp = (-1.0 / B) - (x / tan(B)); else tmp = -x / tan(B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -8e-66], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -8 \cdot 10^{-66}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\end{array}
\end{array}
if F < -7.9999999999999998e-66Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 77.0%
if -7.9999999999999998e-66 < F Initial program 84.0%
Simplified89.3%
Taylor expanded in F around -inf 34.8%
Taylor expanded in x around inf 58.5%
mul-1-neg58.5%
clear-num58.4%
*-un-lft-identity58.4%
times-frac58.3%
tan-quot58.4%
Applied egg-rr58.4%
associate-/r*58.5%
remove-double-div58.6%
distribute-neg-frac58.6%
Simplified58.6%
(FPCore (F B x) :precision binary64 (if (<= F -1.05e+38) (/ (- -1.0 x) B) (/ (- x) (tan B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.05e+38) {
tmp = (-1.0 - x) / B;
} else {
tmp = -x / tan(B);
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.05d+38)) then
tmp = ((-1.0d0) - x) / b
else
tmp = -x / tan(b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.05e+38) {
tmp = (-1.0 - x) / B;
} else {
tmp = -x / Math.tan(B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.05e+38: tmp = (-1.0 - x) / B else: tmp = -x / math.tan(B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.05e+38) tmp = Float64(Float64(-1.0 - x) / B); else tmp = Float64(Float64(-x) / tan(B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.05e+38) tmp = (-1.0 - x) / B; else tmp = -x / tan(B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.05e+38], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.05 \cdot 10^{+38}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\end{array}
\end{array}
if F < -1.05e38Initial program 58.8%
Simplified73.2%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 55.4%
mul-1-neg55.4%
distribute-neg-frac255.4%
Simplified55.4%
if -1.05e38 < F Initial program 85.1%
Simplified90.0%
Taylor expanded in F around -inf 35.9%
Taylor expanded in x around inf 58.2%
mul-1-neg58.2%
clear-num58.1%
*-un-lft-identity58.1%
times-frac58.0%
tan-quot58.0%
Applied egg-rr58.0%
associate-/r*58.1%
remove-double-div58.2%
distribute-neg-frac58.2%
Simplified58.2%
Final simplification57.4%
(FPCore (F B x) :precision binary64 (if (<= F -1.1e-59) (/ (- -1.0 x) B) (if (<= F 1.52e-92) (/ x (- B)) (/ (- 1.0 x) B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.1e-59) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.52e-92) {
tmp = x / -B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= (-1.1d-59)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.52d-92) then
tmp = x / -b
else
tmp = (1.0d0 - x) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.1e-59) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.52e-92) {
tmp = x / -B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.1e-59: tmp = (-1.0 - x) / B elif F <= 1.52e-92: tmp = x / -B else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.1e-59) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.52e-92) tmp = Float64(x / Float64(-B)); else tmp = Float64(Float64(1.0 - x) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.1e-59) tmp = (-1.0 - x) / B; elseif (F <= 1.52e-92) tmp = x / -B; else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.1e-59], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.52e-92], N[(x / (-B)), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.1 \cdot 10^{-59}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.52 \cdot 10^{-92}:\\
\;\;\;\;\frac{x}{-B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -1.0999999999999999e-59Initial program 64.7%
Simplified77.0%
Taylor expanded in F around -inf 92.6%
Taylor expanded in B around 0 50.2%
mul-1-neg50.2%
distribute-neg-frac250.2%
Simplified50.2%
if -1.0999999999999999e-59 < F < 1.52e-92Initial program 99.4%
Simplified99.7%
Taylor expanded in F around inf 18.4%
Taylor expanded in B around 0 18.3%
Taylor expanded in x around inf 42.0%
associate-*r/42.0%
neg-mul-142.0%
Simplified42.0%
if 1.52e-92 < F Initial program 69.4%
Simplified79.5%
Taylor expanded in F around inf 84.4%
Taylor expanded in B around 0 40.4%
Final simplification44.3%
(FPCore (F B x) :precision binary64 (if (<= F 1.65e-92) (/ x (- B)) (/ (- 1.0 x) B)))
double code(double F, double B, double x) {
double tmp;
if (F <= 1.65e-92) {
tmp = x / -B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= 1.65d-92) then
tmp = x / -b
else
tmp = (1.0d0 - x) / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= 1.65e-92) {
tmp = x / -B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= 1.65e-92: tmp = x / -B else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= 1.65e-92) tmp = Float64(x / Float64(-B)); else tmp = Float64(Float64(1.0 - x) / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= 1.65e-92) tmp = x / -B; else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, 1.65e-92], N[(x / (-B)), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq 1.65 \cdot 10^{-92}:\\
\;\;\;\;\frac{x}{-B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < 1.64999999999999999e-92Initial program 81.3%
Simplified87.8%
Taylor expanded in F around inf 30.3%
Taylor expanded in B around 0 17.0%
Taylor expanded in x around inf 28.8%
associate-*r/28.8%
neg-mul-128.8%
Simplified28.8%
if 1.64999999999999999e-92 < F Initial program 69.4%
Simplified79.5%
Taylor expanded in F around inf 84.4%
Taylor expanded in B around 0 40.4%
Final simplification32.7%
(FPCore (F B x) :precision binary64 (if (<= F 5.2e+145) (/ x (- B)) (/ 1.0 B)))
double code(double F, double B, double x) {
double tmp;
if (F <= 5.2e+145) {
tmp = x / -B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
real(8) :: tmp
if (f <= 5.2d+145) then
tmp = x / -b
else
tmp = 1.0d0 / b
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= 5.2e+145) {
tmp = x / -B;
} else {
tmp = 1.0 / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= 5.2e+145: tmp = x / -B else: tmp = 1.0 / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= 5.2e+145) tmp = Float64(x / Float64(-B)); else tmp = Float64(1.0 / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= 5.2e+145) tmp = x / -B; else tmp = 1.0 / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, 5.2e+145], N[(x / (-B)), $MachinePrecision], N[(1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq 5.2 \cdot 10^{+145}:\\
\;\;\;\;\frac{x}{-B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B}\\
\end{array}
\end{array}
if F < 5.20000000000000005e145Initial program 83.8%
Simplified90.5%
Taylor expanded in F around inf 40.1%
Taylor expanded in B around 0 22.5%
Taylor expanded in x around inf 28.1%
associate-*r/28.1%
neg-mul-128.1%
Simplified28.1%
if 5.20000000000000005e145 < F Initial program 37.8%
Simplified51.7%
Taylor expanded in F around inf 99.8%
Taylor expanded in B around 0 39.4%
Taylor expanded in x around 0 28.6%
Final simplification28.2%
(FPCore (F B x) :precision binary64 (/ 1.0 B))
double code(double F, double B, double x) {
return 1.0 / B;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = 1.0d0 / b
end function
public static double code(double F, double B, double x) {
return 1.0 / B;
}
def code(F, B, x): return 1.0 / B
function code(F, B, x) return Float64(1.0 / B) end
function tmp = code(F, B, x) tmp = 1.0 / B; end
code[F_, B_, x_] := N[(1.0 / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{1}{B}
\end{array}
Initial program 77.3%
Simplified85.0%
Taylor expanded in F around inf 48.5%
Taylor expanded in B around 0 24.8%
Taylor expanded in x around 0 9.1%
herbie shell --seed 2024182
(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))))))