MatLab code for these Integrals.

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
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   Reactions: 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## ?