Error Messages/40246

Error text

 In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified
 as ascending or descending, it must have only one dimension. (Alternatively, consider rewriting
 the function to specify parameter X with one dimension, e.g., "X: Ascending ArrayType[j]; j: Index"


You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.

Defining the function parameter to accept a one dimensional array and the index for the dimension would make the UDF easier to understand.


Pass a one dimensional array as the indicated parameter to the function.

See Also


You are not allowed to post comments.