Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.2K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Obtain multiple integrals with flexible number of variables?

Posted 6 years ago

Hi, I want to calculate the something of the following structure:

Integrate[1,{y0,0,x0},{y1,0,y0},{y2,0,y1}...{y_n,0,y_{n-1}}]

The issue is, that I want the program to call n from the data. That is, I want the function "Integrate" to call the number of arguments from the data. I don't know who write a list of array that won't be.

POSTED BY: Yoav Kerner
2 Replies

Do you mean this?

n = 5;
tt = Table[{y[j], 0, y[j - 1]}, {j, n}] /. y[0] -> x0
iIntegrate[1, Sequence @@ tt]
Integrate[1, Sequence @@ tt]
POSTED BY: Hans Dolhaine
Posted 6 years ago

I Think it does. So "Sequence" does the job.

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