Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

powerof2 (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: basic

Requires: MathScript RT Module

Syntax

c = powerof2(a)

c = powerof2(f, e)

Legacy Name: pow2

Description

c = powerof2(a) computes the powers of 2 of the input elements. c = powerof2(f, e) computes the multiplication of f and 2 to the power of e.

Details

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix.
f Specifies a real scalar, vector, or matrix.
e Specifies a real scalar, vector, or matrix.

Outputs

Name Description
c c is a scalar, vector, or matrix of the same size as a, or of the same size as f or e.

Details

For the following support characteristics table, only c = powerof2(a) is suitable for bounded execution times in Real-Time applications. c = powerof2(f, e) is not characterized.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Yes

Examples

A = [1+3i, 5.6; -2.3, 8-i]
C = powerof2(A)

Related Topics

log2
nextpowerof2


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit