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 --- .../reference/global_objects/math/atan/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/math/atan') diff --git a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html index 460bd0de51..0bdf09d234 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/math/atan/index.html @@ -5,23 +5,23 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/atan ---
{{JSRef("Global_Objects", "Math")}}
-

概述

+

概述

Math.atan() 函数返回一个数值的反正切(以弧度为单位),即:

Math.atan(x)=arctan(x)= the unique y[-π2;π2]such thattan(y)=x\mathtt{\operatorname{Math.atan}(x)} = \arctan(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \tan(y) = x

-

语法

+

语法

Math.atan(x)
-

参数

+

参数

x
一个数值
-

描述

+

描述

atan 返回一个 -π2-\frac{\pi}{2} 到 π2\frac{\pi}{2} 弧度之间的数值。

由于 atanMath 的静态方法,所以应该像这样使用:Math.atan(),而不是作为你创建的 Math 实例的方法。

-

示例

-

例子:使用 Math.atan

+

示例

+

例子:使用 Math.atan

Math.atan(1);  // 0.7853981633974483
 Math.atan(0);  // 0
 
@@ -98,7 +98,7 @@ Math.atan(0); // 0 -

相关链接

+

相关链接