
(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 18 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 -6.8e+31)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 2.35e+111)
(- (/ F (/ (sin B) (pow (fma 2.0 x (fma F F 2.0)) -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 <= -6.8e+31) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 2.35e+111) {
tmp = (F / (sin(B) / pow(fma(2.0, x, fma(F, F, 2.0)), -0.5))) - 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 <= -6.8e+31) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 2.35e+111) tmp = Float64(Float64(F / Float64(sin(B) / (fma(2.0, x, fma(F, F, 2.0)) ^ -0.5))) - 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, -6.8e+31], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 2.35e+111], N[(N[(F / N[(N[Sin[B], $MachinePrecision] / N[Power[N[(2.0 * x + N[(F * F + 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $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 -6.8 \cdot 10^{+31}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 2.35 \cdot 10^{+111}:\\
\;\;\;\;\frac{F}{\frac{\sin B}{{\left(\mathsf{fma}\left(2, x, \mathsf{fma}\left(F, F, 2\right)\right)\right)}^{-0.5}}} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
if F < -6.7999999999999996e31Initial program 57.8%
div-inv57.9%
expm1-log1p-u35.1%
expm1-udef34.9%
Applied egg-rr34.9%
expm1-def35.1%
expm1-log1p57.9%
Simplified57.9%
Taylor expanded in F around -inf 99.9%
+-commutative99.9%
unsub-neg99.9%
Applied egg-rr99.9%
if -6.7999999999999996e31 < F < 2.35000000000000004e111Initial program 99.5%
div-inv99.6%
expm1-log1p-u66.7%
expm1-udef52.7%
Applied egg-rr52.7%
expm1-def66.7%
expm1-log1p99.6%
Simplified99.6%
+-commutative99.6%
*-commutative99.6%
fma-udef99.6%
fma-def99.6%
metadata-eval99.6%
metadata-eval99.6%
associate-*l/99.6%
associate-/l*99.6%
fma-def99.6%
fma-udef99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
Applied egg-rr99.6%
if 2.35000000000000004e111 < F Initial program 22.4%
Taylor expanded in B around inf 22.4%
Taylor expanded in F around inf 99.8%
+-commutative99.8%
unsub-neg99.8%
clear-num99.8%
tan-quot99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Final simplification99.8%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -6.8e+31)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1400000000000.0)
(- (* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5)) t_0)
(+ (/ -1.0 (/ (tan B) x)) (/ F (* F (sin B))))))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -6.8e+31) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1400000000000.0) {
tmp = ((F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - t_0;
} else {
tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(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 = x / tan(b)
if (f <= (-6.8d+31)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1400000000000.0d0) then
tmp = ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))) - t_0
else
tmp = ((-1.0d0) / (tan(b) / x)) + (f / (f * sin(b)))
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 <= -6.8e+31) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1400000000000.0) {
tmp = ((F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - t_0;
} else {
tmp = (-1.0 / (Math.tan(B) / x)) + (F / (F * Math.sin(B)));
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -6.8e+31: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1400000000000.0: tmp = ((F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - t_0 else: tmp = (-1.0 / (math.tan(B) / x)) + (F / (F * math.sin(B))) return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -6.8e+31) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1400000000000.0) tmp = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5)) - t_0); else tmp = Float64(Float64(-1.0 / Float64(tan(B) / x)) + Float64(F / Float64(F * sin(B)))); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -6.8e+31) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1400000000000.0) tmp = ((F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5)) - t_0; else tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(B))); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -6.8e+31], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1400000000000.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] - t$95$0), $MachinePrecision], N[(N[(-1.0 / N[(N[Tan[B], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -6.8 \cdot 10^{+31}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 1400000000000:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{F}{F \cdot \sin B}\\
\end{array}
\end{array}
if F < -6.7999999999999996e31Initial program 57.8%
div-inv57.9%
expm1-log1p-u35.1%
expm1-udef34.9%
Applied egg-rr34.9%
expm1-def35.1%
expm1-log1p57.9%
Simplified57.9%
Taylor expanded in F around -inf 99.9%
+-commutative99.9%
unsub-neg99.9%
Applied egg-rr99.9%
if -6.7999999999999996e31 < F < 1.4e12Initial program 99.5%
div-inv99.6%
expm1-log1p-u67.8%
expm1-udef51.6%
Applied egg-rr51.6%
expm1-def67.8%
expm1-log1p99.6%
Simplified99.6%
if 1.4e12 < F Initial program 46.3%
Taylor expanded in F around inf 76.3%
un-div-inv76.3%
associate-/l/99.7%
Applied egg-rr99.7%
div-inv99.8%
clear-num99.8%
Applied egg-rr99.8%
Final simplification99.7%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.55)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1e-6)
(- (/ F (* (sin B) (sqrt (+ 2.0 (* x 2.0))))) t_0)
(+ (/ -1.0 (/ (tan B) x)) (/ F (* F (sin B))))))))
double code(double F, double B, double x) {
double t_0 = x / tan(B);
double tmp;
if (F <= -1.55) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1e-6) {
tmp = (F / (sin(B) * sqrt((2.0 + (x * 2.0))))) - t_0;
} else {
tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(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 = x / tan(b)
if (f <= (-1.55d0)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1d-6) then
tmp = (f / (sin(b) * sqrt((2.0d0 + (x * 2.0d0))))) - t_0
else
tmp = ((-1.0d0) / (tan(b) / x)) + (f / (f * sin(b)))
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.55) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1e-6) {
tmp = (F / (Math.sin(B) * Math.sqrt((2.0 + (x * 2.0))))) - t_0;
} else {
tmp = (-1.0 / (Math.tan(B) / x)) + (F / (F * Math.sin(B)));
}
return tmp;
}
def code(F, B, x): t_0 = x / math.tan(B) tmp = 0 if F <= -1.55: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1e-6: tmp = (F / (math.sin(B) * math.sqrt((2.0 + (x * 2.0))))) - t_0 else: tmp = (-1.0 / (math.tan(B) / x)) + (F / (F * math.sin(B))) return tmp
function code(F, B, x) t_0 = Float64(x / tan(B)) tmp = 0.0 if (F <= -1.55) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1e-6) tmp = Float64(Float64(F / Float64(sin(B) * sqrt(Float64(2.0 + Float64(x * 2.0))))) - t_0); else tmp = Float64(Float64(-1.0 / Float64(tan(B) / x)) + Float64(F / Float64(F * sin(B)))); end return tmp end
function tmp_2 = code(F, B, x) t_0 = x / tan(B); tmp = 0.0; if (F <= -1.55) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1e-6) tmp = (F / (sin(B) * sqrt((2.0 + (x * 2.0))))) - t_0; else tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(B))); end tmp_2 = tmp; end
code[F_, B_, x_] := Block[{t$95$0 = N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[F, -1.55], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1e-6], N[(N[(F / N[(N[Sin[B], $MachinePrecision] * N[Sqrt[N[(2.0 + N[(x * 2.0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], N[(N[(-1.0 / N[(N[Tan[B], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x}{\tan B}\\
\mathbf{if}\;F \leq -1.55:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 10^{-6}:\\
\;\;\;\;\frac{F}{\sin B \cdot \sqrt{2 + x \cdot 2}} - t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{F}{F \cdot \sin B}\\
\end{array}
\end{array}
if F < -1.55000000000000004Initial program 61.1%
div-inv61.2%
expm1-log1p-u37.8%
expm1-udef37.6%
Applied egg-rr37.6%
expm1-def37.8%
expm1-log1p61.2%
Simplified61.2%
Taylor expanded in F around -inf 99.2%
+-commutative99.2%
unsub-neg99.2%
Applied egg-rr99.2%
if -1.55000000000000004 < F < 9.99999999999999955e-7Initial program 99.5%
div-inv99.5%
expm1-log1p-u67.3%
expm1-udef48.7%
Applied egg-rr48.7%
expm1-def67.3%
expm1-log1p99.5%
Simplified99.5%
+-commutative99.5%
*-commutative99.5%
fma-udef99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*l/99.6%
associate-/l*99.6%
fma-def99.6%
fma-udef99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
Applied egg-rr99.6%
Taylor expanded in F around 0 99.6%
if 9.99999999999999955e-7 < F Initial program 52.7%
Taylor expanded in F around inf 76.9%
un-div-inv76.8%
associate-/l/97.4%
Applied egg-rr97.4%
div-inv97.5%
clear-num97.5%
Applied egg-rr97.5%
Final simplification98.9%
(FPCore (F B x)
:precision binary64
(if (<= F -2.5e-31)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F 5.4e-224)
(/ (- x) (tan B))
(if (<= F 1e-6)
(- (* (/ F (sin B)) (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5)) (/ x B))
(+ (/ -1.0 (/ (tan B) x)) (/ F (* F (sin B))))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -2.5e-31) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= 5.4e-224) {
tmp = -x / tan(B);
} else if (F <= 1e-6) {
tmp = ((F / sin(B)) * pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B);
} else {
tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(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.5d-31)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= 5.4d-224) then
tmp = -x / tan(b)
else if (f <= 1d-6) then
tmp = ((f / sin(b)) * (((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0))) - (x / b)
else
tmp = ((-1.0d0) / (tan(b) / x)) + (f / (f * sin(b)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -2.5e-31) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= 5.4e-224) {
tmp = -x / Math.tan(B);
} else if (F <= 1e-6) {
tmp = ((F / Math.sin(B)) * Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B);
} else {
tmp = (-1.0 / (Math.tan(B) / x)) + (F / (F * Math.sin(B)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -2.5e-31: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= 5.4e-224: tmp = -x / math.tan(B) elif F <= 1e-6: tmp = ((F / math.sin(B)) * math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5)) - (x / B) else: tmp = (-1.0 / (math.tan(B) / x)) + (F / (F * math.sin(B))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -2.5e-31) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= 5.4e-224) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 1e-6) tmp = Float64(Float64(Float64(F / sin(B)) * (Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5)) - Float64(x / B)); else tmp = Float64(Float64(-1.0 / Float64(tan(B) / x)) + Float64(F / Float64(F * sin(B)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -2.5e-31) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= 5.4e-224) tmp = -x / tan(B); elseif (F <= 1e-6) tmp = ((F / sin(B)) * (((2.0 + (F * F)) + (x * 2.0)) ^ -0.5)) - (x / B); else tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(B))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -2.5e-31], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 5.4e-224], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1e-6], 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], N[(N[(-1.0 / N[(N[Tan[B], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -2.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 5.4 \cdot 10^{-224}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 10^{-6}:\\
\;\;\;\;\frac{F}{\sin B} \cdot {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} - \frac{x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{F}{F \cdot \sin B}\\
\end{array}
\end{array}
if F < -2.5e-31Initial program 62.7%
div-inv62.8%
expm1-log1p-u40.2%
expm1-udef40.1%
Applied egg-rr40.1%
expm1-def40.2%
expm1-log1p62.8%
Simplified62.8%
Taylor expanded in F around -inf 96.4%
+-commutative96.4%
unsub-neg96.4%
Applied egg-rr96.4%
if -2.5e-31 < F < 5.39999999999999996e-224Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 85.7%
mul-1-neg85.7%
associate-*l/85.7%
distribute-rgt-neg-in85.7%
Simplified85.7%
distribute-rgt-neg-out85.7%
neg-sub085.7%
associate-*l/85.7%
associate-/l*85.7%
quot-tan85.8%
Applied egg-rr85.8%
neg-sub085.8%
distribute-neg-frac85.8%
Simplified85.8%
if 5.39999999999999996e-224 < F < 9.99999999999999955e-7Initial program 99.5%
Taylor expanded in B around 0 78.3%
if 9.99999999999999955e-7 < F Initial program 52.7%
Taylor expanded in F around inf 76.9%
un-div-inv76.8%
associate-/l/97.4%
Applied egg-rr97.4%
div-inv97.5%
clear-num97.5%
Applied egg-rr97.5%
Final simplification91.6%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -305000.0)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 6800.0)
(+
(* x (/ -1.0 (tan B)))
(* (pow (+ (+ 2.0 (* F F)) (* x 2.0)) -0.5) (/ F 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 <= -305000.0) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 6800.0) {
tmp = (x * (-1.0 / tan(B))) + (pow(((2.0 + (F * F)) + (x * 2.0)), -0.5) * (F / 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 <= (-305000.0d0)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 6800.0d0) then
tmp = (x * ((-1.0d0) / tan(b))) + ((((2.0d0 + (f * f)) + (x * 2.0d0)) ** (-0.5d0)) * (f / 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 <= -305000.0) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 6800.0) {
tmp = (x * (-1.0 / Math.tan(B))) + (Math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5) * (F / 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 <= -305000.0: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 6800.0: tmp = (x * (-1.0 / math.tan(B))) + (math.pow(((2.0 + (F * F)) + (x * 2.0)), -0.5) * (F / 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 <= -305000.0) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 6800.0) tmp = Float64(Float64(x * Float64(-1.0 / tan(B))) + Float64((Float64(Float64(2.0 + Float64(F * F)) + Float64(x * 2.0)) ^ -0.5) * Float64(F / 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 <= -305000.0) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 6800.0) tmp = (x * (-1.0 / tan(B))) + ((((2.0 + (F * F)) + (x * 2.0)) ^ -0.5) * (F / 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, -305000.0], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 6800.0], N[(N[(x * N[(-1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[Power[N[(N[(2.0 + N[(F * F), $MachinePrecision]), $MachinePrecision] + N[(x * 2.0), $MachinePrecision]), $MachinePrecision], -0.5], $MachinePrecision] * N[(F / B), $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 -305000:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 6800:\\
\;\;\;\;x \cdot \frac{-1}{\tan B} + {\left(\left(2 + F \cdot F\right) + x \cdot 2\right)}^{-0.5} \cdot \frac{F}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
if F < -305000Initial program 60.2%
div-inv60.3%
expm1-log1p-u37.5%
expm1-udef37.4%
Applied egg-rr37.4%
expm1-def37.5%
expm1-log1p60.3%
Simplified60.3%
Taylor expanded in F around -inf 99.9%
+-commutative99.9%
unsub-neg99.9%
Applied egg-rr99.9%
if -305000 < F < 6800Initial program 99.5%
Taylor expanded in B around 0 87.8%
if 6800 < F Initial program 49.7%
Taylor expanded in B around inf 49.8%
Taylor expanded in F around inf 99.0%
+-commutative99.0%
unsub-neg99.0%
clear-num99.0%
tan-quot99.0%
un-div-inv99.1%
Applied egg-rr99.1%
Final simplification94.7%
(FPCore (F B x)
:precision binary64
(if (<= F -1.5e-26)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F 3.7e-134)
(/ (- x) (tan B))
(if (<= F 4.7e-7)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) B)
(+ (/ -1.0 (/ (tan B) x)) (/ F (* F (sin B))))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.5e-26) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= 3.7e-134) {
tmp = -x / tan(B);
} else if (F <= 4.7e-7) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(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-26)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= 3.7d-134) then
tmp = -x / tan(b)
else if (f <= 4.7d-7) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / b
else
tmp = ((-1.0d0) / (tan(b) / x)) + (f / (f * sin(b)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -1.5e-26) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= 3.7e-134) {
tmp = -x / Math.tan(B);
} else if (F <= 4.7e-7) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else {
tmp = (-1.0 / (Math.tan(B) / x)) + (F / (F * Math.sin(B)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.5e-26: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= 3.7e-134: tmp = -x / math.tan(B) elif F <= 4.7e-7: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B else: tmp = (-1.0 / (math.tan(B) / x)) + (F / (F * math.sin(B))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.5e-26) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= 3.7e-134) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 4.7e-7) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / B); else tmp = Float64(Float64(-1.0 / Float64(tan(B) / x)) + Float64(F / Float64(F * sin(B)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.5e-26) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= 3.7e-134) tmp = -x / tan(B); elseif (F <= 4.7e-7) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B; else tmp = (-1.0 / (tan(B) / x)) + (F / (F * sin(B))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.5e-26], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 3.7e-134], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.7e-7], 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[(-1.0 / N[(N[Tan[B], $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.5 \cdot 10^{-26}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 3.7 \cdot 10^{-134}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 4.7 \cdot 10^{-7}:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{-1}{\frac{\tan B}{x}} + \frac{F}{F \cdot \sin B}\\
\end{array}
\end{array}
if F < -1.50000000000000006e-26Initial program 62.7%
div-inv62.8%
expm1-log1p-u40.2%
expm1-udef40.1%
Applied egg-rr40.1%
expm1-def40.2%
expm1-log1p62.8%
Simplified62.8%
Taylor expanded in F around -inf 96.4%
+-commutative96.4%
unsub-neg96.4%
Applied egg-rr96.4%
if -1.50000000000000006e-26 < F < 3.7e-134Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 82.0%
mul-1-neg82.0%
associate-*l/82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
distribute-rgt-neg-out82.0%
neg-sub082.0%
associate-*l/82.0%
associate-/l*82.0%
quot-tan82.0%
Applied egg-rr82.0%
neg-sub082.0%
distribute-neg-frac82.0%
Simplified82.0%
if 3.7e-134 < F < 4.7e-7Initial program 99.4%
distribute-lft-neg-in99.4%
+-commutative99.4%
fma-def99.4%
+-commutative99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
metadata-eval99.4%
metadata-eval99.4%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in B around 0 69.3%
Taylor expanded in F around 0 69.3%
*-commutative69.3%
Simplified69.3%
if 4.7e-7 < F Initial program 52.7%
Taylor expanded in F around inf 76.9%
un-div-inv76.8%
associate-/l/97.4%
Applied egg-rr97.4%
div-inv97.5%
clear-num97.5%
Applied egg-rr97.5%
Final simplification90.1%
(FPCore (F B x)
:precision binary64
(let* ((t_0 (/ x (tan B))))
(if (<= F -1.3e-24)
(- (/ -1.0 (sin B)) t_0)
(if (<= F 1.6e-134)
(/ (- x) (tan B))
(if (<= F 1.7e-9)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) 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 <= -1.3e-24) {
tmp = (-1.0 / sin(B)) - t_0;
} else if (F <= 1.6e-134) {
tmp = -x / tan(B);
} else if (F <= 1.7e-9) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / 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 <= (-1.3d-24)) then
tmp = ((-1.0d0) / sin(b)) - t_0
else if (f <= 1.6d-134) then
tmp = -x / tan(b)
else if (f <= 1.7d-9) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / 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 <= -1.3e-24) {
tmp = (-1.0 / Math.sin(B)) - t_0;
} else if (F <= 1.6e-134) {
tmp = -x / Math.tan(B);
} else if (F <= 1.7e-9) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / 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 <= -1.3e-24: tmp = (-1.0 / math.sin(B)) - t_0 elif F <= 1.6e-134: tmp = -x / math.tan(B) elif F <= 1.7e-9: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / 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 <= -1.3e-24) tmp = Float64(Float64(-1.0 / sin(B)) - t_0); elseif (F <= 1.6e-134) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 1.7e-9) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / 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 <= -1.3e-24) tmp = (-1.0 / sin(B)) - t_0; elseif (F <= 1.6e-134) tmp = -x / tan(B); elseif (F <= 1.7e-9) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / 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, -1.3e-24], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision], If[LessEqual[F, 1.6e-134], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 1.7e-9], 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[(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.3 \cdot 10^{-24}:\\
\;\;\;\;\frac{-1}{\sin B} - t_0\\
\mathbf{elif}\;F \leq 1.6 \cdot 10^{-134}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 1.7 \cdot 10^{-9}:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\sin B} - t_0\\
\end{array}
\end{array}
if F < -1.3e-24Initial program 62.7%
div-inv62.8%
expm1-log1p-u40.2%
expm1-udef40.1%
Applied egg-rr40.1%
expm1-def40.2%
expm1-log1p62.8%
Simplified62.8%
Taylor expanded in F around -inf 96.4%
+-commutative96.4%
unsub-neg96.4%
Applied egg-rr96.4%
if -1.3e-24 < F < 1.6000000000000001e-134Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 82.0%
mul-1-neg82.0%
associate-*l/82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
distribute-rgt-neg-out82.0%
neg-sub082.0%
associate-*l/82.0%
associate-/l*82.0%
quot-tan82.0%
Applied egg-rr82.0%
neg-sub082.0%
distribute-neg-frac82.0%
Simplified82.0%
if 1.6000000000000001e-134 < F < 1.6999999999999999e-9Initial program 99.4%
distribute-lft-neg-in99.4%
+-commutative99.4%
fma-def99.4%
+-commutative99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
metadata-eval99.4%
metadata-eval99.4%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in B around 0 69.3%
Taylor expanded in F around 0 69.3%
*-commutative69.3%
Simplified69.3%
if 1.6999999999999999e-9 < F Initial program 52.7%
Taylor expanded in B around inf 52.8%
Taylor expanded in F around inf 97.4%
+-commutative97.4%
unsub-neg97.4%
clear-num97.3%
tan-quot97.4%
un-div-inv97.5%
Applied egg-rr97.5%
Final simplification90.1%
(FPCore (F B x)
:precision binary64
(if (<= F -4.1e-23)
(- (/ -1.0 (sin B)) (/ x (tan B)))
(if (<= F 2.15e-134)
(/ (- x) (tan B))
(if (<= F 7.5e-7)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) B)
(if (<= F 2.45e+76)
(- (/ 1.0 B) (* x (/ 1.0 (tan B))))
(- (/ F (* F (sin B))) (/ x B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -4.1e-23) {
tmp = (-1.0 / sin(B)) - (x / tan(B));
} else if (F <= 2.15e-134) {
tmp = -x / tan(B);
} else if (F <= 7.5e-7) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else if (F <= 2.45e+76) {
tmp = (1.0 / B) - (x * (1.0 / tan(B)));
} else {
tmp = (F / (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.1d-23)) then
tmp = ((-1.0d0) / sin(b)) - (x / tan(b))
else if (f <= 2.15d-134) then
tmp = -x / tan(b)
else if (f <= 7.5d-7) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / b
else if (f <= 2.45d+76) then
tmp = (1.0d0 / b) - (x * (1.0d0 / tan(b)))
else
tmp = (f / (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.1e-23) {
tmp = (-1.0 / Math.sin(B)) - (x / Math.tan(B));
} else if (F <= 2.15e-134) {
tmp = -x / Math.tan(B);
} else if (F <= 7.5e-7) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else if (F <= 2.45e+76) {
tmp = (1.0 / B) - (x * (1.0 / Math.tan(B)));
} else {
tmp = (F / (F * Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -4.1e-23: tmp = (-1.0 / math.sin(B)) - (x / math.tan(B)) elif F <= 2.15e-134: tmp = -x / math.tan(B) elif F <= 7.5e-7: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B elif F <= 2.45e+76: tmp = (1.0 / B) - (x * (1.0 / math.tan(B))) else: tmp = (F / (F * math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -4.1e-23) tmp = Float64(Float64(-1.0 / sin(B)) - Float64(x / tan(B))); elseif (F <= 2.15e-134) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 7.5e-7) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / B); elseif (F <= 2.45e+76) tmp = Float64(Float64(1.0 / B) - Float64(x * Float64(1.0 / tan(B)))); else tmp = Float64(Float64(F / Float64(F * sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -4.1e-23) tmp = (-1.0 / sin(B)) - (x / tan(B)); elseif (F <= 2.15e-134) tmp = -x / tan(B); elseif (F <= 7.5e-7) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B; elseif (F <= 2.45e+76) tmp = (1.0 / B) - (x * (1.0 / tan(B))); else tmp = (F / (F * sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -4.1e-23], N[(N[(-1.0 / N[Sin[B], $MachinePrecision]), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.15e-134], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.5e-7], 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], If[LessEqual[F, 2.45e+76], N[(N[(1.0 / B), $MachinePrecision] - N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -4.1 \cdot 10^{-23}:\\
\;\;\;\;\frac{-1}{\sin B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 2.15 \cdot 10^{-134}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 7.5 \cdot 10^{-7}:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{elif}\;F \leq 2.45 \cdot 10^{+76}:\\
\;\;\;\;\frac{1}{B} - x \cdot \frac{1}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{F}{F \cdot \sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -4.10000000000000029e-23Initial program 62.7%
div-inv62.8%
expm1-log1p-u40.2%
expm1-udef40.1%
Applied egg-rr40.1%
expm1-def40.2%
expm1-log1p62.8%
Simplified62.8%
Taylor expanded in F around -inf 96.4%
+-commutative96.4%
unsub-neg96.4%
Applied egg-rr96.4%
if -4.10000000000000029e-23 < F < 2.14999999999999993e-134Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 82.0%
mul-1-neg82.0%
associate-*l/82.0%
distribute-rgt-neg-in82.0%
Simplified82.0%
distribute-rgt-neg-out82.0%
neg-sub082.0%
associate-*l/82.0%
associate-/l*82.0%
quot-tan82.0%
Applied egg-rr82.0%
neg-sub082.0%
distribute-neg-frac82.0%
Simplified82.0%
if 2.14999999999999993e-134 < F < 7.5000000000000002e-7Initial program 99.4%
distribute-lft-neg-in99.4%
+-commutative99.4%
fma-def99.4%
+-commutative99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
metadata-eval99.4%
metadata-eval99.4%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in B around 0 69.3%
Taylor expanded in F around 0 69.3%
*-commutative69.3%
Simplified69.3%
if 7.5000000000000002e-7 < F < 2.45000000000000013e76Initial program 99.4%
Taylor expanded in F around inf 92.5%
Taylor expanded in B around 0 76.9%
if 2.45000000000000013e76 < F Initial program 29.4%
Taylor expanded in F around inf 69.0%
un-div-inv69.0%
associate-/l/99.8%
Applied egg-rr99.8%
Taylor expanded in B around 0 84.4%
Final simplification86.1%
(FPCore (F B x)
:precision binary64
(if (<= F -5e-80)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 9.2e-144)
(/ (- x) (tan B))
(if (<= F 9.2e-7)
(/ (- (* F (sqrt (/ 1.0 (+ 2.0 (* x 2.0))))) x) B)
(if (<= F 2.35e+76)
(- (/ 1.0 B) (* x (/ 1.0 (tan B))))
(- (/ F (* F (sin B))) (/ x B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -5e-80) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 9.2e-144) {
tmp = -x / tan(B);
} else if (F <= 9.2e-7) {
tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else if (F <= 2.35e+76) {
tmp = (1.0 / B) - (x * (1.0 / tan(B)));
} else {
tmp = (F / (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 <= (-5d-80)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 9.2d-144) then
tmp = -x / tan(b)
else if (f <= 9.2d-7) then
tmp = ((f * sqrt((1.0d0 / (2.0d0 + (x * 2.0d0))))) - x) / b
else if (f <= 2.35d+76) then
tmp = (1.0d0 / b) - (x * (1.0d0 / tan(b)))
else
tmp = (f / (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 <= -5e-80) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 9.2e-144) {
tmp = -x / Math.tan(B);
} else if (F <= 9.2e-7) {
tmp = ((F * Math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B;
} else if (F <= 2.35e+76) {
tmp = (1.0 / B) - (x * (1.0 / Math.tan(B)));
} else {
tmp = (F / (F * Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -5e-80: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 9.2e-144: tmp = -x / math.tan(B) elif F <= 9.2e-7: tmp = ((F * math.sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B elif F <= 2.35e+76: tmp = (1.0 / B) - (x * (1.0 / math.tan(B))) else: tmp = (F / (F * math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -5e-80) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 9.2e-144) tmp = Float64(Float64(-x) / tan(B)); elseif (F <= 9.2e-7) tmp = Float64(Float64(Float64(F * sqrt(Float64(1.0 / Float64(2.0 + Float64(x * 2.0))))) - x) / B); elseif (F <= 2.35e+76) tmp = Float64(Float64(1.0 / B) - Float64(x * Float64(1.0 / tan(B)))); else tmp = Float64(Float64(F / Float64(F * sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -5e-80) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 9.2e-144) tmp = -x / tan(B); elseif (F <= 9.2e-7) tmp = ((F * sqrt((1.0 / (2.0 + (x * 2.0))))) - x) / B; elseif (F <= 2.35e+76) tmp = (1.0 / B) - (x * (1.0 / tan(B))); else tmp = (F / (F * sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -5e-80], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 9.2e-144], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 9.2e-7], 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], If[LessEqual[F, 2.35e+76], N[(N[(1.0 / B), $MachinePrecision] - N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -5 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 9.2 \cdot 10^{-144}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{elif}\;F \leq 9.2 \cdot 10^{-7}:\\
\;\;\;\;\frac{F \cdot \sqrt{\frac{1}{2 + x \cdot 2}} - x}{B}\\
\mathbf{elif}\;F \leq 2.35 \cdot 10^{+76}:\\
\;\;\;\;\frac{1}{B} - x \cdot \frac{1}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{F}{F \cdot \sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -5e-80Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 72.3%
if -5e-80 < F < 9.2e-144Initial program 99.6%
distribute-lft-neg-in99.6%
+-commutative99.6%
fma-def99.6%
+-commutative99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
metadata-eval99.6%
metadata-eval99.6%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 84.8%
mul-1-neg84.8%
associate-*l/84.7%
distribute-rgt-neg-in84.7%
Simplified84.7%
distribute-rgt-neg-out84.7%
neg-sub084.7%
associate-*l/84.8%
associate-/l*84.8%
quot-tan84.8%
Applied egg-rr84.8%
neg-sub084.8%
distribute-neg-frac84.8%
Simplified84.8%
if 9.2e-144 < F < 9.1999999999999998e-7Initial program 99.4%
distribute-lft-neg-in99.4%
+-commutative99.4%
fma-def99.4%
+-commutative99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
metadata-eval99.4%
metadata-eval99.4%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in B around 0 69.3%
Taylor expanded in F around 0 69.3%
*-commutative69.3%
Simplified69.3%
if 9.1999999999999998e-7 < F < 2.3500000000000002e76Initial program 99.4%
Taylor expanded in F around inf 92.5%
Taylor expanded in B around 0 76.9%
if 2.3500000000000002e76 < F Initial program 29.4%
Taylor expanded in F around inf 69.0%
un-div-inv69.0%
associate-/l/99.8%
Applied egg-rr99.8%
Taylor expanded in B around 0 84.4%
Final simplification77.6%
(FPCore (F B x) :precision binary64 (if (<= F -5.8e-80) (- (/ -1.0 B) (/ x (tan B))) (if (<= F 2.5e-61) (/ (- x) (tan B)) (- (/ 1.0 B) (* x (/ 1.0 (tan B)))))))
double code(double F, double B, double x) {
double tmp;
if (F <= -5.8e-80) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 2.5e-61) {
tmp = -x / tan(B);
} else {
tmp = (1.0 / B) - (x * (1.0 / 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 <= (-5.8d-80)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 2.5d-61) then
tmp = -x / tan(b)
else
tmp = (1.0d0 / b) - (x * (1.0d0 / tan(b)))
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -5.8e-80) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 2.5e-61) {
tmp = -x / Math.tan(B);
} else {
tmp = (1.0 / B) - (x * (1.0 / Math.tan(B)));
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -5.8e-80: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 2.5e-61: tmp = -x / math.tan(B) else: tmp = (1.0 / B) - (x * (1.0 / math.tan(B))) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -5.8e-80) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 2.5e-61) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(1.0 / B) - Float64(x * Float64(1.0 / tan(B)))); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -5.8e-80) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 2.5e-61) tmp = -x / tan(B); else tmp = (1.0 / B) - (x * (1.0 / tan(B))); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -5.8e-80], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 2.5e-61], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / B), $MachinePrecision] - N[(x * N[(1.0 / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -5.8 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 2.5 \cdot 10^{-61}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{B} - x \cdot \frac{1}{\tan B}\\
\end{array}
\end{array}
if F < -5.79999999999999996e-80Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 72.3%
if -5.79999999999999996e-80 < F < 2.4999999999999999e-61Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 78.4%
mul-1-neg78.4%
associate-*l/78.4%
distribute-rgt-neg-in78.4%
Simplified78.4%
distribute-rgt-neg-out78.4%
neg-sub078.4%
associate-*l/78.4%
associate-/l*78.4%
quot-tan78.4%
Applied egg-rr78.4%
neg-sub078.4%
distribute-neg-frac78.4%
Simplified78.4%
if 2.4999999999999999e-61 < F Initial program 59.4%
Taylor expanded in F around inf 71.9%
Taylor expanded in B around 0 72.1%
Final simplification74.1%
(FPCore (F B x) :precision binary64 (if (<= F -5.8e-80) (- (/ -1.0 B) (/ x (tan B))) (if (<= F 7.0) (/ (- x) (tan B)) (- (/ F (* F (sin B))) (/ x B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -5.8e-80) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 7.0) {
tmp = -x / tan(B);
} else {
tmp = (F / (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 <= (-5.8d-80)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 7.0d0) then
tmp = -x / tan(b)
else
tmp = (f / (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 <= -5.8e-80) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 7.0) {
tmp = -x / Math.tan(B);
} else {
tmp = (F / (F * Math.sin(B))) - (x / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -5.8e-80: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 7.0: tmp = -x / math.tan(B) else: tmp = (F / (F * math.sin(B))) - (x / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -5.8e-80) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 7.0) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(F / Float64(F * sin(B))) - Float64(x / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -5.8e-80) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 7.0) tmp = -x / tan(B); else tmp = (F / (F * sin(B))) - (x / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -5.8e-80], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 7.0], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(F / N[(F * N[Sin[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / B), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -5.8 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 7:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;\frac{F}{F \cdot \sin B} - \frac{x}{B}\\
\end{array}
\end{array}
if F < -5.79999999999999996e-80Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 72.3%
if -5.79999999999999996e-80 < F < 7Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 74.9%
mul-1-neg74.9%
associate-*l/74.8%
distribute-rgt-neg-in74.8%
Simplified74.8%
distribute-rgt-neg-out74.8%
neg-sub074.8%
associate-*l/74.9%
associate-/l*74.8%
quot-tan74.9%
Applied egg-rr74.9%
neg-sub074.9%
distribute-neg-frac74.9%
Simplified74.9%
if 7 < F Initial program 51.3%
Taylor expanded in F around inf 76.2%
un-div-inv76.1%
associate-/l/97.3%
Applied egg-rr97.3%
Taylor expanded in B around 0 77.4%
Final simplification74.5%
(FPCore (F B x)
:precision binary64
(if (<= F -4.2e-80)
(- (/ -1.0 B) (/ x (tan B)))
(if (<= F 4.8e+126)
(/ (- x) (tan B))
(+
(* B (+ 0.16666666666666666 (* x 0.3333333333333333)))
(/ (- 1.0 x) B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -4.2e-80) {
tmp = (-1.0 / B) - (x / tan(B));
} else if (F <= 4.8e+126) {
tmp = -x / tan(B);
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((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 <= (-4.2d-80)) then
tmp = ((-1.0d0) / b) - (x / tan(b))
else if (f <= 4.8d+126) then
tmp = -x / tan(b)
else
tmp = (b * (0.16666666666666666d0 + (x * 0.3333333333333333d0))) + ((1.0d0 - x) / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -4.2e-80) {
tmp = (-1.0 / B) - (x / Math.tan(B));
} else if (F <= 4.8e+126) {
tmp = -x / Math.tan(B);
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -4.2e-80: tmp = (-1.0 / B) - (x / math.tan(B)) elif F <= 4.8e+126: tmp = -x / math.tan(B) else: tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -4.2e-80) tmp = Float64(Float64(-1.0 / B) - Float64(x / tan(B))); elseif (F <= 4.8e+126) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(B * Float64(0.16666666666666666 + Float64(x * 0.3333333333333333))) + Float64(Float64(1.0 - x) / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -4.2e-80) tmp = (-1.0 / B) - (x / tan(B)); elseif (F <= 4.8e+126) tmp = -x / tan(B); else tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -4.2e-80], N[(N[(-1.0 / B), $MachinePrecision] - N[(x / N[Tan[B], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[F, 4.8e+126], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(B * N[(0.16666666666666666 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -4.2 \cdot 10^{-80}:\\
\;\;\;\;\frac{-1}{B} - \frac{x}{\tan B}\\
\mathbf{elif}\;F \leq 4.8 \cdot 10^{+126}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;B \cdot \left(0.16666666666666666 + x \cdot 0.3333333333333333\right) + \frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -4.20000000000000003e-80Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 72.3%
if -4.20000000000000003e-80 < F < 4.80000000000000024e126Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in F around 0 68.2%
mul-1-neg68.2%
associate-*l/68.1%
distribute-rgt-neg-in68.1%
Simplified68.1%
distribute-rgt-neg-out68.1%
neg-sub068.1%
associate-*l/68.2%
associate-/l*68.1%
quot-tan68.2%
Applied egg-rr68.2%
neg-sub068.2%
distribute-neg-frac68.2%
Simplified68.2%
if 4.80000000000000024e126 < F Initial program 16.2%
Taylor expanded in F around inf 63.2%
Taylor expanded in B around 0 78.6%
Taylor expanded in B around 0 71.1%
associate--l+71.1%
div-sub71.2%
distribute-lft-in71.2%
*-commutative71.2%
metadata-eval71.2%
distribute-rgt-out--71.2%
distribute-lft-in71.2%
distribute-rgt-out--71.2%
metadata-eval71.2%
Simplified71.2%
Final simplification70.3%
(FPCore (F B x)
:precision binary64
(if (<= F -1.05e-22)
(/ (- -1.0 x) B)
(if (<= F 9e+128)
(/ (- x) (tan B))
(+
(* B (+ 0.16666666666666666 (* x 0.3333333333333333)))
(/ (- 1.0 x) B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -1.05e-22) {
tmp = (-1.0 - x) / B;
} else if (F <= 9e+128) {
tmp = -x / tan(B);
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((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.05d-22)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 9d+128) then
tmp = -x / tan(b)
else
tmp = (b * (0.16666666666666666d0 + (x * 0.3333333333333333d0))) + ((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.05e-22) {
tmp = (-1.0 - x) / B;
} else if (F <= 9e+128) {
tmp = -x / Math.tan(B);
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -1.05e-22: tmp = (-1.0 - x) / B elif F <= 9e+128: tmp = -x / math.tan(B) else: tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -1.05e-22) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 9e+128) tmp = Float64(Float64(-x) / tan(B)); else tmp = Float64(Float64(B * Float64(0.16666666666666666 + Float64(x * 0.3333333333333333))) + Float64(Float64(1.0 - x) / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -1.05e-22) tmp = (-1.0 - x) / B; elseif (F <= 9e+128) tmp = -x / tan(B); else tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -1.05e-22], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 9e+128], N[((-x) / N[Tan[B], $MachinePrecision]), $MachinePrecision], N[(N[(B * N[(0.16666666666666666 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -1.05 \cdot 10^{-22}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 9 \cdot 10^{+128}:\\
\;\;\;\;\frac{-x}{\tan B}\\
\mathbf{else}:\\
\;\;\;\;B \cdot \left(0.16666666666666666 + x \cdot 0.3333333333333333\right) + \frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -1.05000000000000004e-22Initial program 62.7%
div-inv62.8%
expm1-log1p-u40.2%
expm1-udef40.1%
Applied egg-rr40.1%
expm1-def40.2%
expm1-log1p62.8%
Simplified62.8%
Taylor expanded in F around -inf 96.4%
Taylor expanded in B around 0 56.0%
mul-1-neg56.0%
Simplified56.0%
if -1.05000000000000004e-22 < F < 9.0000000000000003e128Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.5%
*-rgt-identity99.5%
Simplified99.5%
Taylor expanded in F around 0 67.5%
mul-1-neg67.5%
associate-*l/67.5%
distribute-rgt-neg-in67.5%
Simplified67.5%
distribute-rgt-neg-out67.5%
neg-sub067.5%
associate-*l/67.5%
associate-/l*67.5%
quot-tan67.6%
Applied egg-rr67.6%
neg-sub067.6%
distribute-neg-frac67.6%
Simplified67.6%
if 9.0000000000000003e128 < F Initial program 16.2%
Taylor expanded in F around inf 63.2%
Taylor expanded in B around 0 78.6%
Taylor expanded in B around 0 71.1%
associate--l+71.1%
div-sub71.2%
distribute-lft-in71.2%
*-commutative71.2%
metadata-eval71.2%
distribute-rgt-out--71.2%
distribute-lft-in71.2%
distribute-rgt-out--71.2%
metadata-eval71.2%
Simplified71.2%
Final simplification63.8%
(FPCore (F B x)
:precision binary64
(if (<= F -4.1e-81)
(/ (- -1.0 x) B)
(if (<= F 1.8e-56)
(/ (- x) B)
(+
(* B (+ 0.16666666666666666 (* x 0.3333333333333333)))
(/ (- 1.0 x) B)))))
double code(double F, double B, double x) {
double tmp;
if (F <= -4.1e-81) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.8e-56) {
tmp = -x / B;
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((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 <= (-4.1d-81)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 1.8d-56) then
tmp = -x / b
else
tmp = (b * (0.16666666666666666d0 + (x * 0.3333333333333333d0))) + ((1.0d0 - x) / b)
end if
code = tmp
end function
public static double code(double F, double B, double x) {
double tmp;
if (F <= -4.1e-81) {
tmp = (-1.0 - x) / B;
} else if (F <= 1.8e-56) {
tmp = -x / B;
} else {
tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B);
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -4.1e-81: tmp = (-1.0 - x) / B elif F <= 1.8e-56: tmp = -x / B else: tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B) return tmp
function code(F, B, x) tmp = 0.0 if (F <= -4.1e-81) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 1.8e-56) tmp = Float64(Float64(-x) / B); else tmp = Float64(Float64(B * Float64(0.16666666666666666 + Float64(x * 0.3333333333333333))) + Float64(Float64(1.0 - x) / B)); end return tmp end
function tmp_2 = code(F, B, x) tmp = 0.0; if (F <= -4.1e-81) tmp = (-1.0 - x) / B; elseif (F <= 1.8e-56) tmp = -x / B; else tmp = (B * (0.16666666666666666 + (x * 0.3333333333333333))) + ((1.0 - x) / B); end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -4.1e-81], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 1.8e-56], N[((-x) / B), $MachinePrecision], N[(N[(B * N[(0.16666666666666666 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -4.1 \cdot 10^{-81}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 1.8 \cdot 10^{-56}:\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;B \cdot \left(0.16666666666666666 + x \cdot 0.3333333333333333\right) + \frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -4.09999999999999984e-81Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 53.4%
mul-1-neg53.4%
Simplified53.4%
if -4.09999999999999984e-81 < F < 1.79999999999999989e-56Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 78.8%
mul-1-neg78.8%
associate-*l/78.7%
distribute-rgt-neg-in78.7%
Simplified78.7%
Taylor expanded in B around 0 39.2%
associate-*r/39.2%
neg-mul-139.2%
Simplified39.2%
if 1.79999999999999989e-56 < F Initial program 58.3%
Taylor expanded in F around inf 72.4%
Taylor expanded in B around 0 62.5%
Taylor expanded in B around 0 52.5%
associate--l+52.5%
div-sub52.5%
distribute-lft-in52.5%
*-commutative52.5%
metadata-eval52.5%
distribute-rgt-out--52.5%
distribute-lft-in52.5%
distribute-rgt-out--52.5%
metadata-eval52.5%
Simplified52.5%
Final simplification48.7%
(FPCore (F B x) :precision binary64 (if (<= F -4.2e-81) (/ (- -1.0 x) B) (if (<= F 2.4e-61) (/ (- x) B) (/ (- 1.0 x) B))))
double code(double F, double B, double x) {
double tmp;
if (F <= -4.2e-81) {
tmp = (-1.0 - x) / B;
} else if (F <= 2.4e-61) {
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 <= (-4.2d-81)) then
tmp = ((-1.0d0) - x) / b
else if (f <= 2.4d-61) 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 <= -4.2e-81) {
tmp = (-1.0 - x) / B;
} else if (F <= 2.4e-61) {
tmp = -x / B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= -4.2e-81: tmp = (-1.0 - x) / B elif F <= 2.4e-61: tmp = -x / B else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= -4.2e-81) tmp = Float64(Float64(-1.0 - x) / B); elseif (F <= 2.4e-61) 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 <= -4.2e-81) tmp = (-1.0 - x) / B; elseif (F <= 2.4e-61) tmp = -x / B; else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, -4.2e-81], N[(N[(-1.0 - x), $MachinePrecision] / B), $MachinePrecision], If[LessEqual[F, 2.4e-61], N[((-x) / B), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq -4.2 \cdot 10^{-81}:\\
\;\;\;\;\frac{-1 - x}{B}\\
\mathbf{elif}\;F \leq 2.4 \cdot 10^{-61}:\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < -4.1999999999999998e-81Initial program 65.1%
div-inv65.3%
expm1-log1p-u42.1%
expm1-udef41.1%
Applied egg-rr41.1%
expm1-def42.1%
expm1-log1p65.3%
Simplified65.3%
Taylor expanded in F around -inf 93.0%
Taylor expanded in B around 0 53.4%
mul-1-neg53.4%
Simplified53.4%
if -4.1999999999999998e-81 < F < 2.4000000000000001e-61Initial program 99.5%
distribute-lft-neg-in99.5%
+-commutative99.5%
fma-def99.5%
+-commutative99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
metadata-eval99.5%
metadata-eval99.5%
associate-*r/99.6%
*-rgt-identity99.6%
Simplified99.6%
Taylor expanded in F around 0 78.4%
mul-1-neg78.4%
associate-*l/78.4%
distribute-rgt-neg-in78.4%
Simplified78.4%
Taylor expanded in B around 0 40.0%
associate-*r/40.0%
neg-mul-140.0%
Simplified40.0%
if 2.4000000000000001e-61 < F Initial program 59.4%
Taylor expanded in F around inf 71.9%
Taylor expanded in B around 0 62.3%
Taylor expanded in B around 0 50.6%
Final simplification48.5%
(FPCore (F B x) :precision binary64 (if (<= F 1.35e-61) (/ (- x) B) (/ (- 1.0 x) B)))
double code(double F, double B, double x) {
double tmp;
if (F <= 1.35e-61) {
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.35d-61) 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.35e-61) {
tmp = -x / B;
} else {
tmp = (1.0 - x) / B;
}
return tmp;
}
def code(F, B, x): tmp = 0 if F <= 1.35e-61: tmp = -x / B else: tmp = (1.0 - x) / B return tmp
function code(F, B, x) tmp = 0.0 if (F <= 1.35e-61) 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 <= 1.35e-61) tmp = -x / B; else tmp = (1.0 - x) / B; end tmp_2 = tmp; end
code[F_, B_, x_] := If[LessEqual[F, 1.35e-61], N[((-x) / B), $MachinePrecision], N[(N[(1.0 - x), $MachinePrecision] / B), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;F \leq 1.35 \cdot 10^{-61}:\\
\;\;\;\;\frac{-x}{B}\\
\mathbf{else}:\\
\;\;\;\;\frac{1 - x}{B}\\
\end{array}
\end{array}
if F < 1.34999999999999997e-61Initial program 79.9%
distribute-lft-neg-in79.9%
+-commutative79.9%
fma-def79.9%
+-commutative79.9%
*-commutative79.9%
fma-def79.9%
fma-def79.9%
metadata-eval79.9%
metadata-eval79.9%
associate-*r/80.0%
*-rgt-identity80.0%
Simplified80.0%
Taylor expanded in F around 0 61.1%
mul-1-neg61.1%
associate-*l/61.0%
distribute-rgt-neg-in61.0%
Simplified61.0%
Taylor expanded in B around 0 33.7%
associate-*r/33.7%
neg-mul-133.7%
Simplified33.7%
if 1.34999999999999997e-61 < F Initial program 59.4%
Taylor expanded in F around inf 71.9%
Taylor expanded in B around 0 62.3%
Taylor expanded in B around 0 50.6%
Final simplification38.8%
(FPCore (F B x) :precision binary64 (/ (- x) B))
double code(double F, double B, double x) {
return -x / B;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = -x / b
end function
public static double code(double F, double B, double x) {
return -x / B;
}
def code(F, B, x): return -x / B
function code(F, B, x) return Float64(Float64(-x) / B) end
function tmp = code(F, B, x) tmp = -x / B; end
code[F_, B_, x_] := N[((-x) / B), $MachinePrecision]
\begin{array}{l}
\\
\frac{-x}{B}
\end{array}
Initial program 73.8%
distribute-lft-neg-in73.8%
+-commutative73.8%
fma-def73.8%
+-commutative73.8%
*-commutative73.8%
fma-def73.8%
fma-def73.8%
metadata-eval73.8%
metadata-eval73.8%
associate-*r/73.8%
*-rgt-identity73.8%
Simplified73.8%
Taylor expanded in F around 0 55.4%
mul-1-neg55.4%
associate-*l/55.3%
distribute-rgt-neg-in55.3%
Simplified55.3%
Taylor expanded in B around 0 29.8%
associate-*r/29.8%
neg-mul-129.8%
Simplified29.8%
Final simplification29.8%
(FPCore (F B x) :precision binary64 (* B 0.16666666666666666))
double code(double F, double B, double x) {
return B * 0.16666666666666666;
}
real(8) function code(f, b, x)
real(8), intent (in) :: f
real(8), intent (in) :: b
real(8), intent (in) :: x
code = b * 0.16666666666666666d0
end function
public static double code(double F, double B, double x) {
return B * 0.16666666666666666;
}
def code(F, B, x): return B * 0.16666666666666666
function code(F, B, x) return Float64(B * 0.16666666666666666) end
function tmp = code(F, B, x) tmp = B * 0.16666666666666666; end
code[F_, B_, x_] := N[(B * 0.16666666666666666), $MachinePrecision]
\begin{array}{l}
\\
B \cdot 0.16666666666666666
\end{array}
Initial program 73.8%
Taylor expanded in F around inf 48.5%
Taylor expanded in B around 0 41.2%
Taylor expanded in B around inf 3.0%
*-commutative3.0%
Simplified3.0%
Final simplification3.0%
herbie shell --seed 2023313
(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))))))