Difference between revisions of "Error Messages/40865"
(Created page with '= Error Message = The «end» parameter to Function Sequence is array valued, which is not allowed. The parameters to Sequence must be scalars. = Cause = The functio…') |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error message == | |
− | + | :<code>''The «end» parameter to Function Sequence is array valued, which is not allowed.''</code> | |
+ | :<code>'' The parameters to Sequence must be scalars.''</code> | ||
− | The function [[Sequence]] produces a list of numbers. If one of the parameters is array valued, array abstraction would return many lists, all of differing lengths. If that were allowed, you would end up with a non-rectangular array. Because Analytica does not allow arrays to be non-rectangular, a non-scalar parameter results in an error. | + | == Cause == |
+ | |||
+ | The function [[Sequence]] produces a list of numbers. If one of the parameters is array valued, [[Array Abstraction|array abstraction]] would return many lists, all of differing lengths. If that were allowed, you would end up with a non-rectangular array. Because Analytica does not allow arrays to be non-rectangular, a non-scalar parameter results in an error. | ||
For example, the following would produce this error: | For example, the following would produce this error: | ||
− | :Index N := 5..10 | + | :<code>Index N := 5..10</code> |
− | :Index J := Sequence(1,N) | + | :<code>Index J := Sequence(1, N)</code> |
+ | |||
+ | ==Remedies== | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Sequence]] | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[Function_parameter_qualifiers#Scalar|Scalar parameters]] | ||
+ | * [[Arrays and Indexes]] | ||
+ | * [[Array Abstraction]] |
Latest revision as of 19:26, 5 April 2016
Error message
The «end» parameter to Function Sequence is array valued, which is not allowed.
The parameters to Sequence must be scalars.
Cause
The function Sequence produces a list of numbers. If one of the parameters is array valued, array abstraction would return many lists, all of differing lengths. If that were allowed, you would end up with a non-rectangular array. Because Analytica does not allow arrays to be non-rectangular, a non-scalar parameter results in an error.
For example, the following would produce this error:
Index N := 5..10
Index J := Sequence(1, N)
Remedies
See Also
Comments
Enable comment auto-refresher