Math FPCore C Java Python Julia MATLAB Wolfram TeX \[\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}
\]
↓
\[\mathsf{hypot}\left(\mathsf{hypot}\left(x, y\right), z\right)
\]
(FPCore (x y z) :precision binary64 (sqrt (+ (+ (* x x) (* y y)) (* z z)))) ↓
(FPCore (x y z) :precision binary64 (hypot (hypot x y) z)) double code(double x, double y, double z) {
return sqrt((((x * x) + (y * y)) + (z * z)));
}
↓
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((((x * x) + (y * y)) + (z * z)));
}
↓
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((((x * x) + (y * y)) + (z * z)))
↓
def code(x, y, z):
return math.hypot(math.hypot(x, y), z)
function code(x, y, z)
return sqrt(Float64(Float64(Float64(x * x) + Float64(y * y)) + Float64(z * z)))
end
↓
function code(x, y, z)
return hypot(hypot(x, y), z)
end
function tmp = code(x, y, z)
tmp = sqrt((((x * x) + (y * y)) + (z * z)));
end
↓
function tmp = code(x, y, z)
tmp = hypot(hypot(x, y), z);
end
code[x_, y_, z_] := N[Sqrt[N[(N[(N[(x * x), $MachinePrecision] + N[(y * y), $MachinePrecision]), $MachinePrecision] + N[(z * z), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
↓
code[x_, y_, z_] := N[Sqrt[N[Sqrt[x ^ 2 + y ^ 2], $MachinePrecision] ^ 2 + z ^ 2], $MachinePrecision]
\sqrt{\left(x \cdot x + y \cdot y\right) + z \cdot z}
↓
\mathsf{hypot}\left(\mathsf{hypot}\left(x, y\right), z\right)