Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

realpow (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the basic class.

Syntax

c = realpow(a, b)

Description

Raises input elements to powers that you specify. realpow is equivalent to power for positive real numbers but 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.
b Specifies the powers to which you want to raise the elements in a. b is a scalar, vector, or matrix.

Outputs

Name Description
c Returns the values of a^b. c is a 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.

Examples

A = [1:1:5]
B = A
C = realpow(A, B)

Related Topics

log
log2
log10
power
reallog
realsqrt


Resources


 

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