Question: Sequences of index i, j

 

Hello,

The following problem works if i = j.   I need help to fix this problem for i ≠ j.  Thanks

A := [1, 2, 3, 4, 5];

B := [a, b, c, d];

seq([A[i], B[j]], i = 1 .. 5, j = 1 .. 4);
Error, invalid input: seq expects its 3rd argument, step, to be of type numeric, but received j = 1 .. 4

Please Wait...