hive函数 -- acos

反余弦函数

acos(x) - returns the arc cosine of x if -1<=x<=1 or NULL otherwise

acos(x)

定义域 [-1,1]  x在其它区间的话 得到的值是null

值域  [0,pi]

实例:

acos(-1) = 3.141592653589793

acos(1)=0.0

你可能感兴趣的:(hive函数 -- acos)