exp2

Syntax

exp2(X)

Details

Return 2 raised to the power of X.

Parameters

X is a scalar/pair/vector/matrix.

Returns

DOUBLE type with the same data form as X.

Examples

exp2(3);
// output: 8

exp2(2 4 NULL 6);
// output: [4,16,,64]

exp2(1..4$2:2);
#0 #1
2 8
4 16