![]() |
![]() |
LastUpdate 3/10/2022 |
This software is a simuration software that uses the Monte Carlo method
to obtain an approximate value of pi. The Monte Carlo method is a general
term for methods that perform simulations and numerial calculations using
random numbers. There are softfares created in Java for simulating on a personal computer and apps created in Android for simulaing on a smartphone. (For the Android version , see "Interesting Android App" in Menu 1.) As an example of finding an approximate value of pi using the Monte Carlo method , it is common to "Scatter sesame seeds to find an approximate value of pi." (Draw a square and a circle inscribed in it , and randomly scatter sesame seeds from above. Calculate the approximate value of pi from the ratio of the number of sesame seeds in a square to the number of sesame seeds in a circle.) |
|
OS: Confirmed to work on Windows Vista / 7 / 8 / 10 You must have the JDK installed according to the "Setup Method" below. |
To use the simulation software "Throw coins to find an approximate
value of pi !" , you need to set it up on your hard disk. Even if you say setup , all you have to do is to decompress the downloaded compressed file and copy the created folder to the hard disk of the computer you want to use. Java application can be operated only in the enviroment where JRE (Java SE excution environment) is installed. Download and install the Java Development Kit (JDK) from Oracle website. (free) |
Double-click batch file "〜.bat" in the folder created on the drive you set up. |
Double-click batch file "〜.bat" to start this software. Select the number of coins to throw from the [10] button to the [50000] button and click. The number of coins that overlap the grid points and the approximate value of pi at that time are displayed. Click the [Init] button to clear the screen. Click the [Exit] button to exit this software. |
If you download the simulation software "Throw coins to find an approximate
value of pi ! (Java) executable file" , the compressed file "〜.lzh"
will be dowmloaded. When the downloaded compressed file "〜.lzh"
is decompressed , the folder "MyTenencoinEngj" is created. If you download the simulation software "Scatter sesame seeds to find an approximate value of pi ! (Java) executable file" , the compressed file "〜.lzh" will be dowmloaded. When the downloaded compressed file "〜.lzh" is decompressed , the folder "MyGomaEngj" is created. If you download the simulation software "Scatter needles to find an approximate value of pi ! (Java) executable file" , the compressed file "〜.lzh" will be dowmloaded. When the downloaded compressed file "〜.lzh" is decompressed , the folder "MyHariEngj" is created. |
Simulation software | 『Throw coins to find an approximate value of pi!(Java)』 executable file |
Simulation software | 『Scatter sesame seeds to find an approximate value of pi!(Java)』 executable file |
Simulation software | 『Scatter needles to find an approximate value of pi!(Java)』 executable file |
![]() ![]() ![]() ![]() ![]() |