资源加载中... loading...

talib.ATAN

talib.ATAN()函数用于计算Vector Trigonometric ATan (反正切函数)

talib.ATAN()函数的返回值为:一维数组。 array

talib.ATAN(inReal)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组、数值数组

function main() {
    var data = [-3.14/2, 0, 3.14/2]
    var ret = talib.ATAN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-3.14/2, 0, 3.14/2]
    ret = talib.ATAN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-3.14/2, 0, 3.14/2};
    auto ret = talib.ATAN(data);
    Log(ret);
}

ATAN()函数在talib库文档中的描述为:ATAN(Records[Close]) = Array(outReal)

talib.ASIN talib.CEIL