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.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
