Contents Previous Next Subchapters Current Chapters-> acos asin atan cos cosh exp log log10 sin sinh tan tanh log2 pow2 atan2 angle asinh acosh acoth coth atanh hypot Parent Chapters-> Omatrix6 elementary transcendental pow2 Search Tools-> contents reference index search

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

Description
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 ```           e      x = 2 ```
Two Arguments
If f is present, x satisfied the equation ```                   int(e)      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.

Example ```      pow2(2.) ``` returns ```      4 ``` If you enter ```      pow2( [1., 2.], [0., 1.] ) ``` O-Matrix will reply ```      {      [ 1 , 4 ]       } ```