跳转至

Arctan

Supported in: Batch, Faster, Streaming

Inverse tangent function.

Expression categories: Numeric

Declared arguments

  • Angle unit: Output angle unit which is either degrees or radians.
    Enum\
  • Value: The value to compute arctan on.
    Expression\

Output type: Double

Examples

Example 1: Base case

Argument values:

  • Angle unit: degrees
  • Value: angle
angle Output
-1.0 -45.0
0.0 0.0
1.0 45.0

Example 2: Null case

Argument values:

  • Angle unit: radians
  • Value: null

Output: null



中文翻译

Arctan

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

反正切函数。

表达式类别: 数值(Numeric)

声明的参数

  • 角度单位(Angle unit): 输出角度单位,可以是度(degrees)或弧度(radians)。
    枚举\
  • 值(Value): 需要计算反正切的值。
    表达式\

输出类型: Double

示例

示例 1:基本情况

参数值:

  • 角度单位: degrees
  • 值: angle
angle 输出
-1.0 -45.0
0.0 0.0
1.0 45.0

示例 2:空值情况

参数值:

  • 角度单位: radians
  • 值: null

输出: null