\[\left(\left(1 \leq x \land x \leq 1000\right) \land \left(1 \leq y \land y \leq 1000\right)\right) \land \left(1 \leq z \land z \leq 1000\right)\]
\[ \begin{array}{c}[x, y, z] = \mathsf{sort}([x, y, z])\\ \end{array} \]
\[\sqrt{\left({x}^{2} + {y}^{2}\right) + {z}^{2}}
\]
↓
\[\mathsf{hypot}\left(\mathsf{hypot}\left(x, y\right), z\right)
\]
(FPCore (x y z)
:precision binary64
(sqrt (+ (+ (pow x 2.0) (pow y 2.0)) (pow z 2.0))))
↓
(FPCore (x y z) :precision binary64 (hypot (hypot x y) z))
double code(double x, double y, double z) {
return sqrt(((pow(x, 2.0) + pow(y, 2.0)) + pow(z, 2.0)));
}
↓
double code(double x, double y, double z) {
return hypot(hypot(x, y), z);
}
public static double code(double x, double y, double z) {
return Math.sqrt(((Math.pow(x, 2.0) + Math.pow(y, 2.0)) + Math.pow(z, 2.0)));
}
↓
public static double code(double x, double y, double z) {
return Math.hypot(Math.hypot(x, y), z);
}
def code(x, y, z):
return math.sqrt(((math.pow(x, 2.0) + math.pow(y, 2.0)) + math.pow(z, 2.0)))
↓
def code(x, y, z):
return math.hypot(math.hypot(x, y), z)
function code(x, y, z)
return sqrt(Float64(Float64((x ^ 2.0) + (y ^ 2.0)) + (z ^ 2.0)))
end
↓
function code(x, y, z)
return hypot(hypot(x, y), z)
end
function tmp = code(x, y, z)
tmp = sqrt((((x ^ 2.0) + (y ^ 2.0)) + (z ^ 2.0)));
end
↓
function tmp = code(x, y, z)
tmp = hypot(hypot(x, y), z);
end
code[x_, y_, z_] := N[Sqrt[N[(N[(N[Power[x, 2.0], $MachinePrecision] + N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision] + N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
↓
code[x_, y_, z_] := N[Sqrt[N[Sqrt[x ^ 2 + y ^ 2], $MachinePrecision] ^ 2 + z ^ 2], $MachinePrecision]
\sqrt{\left({x}^{2} + {y}^{2}\right) + {z}^{2}}
↓
\mathsf{hypot}\left(\mathsf{hypot}\left(x, y\right), z\right)