- Category:
- matlab
- Tags:
-
[Matlab]
[源码]
- File Size:
- 1kb
- Update:
- 2013-04-29
- Downloads:
- 0 Times
- Uploaded by:
- ss2
Description: Estimated number of Pi ( Method 1)
how do we estimate Pi by simulation? In the simulation, you keep throwing darts at random onto the dartboard. All of the darts fall within the square, but not all of them fall within the circle. Here s the key. If you throw darts completely at random, this experiment estimate the ratio of the area of the circle to the area of the square, by counting the number of darts in each.
Our study of the geometry tells us this ratio is Pi/4. So, now we can estimate Pi as
To Search:
File list (Check if you may need any files):
pi_method1.m