- #1
kaizen.moto
- 98
- 0
Dear all,
Iam looking for a generic code that could express the following functions:
Subscript[mata, 1] = hl[[1]];
Subscript[mata, 2] = matg[[2]].hl[[1]] + hl[[2]];
Subscript[mata, 3] = matg[[3]].matg[[2]].hl[[1]]
+ matg[[3]].hl[[2]] + hl[[3]];
Subscript[mata, 4] =
matg[[4]].matg[[3]].matg[[2]].hl[[1]]
+ matg[[4]].matg[[3]].hl[[2]]
+ matg[[4]].hl[[3]]
+ hl[[4]];
Subscript[mata, 5] = matg[[5]].matg[[4]].matg[[3]].matg[[2]].hl[[1]]
+ matg[[5]].matg[[4]].matg[[3]].hl[[2]]
+ matg[[5]].matg[[4]].hl[[3]]
+ matg[[5]].hl[[4]]
+ hl[[5]];
Please help me to get the right code for the above expressions. It may looks like this:
Subsript[mata,i] = ... where i = 1,2,3,...17.
Thank you for any kind help.
Iam looking for a generic code that could express the following functions:
Subscript[mata, 1] = hl[[1]];
Subscript[mata, 2] = matg[[2]].hl[[1]] + hl[[2]];
Subscript[mata, 3] = matg[[3]].matg[[2]].hl[[1]]
+ matg[[3]].hl[[2]] + hl[[3]];
Subscript[mata, 4] =
matg[[4]].matg[[3]].matg[[2]].hl[[1]]
+ matg[[4]].matg[[3]].hl[[2]]
+ matg[[4]].hl[[3]]
+ hl[[4]];
Subscript[mata, 5] = matg[[5]].matg[[4]].matg[[3]].matg[[2]].hl[[1]]
+ matg[[5]].matg[[4]].matg[[3]].hl[[2]]
+ matg[[5]].matg[[4]].hl[[3]]
+ matg[[5]].hl[[4]]
+ hl[[5]];
Please help me to get the right code for the above expressions. It may looks like this:
Subsript[mata,i] = ... where i = 1,2,3,...17.
Thank you for any kind help.