这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
zh:reference:language:hypot [2015/10/10 02:33] – nzhu | reference:language:hypot [2023/06/07 04:23] (当前版本) – 外部编辑 127.0.0.1 | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== hypot() ====== | ||
+ | ===== 描述 ===== | ||
+ | hypot函数对于给定的直角三角形的两个直角边,求其斜边的长度。 | ||
+ | ==== 语法 ==== | ||
+ | |||
+ | hypot(x, y); | ||
+ | === 参数 === | ||
+ | |||
+ | x int or float: x-coordinate of the point | ||
+ | |||
+ | y int or float: y-coordinate of the point | ||
+ | |||
+ | 返回 |