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

powerofreal (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 = powerofreal(a, b)

Legacy Name: realpow

Description

Raises input elements to powers that you specify. powerofreal is equivalent to power except that powerofreal generates an error if the result is complex.

Details

Examples

Inputs

Name Description
a Specifies the elements you want to raise to a power. a is a scalar, vector, or matrix of double-precision, floating-point or complex double-precision, floating-point numbers.
b Specifies the powers to which you want to raise the elements in a. b is a scalar, vector, or matrix of double-precision, floating-point or complex double-precision, floating-point numbers.

Outputs

Name Description
c Returns the values of a^b. c is a scalar, vector, or matrix of the same size as a or b.

Details

If a is a scalar, LabVIEW sets a to a matrix of the same size as b whose elements all equal the value you specified for a. If b is a scalar, LabVIEW sets b to a matrix of the same size as a whose elements all equal the value you specified for b.

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:1:5]
B = A
C = powerofreal(A, B)

Related Topics

log
log10
log2
power
reallog
sqrtofreal


 

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