| 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: , |
|