exp
Syntax
exp(X)
Details
Apply the exponential function to all elements of X.
Note:
- Similar to the functions of
numpy.expandscipy.stats.exp, DolphinDB'sexpworks in the same way, with the difference being that it only accepts a single parameter, X, and does not support parameters like out and where found innumpy.exp. - DolphinDB
exphas the same core functionality as TA-LibEXP. The difference is that DolphinDBexpsupports scalar, vector, matrix, and table inputs, whereas TA-LibEXPonly accepts one-dimensional array (NumPy array) inputs. If the input data is the same, both return identical results.
Parameters
X is a scalar/pair/vector/matrix/table.
Returns
DOUBLE type with the same data form as X.
Examples
exp(1 2 3);
// output: [2.718282,7.389056,20.085537]
log(exp(1));
// output: 1
