Ask Your Question

Revision history [back]

Do you mean something like this?

e = []
for j in (0..3):
    e.append(x(j) - sum(A[j,i] for i in (0..1)))

or

e=[ x(j) - sum(A[j,i] for i in (0..1)) for j in (0..3)]