Scale By Power Of Two

Description

Multiplies x by 2 raised to the power of n.

 

Documentation illustration (illustration unavailable in the archive).

Input parameters

 

n : integer, scalar number. This function rounds n before it scales x (0.5 rounds to 0; 0.51 rounds to 1).
Documentation illustration (illustration unavailable in the archive). x : class, n-dimensional tensor.

Output parameters

 

Documentation illustration (illustration unavailable in the archive). x*2^n : class, the result of multiplying x by 2, raised to the power of n.

Examples

All these examples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Accelerator library to run it).

Documentation illustration (illustration unavailable in the archive).