Computes powers of 2. |
||
Syntax |
X = Pow2(Y) X = Pow2(F, E) |
|
Arguments |
Name |
Description |
Y |
A real or complex value, vector or matrix. |
|
F |
The mantissa. A real value, vector or matrix. |
|
E |
The exponent. An integer value, vector or matrix with the same dimensions as F. |
|
Outputs |
Name |
Description |
Y |
The result of either 2^Y or F*2^E. |
|
Example 1 |
Compute 2^3. |
|
Syntax |
||
Y = Pow2(3) |
||
Results |
||
Y = 8 |
||
Example 2 |
Compute 3*2^4. |
|
Syntax |
||
Y = Pow2(3, 4)all |
||
Results |
||
Y = 48 |
||
See Also: |