exp

Syntax

exp(X)

Details

Apply the exponential function to all elements of X.

Note:
  • Similar to the functions of numpy.exp and scipy.stats.exp, DolphinDB's exp works 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 in numpy.exp.
  • DolphinDB exp has the same core functionality as TA-Lib EXP. The difference is that DolphinDB exp supports scalar, vector, matrix, and table inputs, whereas TA-Lib EXP only 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