Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'built-in way to write n sums when n can vary?' topicStudent Support Forum > General > Archives > "built-in way to write n sums when n can vary?"

Next Comment >Help | Reply To Topic
Author Comment/Response
Eduardo Lopez
05/10/12 08:13am

I'm trying to write a sum that solves a combinatorial problem. I have the analytical expression, but it is complicated to evaluate by hand. On Mathematica I can evaluate it by writing a program, but I'm trying to determine whether the expression can be written more directly.

The complication is that there are nested sums in the expression, and the number of nested sums varies depending on the values taken by the outer nested sums.

Can Mathematica cope with that in a succinct way?

Another way to put is: can a mathematica function f[.] take in a vector vec{r} as an input, but that the vector dimension can change? Say one case of vec{r} has dimension 2, and in another vec{r} has dimension 4.

If more details necessary, I can supply.

Best

URL: ,

Subject (listing for 'built-in way to write n sums when n can vary?')
Author Date Posted
built-in way to write n sums when n can vary? Eduardo Lopez 05/10/12 08:13am
Re: built-in way to write n sums when n can vary? Bill Simpson 05/11/12 11:41am
Next Comment >Help | Reply To Topic