From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../web/javascript/reference/global_objects/math/hypot/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/hypot') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html index dc368fddb6..844e2b0895 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/hypot/index.html @@ -17,11 +17,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot -

语法

+

语法

Math.hypot([value1[,value2, ...]]) 
-

参数

+

参数

value1, value2, ...
@@ -32,7 +32,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot

将所提供的参数求平方和后开平方根。如果有参数不能转换为数字,则返回 {{jsxref("NaN")}}。

-

描述

+

描述

计算直角三角形的斜边,或复数的幅值时可以使用函数 Math.sqrt(v1*v1 + v2*v2) ,其中 v1 和 v2 是三角形的两个直角边或复数的实部和虚部。如果想计算更多维度,那么只需要在后面添加更多的数的平方就可以了,比如 Math.sqrt(v1*v1 + v2*v2 + v3*v3 + v4*v4)

@@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/hypot

如果只传入一个参数,  Math.hypot(x) 等同于 Math.abs(x).

-

示例

+

示例

Using Math.hypot()

-- cgit v1.2.3-54-g00ecf