Math FPCore C Java Julia Wolfram TeX \[x \cdot \left(1 + y \cdot y\right)
\]
↓
\[\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+40}:\\
\;\;\;\;y \cdot \left(y \cdot x\right)\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+152}:\\
\;\;\;\;x \cdot \left(1 + y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(y \cdot x\right)}^{2}} \cdot \left(y \cdot \sqrt[3]{y \cdot x}\right)\\
\end{array}
\]
(FPCore (x y) :precision binary64 (* x (+ 1.0 (* y y)))) ↓
(FPCore (x y)
:precision binary64
(if (<= y -6.2e+40)
(* y (* y x))
(if (<= y 1.06e+152)
(* x (+ 1.0 (* y y)))
(* (cbrt (pow (* y x) 2.0)) (* y (cbrt (* y x))))))) double code(double x, double y) {
return x * (1.0 + (y * y));
}
↓
double code(double x, double y) {
double tmp;
if (y <= -6.2e+40) {
tmp = y * (y * x);
} else if (y <= 1.06e+152) {
tmp = x * (1.0 + (y * y));
} else {
tmp = cbrt(pow((y * x), 2.0)) * (y * cbrt((y * x)));
}
return tmp;
}
public static double code(double x, double y) {
return x * (1.0 + (y * y));
}
↓
public static double code(double x, double y) {
double tmp;
if (y <= -6.2e+40) {
tmp = y * (y * x);
} else if (y <= 1.06e+152) {
tmp = x * (1.0 + (y * y));
} else {
tmp = Math.cbrt(Math.pow((y * x), 2.0)) * (y * Math.cbrt((y * x)));
}
return tmp;
}
function code(x, y)
return Float64(x * Float64(1.0 + Float64(y * y)))
end
↓
function code(x, y)
tmp = 0.0
if (y <= -6.2e+40)
tmp = Float64(y * Float64(y * x));
elseif (y <= 1.06e+152)
tmp = Float64(x * Float64(1.0 + Float64(y * y)));
else
tmp = Float64(cbrt((Float64(y * x) ^ 2.0)) * Float64(y * cbrt(Float64(y * x))));
end
return tmp
end
code[x_, y_] := N[(x * N[(1.0 + N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
↓
code[x_, y_] := If[LessEqual[y, -6.2e+40], N[(y * N[(y * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.06e+152], N[(x * N[(1.0 + N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[Power[N[Power[N[(y * x), $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision] * N[(y * N[Power[N[(y * x), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
x \cdot \left(1 + y \cdot y\right)
↓
\begin{array}{l}
\mathbf{if}\;y \leq -6.2 \cdot 10^{+40}:\\
\;\;\;\;y \cdot \left(y \cdot x\right)\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+152}:\\
\;\;\;\;x \cdot \left(1 + y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(y \cdot x\right)}^{2}} \cdot \left(y \cdot \sqrt[3]{y \cdot x}\right)\\
\end{array}