Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'need help to get the right code' topicStudent Support Forum > General > "need help to get the right code"

Next Comment >Help | Reply To Topic
Author Comment/Response
kaizen
09/17/11 4:40pm

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.

URL: ,

Subject (listing for 'need help to get the right code')
Author Date Posted
need help to get the right code kaizen 09/17/11 4:40pm
Re: need help to get the right code yehuda ben-s... 09/20/11 09:00am
need help to get the right code kaizen 09/20/11 3:13pm
Next Comment >Help | Reply To Topic