KPG1_AXLIx

Determines whether an array s values are equally spaced

Description:

This routine determines whether or not adjacent elements of a 1-d array have values that are equally spaced, i.e. it tests for linearity. It simply checks if the intervals between all successive pairs of elements are the same within the machine precision.

Invocation

CALL KPG1_AXLIx( EL, ARRAY, LVAL, UVAL, LINEAR, STATUS )

Arguments

EL = INTEGER (Given)
The number of elements in the array. It must be at least two.
ARRAY( EL ) = ? (Given)
The array to be tested.
LVAL = ? (Returned)
Value of the first array element. If this is bad an estimated value is substituted when the array is linear.
UVAL = ? (Returned)
Value of the last array element. If this is bad an estimated value is substituted when the array is linear.
LINEAR = LOGICAL (Returned)
True if the array is linear.
STATUS = INTEGER (Given)
The global status.

Notes: