Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.EXP
Calculates the exponential (e to the power of x) of each element (Vector Arithmetic Exp).
talib.EXP(inReal)Examples
Compute the exponential (e to the power of x) of a few numbers.
javascript
function main() {
var data = [0, 1, 2]
var ret = talib.EXP(data)
// Output: about [1, 2.7183, 7.3891]
Log(ret)
}
python
import talib
import numpy as np
def main():
data = [0, 1.0, 2.0]
ret = talib.EXP(np.array(data))
# Output: about [1, 2.7183, 7.3891]
Log(ret)Returns
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: EXP(Records[Close]) = Array(outReal).