Example 9.  Let  [Graphics:Images/MonteCarloMod_gr_222.gif].  Use the Monte Carlo method to calculate approximations to the integral  

        [Graphics:Images/MonteCarloMod_gr_223.gif].  

Solution 9.

[Graphics:../Images/MonteCarloMod_gr_224.gif]



[Graphics:../Images/MonteCarloMod_gr_225.gif]

 

 

 

[Graphics:../Images/MonteCarloMod_gr_226.gif]


[Graphics:../Images/MonteCarloMod_gr_227.gif]

 

 

We are done!

Aside.  We can use Mathematica's subroutine NIntegrate to perform Monte Carlo integration, and we can verify that it is computing the same results as our subroutine MonteCarloIntegral4D.

[Graphics:../Images/MonteCarloMod_gr_228.gif]

[Graphics:../Images/MonteCarloMod_gr_229.gif]


[Graphics:../Images/MonteCarloMod_gr_230.gif]

[Graphics:../Images/MonteCarloMod_gr_231.gif]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(c) John H. Mathews 2005