Download Help (Windows Only) |
Owning Class: basic
Requires: MathScript RT Module
c = powerofreal(a, b)
Legacy Name: realpow
Raises input elements to powers that you specify. powerofreal is equivalent to power except that powerofreal generates an error if the result is complex.
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. |
Name | Description |
---|---|
c | Returns the values of a^b. c is a scalar, vector, or matrix of the same size as a or b. |
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 |
A = [1:1:5]
B = A
C = powerofreal(A, B)