\[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
\]
↓
\[\begin{array}{l}
t_1 := \frac{2}{t \cdot \left(\sin k \cdot \frac{t}{\ell}\right)} \cdot \frac{\frac{\frac{\ell}{t}}{2 + {\left(\frac{k}{t}\right)}^{2}}}{\tan k}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-60}:\\
\;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (t l k)
:precision binary64
(/
2.0
(*
(* (* (/ (pow t 3.0) (* l l)) (sin k)) (tan k))
(+ (+ 1.0 (pow (/ k t) 2.0)) 1.0))))
↓
(FPCore (t l k)
:precision binary64
(let* ((t_1
(*
(/ 2.0 (* t (* (sin k) (/ t l))))
(/ (/ (/ l t) (+ 2.0 (pow (/ k t) 2.0))) (tan k)))))
(if (<= t -1e-76)
t_1
(if (<= t 1e-60)
(* (* 2.0 (/ (/ l k) (* t k))) (/ (/ l (sin k)) (tan k)))
t_1))))double code(double t, double l, double k) {
return 2.0 / ((((pow(t, 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + pow((k / t), 2.0)) + 1.0));
}
↓
double code(double t, double l, double k) {
double t_1 = (2.0 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0 + pow((k / t), 2.0))) / tan(k));
double tmp;
if (t <= -1e-76) {
tmp = t_1;
} else if (t <= 1e-60) {
tmp = (2.0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
code = 2.0d0 / (((((t ** 3.0d0) / (l * l)) * sin(k)) * tan(k)) * ((1.0d0 + ((k / t) ** 2.0d0)) + 1.0d0))
end function
↓
real(8) function code(t, l, k)
real(8), intent (in) :: t
real(8), intent (in) :: l
real(8), intent (in) :: k
real(8) :: t_1
real(8) :: tmp
t_1 = (2.0d0 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0d0 + ((k / t) ** 2.0d0))) / tan(k))
if (t <= (-1d-76)) then
tmp = t_1
else if (t <= 1d-60) then
tmp = (2.0d0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double t, double l, double k) {
return 2.0 / ((((Math.pow(t, 3.0) / (l * l)) * Math.sin(k)) * Math.tan(k)) * ((1.0 + Math.pow((k / t), 2.0)) + 1.0));
}
↓
public static double code(double t, double l, double k) {
double t_1 = (2.0 / (t * (Math.sin(k) * (t / l)))) * (((l / t) / (2.0 + Math.pow((k / t), 2.0))) / Math.tan(k));
double tmp;
if (t <= -1e-76) {
tmp = t_1;
} else if (t <= 1e-60) {
tmp = (2.0 * ((l / k) / (t * k))) * ((l / Math.sin(k)) / Math.tan(k));
} else {
tmp = t_1;
}
return tmp;
}
def code(t, l, k):
return 2.0 / ((((math.pow(t, 3.0) / (l * l)) * math.sin(k)) * math.tan(k)) * ((1.0 + math.pow((k / t), 2.0)) + 1.0))
↓
def code(t, l, k):
t_1 = (2.0 / (t * (math.sin(k) * (t / l)))) * (((l / t) / (2.0 + math.pow((k / t), 2.0))) / math.tan(k))
tmp = 0
if t <= -1e-76:
tmp = t_1
elif t <= 1e-60:
tmp = (2.0 * ((l / k) / (t * k))) * ((l / math.sin(k)) / math.tan(k))
else:
tmp = t_1
return tmp
function code(t, l, k)
return Float64(2.0 / Float64(Float64(Float64(Float64((t ^ 3.0) / Float64(l * l)) * sin(k)) * tan(k)) * Float64(Float64(1.0 + (Float64(k / t) ^ 2.0)) + 1.0)))
end
↓
function code(t, l, k)
t_1 = Float64(Float64(2.0 / Float64(t * Float64(sin(k) * Float64(t / l)))) * Float64(Float64(Float64(l / t) / Float64(2.0 + (Float64(k / t) ^ 2.0))) / tan(k)))
tmp = 0.0
if (t <= -1e-76)
tmp = t_1;
elseif (t <= 1e-60)
tmp = Float64(Float64(2.0 * Float64(Float64(l / k) / Float64(t * k))) * Float64(Float64(l / sin(k)) / tan(k)));
else
tmp = t_1;
end
return tmp
end
function tmp = code(t, l, k)
tmp = 2.0 / (((((t ^ 3.0) / (l * l)) * sin(k)) * tan(k)) * ((1.0 + ((k / t) ^ 2.0)) + 1.0));
end
↓
function tmp_2 = code(t, l, k)
t_1 = (2.0 / (t * (sin(k) * (t / l)))) * (((l / t) / (2.0 + ((k / t) ^ 2.0))) / tan(k));
tmp = 0.0;
if (t <= -1e-76)
tmp = t_1;
elseif (t <= 1e-60)
tmp = (2.0 * ((l / k) / (t * k))) * ((l / sin(k)) / tan(k));
else
tmp = t_1;
end
tmp_2 = tmp;
end
code[t_, l_, k_] := N[(2.0 / N[(N[(N[(N[(N[Power[t, 3.0], $MachinePrecision] / N[(l * l), $MachinePrecision]), $MachinePrecision] * N[Sin[k], $MachinePrecision]), $MachinePrecision] * N[Tan[k], $MachinePrecision]), $MachinePrecision] * N[(N[(1.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[t_, l_, k_] := Block[{t$95$1 = N[(N[(2.0 / N[(t * N[(N[Sin[k], $MachinePrecision] * N[(t / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(l / t), $MachinePrecision] / N[(2.0 + N[Power[N[(k / t), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1e-76], t$95$1, If[LessEqual[t, 1e-60], N[(N[(2.0 * N[(N[(l / k), $MachinePrecision] / N[(t * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(l / N[Sin[k], $MachinePrecision]), $MachinePrecision] / N[Tan[k], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) + 1\right)}
↓
\begin{array}{l}
t_1 := \frac{2}{t \cdot \left(\sin k \cdot \frac{t}{\ell}\right)} \cdot \frac{\frac{\frac{\ell}{t}}{2 + {\left(\frac{k}{t}\right)}^{2}}}{\tan k}\\
\mathbf{if}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-60}:\\
\;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
Alternatives
| Alternative 1 |
|---|
| Error | 8.5 |
|---|
| Cost | 14472 |
|---|
\[\begin{array}{l}
t_1 := \left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\
\mathbf{if}\;k \leq -89034949084000340:\\
\;\;\;\;t_1\\
\mathbf{elif}\;k \leq 3.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{2}{\frac{t \cdot \left(\left(2 + {\left(\frac{k}{t}\right)}^{2}\right) \cdot \tan k\right)}{\frac{\ell}{t} \cdot \frac{\ell}{t \cdot k}}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 2 |
|---|
| Error | 10.7 |
|---|
| Cost | 14408 |
|---|
\[\begin{array}{l}
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;\frac{2}{\left(\frac{{t}^{3}}{\ell} \cdot \frac{k}{\frac{\ell}{k}}\right) \cdot \left(1 + \left({\left(\frac{k}{t}\right)}^{2} + 1\right)\right)}\\
\mathbf{elif}\;t \leq 10^{-60}:\\
\;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\
\end{array}
\]
| Alternative 3 |
|---|
| Error | 14.6 |
|---|
| Cost | 14156 |
|---|
\[\begin{array}{l}
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\
\mathbf{elif}\;t \leq 10^{-60}:\\
\;\;\;\;\frac{\frac{\ell}{\sin k}}{\tan k} \cdot \left(2 \cdot \frac{\frac{\ell}{t}}{k \cdot k}\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\
\end{array}
\]
| Alternative 4 |
|---|
| Error | 10.8 |
|---|
| Cost | 14156 |
|---|
\[\begin{array}{l}
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\
\mathbf{elif}\;t \leq 10^{-60}:\\
\;\;\;\;\left(2 \cdot \frac{\frac{\ell}{k}}{t \cdot k}\right) \cdot \frac{\frac{\ell}{\sin k}}{\tan k}\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\
\end{array}
\]
| Alternative 5 |
|---|
| Error | 17.9 |
|---|
| Cost | 13708 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;\frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\
\mathbf{elif}\;t \leq 10^{-67}:\\
\;\;\;\;\left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right) \cdot \mathsf{fma}\left(\ell, -0.16666666666666666, t_1\right)\\
\mathbf{else}:\\
\;\;\;\;{\left(\frac{\ell}{\left(t \cdot k\right) \cdot \sqrt{t}}\right)}^{2}\\
\end{array}
\]
| Alternative 6 |
|---|
| Error | 18.1 |
|---|
| Cost | 8012 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
t_2 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-76}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\
\mathbf{elif}\;t \leq 10^{-90}:\\
\;\;\;\;\left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right) \cdot \mathsf{fma}\left(\ell, -0.16666666666666666, t_2\right)\\
\mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\
\;\;\;\;\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 7 |
|---|
| Error | 18.7 |
|---|
| Cost | 7568 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
t_2 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -4.153095697430588 \cdot 10^{+96}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\
\;\;\;\;\frac{\frac{{\left(\frac{\ell}{k}\right)}^{2}}{t}}{t \cdot t}\\
\mathbf{elif}\;t \leq 10^{-95}:\\
\;\;\;\;t_2 \cdot \left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right)\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 8 |
|---|
| Error | 18.0 |
|---|
| Cost | 7568 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\
t_2 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
t_3 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-90}:\\
\;\;\;\;t_3 \cdot \left(2 \cdot \left(t_3 \cdot \frac{1}{t}\right)\right)\\
\mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 9 |
|---|
| Error | 18.3 |
|---|
| Cost | 7568 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
t_2 := \frac{\ell}{k \cdot k}\\
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-75}:\\
\;\;\;\;\frac{\frac{\ell}{k} \cdot \left(\ell \cdot {t}^{-2}\right)}{t \cdot k}\\
\mathbf{elif}\;t \leq 10^{-90}:\\
\;\;\;\;t_2 \cdot \left(2 \cdot \left(t_2 \cdot \frac{1}{t}\right)\right)\\
\mathbf{elif}\;t \leq 5.2972504029928794 \cdot 10^{+94}:\\
\;\;\;\;\frac{\ell}{k} \cdot \frac{\frac{\ell}{k}}{{t}^{3}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
| Alternative 10 |
|---|
| Error | 19.3 |
|---|
| Cost | 7436 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{k \cdot k}\\
t_2 := \frac{\ell}{t} \cdot \left(\ell \cdot {\left(t \cdot k\right)}^{-2}\right)\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{-34}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 10^{-95}:\\
\;\;\;\;t_1 \cdot \left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right)\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 11 |
|---|
| Error | 28.5 |
|---|
| Cost | 1360 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\
t_2 := \frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\
\mathbf{if}\;t \leq -1.6594214896225664 \cdot 10^{+84}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-90}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 10^{-120}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\
\end{array}
\]
| Alternative 12 |
|---|
| Error | 28.5 |
|---|
| Cost | 1360 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{t \cdot \left(t \cdot t\right)}\\
t_2 := \frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}\\
\mathbf{if}\;t \leq -1 \cdot 10^{+72}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-90}:\\
\;\;\;\;t_1 \cdot \left(\frac{\ell}{k} \cdot \frac{1}{k}\right)\\
\mathbf{elif}\;t \leq 10^{-120}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;t_1 \cdot \frac{\frac{\ell}{k}}{k}\\
\mathbf{else}:\\
\;\;\;\;\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\
\end{array}
\]
| Alternative 13 |
|---|
| Error | 23.6 |
|---|
| Cost | 1352 |
|---|
\[\begin{array}{l}
t_1 := \frac{\ell}{k \cdot k}\\
t_2 := \frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{-34}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 10^{-95}:\\
\;\;\;\;t_1 \cdot \left(2 \cdot \left(t_1 \cdot \frac{1}{t}\right)\right)\\
\mathbf{elif}\;t \leq 10^{+75}:\\
\;\;\;\;\frac{\ell}{t \cdot \left(t \cdot t\right)} \cdot \frac{\frac{\ell}{k}}{k}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\]
| Alternative 14 |
|---|
| Error | 35.9 |
|---|
| Cost | 832 |
|---|
\[\frac{\ell \cdot \ell}{t \cdot \left(\left(k \cdot k\right) \cdot \left(t \cdot t\right)\right)}
\]
| Alternative 15 |
|---|
| Error | 30.1 |
|---|
| Cost | 832 |
|---|
\[\frac{\ell \cdot \ell}{t \cdot \left(\left(t \cdot k\right) \cdot \left(t \cdot k\right)\right)}
\]
| Alternative 16 |
|---|
| Error | 30.1 |
|---|
| Cost | 832 |
|---|
\[\frac{\ell \cdot \ell}{t \cdot \left(k \cdot \left(t \cdot \left(t \cdot k\right)\right)\right)}
\]