Message Boards Message Boards

0
|
7355 Views
|
6 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Use NIntegrate In parallel?

Posted 5 years ago

The integrand I calculate is very complex and location-related. It takes a lot of time to go through a two dimensional region step by step using "while" loop structure, so how to use NIntegrate In parallel? I am a complete beginner in Mathematica.

Attachments:
POSTED BY: Zheng Li
6 Replies

Can't help you unless you post your code, preferably using the Code Sample icon.

POSTED BY: Frank Kampas
Posted 5 years ago

Would you please give me a hand? I'm not yet familiar with the software and language.

Attachments:
POSTED BY: Zheng Li

Maybe this helps.

POSTED BY: Mariusz Iwaniuk

Can you use inequalities to describe the region you want to integrate over? In that case, you could use NIntegrate just once

In[1]:= NIntegrate[
 Boole[Or[(x - 3)^2 + y^2 <= 1, (x + 3)^2 + y^2 <= 1]], {x, -100, 
  100}, {y, -100, 100}]

Out[1]= 6.28319
POSTED BY: Frank Kampas
Posted 5 years ago

Thank you, I solved the problem.

Attachments:
POSTED BY: Zheng Li
Posted 5 years ago

Thank you, I solved the problem.

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

Group Abstract Group Abstract