Description

Arithmetic unary operator to compute the square root of values.

Return Type

A McObject object.  

A McObject instance holding the square root of Operand. The returned result will be Double. It will be the same shape as Operand, except that it will always be an array, even if the Operand is a scalar (generally there is no reason to use these vector operators unless you are dealing with arrays).

Syntax

object.McSqrt (Operand)

The McSqrt Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McOMGlobal.
OperandRequired. A Variant value.

Values (non-negative) used to compute square root. May be a scalar or array of any arithmetic type. It may also be an McObject instance of an arithmetic type.

Remarks

The square root of the values in the Variant Operand are computed and the result is returned. The operand must be an arithmetic type.

Exceptions

Operand must a scalar or array of some arithmetic 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.