Message Boards Message Boards

GROUPS:

Use NIntegrate In parallel?

Posted 12 days ago
213 Views
|
6 Replies
|
2 Total Likes
|

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:
6 Replies

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

Posted 9 days ago

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

Attachments:

Maybe this helps.

Posted 9 days ago

Thank you, I solved the problem.

Attachments:

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 9 days ago

Thank you, I solved the problem.

Attachments:
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