Description
Computes X raised to the Y power for scalar or array X and Y.
-
Return Type
-
A McObject object.
A McObject instance holding varXValues raised to the varYValues power(s). The returned result will be of Double type. It will be the same shape as varXValue, except that it will always be an array, even if the varXValue is a scalar (generally there is no reason to use these vector operators unless you are dealing with arrays).
-
Syntax
-
object.McPow (varXValues, varYValues)
The McPow Method syntax has these parts: |
| object | An expression evaluating to an object of type McOMGlobal. | | varXValues | Required. A Variant value. May be a scalar or array of any numeric type. It may also be a McObject instance of a numeric type.
| | varYValues | Required. A Variant value. May be a scalar or array of any numeric type. It may also be a McObject instance of a numeric type.
| Remarks
The elements of the VARIANT varXValues is raised to the the VARIANT varYValues power and the result is returned as a Double array.
If the shape of varYValues differs from varXValues, then elements from the varYValues are associated with elements from from varXValues in order, irrespective of number of dimensions or sizes of dimensions. If the vector length of varYValues is less than that of varXValues, then elements from varYValues are re-used as often as necessary. Note however, that usually varYValues will have only a single value (that is all elements of an array of varXValues is raised to a the same scalar varYValues power).
Exceptions
Operands must scalars or arrays of some numeric type. Operands may be arrays of VARIANT, but if they are, all elements must be of the same arithmetic type. E.g., Array( 1, 2) is OK, but Array( 1.5, 2) is not legal.
|