math.jn() 函数
math.jn() 返回阶数为 n 的第一类贝塞尔函数。
函数类型签名
(n: int, x: float) => float
有关更多信息,请参见 Function type signatures。
参数
n
(必填) 订单号。
x
(必填) 要操作的值。
示例
返回一个值的n阶贝塞尔函数
import "math"
math.jn(n: 2, x: 1.23)// 0.16636938378681407
在地图中使用 math.jn
import "sampledata"
import "math"
sampledata.float()
|> map(fn: (r) => ({r with _value: math.jn(n: 4, x: r._value)}))