Exponential (Base 2)

Navigation:  Language Reference > Functions > Arithmetic >

Exponential (Base 2)

Previous pageReturn to chapter overviewNext page

Syntax

Y = exp2(X);

Description

Returns the exponential function (base 2) of X or the elements of X.

 

y = 2x;

 

Examples

X

exp2(x)

1

2 (= 21)

2.1

4.8709 (= 22.1)

-2.6

0.16494 (= 2-2.6)

[1,2.1;-2.6,1]

[2,4.8709;0.16494,2]

( = [21,22.1;2-2.6,21] )

Limitations

X and Y must have the same size.