
(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 23 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 -4.2e+142)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 150000000.0)
(- (* F (/ (sqrt (/ 1.0 (fma F F 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 <= -4.2e+142) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 150000000.0) {
tmp = (F * (sqrt((1.0 / fma(F, F, 2.0))) / 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 <= -4.2e+142) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 150000000.0) tmp = Float64(Float64(F * Float64(sqrt(Float64(1.0 / fma(F, F, 2.0))) / 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, -4.2e+142], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 150000000.0], N[(N[(F * N[(N[Sqrt[N[(1.0 / N[(F * F + 2.0), $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 -4.2 \cdot 10^{+142}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 150000000:\\
\;\;\;\;F \cdot \frac{\sqrt{\frac{1}{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -4.2e142Initial program 38.7%
Simplified59.2%
Taylor expanded in x around 0 59.2%
associate-*l/59.2%
*-lft-identity59.2%
+-commutative59.2%
unpow259.2%
fma-undefine59.2%
Simplified59.2%
associate-*r/59.2%
sqrt-div59.2%
metadata-eval59.2%
un-div-inv59.2%
Applied egg-rr59.2%
Taylor expanded in F around -inf 99.9%
neg-mul-199.9%
Simplified99.9%
if -4.2e142 < F < 1.5e8Initial program 98.7%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
if 1.5e8 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
Taylor expanded in F around inf 99.8%
Final simplification99.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1e+156)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 0.5)
(- (/ (/ F (sqrt (fma F F 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 <= -1e+156) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 0.5) {
tmp = ((F / sqrt(fma(F, F, 2.0))) / 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 <= -1e+156) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 0.5) tmp = Float64(Float64(Float64(F / sqrt(fma(F, F, 2.0))) / 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, -1e+156], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 0.5], N[(N[(N[(F / N[Sqrt[N[(F * F + 2.0), $MachinePrecision]], $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 -1 \cdot 10^{+156}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 0.5:\\
\;\;\;\;\frac{\frac{F}{\sqrt{\mathsf{fma}\left(F, F, 2\right)}}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -9.9999999999999998e155Initial program 34.1%
Simplified54.7%
Taylor expanded in x around 0 54.7%
associate-*l/54.7%
*-lft-identity54.7%
+-commutative54.7%
unpow254.7%
fma-undefine54.7%
Simplified54.7%
associate-*r/54.7%
sqrt-div54.7%
metadata-eval54.7%
un-div-inv54.7%
Applied egg-rr54.7%
Taylor expanded in F around -inf 100.0%
neg-mul-1100.0%
Simplified100.0%
if -9.9999999999999998e155 < F < 0.5Initial program 98.1%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
associate-*r/99.6%
sqrt-div99.6%
metadata-eval99.6%
un-div-inv99.6%
Applied egg-rr99.6%
if 0.5 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
Taylor expanded in F around inf 99.8%
Final simplification99.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -2000000000000.0)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 200000000.0)
(+
(* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5))
(* x (/ -1.0 (tan B))))
(- (/ 1.0 (sin B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -2000000000000.0) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 200000000.0) {
tmp = ((F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) + (x * (-1.0 / tan(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
real(8) :: t_0
real(8) :: tmp
t_0 = x / tan(b)
if (f <= (-2000000000000.0d0)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_0
else if (f <= 200000000.0d0) then
tmp = ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))) + (x * ((-1.0d0) / tan(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) {
double t_0 = x / Math.tan(B);
double tmp;
if (F <= -2000000000000.0) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_0;
} else if (F <= 200000000.0) {
tmp = ((F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) + (x * (-1.0 / Math.tan(B)));
} 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 <= -2000000000000.0: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_0 elif F <= 200000000.0: tmp = ((F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) + (x * (-1.0 / math.tan(B))) 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 <= -2000000000000.0) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 200000000.0) tmp = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5)) + Float64(x * Float64(-1.0 / tan(B)))); 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 <= -2000000000000.0) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0; elseif (F <= 200000000.0) tmp = ((F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5)) + (x * (-1.0 / tan(B))); 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, -2000000000000.0], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 200000000.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 * N[(-1.0 / N[Tan[B], $MachinePrecision]), $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 -2000000000000:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 200000000:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} + x \cdot \frac{-1}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -2e12Initial program 58.3%
Simplified73.0%
Taylor expanded in x around 0 73.0%
associate-*l/73.0%
*-lft-identity73.0%
+-commutative73.0%
unpow273.0%
fma-undefine73.0%
Simplified73.0%
associate-*r/73.0%
sqrt-div73.1%
metadata-eval73.1%
un-div-inv73.1%
Applied egg-rr73.1%
Taylor expanded in F around -inf 99.9%
neg-mul-199.9%
Simplified99.9%
if -2e12 < F < 2e8Initial program 99.4%
if 2e8 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
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 -1e+21)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 0.5)
(+
(/ -1.0 (/ (tan B) x))
(* (/ 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 <= -1e+21) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 0.5) {
tmp = (-1.0 / (tan(B) / x)) + ((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 <= (-1d+21)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_0
else if (f <= 0.5d0) then
tmp = ((-1.0d0) / (tan(b) / x)) + ((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 <= -1e+21) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_0;
} else if (F <= 0.5) {
tmp = (-1.0 / (Math.tan(B) / x)) + ((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 <= -1e+21: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_0 elif F <= 0.5: tmp = (-1.0 / (math.tan(B) / x)) + ((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 <= -1e+21) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 0.5) tmp = Float64(Float64(-1.0 / Float64(tan(B) / x)) + 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 <= -1e+21) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0; elseif (F <= 0.5) tmp = (-1.0 / (tan(B) / x)) + ((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, -1e+21], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 0.5], N[(N[(-1.0 / N[(N[Tan[B], $MachinePrecision] / x), $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 -1 \cdot 10^{+21}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 0.5:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \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 < -1e21Initial program 57.2%
Simplified72.3%
Taylor expanded in x around 0 72.3%
associate-*l/72.3%
*-lft-identity72.3%
+-commutative72.3%
unpow272.3%
fma-undefine72.3%
Simplified72.3%
associate-*r/72.3%
sqrt-div72.3%
metadata-eval72.3%
un-div-inv72.3%
Applied egg-rr72.3%
Taylor expanded in F around -inf 99.9%
neg-mul-199.9%
Simplified99.9%
if -1e21 < F < 0.5Initial program 99.4%
div-inv99.5%
clear-num99.4%
Applied egg-rr99.4%
if 0.5 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
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 -0.9)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 1.4)
(- (* F (/ (sqrt 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 <= -0.9) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = (F * (sqrt(0.5) / 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 <= (-0.9d0)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_0
else if (f <= 1.4d0) then
tmp = (f * (sqrt(0.5d0) / 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 <= -0.9) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = (F * (Math.sqrt(0.5) / 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 <= -0.9: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_0 elif F <= 1.4: tmp = (F * (math.sqrt(0.5) / 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 <= -0.9) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 1.4) tmp = Float64(Float64(F * Float64(sqrt(0.5) / 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 <= -0.9) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0; elseif (F <= 1.4) tmp = (F * (sqrt(0.5) / 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, -0.9], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.4], N[(N[(F * N[(N[Sqrt[0.5], $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 -0.9:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.4:\\
\;\;\;\;F \cdot \frac{\sqrt{0.5}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -0.900000000000000022Initial program 58.9%
Simplified73.3%
Taylor expanded in x around 0 73.4%
associate-*l/73.4%
*-lft-identity73.4%
+-commutative73.4%
unpow273.4%
fma-undefine73.4%
Simplified73.4%
associate-*r/73.4%
sqrt-div73.4%
metadata-eval73.4%
un-div-inv73.4%
Applied egg-rr73.4%
Taylor expanded in F around -inf 99.9%
neg-mul-199.9%
Simplified99.9%
if -0.900000000000000022 < F < 1.3999999999999999Initial program 99.4%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
Taylor expanded in F around 0 98.8%
if 1.3999999999999999 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
Taylor expanded in F around inf 99.8%
Final simplification99.4%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -0.9)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(if (<= F 1.4)
(- (/ (* F (sqrt 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 <= -0.9) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = ((F * sqrt(0.5)) / 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 <= (-0.9d0)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_0
else if (f <= 1.4d0) then
tmp = ((f * sqrt(0.5d0)) / 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 <= -0.9) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_0;
} else if (F <= 1.4) {
tmp = ((F * Math.sqrt(0.5)) / 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 <= -0.9: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_0 elif F <= 1.4: tmp = ((F * math.sqrt(0.5)) / 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 <= -0.9) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); elseif (F <= 1.4) tmp = Float64(Float64(Float64(F * sqrt(0.5)) / 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 <= -0.9) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0; elseif (F <= 1.4) tmp = ((F * sqrt(0.5)) / 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, -0.9], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.4], N[(N[(N[(F * N[Sqrt[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 -0.9:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{elif}\;F \leq 1.4:\\
\;\;\;\;\frac{F \cdot \sqrt{0.5}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -0.900000000000000022Initial program 58.9%
Simplified73.3%
Taylor expanded in x around 0 73.4%
associate-*l/73.4%
*-lft-identity73.4%
+-commutative73.4%
unpow273.4%
fma-undefine73.4%
Simplified73.4%
associate-*r/73.4%
sqrt-div73.4%
metadata-eval73.4%
un-div-inv73.4%
Applied egg-rr73.4%
Taylor expanded in F around -inf 99.9%
neg-mul-199.9%
Simplified99.9%
if -0.900000000000000022 < F < 1.3999999999999999Initial program 99.4%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
Taylor expanded in F around 0 98.8%
*-commutative98.8%
Simplified98.8%
if 1.3999999999999999 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
Taylor expanded in F around inf 99.8%
Final simplification99.4%
(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)))
(t_2 (- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_1)))
(if (<= F -3.3e+18)
t_2
(if (<= F -4.6e-57)
t_0
(if (<= F 3.25e-164)
t_2
(if (<= F 3400.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 t_2 = ((F / ((-1.0 / F) - F)) / sin(B)) - t_1;
double tmp;
if (F <= -3.3e+18) {
tmp = t_2;
} else if (F <= -4.6e-57) {
tmp = t_0;
} else if (F <= 3.25e-164) {
tmp = t_2;
} else if (F <= 3400.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) :: t_2
real(8) :: tmp
t_0 = ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))) - (x / b)
t_1 = x / tan(b)
t_2 = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_1
if (f <= (-3.3d+18)) then
tmp = t_2
else if (f <= (-4.6d-57)) then
tmp = t_0
else if (f <= 3.25d-164) then
tmp = t_2
else if (f <= 3400.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 t_2 = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_1;
double tmp;
if (F <= -3.3e+18) {
tmp = t_2;
} else if (F <= -4.6e-57) {
tmp = t_0;
} else if (F <= 3.25e-164) {
tmp = t_2;
} else if (F <= 3400.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) t_2 = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_1 tmp = 0 if F <= -3.3e+18: tmp = t_2 elif F <= -4.6e-57: tmp = t_0 elif F <= 3.25e-164: tmp = t_2 elif F <= 3400.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)) t_2 = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_1) tmp = 0.0 if (F <= -3.3e+18) tmp = t_2; elseif (F <= -4.6e-57) tmp = t_0; elseif (F <= 3.25e-164) tmp = t_2; elseif (F <= 3400.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); t_2 = ((F / ((-1.0 / F) - F)) / sin(B)) - t_1; tmp = 0.0; if (F <= -3.3e+18) tmp = t_2; elseif (F <= -4.6e-57) tmp = t_0; elseif (F <= 3.25e-164) tmp = t_2; elseif (F <= 3400.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]}, Block[{t$95$2 = N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[F, -3.3e+18], t$95$2, If[LessEqual[F, -4.6e-57], t$95$0, If[LessEqual[F, 3.25e-164], t$95$2, If[LessEqual[F, 3400.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}\\
t_2 := \frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_1\\
\mathbf{if}\;F \leq -3.3 \cdot 10^{+18}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;F \leq -4.6 \cdot 10^{-57}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq 3.25 \cdot 10^{-164}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;F \leq 3400:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_1\\
\end{array}
\end{array}
if F < -3.3e18 or -4.6e-57 < F < 3.25000000000000002e-164Initial program 76.6%
Simplified84.9%
Taylor expanded in x around 0 84.9%
associate-*l/84.9%
*-lft-identity84.9%
+-commutative84.9%
unpow284.9%
fma-undefine84.9%
Simplified84.9%
associate-*r/84.9%
sqrt-div84.9%
metadata-eval84.9%
un-div-inv84.9%
Applied egg-rr84.9%
Taylor expanded in F around -inf 92.3%
neg-mul-192.3%
Simplified92.3%
if -3.3e18 < F < -4.6e-57 or 3.25000000000000002e-164 < F < 3400Initial program 99.2%
Taylor expanded in B around 0 87.5%
if 3400 < F Initial program 62.7%
Simplified78.0%
Taylor expanded in x around 0 78.0%
associate-*l/78.0%
*-lft-identity78.0%
+-commutative78.0%
unpow278.0%
fma-undefine78.0%
Simplified78.0%
Taylor expanded in F around inf 99.8%
Final simplification93.5%
(FPCore (F B x)
:precision binary64
(if (<= F -1.1e+164)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -5.7e-52)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) (/ x B))
(if (<= F 7.8e-21) (/ (- x) (tan B)) (- (/ 1.0 (sin B)) (/ x (tan B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.1e+164) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -5.7e-52) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - (x / B);
} else if (F <= 7.8e-21) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / sin(B)) - (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.1d+164)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-5.7d-52)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - (x / b)
else if (f <= 7.8d-21) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / sin(b)) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.1e+164) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -5.7e-52) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - (x / B);
} else if (F <= 7.8e-21) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / Math.sin(B)) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.1e+164: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -5.7e-52: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - (x / B) elif F <= 7.8e-21: tmp = -x / math.tan(B) else: tmp = (1.0 / math.sin(B)) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.1e+164) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -5.7e-52) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - Float64(x / B)); elseif (F <= 7.8e-21) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / sin(B)) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.1e+164) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -5.7e-52) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - (x / B); elseif (F <= 7.8e-21) tmp = -x / tan(B); else tmp = (1.0 / sin(B)) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.1e+164], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -5.7e-52], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.8e-21], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.1 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -5.7 \cdot 10^{-52}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 7.8 \cdot 10^{-21}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -1.10000000000000003e164Initial program 36.4%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.5%
if -1.10000000000000003e164 < F < -5.6999999999999997e-52Initial program 88.2%
Simplified92.7%
Taylor expanded in x around 0 92.7%
associate-*l/92.7%
*-lft-identity92.7%
+-commutative92.7%
unpow292.7%
fma-undefine92.7%
Simplified92.7%
associate-*r/92.8%
sqrt-div92.8%
metadata-eval92.8%
un-div-inv92.8%
Applied egg-rr92.8%
Taylor expanded in F around -inf 89.0%
neg-mul-189.0%
Simplified89.0%
Taylor expanded in B around 0 82.2%
if -5.6999999999999997e-52 < F < 7.8000000000000001e-21Initial program 99.3%
Taylor expanded in F around -inf 35.0%
Taylor expanded in x around inf 72.7%
mul-1-neg72.7%
*-commutative72.7%
associate-/l*72.6%
associate-/r/72.5%
distribute-rgt-neg-in72.5%
Simplified72.5%
distribute-rgt-neg-out72.5%
neg-sub072.5%
add-sqr-sqrt48.1%
sqrt-unprod37.9%
sqr-neg37.9%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod38.0%
sqr-neg38.0%
sqrt-unprod48.1%
add-sqr-sqrt72.7%
Applied egg-rr72.7%
neg-sub072.7%
distribute-neg-frac72.7%
Simplified72.7%
if 7.8000000000000001e-21 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in x around 0 79.9%
associate-*l/79.9%
*-lft-identity79.9%
+-commutative79.9%
unpow279.9%
fma-undefine79.9%
Simplified79.9%
Taylor expanded in F around inf 94.2%
Final simplification82.3%
(FPCore (F B x) :precision binary64 (if (<= F -2e-49) (+ (* x (/ -1.0 (tan B))) (/ -1.0 (sin B))) (- (/ (/ F (+ F (/ 1.0 F))) (sin B)) (/ x (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2e-49) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / sin(B));
} else {
tmp = ((F / (F + (1.0 / F))) / sin(B)) - (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 <= (-2d-49)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / sin(b))
else
tmp = ((f / (f + (1.0d0 / f))) / sin(b)) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2e-49) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / Math.sin(B));
} else {
tmp = ((F / (F + (1.0 / F))) / Math.sin(B)) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2e-49: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / math.sin(B)) else: tmp = ((F / (F + (1.0 / F))) / math.sin(B)) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2e-49) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / sin(B))); else tmp = Float64(Float64(Float64(F / Float64(F + Float64(1.0 / F))) / sin(B)) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2e-49) tmp = (x * (-1.0 / tan(B))) + (-1.0 / sin(B)); else tmp = ((F / (F + (1.0 / F))) / sin(B)) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2e-49], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(F / N[(F + N[(1.0 / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{\sin B}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{F}{F + \frac{1}{F}}}{\sin B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -1.99999999999999987e-49Initial program 62.3%
Taylor expanded in F around -inf 94.0%
if -1.99999999999999987e-49 < F Initial program 84.2%
Simplified90.7%
Taylor expanded in x around 0 90.7%
associate-*l/90.7%
*-lft-identity90.7%
+-commutative90.7%
unpow290.7%
fma-undefine90.7%
Simplified90.7%
associate-*r/90.7%
sqrt-div90.7%
metadata-eval90.7%
un-div-inv90.7%
Applied egg-rr90.7%
Taylor expanded in F around inf 82.5%
Final simplification86.3%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -5e-113)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) t_0)
(- (/ (/ F (+ F (/ 1.0 F))) (sin B)) t_0))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -5e-113) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0;
} else {
tmp = ((F / (F + (1.0 / F))) / 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 <= (-5d-113)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - t_0
else
tmp = ((f / (f + (1.0d0 / f))) / 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 <= -5e-113) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - t_0;
} else {
tmp = ((F / (F + (1.0 / F))) / Math.sin(B)) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -5e-113: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - t_0 else: tmp = ((F / (F + (1.0 / F))) / math.sin(B)) - t_0 return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -5e-113) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - t_0); else tmp = Float64(Float64(Float64(F / Float64(F + Float64(1.0 / F))) / 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 <= -5e-113) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - t_0; else tmp = ((F / (F + (1.0 / F))) / 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, -5e-113], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(N[(F / N[(F + N[(1.0 / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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^{-113}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{F}{F + \frac{1}{F}}}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -4.9999999999999997e-113Initial program 67.6%
Simplified79.0%
Taylor expanded in x around 0 79.0%
associate-*l/79.0%
*-lft-identity79.0%
+-commutative79.0%
unpow279.0%
fma-undefine79.0%
Simplified79.0%
associate-*r/79.0%
sqrt-div79.0%
metadata-eval79.0%
un-div-inv79.0%
Applied egg-rr79.0%
Taylor expanded in F around -inf 91.4%
neg-mul-191.4%
Simplified91.4%
if -4.9999999999999997e-113 < F Initial program 82.8%
Simplified89.9%
Taylor expanded in x around 0 89.9%
associate-*l/89.9%
*-lft-identity89.9%
+-commutative89.9%
unpow289.9%
fma-undefine89.9%
Simplified89.9%
associate-*r/89.9%
sqrt-div89.9%
metadata-eval89.9%
un-div-inv89.9%
Applied egg-rr89.9%
Taylor expanded in F around inf 83.4%
Final simplification86.5%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -3.3e+18)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 (sin B)))
(if (<= F 2.7e-20)
(- (/ (- F) (* B (+ F (/ 1.0 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 <= -3.3e+18) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / sin(B));
} else if (F <= 2.7e-20) {
tmp = (-F / (B * (F + (1.0 / F)))) - 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 <= (-3.3d+18)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / sin(b))
else if (f <= 2.7d-20) then
tmp = (-f / (b * (f + (1.0d0 / f)))) - 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 <= -3.3e+18) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / Math.sin(B));
} else if (F <= 2.7e-20) {
tmp = (-F / (B * (F + (1.0 / F)))) - 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 <= -3.3e+18: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / math.sin(B)) elif F <= 2.7e-20: tmp = (-F / (B * (F + (1.0 / F)))) - 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 <= -3.3e+18) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / sin(B))); elseif (F <= 2.7e-20) tmp = Float64(Float64(Float64(-F) / Float64(B * Float64(F + Float64(1.0 / F)))) - 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 <= -3.3e+18) tmp = (x * (-1.0 / tan(B))) + (-1.0 / sin(B)); elseif (F <= 2.7e-20) tmp = (-F / (B * (F + (1.0 / F)))) - 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, -3.3e+18], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.7e-20], N[(N[((-F) / N[(B * N[(F + N[(1.0 / F), $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 -3.3 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{\sin B}\\
\mathbf{elif}\;F \leq 2.7 \cdot 10^{-20}:\\
\;\;\;\;\frac{-F}{B \cdot \left(F + \frac{1}{F}\right)} - t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t\_0\\
\end{array}
\end{array}
if F < -3.3e18Initial program 57.2%
Taylor expanded in F around -inf 99.8%
if -3.3e18 < F < 2.7e-20Initial program 99.4%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
associate-*r/99.6%
sqrt-div99.5%
metadata-eval99.5%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in F around -inf 71.0%
neg-mul-171.0%
Simplified71.0%
Taylor expanded in B around 0 70.8%
associate-*r/70.8%
neg-mul-170.8%
Simplified70.8%
if 2.7e-20 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in x around 0 79.9%
associate-*l/79.9%
*-lft-identity79.9%
+-commutative79.9%
unpow279.9%
fma-undefine79.9%
Simplified79.9%
Taylor expanded in F around inf 94.2%
Final simplification86.3%
(FPCore (F B x)
:precision binary64
(if (<= F -1.75e+164)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -7.2e-47)
(- (/ -1.0 (sin B)) (/ x B))
(if (<= F 7e-9)
(/ (- x) (tan B))
(if (<= F 3.2e+78)
(- (/ 1.0 (sin B)) (+ (/ x B) (* -0.3333333333333333 (* B x))))
(- (/ 1.0 B) (/ x (tan B))))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.75e+164) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = (-1.0 / sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = -x / tan(B);
} else if (F <= 3.2e+78) {
tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} else {
tmp = (1.0 / B) - (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.75d+164)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-7.2d-47)) then
tmp = ((-1.0d0) / sin(b)) - (x / b)
else if (f <= 7d-9) then
tmp = -x / tan(b)
else if (f <= 3.2d+78) then
tmp = (1.0d0 / sin(b)) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.75e+164) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = (-1.0 / Math.sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = -x / Math.tan(B);
} else if (F <= 3.2e+78) {
tmp = (1.0 / Math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.75e+164: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -7.2e-47: tmp = (-1.0 / math.sin(B)) - (x / B) elif F <= 7e-9: tmp = -x / math.tan(B) elif F <= 3.2e+78: tmp = (1.0 / math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))) else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.75e+164) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -7.2e-47) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)); elseif (F <= 7e-9) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 3.2e+78) tmp = Float64(Float64(1.0 / sin(B)) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.75e+164) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -7.2e-47) tmp = (-1.0 / sin(B)) - (x / B); elseif (F <= 7e-9) tmp = -x / tan(B); elseif (F <= 3.2e+78) tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))); else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.75e+164], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -7.2e-47], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7e-9], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 3.2e+78], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.75 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -7.2 \cdot 10^{-47}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 7 \cdot 10^{-9}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 3.2 \cdot 10^{+78}:\\
\;\;\;\;\frac{1}{\sin B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -1.7499999999999999e164Initial program 36.4%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.5%
if -1.7499999999999999e164 < F < -7.19999999999999982e-47Initial program 88.2%
Taylor expanded in F around -inf 88.2%
Taylor expanded in B around 0 81.4%
if -7.19999999999999982e-47 < F < 6.9999999999999998e-9Initial program 99.3%
Taylor expanded in F around -inf 35.6%
Taylor expanded in x around inf 71.8%
mul-1-neg71.8%
*-commutative71.8%
associate-/l*71.7%
associate-/r/71.6%
distribute-rgt-neg-in71.6%
Simplified71.6%
distribute-rgt-neg-out71.6%
neg-sub071.6%
add-sqr-sqrt48.2%
sqrt-unprod37.5%
sqr-neg37.5%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod37.6%
sqr-neg37.6%
sqrt-unprod48.2%
add-sqr-sqrt71.8%
Applied egg-rr71.8%
neg-sub071.8%
distribute-neg-frac71.8%
Simplified71.8%
if 6.9999999999999998e-9 < F < 3.19999999999999994e78Initial program 95.0%
Taylor expanded in B around 0 75.7%
Taylor expanded in F around inf 71.6%
if 3.19999999999999994e78 < F Initial program 52.8%
Simplified71.2%
Taylor expanded in F around inf 99.6%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in B around 0 76.7%
Final simplification76.0%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.85e+164)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -3.4e+18)
(- (/ -1.0 (sin B)) (/ x B))
(if (<= F 7e-9)
(- (/ (- F) (* B (+ F (/ 1.0 F)))) t_0)
(if (<= F 3.4e+79)
(- (/ 1.0 (sin B)) (+ (/ x B) (* -0.3333333333333333 (* B x))))
(- (/ 1.0 B) t_0)))))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.85e+164) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -3.4e+18) {
tmp = (-1.0 / sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = (-F / (B * (F + (1.0 / F)))) - t_0;
} else if (F <= 3.4e+79) {
tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} 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 <= (-1.85d+164)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-3.4d+18)) then
tmp = ((-1.0d0) / sin(b)) - (x / b)
else if (f <= 7d-9) then
tmp = (-f / (b * (f + (1.0d0 / f)))) - t_0
else if (f <= 3.4d+79) then
tmp = (1.0d0 / sin(b)) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
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 <= -1.85e+164) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -3.4e+18) {
tmp = (-1.0 / Math.sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = (-F / (B * (F + (1.0 / F)))) - t_0;
} else if (F <= 3.4e+79) {
tmp = (1.0 / Math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} else {
tmp = (1.0 / B) - t_0;
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.85e+164: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -3.4e+18: tmp = (-1.0 / math.sin(B)) - (x / B) elif F <= 7e-9: tmp = (-F / (B * (F + (1.0 / F)))) - t_0 elif F <= 3.4e+79: tmp = (1.0 / math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))) 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 <= -1.85e+164) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -3.4e+18) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)); elseif (F <= 7e-9) tmp = Float64(Float64(Float64(-F) / Float64(B * Float64(F + Float64(1.0 / F)))) - t_0); elseif (F <= 3.4e+79) tmp = Float64(Float64(1.0 / sin(B)) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); 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 <= -1.85e+164) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -3.4e+18) tmp = (-1.0 / sin(B)) - (x / B); elseif (F <= 7e-9) tmp = (-F / (B * (F + (1.0 / F)))) - t_0; elseif (F <= 3.4e+79) tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))); 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, -1.85e+164], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -3.4e+18], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7e-9], N[(N[((-F) / N[(B * N[(F + N[(1.0 / F), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 3.4e+79], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $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 -1.85 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -3.4 \cdot 10^{+18}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 7 \cdot 10^{-9}:\\
\;\;\;\;\frac{-F}{B \cdot \left(F + \frac{1}{F}\right)} - t\_0\\
\mathbf{elif}\;F \leq 3.4 \cdot 10^{+79}:\\
\;\;\;\;\frac{1}{\sin B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - t\_0\\
\end{array}
\end{array}
if F < -1.85e164Initial program 36.4%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.5%
if -1.85e164 < F < -3.4e18Initial program 84.6%
Taylor expanded in F around -inf 99.8%
Taylor expanded in B around 0 90.9%
if -3.4e18 < F < 6.9999999999999998e-9Initial program 99.3%
Simplified99.6%
Taylor expanded in x around 0 99.6%
associate-*l/99.6%
*-lft-identity99.6%
+-commutative99.6%
unpow299.6%
fma-undefine99.6%
Simplified99.6%
associate-*r/99.6%
sqrt-div99.5%
metadata-eval99.5%
un-div-inv99.5%
Applied egg-rr99.5%
Taylor expanded in F around -inf 70.2%
neg-mul-170.2%
Simplified70.2%
Taylor expanded in B around 0 70.1%
associate-*r/70.1%
neg-mul-170.1%
Simplified70.1%
if 6.9999999999999998e-9 < F < 3.40000000000000032e79Initial program 95.0%
Taylor expanded in B around 0 75.7%
Taylor expanded in F around inf 71.6%
if 3.40000000000000032e79 < F Initial program 52.8%
Simplified71.2%
Taylor expanded in F around inf 99.6%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in B around 0 76.7%
Final simplification76.1%
(FPCore (F B x)
:precision binary64
(if (<= F -1.9e+164)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -7.2e-47)
(- (/ (/ F (- (/ -1.0 F) F)) (sin B)) (/ x B))
(if (<= F 7e-9)
(/ (- x) (tan B))
(if (<= F 1.7e+79)
(- (/ 1.0 (sin B)) (+ (/ x B) (* -0.3333333333333333 (* B x))))
(- (/ 1.0 B) (/ x (tan B))))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.9e+164) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = -x / tan(B);
} else if (F <= 1.7e+79) {
tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} else {
tmp = (1.0 / B) - (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.9d+164)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-7.2d-47)) then
tmp = ((f / (((-1.0d0) / f) - f)) / sin(b)) - (x / b)
else if (f <= 7d-9) then
tmp = -x / tan(b)
else if (f <= 1.7d+79) then
tmp = (1.0d0 / sin(b)) - ((x / b) + ((-0.3333333333333333d0) * (b * x)))
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.9e+164) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = ((F / ((-1.0 / F) - F)) / Math.sin(B)) - (x / B);
} else if (F <= 7e-9) {
tmp = -x / Math.tan(B);
} else if (F <= 1.7e+79) {
tmp = (1.0 / Math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x)));
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.9e+164: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -7.2e-47: tmp = ((F / ((-1.0 / F) - F)) / math.sin(B)) - (x / B) elif F <= 7e-9: tmp = -x / math.tan(B) elif F <= 1.7e+79: tmp = (1.0 / math.sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))) else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.9e+164) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -7.2e-47) tmp = Float64(Float64(Float64(F / Float64(Float64(-1.0 / F) - F)) / sin(B)) - Float64(x / B)); elseif (F <= 7e-9) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 1.7e+79) tmp = Float64(Float64(1.0 / sin(B)) - Float64(Float64(x / B) + Float64(-0.3333333333333333 * Float64(B * x)))); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.9e+164) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -7.2e-47) tmp = ((F / ((-1.0 / F) - F)) / sin(B)) - (x / B); elseif (F <= 7e-9) tmp = -x / tan(B); elseif (F <= 1.7e+79) tmp = (1.0 / sin(B)) - ((x / B) + (-0.3333333333333333 * (B * x))); else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.9e+164], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -7.2e-47], N[(N[(N[(F / N[(N[(-1.0 / F), $MachinePrecision] - F), $MachinePrecision]), $MachinePrecision] / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7e-9], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.7e+79], N[(N[(1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(N[(x / B), $MachinePrecision] + N[(-0.3333333333333333 * N[(B * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.9 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -7.2 \cdot 10^{-47}:\\
\;\;\;\;\frac{\frac{F}{\frac{-1}{F} - F}}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 7 \cdot 10^{-9}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 1.7 \cdot 10^{+79}:\\
\;\;\;\;\frac{1}{\sin B} - \left(\frac{x}{B} + -0.3333333333333333 \cdot \left(B \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -1.90000000000000011e164Initial program 36.4%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.5%
if -1.90000000000000011e164 < F < -7.19999999999999982e-47Initial program 88.2%
Simplified92.7%
Taylor expanded in x around 0 92.7%
associate-*l/92.7%
*-lft-identity92.7%
+-commutative92.7%
unpow292.7%
fma-undefine92.7%
Simplified92.7%
associate-*r/92.8%
sqrt-div92.8%
metadata-eval92.8%
un-div-inv92.8%
Applied egg-rr92.8%
Taylor expanded in F around -inf 89.0%
neg-mul-189.0%
Simplified89.0%
Taylor expanded in B around 0 82.2%
if -7.19999999999999982e-47 < F < 6.9999999999999998e-9Initial program 99.3%
Taylor expanded in F around -inf 35.6%
Taylor expanded in x around inf 71.8%
mul-1-neg71.8%
*-commutative71.8%
associate-/l*71.7%
associate-/r/71.6%
distribute-rgt-neg-in71.6%
Simplified71.6%
distribute-rgt-neg-out71.6%
neg-sub071.6%
add-sqr-sqrt48.2%
sqrt-unprod37.5%
sqr-neg37.5%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod37.6%
sqr-neg37.6%
sqrt-unprod48.2%
add-sqr-sqrt71.8%
Applied egg-rr71.8%
neg-sub071.8%
distribute-neg-frac71.8%
Simplified71.8%
if 6.9999999999999998e-9 < F < 1.70000000000000016e79Initial program 95.0%
Taylor expanded in B around 0 75.7%
Taylor expanded in F around inf 71.6%
if 1.70000000000000016e79 < F Initial program 52.8%
Simplified71.2%
Taylor expanded in F around inf 99.6%
associate-/r*99.7%
Simplified99.7%
Taylor expanded in B around 0 76.7%
Final simplification76.1%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (- (/ 1.0 B) (/ x (tan B)))))
(if (<= F -1.2e+258)
t_0
(if (<= F -5.6e-19)
(/ (- -1.0 x) B)
(if (<= F 1.14e-20) (/ (- x) (tan B)) t_0)))))
double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / tan(B));
double tmp;
if (F <= -1.2e+258) {
tmp = t_0;
} else if (F <= -5.6e-19) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.14e-20) {
tmp = -x / tan(B);
} else {
tmp = 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 = (1.0d0 / b) - (x / tan(b))
if (f <= (-1.2d+258)) then
tmp = t_0
else if (f <= (-5.6d-19)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.14d-20) then
tmp = -x / tan(b)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double t_0 = (1.0 / B) - (x / Math.tan(B));
double tmp;
if (F <= -1.2e+258) {
tmp = t_0;
} else if (F <= -5.6e-19) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.14e-20) {
tmp = -x / Math.tan(B);
} else {
tmp = t_0;
}
return tmp;
}
def code(F, B, x): t_0 = (1.0 / B) - (x / math.tan(B)) tmp = 0 if F <= -1.2e+258: tmp = t_0 elif F <= -5.6e-19: tmp = (-1.0 - x) / B elif F <= 1.14e-20: tmp = -x / math.tan(B) else: tmp = t_0 return tmp
function code(F, B, x) t_0 = Float64(Float64(1.0 / B) - Float64(x / tan(B))) tmp = 0.0 if (F <= -1.2e+258) tmp = t_0; elseif (F <= -5.6e-19) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.14e-20) tmp = Float64(Float64(-x) / tan(B)); else tmp = t_0; end return tmp end
function tmp_2 = code(F, B, x) t_0 = (1.0 / B) - (x / tan(B)); tmp = 0.0; if (F <= -1.2e+258) tmp = t_0; elseif (F <= -5.6e-19) tmp = (-1.0 - x) / B; elseif (F <= 1.14e-20) tmp = -x / tan(B); else tmp = t_0; end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.2e+258], t$95$0, If[LessEqual[F, -5.6e-19], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.14e-20], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{B} - \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.2 \cdot 10^{+258}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;F \leq -5.6 \cdot 10^{-19}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.14 \cdot 10^{-20}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if F < -1.2e258 or 1.1399999999999999e-20 < F Initial program 64.3%
Simplified79.6%
Taylor expanded in F around inf 91.6%
associate-/r*91.6%
Simplified91.6%
Taylor expanded in B around 0 69.7%
if -1.2e258 < F < -5.60000000000000005e-19Initial program 62.2%
Taylor expanded in F around -inf 95.4%
Taylor expanded in B around 0 54.4%
associate-*r/54.4%
distribute-lft-in54.4%
metadata-eval54.4%
neg-mul-154.4%
Simplified54.4%
if -5.60000000000000005e-19 < F < 1.1399999999999999e-20Initial program 99.3%
Taylor expanded in F around -inf 35.1%
Taylor expanded in x around inf 71.5%
mul-1-neg71.5%
*-commutative71.5%
associate-/l*71.4%
associate-/r/71.4%
distribute-rgt-neg-in71.4%
Simplified71.4%
distribute-rgt-neg-out71.4%
neg-sub071.4%
add-sqr-sqrt47.7%
sqrt-unprod37.8%
sqr-neg37.8%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod37.9%
sqr-neg37.9%
sqrt-unprod47.7%
add-sqr-sqrt71.6%
Applied egg-rr71.6%
neg-sub071.6%
distribute-neg-frac71.6%
Simplified71.6%
Final simplification66.3%
(FPCore (F B x)
:precision binary64
(if (<= F -1.92e+164)
(+ (* x (/ -1.0 (tan B))) (/ -1.0 B))
(if (<= F -7.2e-47)
(- (/ -1.0 (sin B)) (/ x B))
(if (<= F 1.15e-20) (/ (- x) (tan B)) (- (/ 1.0 B) (/ x (tan B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.92e+164) {
tmp = (x * (-1.0 / tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = (-1.0 / sin(B)) - (x / B);
} else if (F <= 1.15e-20) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - (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.92d+164)) then
tmp = (x * ((-1.0d0) / tan(b))) + ((-1.0d0) / b)
else if (f <= (-7.2d-47)) then
tmp = ((-1.0d0) / sin(b)) - (x / b)
else if (f <= 1.15d-20) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.92e+164) {
tmp = (x * (-1.0 / Math.tan(B))) + (-1.0 / B);
} else if (F <= -7.2e-47) {
tmp = (-1.0 / Math.sin(B)) - (x / B);
} else if (F <= 1.15e-20) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.92e+164: tmp = (x * (-1.0 / math.tan(B))) + (-1.0 / B) elif F <= -7.2e-47: tmp = (-1.0 / math.sin(B)) - (x / B) elif F <= 1.15e-20: tmp = -x / math.tan(B) else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.92e+164) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64(-1.0 / B)); elseif (F <= -7.2e-47) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)); elseif (F <= 1.15e-20) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.92e+164) tmp = (x * (-1.0 / tan(B))) + (-1.0 / B); elseif (F <= -7.2e-47) tmp = (-1.0 / sin(B)) - (x / B); elseif (F <= 1.15e-20) tmp = -x / tan(B); else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.92e+164], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, -7.2e-47], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.15e-20], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.92 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + \frac{-1}{B}\\
\mathbf{elif}\;F \leq -7.2 \cdot 10^{-47}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.15 \cdot 10^{-20}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -1.9199999999999999e164Initial program 36.4%
Taylor expanded in F around -inf 99.9%
Taylor expanded in B around 0 81.5%
if -1.9199999999999999e164 < F < -7.19999999999999982e-47Initial program 88.2%
Taylor expanded in F around -inf 88.2%
Taylor expanded in B around 0 81.4%
if -7.19999999999999982e-47 < F < 1.15e-20Initial program 99.3%
Taylor expanded in F around -inf 35.0%
Taylor expanded in x around inf 72.7%
mul-1-neg72.7%
*-commutative72.7%
associate-/l*72.6%
associate-/r/72.5%
distribute-rgt-neg-in72.5%
Simplified72.5%
distribute-rgt-neg-out72.5%
neg-sub072.5%
add-sqr-sqrt48.1%
sqrt-unprod37.9%
sqr-neg37.9%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod38.0%
sqr-neg38.0%
sqrt-unprod48.1%
add-sqr-sqrt72.7%
Applied egg-rr72.7%
neg-sub072.7%
distribute-neg-frac72.7%
Simplified72.7%
if 1.15e-20 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in F around inf 94.0%
associate-/r*94.0%
Simplified94.0%
Taylor expanded in B around 0 68.4%
Final simplification74.3%
(FPCore (F B x) :precision binary64 (if (<= F -7.2e-47) (- (/ -1.0 (sin B)) (/ x B)) (if (<= F 1.7e-20) (/ (- x) (tan B)) (- (/ 1.0 B) (/ x (tan B))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -7.2e-47) {
tmp = (-1.0 / sin(B)) - (x / B);
} else if (F <= 1.7e-20) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - (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 <= (-7.2d-47)) then
tmp = ((-1.0d0) / sin(b)) - (x / b)
else if (f <= 1.7d-20) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - (x / tan(b))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -7.2e-47) {
tmp = (-1.0 / Math.sin(B)) - (x / B);
} else if (F <= 1.7e-20) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - (x / Math.tan(B));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -7.2e-47: tmp = (-1.0 / math.sin(B)) - (x / B) elif F <= 1.7e-20: tmp = -x / math.tan(B) else: tmp = (1.0 / B) - (x / math.tan(B)) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -7.2e-47) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / B)); elseif (F <= 1.7e-20) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(x / tan(B))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -7.2e-47) tmp = (-1.0 / sin(B)) - (x / B); elseif (F <= 1.7e-20) tmp = -x / tan(B); else tmp = (1.0 / B) - (x / tan(B)); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -7.2e-47], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.7e-20], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -7.2 \cdot 10^{-47}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{B}\\
\mathbf{elif}\;F \leq 1.7 \cdot 10^{-20}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - \frac{x}{\tan B}\\
\end{array}
\end{array}
if F < -7.19999999999999982e-47Initial program 62.3%
Taylor expanded in F around -inf 94.0%
Taylor expanded in B around 0 75.7%
if -7.19999999999999982e-47 < F < 1.6999999999999999e-20Initial program 99.3%
Taylor expanded in F around -inf 35.0%
Taylor expanded in x around inf 72.7%
mul-1-neg72.7%
*-commutative72.7%
associate-/l*72.6%
associate-/r/72.5%
distribute-rgt-neg-in72.5%
Simplified72.5%
distribute-rgt-neg-out72.5%
neg-sub072.5%
add-sqr-sqrt48.1%
sqrt-unprod37.9%
sqr-neg37.9%
sqrt-unprod1.3%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.3%
sqrt-unprod38.0%
sqr-neg38.0%
sqrt-unprod48.1%
add-sqr-sqrt72.7%
Applied egg-rr72.7%
neg-sub072.7%
distribute-neg-frac72.7%
Simplified72.7%
if 1.6999999999999999e-20 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in F around inf 94.0%
associate-/r*94.0%
Simplified94.0%
Taylor expanded in B around 0 68.4%
Final simplification72.4%
(FPCore (F B x) :precision binary64 (if (<= B 3.3e-208) (- (/ x B)) (if (<= B 5.1e-62) (/ (- 1.0 x) B) (/ (- x) (tan B)))))
double code(double F, double B, double x) {
double tmp;
if (B <= 3.3e-208) {
tmp = -(x / B);
} else if (B <= 5.1e-62) {
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 (b <= 3.3d-208) then
tmp = -(x / b)
else if (b <= 5.1d-62) 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 (B <= 3.3e-208) {
tmp = -(x / B);
} else if (B <= 5.1e-62) {
tmp = (1.0 - x) / B;
} else {
tmp = -x / Math.tan(B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if B <= 3.3e-208: tmp = -(x / B) elif B <= 5.1e-62: tmp = (1.0 - x) / B else: tmp = -x / math.tan(B) return tmp
function code(F, B, x) tmp = 0.0 if (B <= 3.3e-208) tmp = Float64(-Float64(x / B)); elseif (B <= 5.1e-62) 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 (B <= 3.3e-208) tmp = -(x / B); elseif (B <= 5.1e-62) tmp = (1.0 - x) / B; else tmp = -x / tan(B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[B, 3.3e-208], (-N[(x / B), $MachinePrecision]), If[LessEqual[B, 5.1e-62], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;B \leq 3.3 \cdot 10^{-208}:\\
\;\;\;\;-\frac{x}{B}\\
\mathbf{elif}\;B \leq 5.1 \cdot 10^{-62}:\\
\;\;\;\;\frac{1 - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\end{array}
\end{array}
if B < 3.30000000000000006e-208Initial program 75.4%
Simplified85.0%
Taylor expanded in F around inf 49.2%
associate-/r*49.2%
Simplified49.2%
Taylor expanded in B around 0 29.7%
Taylor expanded in x around inf 35.2%
neg-mul-135.2%
distribute-neg-frac35.2%
Simplified35.2%
if 3.30000000000000006e-208 < B < 5.1e-62Initial program 65.8%
Simplified81.4%
Taylor expanded in F around inf 60.5%
associate-/r*60.5%
Simplified60.5%
Taylor expanded in B around 0 66.9%
if 5.1e-62 < B Initial program 86.3%
Taylor expanded in F around -inf 59.9%
Taylor expanded in x around inf 61.9%
mul-1-neg61.9%
*-commutative61.9%
associate-/l*61.9%
associate-/r/61.9%
distribute-rgt-neg-in61.9%
Simplified61.9%
distribute-rgt-neg-out61.9%
neg-sub061.9%
add-sqr-sqrt42.6%
sqrt-unprod23.1%
sqr-neg23.1%
sqrt-unprod1.5%
add-sqr-sqrt2.3%
*-commutative2.3%
clear-num2.3%
tan-quot2.3%
un-div-inv2.3%
add-sqr-sqrt1.5%
sqrt-unprod23.3%
sqr-neg23.3%
sqrt-unprod42.6%
add-sqr-sqrt62.2%
Applied egg-rr62.2%
neg-sub062.2%
distribute-neg-frac62.2%
Simplified62.2%
Final simplification46.1%
(FPCore (F B x)
:precision binary64
(if (<= F -5.5e-80)
(/ (- -1.0 x) B)
(if (<= F 1.35e-20)
(- (/ x B))
(+ (/ (- 1.0 x) B) (* (* B x) 0.3333333333333333)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -5.5e-80) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.35e-20) {
tmp = -(x / B);
} else {
tmp = ((1.0 - x) / B) + ((B * x) * 0.3333333333333333);
}
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.5d-80)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.35d-20) then
tmp = -(x / b)
else
tmp = ((1.0d0 - x) / b) + ((b * x) * 0.3333333333333333d0)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -5.5e-80) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.35e-20) {
tmp = -(x / B);
} else {
tmp = ((1.0 - x) / B) + ((B * x) * 0.3333333333333333);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -5.5e-80: tmp = (-1.0 - x) / B elif F <= 1.35e-20: tmp = -(x / B) else: tmp = ((1.0 - x) / B) + ((B * x) * 0.3333333333333333) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -5.5e-80) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.35e-20) tmp = Float64(-Float64(x / B)); else tmp = Float64(Float64(Float64(1.0 - x) / B) + Float64(Float64(B * x) * 0.3333333333333333)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -5.5e-80) tmp = (-1.0 - x) / B; elseif (F <= 1.35e-20) tmp = -(x / B); else tmp = ((1.0 - x) / B) + ((B * x) * 0.3333333333333333); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -5.5e-80], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.35e-20], (-N[(x / B), $MachinePrecision]), N[(N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision] + N[(N[(B * x), $MachinePrecision] * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -5.5 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.35 \cdot 10^{-20}:\\
\;\;\;\;-\frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B} + \left(B \cdot x\right) \cdot 0.3333333333333333\\
\end{array}
\end{array}
if F < -5.4999999999999997e-80Initial program 64.4%
Taylor expanded in F around -inf 92.8%
Taylor expanded in B around 0 50.0%
associate-*r/50.0%
distribute-lft-in50.0%
metadata-eval50.0%
neg-mul-150.0%
Simplified50.0%
if -5.4999999999999997e-80 < F < 1.35e-20Initial program 99.3%
Simplified99.6%
Taylor expanded in F around inf 21.7%
associate-/r*21.7%
Simplified21.7%
Taylor expanded in B around 0 20.4%
Taylor expanded in x around inf 39.8%
neg-mul-139.8%
distribute-neg-frac39.8%
Simplified39.8%
if 1.35e-20 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in F around inf 94.0%
associate-/r*94.0%
Simplified94.0%
Taylor expanded in B around 0 68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in B around 0 42.5%
associate--l+42.5%
div-sub42.5%
Simplified42.5%
Final simplification44.2%
(FPCore (F B x) :precision binary64 (if (<= F -5.4e-80) (/ (- -1.0 x) B) (if (<= F 1.45e-20) (- (/ x B)) (/ (- 1.0 x) B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -5.4e-80) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.45e-20) {
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 <= (-5.4d-80)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.45d-20) 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 <= -5.4e-80) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.45e-20) {
tmp = -(x / B);
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -5.4e-80: tmp = (-1.0 - x) / B elif F <= 1.45e-20: tmp = -(x / B) else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -5.4e-80) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.45e-20) tmp = Float64(-Float64(x / 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 <= -5.4e-80) tmp = (-1.0 - x) / B; elseif (F <= 1.45e-20) tmp = -(x / B); else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -5.4e-80], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.45e-20], (-N[(x / B), $MachinePrecision]), N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -5.4 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.45 \cdot 10^{-20}:\\
\;\;\;\;-\frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -5.4000000000000004e-80Initial program 64.4%
Taylor expanded in F around -inf 92.8%
Taylor expanded in B around 0 50.0%
associate-*r/50.0%
distribute-lft-in50.0%
metadata-eval50.0%
neg-mul-150.0%
Simplified50.0%
if -5.4000000000000004e-80 < F < 1.45e-20Initial program 99.3%
Simplified99.6%
Taylor expanded in F around inf 21.7%
associate-/r*21.7%
Simplified21.7%
Taylor expanded in B around 0 20.4%
Taylor expanded in x around inf 39.8%
neg-mul-139.8%
distribute-neg-frac39.8%
Simplified39.8%
if 1.45e-20 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in F around inf 94.0%
associate-/r*94.0%
Simplified94.0%
Taylor expanded in B around 0 42.2%
Final simplification44.0%
(FPCore (F B x) :precision binary64 (if (or (<= x -9.5e-94) (not (<= x 3.4e-181))) (- (/ x B)) (/ 1.0 B)))
double code(double F, double B, double x) {
double tmp;
if ((x <= -9.5e-94) || !(x <= 3.4e-181)) {
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 ((x <= (-9.5d-94)) .or. (.not. (x <= 3.4d-181))) 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 ((x <= -9.5e-94) || !(x <= 3.4e-181)) {
tmp = -(x / B);
} else {
tmp = 1.0 / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if (x <= -9.5e-94) or not (x <= 3.4e-181): tmp = -(x / B) else: tmp = 1.0 / B return tmp
function code(F, B, x) tmp = 0.0 if ((x <= -9.5e-94) || !(x <= 3.4e-181)) tmp = Float64(-Float64(x / B)); else tmp = Float64(1.0 / B); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if ((x <= -9.5e-94) || ~((x <= 3.4e-181))) tmp = -(x / B); else tmp = 1.0 / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[Or[LessEqual[x, -9.5e-94], N[Not[LessEqual[x, 3.4e-181]], $MachinePrecision]], (-N[(x / B), $MachinePrecision]), N[(1.0 / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.5 \cdot 10^{-94} \lor \neg \left(x \leq 3.4 \cdot 10^{-181}\right):\\
\;\;\;\;-\frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B}\\
\end{array}
\end{array}
if x < -9.4999999999999997e-94 or 3.4e-181 < x Initial program 82.4%
Simplified92.5%
Taylor expanded in F around inf 64.0%
associate-/r*64.0%
Simplified64.0%
Taylor expanded in B around 0 35.9%
Taylor expanded in x around inf 42.6%
neg-mul-142.6%
distribute-neg-frac42.6%
Simplified42.6%
if -9.4999999999999997e-94 < x < 3.4e-181Initial program 66.0%
Simplified71.8%
Taylor expanded in F around inf 29.2%
associate-/r*29.3%
Simplified29.3%
Taylor expanded in B around 0 17.7%
Taylor expanded in x around 0 17.7%
Final simplification34.4%
(FPCore (F B x) :precision binary64 (if (<= F 9e-21) (- (/ x B)) (/ (- 1.0 x) B)))
double code(double F, double B, double x) {
double tmp;
if (F <= 9e-21) {
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 <= 9d-21) 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 <= 9e-21) {
tmp = -(x / B);
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= 9e-21: tmp = -(x / B) else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= 9e-21) tmp = Float64(-Float64(x / 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 <= 9e-21) tmp = -(x / B); else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, 9e-21], (-N[(x / B), $MachinePrecision]), N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq 9 \cdot 10^{-21}:\\
\;\;\;\;-\frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < 8.99999999999999936e-21Initial program 81.8%
Simplified88.3%
Taylor expanded in F around inf 34.5%
associate-/r*34.5%
Simplified34.5%
Taylor expanded in B around 0 24.6%
Taylor expanded in x around inf 34.5%
neg-mul-134.5%
distribute-neg-frac34.5%
Simplified34.5%
if 8.99999999999999936e-21 < F Initial program 66.0%
Simplified79.9%
Taylor expanded in F around inf 94.0%
associate-/r*94.0%
Simplified94.0%
Taylor expanded in B around 0 42.2%
Final simplification36.8%
(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.0%
Simplified85.7%
Taylor expanded in F around inf 52.6%
associate-/r*52.6%
Simplified52.6%
Taylor expanded in B around 0 29.9%
Taylor expanded in x around 0 9.0%
Final simplification9.0%
herbie shell --seed 2024039
(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))))))