# How to create an expression of a N-fold integration?

Posted 9 years ago
3642 Views
|
2 Replies
|
0 Total Likes
|
 Hi, I wonder whether it is possible to set a k-fold integration, where k is a variable? Take the equation in the attachment for example. It doesn't have to "solve" it because I don't think in general, it is able to unless the function in the integration is very nice. But at least, I would like to have an expression that mathematica can treat it as a function of k. Is this possible?
2 Replies
Sort By:
Posted 9 years ago
 you could try  foo[t_, n_] := Module[{s, z}, z = Array[t, n]; s = (Plus @@ (z[[2 ;; n - 1]])) (g[Sequence @@ z]/(z[[n]] + z[[1]])); Integrate[s, Sequence @@ ({#, 0, Infinity} & /@ z)] ] For example  Grid[Table[{k, foo[t, k]}, {k, 3, 6}], Alignment -> Left] You can change the indexing as needed.
Posted 9 years ago
 Thanks, Nasser. Could you explain a little bit of the Plus @@ and Sequance @@? I searched but didn't find any clue about them.
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments