Question: n-dimensional sums ?

I want to do a very high-dimensional sum.

Particularly, this sum, where each of those indices can be either 0 or 1:

http://scienide2.uwaterloo.ca/~ndattani/temp/template.pdf

 

I started doing something like:

sum(sum(sum(sum(R,a[0]=0..1),b[0]=0..1),a[1]=0..1]),b[1]=0..1)

 

But it seems that there must be a better way (one in which I can genarlize to n dimersions). Is such a thing possible in maple ??

 

R is a function of all of all components of a and b.

 

Also, is there a way I can type tex strings in this forum, instead of posting the pdf like I did ??

In PhysicsForums we just do <tex> and </tex>

 

 

 

 

Please Wait...