exp2
Syntax
exp2(X)
Arguments
X is a scalar/pair/vector/matrix.
Details
Return 2 raised to the power of X. The data type of the result is always DOUBLE.
Examples
$ exp2(3);
8
$ exp2(2 4 NULL 6);
[4,16,,64]
$ exp2(1..4$2:2);
#0 |
#1 |
---|---|
2 |
8 |
4 |
16 |