Your example is unclear - is your list format
{x1,y1,z1,u1},{x2,y2,z2,u2}...{xn,yn,zn,un}}?
If so, try
Total[Map[#[[1]]*#[[2]]*#[[3]]*#[[4]]&,list]]
Michael
buts wrote:
> Hello,
>
> Could anyone explain me how to do the following:
> I have a long list of integer numbers in groups of four:
>
> list= {{10,3,5,7},{4,6,8,9},{0,8,3,6}, ...... }
>
> or its Flatten version.
>
> How to write a fast function g[list] which does this:
>
> g[list] =x^10*y^3*z^5*u^7 + x^4*y^6*z^8*u^9 + y^8*z^3*u^6+ ...
>
> It should be done many times (say, 10^4-6) on lists with length > 1000, so taking parts is not a good idea.
> How to use Map or similar ?
> Thanks.
>
>