I want to write a function which takes multiple arguments varying from 1 to n, where each argument is a triplet.
sublistProduct[{$a_1,b_1,c_1$},{$a_2,b_2,c_2$},...] = { $\Pi_{i=1}^{i=n}a_i ,\Pi_{i=1}^{i=n} b_i,\forall i \;\;max(c_i) $}
Any suggestions to write this function without multiple declaration and overloading.
For example sublistProduct[{1,2,3},{2,3,3},{3,4,5}] = {6,24,5} There can be any number of inputs(triplets) to the functions
Transposemethod andRepeatedpattern that the Accepted answer below does, therefore I believe this does already have an answer as marked. The only possible difference that I can see is the "convert it to a list" part which is exactly what 15749 is about. – Mr.Wizard Apr 10 '15 at 18:02