Contents Previous Next Subchapters

Base Two Exponentiation Function
Syntax x = pow2(e)
x = pow2(fe)
See Also log2 , ^ , exp

Computes the element-by-element base-two exponentiation of e where e is a real, double-precision or complex matrix.

One Argument
If f is not present, x satisfied the equation
     x = 2

Two Arguments
If f is present, x satisfied the equation
     x = Re[f] * 2 
where Re[f] is the real part of f and int(e) is the integer part of e. If both arguments are real, x is real, otherwise x is double-precision.

If you enter
     pow2( [1., 2.], [0., 1.] )
O-Matrix will reply
     [ 1 , 4 ]