I solve a system of 4 equations with 4 variables z_i (see below).
I would like to change the way results are written as such for each i: y_i = AX + sum[By_(-i)] + Cz_i + u_i
where the sum comes from the other indices than i, u_i gathers all the terms not in X, y_(-i), and z_i.
for instance: y_1 = AX + By_2 + Cy_3 + Dy_4 + Ez_1 + u_1
Is it possible to do so?
Thanks.
Solve[{Subscript[\[Pi], 11] Subscript[z, 1] +
Subscript[\[Pi], 12] Subscript[z, 2] +
Subscript[\[Pi], 13] Subscript[z, 3] +
Subscript[\[Pi], 14] Subscript[z, 4] + Subscript[\[Pi], 10] X +
Subscript[\[Nu], 1] == Subscript[y, 1],
Subscript[\[Pi], 21] Subscript[z, 1] +
Subscript[\[Pi], 22] Subscript[z, 2] +
Subscript[\[Pi], 23] Subscript[z, 3] +
Subscript[\[Pi], 24] Subscript[z, 4] + Subscript[\[Pi], 20] X +
Subscript[\[Nu], 2] == Subscript[y, 2],
Subscript[\[Pi], 31] Subscript[z, 1] +
Subscript[\[Pi], 32] Subscript[z, 2] +
Subscript[\[Pi], 33] Subscript[z, 3] +
Subscript[\[Pi], 34] Subscript[z, 4] + Subscript[\[Pi], 30] X +
Subscript[\[Nu], 3] == Subscript[y, 3],
Subscript[\[Pi], 41] Subscript[z, 1] +
Subscript[\[Pi], 42] Subscript[z, 2] +
Subscript[\[Pi], 43] Subscript[z, 3] +
Subscript[\[Pi], 44] Subscript[z, 4] + Subscript[\[Pi], 40] X +
Subscript[\[Nu], 4] == Subscript[y, 4]}, {Subscript[z, 1],
Subscript[z, 2], Subscript[z, 3], Subscript[z, 4]}]