\[w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}
\]
↓
\[\begin{array}{l}
t_0 := {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\\
\mathbf{if}\;t_0 \leq 2 \cdot 10^{-24}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{{\left(\frac{D}{d} \cdot \left(M \cdot 0.5\right)\right)}^{2} \cdot h}{\ell}}\\
\mathbf{elif}\;t_0 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;w0 \cdot \sqrt{1 - t_0 \cdot \frac{h}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M \cdot \left(\frac{D}{d} \cdot -0.5\right)}{\frac{\ell}{h} \cdot \left(\frac{2}{D} \cdot \frac{d}{M}\right)}}\\
\end{array}
\]
(FPCore (w0 M D h l d)
:precision binary64
(* w0 (sqrt (- 1.0 (* (pow (/ (* M D) (* 2.0 d)) 2.0) (/ h l))))))
↓
(FPCore (w0 M D h l d)
:precision binary64
(let* ((t_0 (pow (/ (* M D) (* 2.0 d)) 2.0)))
(if (<= t_0 2e-24)
(* w0 (sqrt (- 1.0 (/ (* (pow (* (/ D d) (* M 0.5)) 2.0) h) l))))
(if (<= t_0 2e+304)
(* w0 (sqrt (- 1.0 (* t_0 (/ h l)))))
(*
w0
(sqrt
(+
1.0
(/ (* M (* (/ D d) -0.5)) (* (/ l h) (* (/ 2.0 D) (/ d M)))))))))))double code(double w0, double M, double D, double h, double l, double d) {
return w0 * sqrt((1.0 - (pow(((M * D) / (2.0 * d)), 2.0) * (h / l))));
}
↓
double code(double w0, double M, double D, double h, double l, double d) {
double t_0 = pow(((M * D) / (2.0 * d)), 2.0);
double tmp;
if (t_0 <= 2e-24) {
tmp = w0 * sqrt((1.0 - ((pow(((D / d) * (M * 0.5)), 2.0) * h) / l)));
} else if (t_0 <= 2e+304) {
tmp = w0 * sqrt((1.0 - (t_0 * (h / l))));
} else {
tmp = w0 * sqrt((1.0 + ((M * ((D / d) * -0.5)) / ((l / h) * ((2.0 / D) * (d / M))))));
}
return tmp;
}
real(8) function code(w0, m, d, h, l, d_1)
real(8), intent (in) :: w0
real(8), intent (in) :: m
real(8), intent (in) :: d
real(8), intent (in) :: h
real(8), intent (in) :: l
real(8), intent (in) :: d_1
code = w0 * sqrt((1.0d0 - ((((m * d) / (2.0d0 * d_1)) ** 2.0d0) * (h / l))))
end function
↓
real(8) function code(w0, m, d, h, l, d_1)
real(8), intent (in) :: w0
real(8), intent (in) :: m
real(8), intent (in) :: d
real(8), intent (in) :: h
real(8), intent (in) :: l
real(8), intent (in) :: d_1
real(8) :: t_0
real(8) :: tmp
t_0 = ((m * d) / (2.0d0 * d_1)) ** 2.0d0
if (t_0 <= 2d-24) then
tmp = w0 * sqrt((1.0d0 - (((((d / d_1) * (m * 0.5d0)) ** 2.0d0) * h) / l)))
else if (t_0 <= 2d+304) then
tmp = w0 * sqrt((1.0d0 - (t_0 * (h / l))))
else
tmp = w0 * sqrt((1.0d0 + ((m * ((d / d_1) * (-0.5d0))) / ((l / h) * ((2.0d0 / d) * (d_1 / m))))))
end if
code = tmp
end function
public static double code(double w0, double M, double D, double h, double l, double d) {
return w0 * Math.sqrt((1.0 - (Math.pow(((M * D) / (2.0 * d)), 2.0) * (h / l))));
}
↓
public static double code(double w0, double M, double D, double h, double l, double d) {
double t_0 = Math.pow(((M * D) / (2.0 * d)), 2.0);
double tmp;
if (t_0 <= 2e-24) {
tmp = w0 * Math.sqrt((1.0 - ((Math.pow(((D / d) * (M * 0.5)), 2.0) * h) / l)));
} else if (t_0 <= 2e+304) {
tmp = w0 * Math.sqrt((1.0 - (t_0 * (h / l))));
} else {
tmp = w0 * Math.sqrt((1.0 + ((M * ((D / d) * -0.5)) / ((l / h) * ((2.0 / D) * (d / M))))));
}
return tmp;
}
def code(w0, M, D, h, l, d):
return w0 * math.sqrt((1.0 - (math.pow(((M * D) / (2.0 * d)), 2.0) * (h / l))))
↓
def code(w0, M, D, h, l, d):
t_0 = math.pow(((M * D) / (2.0 * d)), 2.0)
tmp = 0
if t_0 <= 2e-24:
tmp = w0 * math.sqrt((1.0 - ((math.pow(((D / d) * (M * 0.5)), 2.0) * h) / l)))
elif t_0 <= 2e+304:
tmp = w0 * math.sqrt((1.0 - (t_0 * (h / l))))
else:
tmp = w0 * math.sqrt((1.0 + ((M * ((D / d) * -0.5)) / ((l / h) * ((2.0 / D) * (d / M))))))
return tmp
function code(w0, M, D, h, l, d)
return Float64(w0 * sqrt(Float64(1.0 - Float64((Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0) * Float64(h / l)))))
end
↓
function code(w0, M, D, h, l, d)
t_0 = Float64(Float64(M * D) / Float64(2.0 * d)) ^ 2.0
tmp = 0.0
if (t_0 <= 2e-24)
tmp = Float64(w0 * sqrt(Float64(1.0 - Float64(Float64((Float64(Float64(D / d) * Float64(M * 0.5)) ^ 2.0) * h) / l))));
elseif (t_0 <= 2e+304)
tmp = Float64(w0 * sqrt(Float64(1.0 - Float64(t_0 * Float64(h / l)))));
else
tmp = Float64(w0 * sqrt(Float64(1.0 + Float64(Float64(M * Float64(Float64(D / d) * -0.5)) / Float64(Float64(l / h) * Float64(Float64(2.0 / D) * Float64(d / M)))))));
end
return tmp
end
function tmp = code(w0, M, D, h, l, d)
tmp = w0 * sqrt((1.0 - ((((M * D) / (2.0 * d)) ^ 2.0) * (h / l))));
end
↓
function tmp_2 = code(w0, M, D, h, l, d)
t_0 = ((M * D) / (2.0 * d)) ^ 2.0;
tmp = 0.0;
if (t_0 <= 2e-24)
tmp = w0 * sqrt((1.0 - (((((D / d) * (M * 0.5)) ^ 2.0) * h) / l)));
elseif (t_0 <= 2e+304)
tmp = w0 * sqrt((1.0 - (t_0 * (h / l))));
else
tmp = w0 * sqrt((1.0 + ((M * ((D / d) * -0.5)) / ((l / h) * ((2.0 / D) * (d / M))))));
end
tmp_2 = tmp;
end
code[w0_, M_, D_, h_, l_, d_] := N[(w0 * N[Sqrt[N[(1.0 - N[(N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]
↓
code[w0_, M_, D_, h_, l_, d_] := Block[{t$95$0 = N[Power[N[(N[(M * D), $MachinePrecision] / N[(2.0 * d), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]}, If[LessEqual[t$95$0, 2e-24], N[(w0 * N[Sqrt[N[(1.0 - N[(N[(N[Power[N[(N[(D / d), $MachinePrecision] * N[(M * 0.5), $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision] * h), $MachinePrecision] / l), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 2e+304], N[(w0 * N[Sqrt[N[(1.0 - N[(t$95$0 * N[(h / l), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], N[(w0 * N[Sqrt[N[(1.0 + N[(N[(M * N[(N[(D / d), $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision] / N[(N[(l / h), $MachinePrecision] * N[(N[(2.0 / D), $MachinePrecision] * N[(d / M), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]]]]
w0 \cdot \sqrt{1 - {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2} \cdot \frac{h}{\ell}}
↓
\begin{array}{l}
t_0 := {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\\
\mathbf{if}\;t_0 \leq 2 \cdot 10^{-24}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{{\left(\frac{D}{d} \cdot \left(M \cdot 0.5\right)\right)}^{2} \cdot h}{\ell}}\\
\mathbf{elif}\;t_0 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;w0 \cdot \sqrt{1 - t_0 \cdot \frac{h}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M \cdot \left(\frac{D}{d} \cdot -0.5\right)}{\frac{\ell}{h} \cdot \left(\frac{2}{D} \cdot \frac{d}{M}\right)}}\\
\end{array}
Alternatives
| Alternative 1 |
|---|
| Accuracy | 85.9% |
|---|
| Cost | 27784 |
|---|
\[\begin{array}{l}
t_0 := {\left(\frac{M \cdot D}{2 \cdot d}\right)}^{2}\\
\mathbf{if}\;t_0 \leq 2 \cdot 10^{-205}:\\
\;\;\;\;w0 \cdot \sqrt{1 - D \cdot \left(h \cdot \frac{M \cdot \frac{M \cdot \left(D \cdot \frac{-0.25}{d}\right)}{d}}{-\ell}\right)}\\
\mathbf{elif}\;t_0 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;w0 \cdot \sqrt{1 - t_0 \cdot \frac{h}{\ell}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M \cdot \left(\frac{D}{d} \cdot -0.5\right)}{\frac{\ell}{h} \cdot \left(\frac{2}{D} \cdot \frac{d}{M}\right)}}\\
\end{array}
\]
| Alternative 2 |
|---|
| Accuracy | 79.4% |
|---|
| Cost | 8536 |
|---|
\[\begin{array}{l}
t_0 := w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\mathbf{if}\;D \leq -1.1 \cdot 10^{-188}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;D \leq 1.9 \cdot 10^{-43}:\\
\;\;\;\;w0\\
\mathbf{elif}\;D \leq 1.1 \cdot 10^{+61}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{\ell} \cdot \left(\left(\frac{M}{d} \cdot \frac{D \cdot -0.25}{d}\right) \cdot \left(D \cdot h\right)\right)}\\
\mathbf{elif}\;D \leq 3.1 \cdot 10^{+109}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot \left(h \cdot \left(M \cdot D\right)\right)}\\
\mathbf{elif}\;D \leq 4.5 \cdot 10^{+137}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;D \leq 3.3 \cdot 10^{+274}:\\
\;\;\;\;w0\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \left(\frac{h}{\ell} \cdot \left(M \cdot D\right)\right) \cdot \left(-0.25 \cdot \frac{M \cdot D}{d \cdot d}\right)}\\
\end{array}
\]
| Alternative 3 |
|---|
| Accuracy | 76.7% |
|---|
| Cost | 8536 |
|---|
\[\begin{array}{l}
\mathbf{if}\;D \leq -4.6 \cdot 10^{-188}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M}{\frac{\frac{\ell}{h}}{-D}} \cdot \frac{M}{\left(d \cdot -4\right) \cdot \frac{d}{D}}}\\
\mathbf{elif}\;D \leq 1.7 \cdot 10^{-43}:\\
\;\;\;\;w0\\
\mathbf{elif}\;D \leq 5 \cdot 10^{+60}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{\ell} \cdot \left(\left(\frac{M}{d} \cdot \frac{D \cdot -0.25}{d}\right) \cdot \left(D \cdot h\right)\right)}\\
\mathbf{elif}\;D \leq 4 \cdot 10^{+108}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot \left(h \cdot \left(M \cdot D\right)\right)}\\
\mathbf{elif}\;D \leq 1.3 \cdot 10^{+136}:\\
\;\;\;\;w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\mathbf{elif}\;D \leq 3.6 \cdot 10^{+274}:\\
\;\;\;\;w0\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \left(\frac{h}{\ell} \cdot \left(M \cdot D\right)\right) \cdot \left(-0.25 \cdot \frac{M \cdot D}{d \cdot d}\right)}\\
\end{array}
\]
| Alternative 4 |
|---|
| Accuracy | 85.4% |
|---|
| Cost | 8392 |
|---|
\[\begin{array}{l}
\mathbf{if}\;\frac{h}{\ell} \leq -\infty:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot \left(h \cdot \left(M \cdot D\right)\right)}\\
\mathbf{elif}\;\frac{h}{\ell} \leq -5 \cdot 10^{-258}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M \cdot \left(\frac{D}{d} \cdot -0.5\right)}{\frac{\ell}{h} \cdot \left(\frac{2}{D} \cdot \frac{d}{M}\right)}}\\
\mathbf{else}:\\
\;\;\;\;w0\\
\end{array}
\]
| Alternative 5 |
|---|
| Accuracy | 80.4% |
|---|
| Cost | 8272 |
|---|
\[\begin{array}{l}
t_0 := w0 \cdot \sqrt{1 + \left(\frac{h}{\ell} \cdot \left(M \cdot D\right)\right) \cdot \left(-0.25 \cdot \frac{M \cdot D}{d \cdot d}\right)}\\
\mathbf{if}\;d \leq -8.5 \cdot 10^{+82}:\\
\;\;\;\;w0\\
\mathbf{elif}\;d \leq -8 \cdot 10^{-127}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;d \leq 3.3 \cdot 10^{-161}:\\
\;\;\;\;w0\\
\mathbf{elif}\;d \leq 10^{+82}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\end{array}
\]
| Alternative 6 |
|---|
| Accuracy | 83.9% |
|---|
| Cost | 8264 |
|---|
\[\begin{array}{l}
\mathbf{if}\;\frac{h}{\ell} \leq -\infty:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot \left(h \cdot \left(M \cdot D\right)\right)}\\
\mathbf{elif}\;\frac{h}{\ell} \leq -5 \cdot 10^{-258}:\\
\;\;\;\;w0 \cdot \sqrt{1 - D \cdot \left(\frac{h}{\ell} \cdot \frac{M}{\frac{d}{\frac{M}{d} \cdot \left(D \cdot 0.25\right)}}\right)}\\
\mathbf{else}:\\
\;\;\;\;w0\\
\end{array}
\]
| Alternative 7 |
|---|
| Accuracy | 79.2% |
|---|
| Cost | 8140 |
|---|
\[\begin{array}{l}
t_0 := w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\mathbf{if}\;D \leq -4 \cdot 10^{-188}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;D \leq 1.65 \cdot 10^{-43}:\\
\;\;\;\;w0\\
\mathbf{elif}\;D \leq 4.5 \cdot 10^{+63}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{\ell} \cdot \left(\left(\frac{M}{d} \cdot \frac{D \cdot -0.25}{d}\right) \cdot \left(D \cdot h\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
| Alternative 8 |
|---|
| Accuracy | 79.4% |
|---|
| Cost | 8140 |
|---|
\[\begin{array}{l}
t_0 := h \cdot \left(M \cdot D\right)\\
t_1 := \left(d \cdot -4\right) \cdot \frac{d}{D}\\
\mathbf{if}\;D \leq -2 \cdot 10^{-25}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M}{\frac{\frac{\ell}{h}}{-D}} \cdot \frac{M}{t_1}}\\
\mathbf{elif}\;D \leq 10^{-244}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{\frac{t_1 \cdot \frac{\ell}{M \cdot D}}{h}}}\\
\mathbf{elif}\;D \leq 2 \cdot 10^{+73}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{d \cdot \left(\frac{d \cdot -4}{D} \cdot \frac{\ell}{t_0}\right)}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot t_0}\\
\end{array}
\]
| Alternative 9 |
|---|
| Accuracy | 79.7% |
|---|
| Cost | 8140 |
|---|
\[\begin{array}{l}
t_0 := h \cdot \left(M \cdot D\right)\\
\mathbf{if}\;D \leq -1 \cdot 10^{-43}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M \cdot \frac{D \cdot \frac{M}{d}}{d \cdot -4}}{\frac{\ell}{D \cdot h}}}\\
\mathbf{elif}\;D \leq 10^{-244}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{\frac{\left(\left(d \cdot -4\right) \cdot \frac{d}{D}\right) \cdot \frac{\ell}{M \cdot D}}{h}}}\\
\mathbf{elif}\;D \leq 5 \cdot 10^{+74}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{d \cdot \left(\frac{d \cdot -4}{D} \cdot \frac{\ell}{t_0}\right)}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot t_0}\\
\end{array}
\]
| Alternative 10 |
|---|
| Accuracy | 81.9% |
|---|
| Cost | 8008 |
|---|
\[\begin{array}{l}
t_0 := h \cdot \left(M \cdot D\right)\\
\mathbf{if}\;d \leq -1.4 \cdot 10^{-113}:\\
\;\;\;\;w0 \cdot \sqrt{1 - \frac{M \cdot D}{\ell \cdot \left(d \cdot \left(d \cdot 4\right)\right)} \cdot t_0}\\
\mathbf{elif}\;d \leq 1.5 \cdot 10^{+34}:\\
\;\;\;\;w0 \cdot \sqrt{1 + \frac{M}{d \cdot \left(\frac{d \cdot -4}{D} \cdot \frac{\ell}{t_0}\right)}}\\
\mathbf{else}:\\
\;\;\;\;w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\end{array}
\]
| Alternative 11 |
|---|
| Accuracy | 80.8% |
|---|
| Cost | 7876 |
|---|
\[\begin{array}{l}
\mathbf{if}\;M \leq -2.35 \cdot 10^{-97}:\\
\;\;\;\;w0 \cdot \sqrt{1 + M \cdot \frac{\frac{D}{-4} \cdot \frac{M}{\frac{d}{h}}}{\frac{d}{\frac{D}{\ell}}}}\\
\mathbf{else}:\\
\;\;\;\;w0\\
\end{array}
\]
| Alternative 12 |
|---|
| Accuracy | 78.9% |
|---|
| Cost | 64 |
|---|
\[w0
\]