36 lines
524 B
Markdown
36 lines
524 B
Markdown
# 数学
|
|
|
|
Float 数学函数,角度单位为弧度。
|
|
|
|
## math.sqrt
|
|
|
|
计算平方根;负数产生 NaN。
|
|
|
|
## math.sin
|
|
|
|
计算以弧度表示的正弦值。
|
|
|
|
## math.cos
|
|
|
|
计算以弧度表示的余弦值。
|
|
|
|
## math.log
|
|
|
|
计算自然对数,遵循 Float 的非有限值规则。
|
|
|
|
## math.pow
|
|
|
|
计算 value 的 exponent 次幂,遵循 Float 规则。
|
|
|
|
## math.isNan
|
|
|
|
判断 Float 是否为 NaN。
|
|
|
|
## math.isFinite
|
|
|
|
判断 Float 是否为有限值。
|
|
|
|
## math.isInfinite
|
|
|
|
判断 Float 是否为正无穷或负无穷。
|