DIVS


The DIVS function returns a dynamic array, the content of which is derived by dividing each element of the first dynamic array argument by the corresponding element of the second dynamic array argument.

 

COMMAND SYNTAX

DIVS(DynArr1, DynArr2)

 

SYNTAX ELEMENTS

DynArr1 and DynArr2 represent dynamic arrays.

 

NOTES

Null elements of argument arrays are treated as zero. Otherwise, a non-numeric element in an argument array will cause a run-time error.

If a zero value element in DynArr2 has a corresponding element in DynArr1, then a run-time error will occur. If a zero value element in DynArr2 does not have a corresponding element in DynArr1, then the corresponding element in the result array will be zero.

 

EXAMPLE

PRECISION 7
X = 0 : @VM : @VM : 1
Y = 1 : @VM : 5 : @VM : 3 : @VM : 0
D = DIVS(X, Y)

The variable D is assigned the value:

0 : @VM : 0 : @VM : 0.3333333 : @VM : 0


jBC