Loop in a integral computation

Hi,

I would like to introduce a loop for the "xl" values of the integral boundaries but I am not allowed to put a loop indicator such as xl={j,0} for instance.

let xl={1,0};
Lt_default=intsimp(&integrandMG,xl,1e-8);

 

Any idea on how to overcome this?

 

Thanks!

2 Answers



0



accepted

Is this what you are wanting to do?

x_limits = { 0, 0.5, 1, 1.5 };

for i(1, 3, 1);
   xl = x_limits[i:i+1];
   Lt_default=intsimp(&integrandMG,xl,1e-8);
endfor;

aptech

1,773


0



Yes, I think so!

I will add it now. thanks.

Your Answer

2 Answers

0
accepted

Is this what you are wanting to do?

x_limits = { 0, 0.5, 1, 1.5 };

for i(1, 3, 1);
   xl = x_limits[i:i+1];
   Lt_default=intsimp(&integrandMG,xl,1e-8);
endfor;
0

Yes, I think so!

I will add it now. thanks.


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 14 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy