# PowerApps 中的 Acos、Acot、Asin、Atan、Atan2、Cos、Cot、Degrees、Pi、Radians、Sin 和 Tan 函数Acos, Acot, Asin, Atan, Atan2, Cos, Cot, Degrees, Pi, Radians, Sin, and Tan functions in PowerApps

## 说明Description

### 主要函数Primary functions

Cos 函数返回其参数的余弦值（用弧度表示的角度）。The Cos function returns the cosine of its argument, an angle specified in radians.

Cot 函数返回其参数的余切值（用弧度表示的角度）。The Cot function returns the cotangent of its argument, an angle specified in radians.

Sin 函数返回其参数的正弦值（用弧度表示的角度）。The Sin function returns the sine of its argument, an angle specified in radians.

Tan 函数返回其参数的正切值（用弧度表示的角度）。The Tan function returns the tangent of its argument, an angle specified in radians.

### 反三角函数Inverse functions

Acos 函数返回其参数的反余弦值。The Acos function returns the arccosine, or inverse cosine, of its argument. 反余弦值是以余弦值作为参数的角度。The arccosine is the angle whose cosine is the argument. 返回的角度以弧度表示，范围在 0（零）至 π 之间。The returned angle is given in radians in the range 0 (zero) to π.

Acot 函数返回其参数的反余切主值。The Acot function returns the principal value of the arccotangent, or inverse cotangent, of its argument. 返回的角度以弧度表示，范围在 0（零）至 π 之间。The returned angle is given in radians in the range 0 (zero) to π.

Asin 函数返回其参数的反正弦值。The Asin function returns the arcsine, or inverse sine, of its argument. 反正弦值是以正弦值作为参数的角度。The arcsine is the angle whose sine is the argument. 返回的角度以弧度表示，范围在 -π/2 至 π/2 之间。The returned angle is given in radians in the range -π/2 to π/2.

Atan 函数返回其参数的反正切值。The Atan function returns the arctangent, or inverse tangent, of its argument. 反正切值是以正切值作为参数的角度。The arctangent is the angle whose tangent is the argument. 返回的角度以弧度表示，范围在 -π/2 至 π/2 之间。The returned angle is given in radians in the range -π/2 to π/2.

Atan2 函数返回以指定 xy 坐标作为参数的反正切值。The Atan2 function returns the arctangent, or inverse tangent, of the specified x and y coordinates as arguments. 这个反正切值是指从 x 轴到包含原点 (0, 0) 和坐标为 (x, y) 的点的直线的角度。The arctangent is the angle from the x-axis to a line that contains the origin (0, 0) and a point with coordinates (x, y). 角度以弧度表示，范围在 -π 和 π 之间，不包括 -π。The angle is given in radians between -π and π, excluding -π. 结果为正表示从 x 轴开始的逆时针角度；结果为负表示顺时针角度。A positive result represents a counterclockwise angle from the x-axis; a negative result represents a clockwise angle. Atan2( ab ) 等于 Atan( b/a )，不过 Atan2 函数的 a 可以等于 0（零）。Atan2( ab ) equals Atan( b/a ), except that a can equal 0 (zero) with the Atan2 function.

### Helper 函数Helper functions

Degrees 函数可将弧度转换为角度。The Degrees function converts radians to degrees. 弧度 π 等于 180 度。π radians equals 180 degrees.

Pi 函数返回超越数 π，前几位是 3.141592...The Pi function returns the transcendental number π, which begins 3.141592...

## 语法Syntax

### 主要函数Primary Functions

Cos( SingleColumnTable )Cos( SingleColumnTable )
Cot( SingleColumnTable )Cot( SingleColumnTable )
Sin( SingleColumnTable )Sin( SingleColumnTable )
Tan( SingleColumnTable )Tan( SingleColumnTable )

• SingleColumnTable - 必需。SingleColumnTable - Required. 要计算的角度的单列表。A single-column table of angles to operate on.

### 反三角函数Inverse Functions

Acos( Number )Acos( Number )
Acot( Number )Acot( Number )
Asin( Number )Asin( Number )
Atan( Number )Atan( Number )

• Number - 必需。Number - Required. 要计算的数字。Number to operate on.

Acos( SingleColumnTable )Acos( SingleColumnTable )
Acot( SingleColumnTable )Acot( SingleColumnTable )
Asin( SingleColumnTable )Asin( SingleColumnTable )
Atan( SingleColumnTable )Atan( SingleColumnTable )

• SingleColumnTable - 必需。SingleColumnTable - Required. 要计算的单列表数字。A single-column table of numbers to operate on.

