HyperMath

Pow2

Pow2

Previous topic Next topic No expanding text in this topic  

Pow2

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

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:

Log2