|
|
| File Information |
| Description |
%Draw a square of area 1 on the ground, then inscribe a circle within it.
%Now, scatter some small objects (for example, grains of rice or sand) throughout the square.
%If the objects are scattered uniformly, then the proportion of objects within the circle vs objects within the square should be approximately ?/4,
%which is the ratio of the circle's area to the square's area.
%Thus, if we count the number of objects in the circle, multiply by four,
%and divide by the number of objects in the square, we get an approximation to pi. |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 11 Jun 2008 |
Dimitri Shvorob
|
|
|
| 11 Jun 2008 |
Jos x@y.z
|
|
|
| 12 Jun 2008 |
Heinrich Acker
|
|
|
| 12 Jun 2008 |
Jos x@y.z
|
|
|
| 12 Jun 2008 |
John D'Errico
|
|
|
|
Contact us at files@mathworks.com