Atan2( X, Y )Atan2( X, Y )

• X - 必需。X - Required. X - 轴坐标。X-axis coordinate.
• Y - 必需。Y - Required. Y - 轴坐标。Y-axis coordinate.

### Helper 函数Helper Functions

Pi()Pi()

• Degrees - 必需。Degrees - Required. 以度数表示，要转换为弧度的角度。Angle in degrees to convert to radians.

## 示例Examples

### 单个数字Single number

Cos( 1.047197 )Cos( 1.047197 ) 返回 1.047197 弧度或 60 度的余弦值。Returns the cosine of 1.047197 radians or 60 degrees. 0.50.5
Cot( Pi()/4 )Cot( Pi()/4 ) 返回 0.785398... 弧度或 45 度的余切值。Returns the cotangent of 0.785398... radians or 45 degrees. 11
Sin( Pi()/2 )Sin( Pi()/2 ) 返回 1.570796... 弧度或 90 度的正弦值。Returns the sine of 1.570796... radians or 90 degrees. 11
Tan( Radians(60) )Tan( Radians(60) ) 返回 1.047197... 弧度或 60 度的正切值。Returns the tangent of 1.047197... radians or 60 degrees. 1.732050...1.732050...
Acos( 0.5 )Acos( 0.5 ) 返回 0.5 的反余弦值（以弧度表示）。Returns the arccosine of 0.5, in radians. 1.047197...1.047197...
Acot( 1 )Acot( 1 ) 返回 1 的反余切值（以弧度表示）。Returns the arccotangent of 1, in radians. 0.785398...0.785398...
Asin( 1 )Asin( 1 ) 返回 1 的反正弦值（以弧度表示）Returns the arcsine of 1, in radians. 1.570796...1.570796...
Atan( 1.732050 )Atan( 1.732050 ) 返回 1.732050 的反正切值（以弧度表示）。Returns the arctangent of 1.732050, in radians. 1.047197...1.047197...
Atan2( 5, 3 )Atan2( 5, 3 ) 返回从 x 轴到包含原点 (0,0) 和坐标 (5,3) 的直线的角度（约为 31 度）的反正切值。Returns the arctangent of the angle from the x-axis of the line that contains the origin (0,0) and the coordinate (5,3), which is approximately 31 degrees. 0.540419...0.540419...
Atan2( 4, 4 )Atan2( 4, 4 ) 返回从 x 轴到包含原点 (0,0) 和坐标 (4,4) 的直线的角度（刚好为 π/4 弧度或 45 度）的反正切值。Returns the arctangent of the angle from the x-axis of the line that contains the origin (0,0) and the coordinate (4,4), which is exactly π/4 radians or 45 degrees. 0.785398...0.785398...
Degrees( 1.047197 )Degrees( 1.047197 ) 返回 1.047197 弧度的相等度数。Returns the equivalent number of degrees for 1.047197 radians. 6060
Pi()Pi() 返回超越数 π。Returns the transcendental number π. 3.141592...3.141592...
Radians( 15 )Radians( 15 ) 返回 15 度的相等弧度。Returns the equivalent number of radians for 15 degrees. 0.261799...0.261799...

### 单列表Single-column table

Cos( ValueTable )Cos( ValueTable ) 返回表中每个数字的余弦值。Returns the cosine of each number in the table.
Cot( ValueTable )Cot( ValueTable ) 返回表中每个数字的余切值。Returns the cotangent of each number in the table.
Sin( ValueTable )Sin( ValueTable ) 返回表中每个数字的正弦值。Returns the sine of each number in the table.
Tan( ValueTable )Tan( ValueTable ) 返回表中每个数字的正切值。Returns the tangent of each number in the table.
Acos( ValueTable )Acos( ValueTable ) 返回表中每个数字的反余弦值。Returns the arccosine of each number in the table.
Acot( ValueTable )Acot( ValueTable ) 返回表中每个数字的反余切值。Returns the arccotangent of each number in the table.
Asin( ValueTable )Asin( ValueTable ) 返回表中每个数字的反正弦值。Returns the arcsine of each number in the table.
Atan( ValueTable )Atan( ValueTable ) 返回表中每个数字的反正切值。Returns the arctangent of each number in the table.
Degrees( ValueTable )Degrees( ValueTable ) 返回表中每个数字的相等度数，假设以弧度表示角度。Returns the equivalent number of degrees for each number in the table, assumed to be angles in radians.
Radians( ValueTable )Radians( ValueTable ) 返回表中每个数字的相等弧度数，假设以度表示角度。Returns the equivalent number of radians for each number in the table, assumed to be angles in degrees.