Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.8K Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

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

Posted 11 years ago
POSTED BY: C Z
2 Replies

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]

enter image description here

You can change the indexing as needed.

POSTED BY: Nasser M. Abbasi
Posted 11 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.

POSTED BY: C Z
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard