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

talib.SIN

The talib.SIN() function is used to calculate Vector Trigonometric Sin (sine value).

The return value of the talib.SIN() function is a one-dimensional array. array

talib.SIN(inReal)

The inReal parameter is used to specify the K-line data. inReal true {@struct/Record Record} structure arrays, numeric arrays

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

The SIN() function is described in the talib library documentation as: SIN(Records[Close]) = Array(outReal)

talib.LOG10 talib.SINH