\[\left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\left(\left(w \cdot w\right) \cdot r\right) \cdot r\right)}{1 - v}\right) - 4.5
\]
↓
\[\begin{array}{l}
t_0 := 3 + \frac{2}{r \cdot r}\\
t_1 := \left(t_0 - {\left(w \cdot r\right)}^{2} \cdot 0.25\right) - 4.5\\
\mathbf{if}\;v \leq -4 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;v \leq 0.00165:\\
\;\;\;\;t_0 - \left(\frac{r \cdot \left(\left(w \cdot \left(w \cdot r\right)\right) \cdot \left(0.125 \cdot \left(3 - 2 \cdot v\right)\right)\right)}{1 - v} + 4.5\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (v w r)
:precision binary64
(-
(-
(+ 3.0 (/ 2.0 (* r r)))
(/ (* (* 0.125 (- 3.0 (* 2.0 v))) (* (* (* w w) r) r)) (- 1.0 v)))
4.5))
↓
(FPCore (v w r)
:precision binary64
(let* ((t_0 (+ 3.0 (/ 2.0 (* r r))))
(t_1 (- (- t_0 (* (pow (* w r) 2.0) 0.25)) 4.5)))
(if (<= v -4e+39)
t_1
(if (<= v 0.00165)
(-
t_0
(+
(/ (* r (* (* w (* w r)) (* 0.125 (- 3.0 (* 2.0 v))))) (- 1.0 v))
4.5))
t_1))))double code(double v, double w, double r) {
return ((3.0 + (2.0 / (r * r))) - (((0.125 * (3.0 - (2.0 * v))) * (((w * w) * r) * r)) / (1.0 - v))) - 4.5;
}
↓
double code(double v, double w, double r) {
double t_0 = 3.0 + (2.0 / (r * r));
double t_1 = (t_0 - (pow((w * r), 2.0) * 0.25)) - 4.5;
double tmp;
if (v <= -4e+39) {
tmp = t_1;
} else if (v <= 0.00165) {
tmp = t_0 - (((r * ((w * (w * r)) * (0.125 * (3.0 - (2.0 * v))))) / (1.0 - v)) + 4.5);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(v, w, r)
real(8), intent (in) :: v
real(8), intent (in) :: w
real(8), intent (in) :: r
code = ((3.0d0 + (2.0d0 / (r * r))) - (((0.125d0 * (3.0d0 - (2.0d0 * v))) * (((w * w) * r) * r)) / (1.0d0 - v))) - 4.5d0
end function
↓
real(8) function code(v, w, r)
real(8), intent (in) :: v
real(8), intent (in) :: w
real(8), intent (in) :: r
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 3.0d0 + (2.0d0 / (r * r))
t_1 = (t_0 - (((w * r) ** 2.0d0) * 0.25d0)) - 4.5d0
if (v <= (-4d+39)) then
tmp = t_1
else if (v <= 0.00165d0) then
tmp = t_0 - (((r * ((w * (w * r)) * (0.125d0 * (3.0d0 - (2.0d0 * v))))) / (1.0d0 - v)) + 4.5d0)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double v, double w, double r) {
return ((3.0 + (2.0 / (r * r))) - (((0.125 * (3.0 - (2.0 * v))) * (((w * w) * r) * r)) / (1.0 - v))) - 4.5;
}
↓
public static double code(double v, double w, double r) {
double t_0 = 3.0 + (2.0 / (r * r));
double t_1 = (t_0 - (Math.pow((w * r), 2.0) * 0.25)) - 4.5;
double tmp;
if (v <= -4e+39) {
tmp = t_1;
} else if (v <= 0.00165) {
tmp = t_0 - (((r * ((w * (w * r)) * (0.125 * (3.0 - (2.0 * v))))) / (1.0 - v)) + 4.5);
} else {
tmp = t_1;
}
return tmp;
}
def code(v, w, r):
return ((3.0 + (2.0 / (r * r))) - (((0.125 * (3.0 - (2.0 * v))) * (((w * w) * r) * r)) / (1.0 - v))) - 4.5
↓
def code(v, w, r):
t_0 = 3.0 + (2.0 / (r * r))
t_1 = (t_0 - (math.pow((w * r), 2.0) * 0.25)) - 4.5
tmp = 0
if v <= -4e+39:
tmp = t_1
elif v <= 0.00165:
tmp = t_0 - (((r * ((w * (w * r)) * (0.125 * (3.0 - (2.0 * v))))) / (1.0 - v)) + 4.5)
else:
tmp = t_1
return tmp
function code(v, w, r)
return Float64(Float64(Float64(3.0 + Float64(2.0 / Float64(r * r))) - Float64(Float64(Float64(0.125 * Float64(3.0 - Float64(2.0 * v))) * Float64(Float64(Float64(w * w) * r) * r)) / Float64(1.0 - v))) - 4.5)
end
↓
function code(v, w, r)
t_0 = Float64(3.0 + Float64(2.0 / Float64(r * r)))
t_1 = Float64(Float64(t_0 - Float64((Float64(w * r) ^ 2.0) * 0.25)) - 4.5)
tmp = 0.0
if (v <= -4e+39)
tmp = t_1;
elseif (v <= 0.00165)
tmp = Float64(t_0 - Float64(Float64(Float64(r * Float64(Float64(w * Float64(w * r)) * Float64(0.125 * Float64(3.0 - Float64(2.0 * v))))) / Float64(1.0 - v)) + 4.5));
else
tmp = t_1;
end
return tmp
end
function tmp = code(v, w, r)
tmp = ((3.0 + (2.0 / (r * r))) - (((0.125 * (3.0 - (2.0 * v))) * (((w * w) * r) * r)) / (1.0 - v))) - 4.5;
end
↓
function tmp_2 = code(v, w, r)
t_0 = 3.0 + (2.0 / (r * r));
t_1 = (t_0 - (((w * r) ^ 2.0) * 0.25)) - 4.5;
tmp = 0.0;
if (v <= -4e+39)
tmp = t_1;
elseif (v <= 0.00165)
tmp = t_0 - (((r * ((w * (w * r)) * (0.125 * (3.0 - (2.0 * v))))) / (1.0 - v)) + 4.5);
else
tmp = t_1;
end
tmp_2 = tmp;
end
code[v_, w_, r_] := N[(N[(N[(3.0 + N[(2.0 / N[(r * r), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(0.125 * N[(3.0 - N[(2.0 * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(N[(N[(w * w), $MachinePrecision] * r), $MachinePrecision] * r), $MachinePrecision]), $MachinePrecision] / N[(1.0 - v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 4.5), $MachinePrecision]
↓
code[v_, w_, r_] := Block[{t$95$0 = N[(3.0 + N[(2.0 / N[(r * r), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(t$95$0 - N[(N[Power[N[(w * r), $MachinePrecision], 2.0], $MachinePrecision] * 0.25), $MachinePrecision]), $MachinePrecision] - 4.5), $MachinePrecision]}, If[LessEqual[v, -4e+39], t$95$1, If[LessEqual[v, 0.00165], N[(t$95$0 - N[(N[(N[(r * N[(N[(w * N[(w * r), $MachinePrecision]), $MachinePrecision] * N[(0.125 * N[(3.0 - N[(2.0 * v), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(1.0 - v), $MachinePrecision]), $MachinePrecision] + 4.5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\left(\left(w \cdot w\right) \cdot r\right) \cdot r\right)}{1 - v}\right) - 4.5
↓
\begin{array}{l}
t_0 := 3 + \frac{2}{r \cdot r}\\
t_1 := \left(t_0 - {\left(w \cdot r\right)}^{2} \cdot 0.25\right) - 4.5\\
\mathbf{if}\;v \leq -4 \cdot 10^{+39}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;v \leq 0.00165:\\
\;\;\;\;t_0 - \left(\frac{r \cdot \left(\left(w \cdot \left(w \cdot r\right)\right) \cdot \left(0.125 \cdot \left(3 - 2 \cdot v\right)\right)\right)}{1 - v} + 4.5\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}