The resource loading... loading...

talib.EXP

The talib.EXP() function is used to calculate the Vector Arithmetic Exp (exponential function).

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

talib.EXP(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 = [0, 1, 2]
    var ret = talib.EXP(data)    // e^0, e^1, e^2
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [0, 1.0, 2.0]
    ret = talib.EXP(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {0, 1.0, 2.0};
    auto ret = talib.EXP(data);
    Log(ret);
}

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

talib.COSH talib.FLOOR