MATLAB MatLab code for these Integrals.

AI Thread Summary
The discussion focuses on writing MATLAB code for evaluating two specific double integrals using the Monte Carlo method. The integrals in question involve the expression e^{-(x^4+y^4)} and its variations, which are essential for the user's scientific research. The user seeks guidance on how to implement these integrals in MATLAB, highlighting a lack of clarity on how to approach the problem. Suggestions include reviewing MATLAB's capabilities for Monte Carlo simulations and understanding how to evaluate integrals effectively within that framework. The conversation emphasizes the need for more specific details about the user's challenges in order to provide targeted assistance. Additionally, there is a mathematical insight shared regarding the relationship between the variables in the integrals, which could aid in simplifying the problem.
John Mark
Messages
3
Reaction score
0
How can I write proper language for these integrals in MatLab ?
Your helps really appreciated.



John Mark
 

Attachments

Physics news on Phys.org
Those integrals are:##\renewcommand{\dy}{\text{d}y} \renewcommand{\dx}{\text{d}x}##

1) $$\iint e^{-(x^4+y^4)}\;\dx\dy$$ 2) $$\iint e^{-(x^4+y^4)}(x^2+y^2)x^2y^2e^{-2x^2y^2}\;\dx\dy$$

What have you tried?
How would you normally handle integrals in matlab?
i.e. what's the trouble you are having here?

(Otherwise it just looks like a couple of homework problems.)
 
  • Like
Likes 1 person
I need to write the code of solutions by MonteCarlo method in MatLab for my scientific research. These are the integrals which I'm struggling with.
 
Have you had a look how MATLAB normally gets used to simulate monte-carlo?
http://www.mathworks.com/discovery/monte-carlo-simulation.html
http://www.columbia.edu/~mh2078/MCS04/MCS_overview.pdf
http://physics.gac.edu/~huber/envision/instruct/montecar.htm

How would you normally handle integrals in matlab?

Basically, I still don't know where your problem lies.
If you don't tell me, I cannot help you.

i.e. in a Monte Carlo sim, would want to evaluate a radius ... which is ##r^2=x^2+y^2## ?
Have you realized that ##(x^2+y^2)^2=x^4+y^4+2x^2y^2## ?
 

Similar threads

Back
Top