Example
9. Let
. Use
the Monte Carlo method to calculate approximations to the
integral
.
Solution 9.
![[Graphics:../Images/MonteCarloMod_gr_225.gif]](../Images/MonteCarloMod_gr_225.gif)
![[Graphics:../Images/MonteCarloMod_gr_227.gif]](../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.
(c) John H. Mathews 2005